Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
performance
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zry
performance
Commits
b8c28b86
Commit
b8c28b86
authored
Sep 08, 2021
by
lcx
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' into feature/绩效汇报表
parents
cc35fa85
67cd1fcb
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
25 additions
and
3 deletions
+25
-3
performance/Performance.Infrastructure/Extensions/Extensions.Dictionary.cs
+1
-1
performance/Performance.Services/ExtractExcelService/ExtractService.cs
+20
-0
performance/Performance.Services/ExtractExcelService/QueryService.cs
+2
-1
performance/Performance.Services/PerExcelService/SheetDataRead/PerSheetDataReadAccountExtra.cs
+1
-0
performance/Performance.Services/PerExcelService/SheetDataRead/PerSheetDataReadPersonExtra.cs
+1
-1
No files found.
performance/Performance.Infrastructure/Extensions/Extensions.Dictionary.cs
View file @
b8c28b86
...
@@ -54,7 +54,7 @@ public static void AddOrUpdate(this Dictionary<string, object> keyValues, string
...
@@ -54,7 +54,7 @@ public static void AddOrUpdate(this Dictionary<string, object> keyValues, string
if
(
default
(
KeyValuePair
<
string
,
object
>).
Equals
(
pair
))
if
(
default
(
KeyValuePair
<
string
,
object
>).
Equals
(
pair
))
keyValues
.
Add
(
key
,
value
);
keyValues
.
Add
(
key
,
value
);
else
else
keyValues
[
k
ey
]
=
value
;
keyValues
[
pair
.
K
ey
]
=
value
;
}
}
/// <summary>
/// <summary>
...
...
performance/Performance.Services/ExtractExcelService/ExtractService.cs
View file @
b8c28b86
...
@@ -158,6 +158,7 @@ private void WriteDataToFile(IWorkbook workbook, per_allot allot, Dictionary<ExD
...
@@ -158,6 +158,7 @@ private void WriteDataToFile(IWorkbook workbook, per_allot allot, Dictionary<ExD
WriteDataFactory
factory
=
new
WriteDataFactory
();
WriteDataFactory
factory
=
new
WriteDataFactory
();
var
types
=
new
List
<
SheetType
>
{
SheetType
.
OtherIncome
,
SheetType
.
Income
,
SheetType
.
Expend
,
SheetType
.
Workload
,
SheetType
.
OtherWorkload
/*, SheetType.AccountBasic*/
};
var
types
=
new
List
<
SheetType
>
{
SheetType
.
OtherIncome
,
SheetType
.
Income
,
SheetType
.
Expend
,
SheetType
.
Workload
,
SheetType
.
OtherWorkload
/*, SheetType.AccountBasic*/
};
types
.
AddRange
(
OtherConfigSheet
);
decimal
ratio
=
60
m
;
decimal
ratio
=
60
m
;
//string accountBasicSheetName = "";
//string accountBasicSheetName = "";
...
@@ -321,5 +322,24 @@ private List<ExtractTransDto> StandDataFormat(int hospitalId, List<ex_result> re
...
@@ -321,5 +322,24 @@ private List<ExtractTransDto> StandDataFormat(int hospitalId, List<ex_result> re
return
groupdata
.
ToList
();
return
groupdata
.
ToList
();
}
}
private
readonly
List
<
SheetType
>
OtherConfigSheet
=
new
List
<
SheetType
>
{
SheetType
.
AccountExtra
,
SheetType
.
PersonExtra
,
SheetType
.
AccountDrugAssess
,
SheetType
.
AccountMaterialsAssess
,
SheetType
.
AccountScoreAverage
,
SheetType
.
AccountAdjustLaterOtherFee
,
SheetType
.
PersonAdjustLaterOtherFee
,
SheetType
.
BudgetRatio
,
SheetType
.
AssessBeforeOtherFee
,
SheetType
.
PersonOtherManagePerforFee
,
SheetType
.
PersonAdjustLaterOtherManagePerforFee
,
SheetType
.
PersonPostCoefficient
,
SheetType
.
WorkloadMedicineProp
,
SheetType
.
WorkloadCMI
,
SheetType
.
WorkloadIncline
,
};
}
}
}
}
performance/Performance.Services/ExtractExcelService/QueryService.cs
View file @
b8c28b86
...
@@ -235,8 +235,9 @@ private List<ex_result> ExtractModuleData(per_allot allot, string groupName, boo
...
@@ -235,8 +235,9 @@ private List<ex_result> ExtractModuleData(per_allot allot, string groupName, boo
logService
.
ReturnTheLog
(
allot
.
ID
,
groupName
,
2
,
"提取数据"
,
$"模块“
{
string
.
Join
(
"、"
,
thisModules
.
Select
(
t
=>
t
.
ModuleName
))}
”的数据已完成提取"
,
1
,
isSingle
);
logService
.
ReturnTheLog
(
allot
.
ID
,
groupName
,
2
,
"提取数据"
,
$"模块“
{
string
.
Join
(
"、"
,
thisModules
.
Select
(
t
=>
t
.
ModuleName
))}
”的数据已完成提取"
,
1
,
isSingle
);
}
}
catch
(
Exception
)
catch
(
Exception
ex
)
{
{
logger
.
LogError
(
$"数据库“
{
config
.
DbName
}
”连接失败:
{
ex
}
;
{
Infrastructure
.
JsonHelper
.
Serialize
(
script
)}
"
);
logService
.
ReturnTheLog
(
allot
.
ID
,
groupName
,
2
,
"数据库连接"
,
$"数据库“
{
config
.
DbName
}
”连接失败"
,
3
,
isSingle
);
logService
.
ReturnTheLog
(
allot
.
ID
,
groupName
,
2
,
"数据库连接"
,
$"数据库“
{
config
.
DbName
}
”连接失败"
,
3
,
isSingle
);
}
}
}
}
...
...
performance/Performance.Services/PerExcelService/SheetDataRead/PerSheetDataReadAccountExtra.cs
View file @
b8c28b86
...
@@ -19,6 +19,7 @@ public class PerSheetDataReadAccountExtra : IPerSheetDataRead
...
@@ -19,6 +19,7 @@ public class PerSheetDataReadAccountExtra : IPerSheetDataRead
HeaderLastRowNum
=
1
,
HeaderLastRowNum
=
1
,
HeaderFirstCellNum
=
0
,
HeaderFirstCellNum
=
0
,
DataFirstRowNum
=
2
,
DataFirstRowNum
=
2
,
DataFirstCellNum
=
3
,
TotalCellNum
=
0
,
TotalCellNum
=
0
,
AccountingUnit
=
new
List
<
AccountingUnit
>
AccountingUnit
=
new
List
<
AccountingUnit
>
{
{
...
...
performance/Performance.Services/PerExcelService/SheetDataRead/PerSheetDataReadPersonExtra.cs
View file @
b8c28b86
...
@@ -19,7 +19,7 @@ public class PerSheetDataReadPersonExtra : IPerSheetDataRead
...
@@ -19,7 +19,7 @@ public class PerSheetDataReadPersonExtra : IPerSheetDataRead
HeaderLastRowNum
=
1
,
HeaderLastRowNum
=
1
,
HeaderFirstCellNum
=
0
,
HeaderFirstCellNum
=
0
,
DataFirstRowNum
=
2
,
DataFirstRowNum
=
2
,
DataFirstCellNum
=
4
,
DataFirstCellNum
=
3
,
TotalCellNum
=
0
,
TotalCellNum
=
0
,
AccountingUnit
=
new
List
<
AccountingUnit
>
AccountingUnit
=
new
List
<
AccountingUnit
>
{
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment