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
70d4de26
Commit
70d4de26
authored
Apr 14, 2023
by
ruyun.zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
二次分配汇总栏目名称返回
parent
023d7e0b
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
82 additions
and
17 deletions
+82
-17
performance/Performance.Api/wwwroot/Performance.DtoModels.xml
+5
-0
performance/Performance.DtoModels/AppSettings/Application.cs
+4
-0
performance/Performance.Services/AllotCompute/ProcessComputService.cs
+17
-9
performance/Performance.Services/AllotCompute/ResultComputeService.cs
+9
-1
performance/Performance.Services/DapperService.cs
+1
-1
performance/Performance.Services/PersonService.cs
+23
-2
performance/Performance.Services/RedistributionService.cs
+23
-4
No files found.
performance/Performance.Api/wwwroot/Performance.DtoModels.xml
View file @
70d4de26
...
@@ -64,6 +64,11 @@
...
@@ -64,6 +64,11 @@
开启反SQL注入白名单地址
开启反SQL注入白名单地址
</summary>
</summary>
</member>
</member>
<member
name=
"P:Performance.DtoModels.AppSettings.Application.NightShiftTexts"
>
<summary>
夜班绩效文本名称
</summary>
</member>
<member
name=
"T:Performance.DtoModels.AppSettings.AppSQLEncrypt"
>
<member
name=
"T:Performance.DtoModels.AppSettings.AppSQLEncrypt"
>
<summary>
<summary>
数据库密码加密
数据库密码加密
...
...
performance/Performance.DtoModels/AppSettings/Application.cs
View file @
70d4de26
...
@@ -38,5 +38,9 @@ public class Application
...
@@ -38,5 +38,9 @@ public class Application
/// 开启反SQL注入白名单地址
/// 开启反SQL注入白名单地址
/// </summary>
/// </summary>
public
string
[]
AntiSqlInjectRouteWhite
{
get
;
set
;
}
public
string
[]
AntiSqlInjectRouteWhite
{
get
;
set
;
}
/// <summary>
/// 夜班绩效文本名称
/// </summary>
public
string
[]
NightShiftTexts
{
get
;
set
;
}
}
}
}
}
performance/Performance.Services/AllotCompute/ProcessComputService.cs
View file @
70d4de26
using
AutoMapper
;
using
System
;
using
Newtonsoft.Json.Linq
;
using
System.Collections.Generic
;
using
System.Linq
;
using
AutoMapper
;
using
Microsoft.Extensions.Options
;
using
Performance.DtoModels
;
using
Performance.DtoModels
;
using
Performance.DtoModels.AppSettings
;
using
Performance.EntityModels
;
using
Performance.EntityModels
;
using
Performance.Infrastructure
;
using
Performance.Repository
;
using
Performance.Repository
;
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Text
;
namespace
Performance.Services.AllotCompute
namespace
Performance.Services.AllotCompute
{
{
...
@@ -17,6 +16,7 @@ namespace Performance.Services.AllotCompute
...
@@ -17,6 +16,7 @@ namespace Performance.Services.AllotCompute
public
class
ProcessComputService
:
IAutoInjection
public
class
ProcessComputService
:
IAutoInjection
{
{
private
readonly
IMapper
_mapper
;
private
readonly
IMapper
_mapper
;
private
readonly
IOptions
<
Application
>
_options
;
private
readonly
BudgetService
_budgetService
;
private
readonly
BudgetService
_budgetService
;
private
PerforCofincomeRepository
perforCofincomeRepository
;
private
PerforCofincomeRepository
perforCofincomeRepository
;
private
PerforPersheetRepository
perforPerSheetRepository
;
private
PerforPersheetRepository
perforPerSheetRepository
;
...
@@ -35,6 +35,7 @@ public class ProcessComputService : IAutoInjection
...
@@ -35,6 +35,7 @@ public class ProcessComputService : IAutoInjection
public
ProcessComputService
(
public
ProcessComputService
(
IMapper
mapper
,
IMapper
mapper
,
IOptions
<
Application
>
options
,
BudgetService
budgetService
,
BudgetService
budgetService
,
PerforCofincomeRepository
perforCofincomeRepository
,
PerforCofincomeRepository
perforCofincomeRepository
,
PerforPersheetRepository
perforPerSheetRepository
,
PerforPersheetRepository
perforPerSheetRepository
,
...
@@ -52,6 +53,7 @@ public class ProcessComputService : IAutoInjection
...
@@ -52,6 +53,7 @@ public class ProcessComputService : IAutoInjection
PerforPerallotRepository
perallotRepository
)
PerforPerallotRepository
perallotRepository
)
{
{
_mapper
=
mapper
;
_mapper
=
mapper
;
_options
=
options
;
_budgetService
=
budgetService
;
_budgetService
=
budgetService
;
this
.
perforCofincomeRepository
=
perforCofincomeRepository
;
this
.
perforCofincomeRepository
=
perforCofincomeRepository
;
this
.
perforPerSheetRepository
=
perforPerSheetRepository
;
this
.
perforPerSheetRepository
=
perforPerSheetRepository
;
...
@@ -307,7 +309,10 @@ public List<PerSheet> Compute(PerExcel excel, List<PerSheet> perSheet, per_allot
...
@@ -307,7 +309,10 @@ public List<PerSheet> Compute(PerExcel excel, List<PerSheet> perSheet, per_allot
workDoctor
=
info
.
Data
.
FirstOrDefault
(
t
=>
t
.
UnitType
==
UnitType
.
医生组
.
ToString
()
&&
t
.
AccountingUnit
==
dept
.
AccountingUnit
);
workDoctor
=
info
.
Data
.
FirstOrDefault
(
t
=>
t
.
UnitType
==
UnitType
.
医生组
.
ToString
()
&&
t
.
AccountingUnit
==
dept
.
AccountingUnit
);
// 夜班绩效 从医院奖罚的明细项中获取
// 夜班绩效 从医院奖罚的明细项中获取
// 2022-03-16 wufeifei
// 2022-03-16 wufeifei
string
[]
nightShiftTexts
=
new
string
[]
{
"夜班绩效"
,
"夜班工作量"
,
"夜班工作量奖励"
};
string
[]
nightShiftTexts
=
_options
.
Value
.
NightShiftTexts
;
if
(
nightShiftTexts
?.
Any
()
!=
true
)
nightShiftTexts
=
new
string
[]
{
"夜班绩效"
,
"夜班工作量"
,
"夜班工作量奖励"
,
"手术绩效"
,
};
var
nightShift
=
adjustLaterOtherFee
?.
FirstOrDefault
(
w
=>
w
.
UnitType
==
dept
.
UnitType
&&
w
.
AccountingUnit
==
dept
.
AccountingUnit
&&
nightShiftTexts
.
Contains
(
w
.
TypeName
?.
Trim
()))?.
CellValue
??
0
;
var
nightShift
=
adjustLaterOtherFee
?.
FirstOrDefault
(
w
=>
w
.
UnitType
==
dept
.
UnitType
&&
w
.
AccountingUnit
==
dept
.
AccountingUnit
&&
nightShiftTexts
.
Contains
(
w
.
TypeName
?.
Trim
()))?.
CellValue
??
0
;
dept
.
NightShiftWorkPerforFee
=
nightShift
;
dept
.
NightShiftWorkPerforFee
=
nightShift
;
...
@@ -391,7 +396,10 @@ public void ComputeOffice(per_allot allot, PerExcel excel)
...
@@ -391,7 +396,10 @@ public void ComputeOffice(per_allot allot, PerExcel excel)
{
{
// 夜班绩效 从医院奖罚的明细项中获取
// 夜班绩效 从医院奖罚的明细项中获取
// 2022-03-16 wufeifei
// 2022-03-16 wufeifei
string
[]
nightShiftTexts
=
new
string
[]
{
"夜班绩效"
,
"夜班工作量"
,
"夜班工作量奖励"
};
string
[]
nightShiftTexts
=
_options
.
Value
.
NightShiftTexts
;
if
(
nightShiftTexts
?.
Any
()
!=
true
)
nightShiftTexts
=
new
string
[]
{
"夜班绩效"
,
"夜班工作量"
,
"夜班工作量奖励"
,
"手术绩效"
,
};
var
nightShift
=
adjustLaterOtherFee
?.
FirstOrDefault
(
w
=>
w
.
UnitType
==
dept
.
UnitType
&&
w
.
AccountingUnit
==
dept
.
AccountingUnit
&&
nightShiftTexts
.
Contains
(
w
.
TypeName
?.
Trim
()))?.
CellValue
??
0
;
var
nightShift
=
adjustLaterOtherFee
?.
FirstOrDefault
(
w
=>
w
.
UnitType
==
dept
.
UnitType
&&
w
.
AccountingUnit
==
dept
.
AccountingUnit
&&
nightShiftTexts
.
Contains
(
w
.
TypeName
?.
Trim
()))?.
CellValue
??
0
;
dept
.
NightShiftWorkPerforFee
=
nightShift
;
dept
.
NightShiftWorkPerforFee
=
nightShift
;
...
...
performance/Performance.Services/AllotCompute/ResultComputeService.cs
View file @
70d4de26
using
AutoMapper
;
using
AutoMapper
;
using
Microsoft.Extensions.Logging
;
using
Microsoft.Extensions.Logging
;
using
Microsoft.Extensions.Options
;
using
Performance.DtoModels
;
using
Performance.DtoModels
;
using
Performance.DtoModels.AppSettings
;
using
Performance.EntityModels
;
using
Performance.EntityModels
;
using
Performance.Infrastructure
;
using
Performance.Infrastructure
;
using
Performance.Repository
;
using
Performance.Repository
;
...
@@ -17,6 +19,7 @@ namespace Performance.Services.AllotCompute
...
@@ -17,6 +19,7 @@ namespace Performance.Services.AllotCompute
public
class
ResultComputeService
:
IAutoInjection
public
class
ResultComputeService
:
IAutoInjection
{
{
private
readonly
IMapper
_mapper
;
private
readonly
IMapper
_mapper
;
private
readonly
IOptions
<
Application
>
_options
;
private
readonly
DapperService
_service
;
private
readonly
DapperService
_service
;
private
readonly
PerforPerallotRepository
_perforPerallotRepository
;
private
readonly
PerforPerallotRepository
_perforPerallotRepository
;
private
readonly
BaiscNormService
baiscNormService
;
private
readonly
BaiscNormService
baiscNormService
;
...
@@ -36,6 +39,7 @@ public class ResultComputeService : IAutoInjection
...
@@ -36,6 +39,7 @@ public class ResultComputeService : IAutoInjection
public
ResultComputeService
(
public
ResultComputeService
(
IMapper
mapper
,
IMapper
mapper
,
IOptions
<
Application
>
options
,
DapperService
service
,
DapperService
service
,
PerforPerallotRepository
perforPerallotRepository
,
PerforPerallotRepository
perforPerallotRepository
,
PerforHospitalRepository
hospitalRepository
,
PerforHospitalRepository
hospitalRepository
,
...
@@ -52,6 +56,7 @@ public class ResultComputeService : IAutoInjection
...
@@ -52,6 +56,7 @@ public class ResultComputeService : IAutoInjection
ILogger
<
ResultComputeService
>
logger
)
ILogger
<
ResultComputeService
>
logger
)
{
{
_mapper
=
mapper
;
_mapper
=
mapper
;
_options
=
options
;
_service
=
service
;
_service
=
service
;
_perforPerallotRepository
=
perforPerallotRepository
;
_perforPerallotRepository
=
perforPerallotRepository
;
this
.
baiscNormService
=
baiscNormService
;
this
.
baiscNormService
=
baiscNormService
;
...
@@ -174,7 +179,10 @@ public void SpecialUnitCompute(PerExcel excel, per_allot allot, List<res_baiscno
...
@@ -174,7 +179,10 @@ public void SpecialUnitCompute(PerExcel excel, per_allot allot, List<res_baiscno
// 夜班绩效 从医院奖罚的明细项中获取
// 夜班绩效 从医院奖罚的明细项中获取
// 2022-03-16 wufeifei
// 2022-03-16 wufeifei
string
[]
nightShiftTexts
=
new
string
[]
{
"夜班绩效"
,
"夜班工作量"
,
"夜班工作量奖励"
};
string
[]
nightShiftTexts
=
_options
.
Value
.
NightShiftTexts
;
if
(
nightShiftTexts
?.
Any
()
!=
true
)
nightShiftTexts
=
new
string
[]
{
"夜班绩效"
,
"夜班工作量"
,
"夜班工作量奖励"
,
"手术绩效"
,
};
var
nightShift
=
adjustLaterOtherFee
?.
FirstOrDefault
(
w
=>
w
.
UnitType
==
dept
?.
UnitType
&&
w
.
AccountingUnit
==
dept
?.
AccountingUnit
&&
nightShiftTexts
.
Contains
(
w
.
TypeName
?.
Trim
()))?.
CellValue
??
0
;
var
nightShift
=
adjustLaterOtherFee
?.
FirstOrDefault
(
w
=>
w
.
UnitType
==
dept
?.
UnitType
&&
w
.
AccountingUnit
==
dept
?.
AccountingUnit
&&
nightShiftTexts
.
Contains
(
w
.
TypeName
?.
Trim
()))?.
CellValue
??
0
;
decimal
?
headcount
=
null
;
decimal
?
headcount
=
null
;
...
...
performance/Performance.Services/DapperService.cs
View file @
70d4de26
...
@@ -464,7 +464,7 @@ public IEnumerable<dynamic> QueryAttendanceIssue(int allotId, List<string> unitT
...
@@ -464,7 +464,7 @@ public IEnumerable<dynamic> QueryAttendanceIssue(int allotId, List<string> unitT
if
(!
string
.
IsNullOrEmpty
(
accountingUnit
))
if
(!
string
.
IsNullOrEmpty
(
accountingUnit
))
{
{
sql
+=
" and accountingUnit = @accountingUnit"
;
sql
+=
" and accountingUnit = @accountingUnit"
;
parameters
.
Add
(
"@accountingUnit"
,
$"accountingUnit"
);
parameters
.
Add
(
"@accountingUnit"
,
accountingUnit
);
}
}
if
(!
string
.
IsNullOrEmpty
(
personnelNameOrNumber
))
if
(!
string
.
IsNullOrEmpty
(
personnelNameOrNumber
))
{
{
...
...
performance/Performance.Services/PersonService.cs
View file @
70d4de26
...
@@ -35,6 +35,7 @@ public class PersonService : IAutoInjection
...
@@ -35,6 +35,7 @@ public class PersonService : IAutoInjection
private
readonly
PerforAgsecondallotRepository
agsecondallotRepository
;
private
readonly
PerforAgsecondallotRepository
agsecondallotRepository
;
private
readonly
PerforHospitalRepository
perforHospitalRepository
;
private
readonly
PerforHospitalRepository
perforHospitalRepository
;
private
readonly
PerforCofaccountingRepository
perforCofaccountingRepository
;
private
readonly
PerforCofaccountingRepository
perforCofaccountingRepository
;
private
readonly
PerforPerAttendanceIssueRepository
_issueRepository
;
private
readonly
UserService
userService
;
private
readonly
UserService
userService
;
private
readonly
DapperService
dapperService
;
private
readonly
DapperService
dapperService
;
private
readonly
Application
application
;
private
readonly
Application
application
;
...
@@ -53,11 +54,11 @@ public class PersonService : IAutoInjection
...
@@ -53,11 +54,11 @@ public class PersonService : IAutoInjection
PerforAgsecondallotRepository
agsecondallotRepository
,
PerforAgsecondallotRepository
agsecondallotRepository
,
PerforHospitalRepository
perforHospitalRepository
,
PerforHospitalRepository
perforHospitalRepository
,
PerforCofaccountingRepository
perforCofaccountingRepository
,
PerforCofaccountingRepository
perforCofaccountingRepository
,
PerforPerAttendanceIssueRepository
issueRepository
,
UserService
userService
,
UserService
userService
,
DapperService
dapperService
,
DapperService
dapperService
,
IOptions
<
Application
>
application
,
IOptions
<
Application
>
application
,
IWebHostEnvironment
evn
IWebHostEnvironment
evn
)
)
{
{
_mapper
=
mapper
;
_mapper
=
mapper
;
this
.
logger
=
logger
;
this
.
logger
=
logger
;
...
@@ -71,6 +72,7 @@ IWebHostEnvironment evn
...
@@ -71,6 +72,7 @@ IWebHostEnvironment evn
this
.
agsecondallotRepository
=
agsecondallotRepository
;
this
.
agsecondallotRepository
=
agsecondallotRepository
;
this
.
perforHospitalRepository
=
perforHospitalRepository
;
this
.
perforHospitalRepository
=
perforHospitalRepository
;
this
.
perforCofaccountingRepository
=
perforCofaccountingRepository
;
this
.
perforCofaccountingRepository
=
perforCofaccountingRepository
;
_issueRepository
=
issueRepository
;
this
.
userService
=
userService
;
this
.
userService
=
userService
;
this
.
dapperService
=
dapperService
;
this
.
dapperService
=
dapperService
;
this
.
application
=
application
.
Value
;
this
.
application
=
application
.
Value
;
...
@@ -150,6 +152,25 @@ public void CreateAllotPersons(int hospitalId, int allotId, int prevAllotId = -1
...
@@ -150,6 +152,25 @@ public void CreateAllotPersons(int hospitalId, int allotId, int prevAllotId = -1
return
entity
;
return
entity
;
}).
ToList
();
}).
ToList
();
// lcr 2023-04-14 按调动记录最后一次所在科室更新人员字典
var
issues
=
_issueRepository
.
GetEntities
(
w
=>
w
.
AllotId
==
prevAllotId
);
if
(
issues
?.
Any
()
==
true
)
{
foreach
(
var
item
in
data
)
{
var
issuePersonnel
=
issues
.
Where
(
w
=>
w
.
PersonnelNumber
==
item
.
PersonnelNumber
).
OrderByDescending
(
w
=>
w
.
BeginDate
).
FirstOrDefault
();
if
(
issuePersonnel
!=
null
)
{
if
(
issuePersonnel
.
UnitType
!=
item
.
UnitType
||
issuePersonnel
.
AccountingUnit
!=
item
.
AccountingUnit
||
issuePersonnel
.
PermanentStaff
!=
item
.
PermanentStaff
)
{
item
.
UnitType
=
issuePersonnel
.
UnitType
;
item
.
AccountingUnit
=
issuePersonnel
.
AccountingUnit
;
item
.
PermanentStaff
=
issuePersonnel
.
PermanentStaff
;
}
}
}
}
SaveAllotPersons
(
data
);
SaveAllotPersons
(
data
);
}
}
...
...
performance/Performance.Services/RedistributionService.cs
View file @
70d4de26
...
@@ -205,6 +205,24 @@ public List<SecondColumnDictionary> GetTableHeaderDictionary(ComputeMode compute
...
@@ -205,6 +205,24 @@ public List<SecondColumnDictionary> GetTableHeaderDictionary(ComputeMode compute
var
maps
=
new
List
<
SecondColumnDictionary
>()
var
maps
=
new
List
<
SecondColumnDictionary
>()
{
{
// 顶部
new
SecondColumnDictionary
(
getAlias
(
nameof
(
ag_headsource
.
TotalPerformance
),
"可分配绩效"
),
nameof
(
ag_bodysource
.
WorkNumber
),
true
,
10
,
"Top"
,
isNumber
:
true
),
new
SecondColumnDictionary
(
getAlias
(
nameof
(
ag_headsource
.
HosOtherPerformance
),
"医院其他绩效"
),
nameof
(
ag_bodysource
.
WorkNumber
),
true
,
20
,
"Top"
,
isNumber
:
true
),
new
SecondColumnDictionary
(
getAlias
(
nameof
(
ag_headsource
.
NightShiftWorkPerforTotal
),
"夜班绩效综合"
),
nameof
(
ag_bodysource
.
WorkNumber
),
true
,
30
,
"Top"
,
isNumber
:
true
),
new
SecondColumnDictionary
(
getAlias
(
nameof
(
ag_headsource
.
TotalPreAccountingReward
),
"核算平均前单项"
),
nameof
(
ag_bodysource
.
WorkNumber
),
true
,
40
,
"Top"
,
isNumber
:
true
),
new
SecondColumnDictionary
(
getAlias
(
nameof
(
ag_headsource
.
TotalDistPerformance
),
"科室总绩效"
),
nameof
(
ag_bodysource
.
WorkNumber
),
true
,
50
,
"Top"
,
isNumber
:
true
),
new
SecondColumnDictionary
(
getAlias
(
nameof
(
ag_headsource
.
DirectorBasisPerformance
),
"主任基础绩效"
),
nameof
(
ag_bodysource
.
WorkNumber
),
true
,
60
,
"Top"
,
isNumber
:
true
),
new
SecondColumnDictionary
(
getAlias
(
nameof
(
ag_headsource
.
TotalDeptReward
),
"科室单项奖励"
),
nameof
(
ag_bodysource
.
WorkNumber
),
true
,
70
,
"Top"
,
isNumber
:
true
),
new
SecondColumnDictionary
(
getAlias
(
nameof
(
ag_headsource
.
DaysFullAttendance
),
"满勤天数"
),
nameof
(
ag_bodysource
.
WorkNumber
),
true
,
80
,
"Top"
,
isNumber
:
true
),
new
SecondColumnDictionary
(
getAlias
(
nameof
(
ag_headsource
.
DepartmentsPerCapita
),
"科室人均"
),
nameof
(
ag_bodysource
.
WorkNumber
),
true
,
90
,
"Top"
,
isNumber
:
true
),
new
SecondColumnDictionary
(
getAlias
(
nameof
(
ag_headsource
.
TheNumberOfAccountingDepartment
),
"科室核算人数"
),
nameof
(
ag_bodysource
.
WorkNumber
),
true
,
100
,
"Top"
,
isNumber
:
true
),
new
SecondColumnDictionary
(
getAlias
(
nameof
(
ag_headsource
.
TheTotalAllocationOfPerformanceResults
),
"业绩分配绩效总额"
),
nameof
(
ag_bodysource
.
WorkNumber
),
true
,
110
,
"Top"
,
isNumber
:
true
),
new
SecondColumnDictionary
(
getAlias
(
nameof
(
ag_headsource
.
SeniorityTitlesAccountedPerformance
),
"年资职称绩效占比"
),
nameof
(
ag_bodysource
.
WorkNumber
),
true
,
120
,
"Top"
,
isNumber
:
true
),
new
SecondColumnDictionary
(
getAlias
(
nameof
(
ag_headsource
.
SeniorityTitlesPerformance
),
"年资职称绩效"
),
nameof
(
ag_bodysource
.
WorkNumber
),
true
,
130
,
"Top"
,
isNumber
:
true
),
new
SecondColumnDictionary
(
getAlias
(
nameof
(
ag_headsource
.
Workload_Ratio_Default
),
"工作量绩效占比"
),
nameof
(
ag_bodysource
.
WorkNumber
),
true
,
140
,
"Top"
,
isNumber
:
true
),
new
SecondColumnDictionary
(
getAlias
(
nameof
(
ag_headsource
.
Workload_Amount_Default
),
"工作量绩效金额"
),
nameof
(
ag_bodysource
.
WorkNumber
),
true
,
150
,
"Top"
,
isNumber
:
true
),
// 表格
new
SecondColumnDictionary
(
getAlias
(
nameof
(
ag_bodysource
.
WorkNumber
),
"人员工号"
),
nameof
(
ag_bodysource
.
WorkNumber
),
true
,
100
,
isNumber
:
false
),
new
SecondColumnDictionary
(
getAlias
(
nameof
(
ag_bodysource
.
WorkNumber
),
"人员工号"
),
nameof
(
ag_bodysource
.
WorkNumber
),
true
,
100
,
isNumber
:
false
),
new
SecondColumnDictionary
(
getAlias
(
nameof
(
ag_bodysource
.
Name
),
"姓名"
),
nameof
(
ag_bodysource
.
Name
),
true
,
100
,
isNumber
:
false
),
new
SecondColumnDictionary
(
getAlias
(
nameof
(
ag_bodysource
.
Name
),
"姓名"
),
nameof
(
ag_bodysource
.
Name
),
true
,
100
,
isNumber
:
false
),
new
SecondColumnDictionary
(
getAlias
(
nameof
(
ag_bodysource
.
Department
),
"分配科室"
),
nameof
(
ag_bodysource
.
Department
),
true
,
100
,
isNumber
:
false
),
new
SecondColumnDictionary
(
getAlias
(
nameof
(
ag_bodysource
.
Department
),
"分配科室"
),
nameof
(
ag_bodysource
.
Department
),
true
,
100
,
isNumber
:
false
),
...
@@ -254,7 +272,8 @@ public List<SecondColumnDictionary> GetTableHeaderDictionary(ComputeMode compute
...
@@ -254,7 +272,8 @@ public List<SecondColumnDictionary> GetTableHeaderDictionary(ComputeMode compute
foreach
(
var
item
in
alias
)
foreach
(
var
item
in
alias
)
{
{
if
(!
maps
.
Any
(
w
=>
w
.
Key
.
Equals
(
item
.
Name
,
StringComparison
.
OrdinalIgnoreCase
))
if
(!
maps
.
Any
(
w
=>
w
.
Key
.
Equals
(
item
.
Name
,
StringComparison
.
OrdinalIgnoreCase
))
&&
!
notCalculate
.
Contains
(
item
.
Name
))
&&
!
notCalculate
.
Contains
(
item
.
Name
)
&&
!
item
.
OriginalName
.
Equals
(
"Top"
,
StringComparison
.
OrdinalIgnoreCase
))
{
{
maps
.
Add
(
new
SecondColumnDictionary
(
item
.
Alias
,
item
.
Name
,
false
,
item
.
Sort
,
color
:
"title_color"
,
isNumber
:
false
,
expand
:
true
));
maps
.
Add
(
new
SecondColumnDictionary
(
item
.
Alias
,
item
.
Name
,
false
,
item
.
Sort
,
color
:
"title_color"
,
isNumber
:
false
,
expand
:
true
));
}
}
...
@@ -307,8 +326,8 @@ public List<SecondColumnDictionary> GetTableHeaderDictionary(ComputeMode compute
...
@@ -307,8 +326,8 @@ public List<SecondColumnDictionary> GetTableHeaderDictionary(ComputeMode compute
foreach
(
var
item
in
workloadTypes
.
OrderBy
(
t
=>
t
.
Id
))
foreach
(
var
item
in
workloadTypes
.
OrderBy
(
t
=>
t
.
Id
))
{
{
maps
.
Add
(
new
SecondColumnDictionary
(
$"
{
item
.
TypeName
}
占比"
,
$"Workload_Ratio_
{
item
.
Id
}
"
,
true
,
1
,
"Top"
,
isNumber
:
true
));
maps
.
Add
(
new
SecondColumnDictionary
(
$"
{
item
.
TypeName
}
占比"
,
$"Workload_Ratio_
{
item
.
Id
}
"
,
true
,
400
,
"Top"
,
isNumber
:
true
));
maps
.
Add
(
new
SecondColumnDictionary
(
$"
{
item
.
TypeName
}
金额"
,
$"Workload_Amount_
{
item
.
Id
}
"
,
true
,
1
,
"Top"
,
isNumber
:
true
));
maps
.
Add
(
new
SecondColumnDictionary
(
$"
{
item
.
TypeName
}
金额"
,
$"Workload_Amount_
{
item
.
Id
}
"
,
true
,
400
,
"Top"
,
isNumber
:
true
));
}
}
}
}
}
}
...
@@ -324,7 +343,7 @@ public List<SecondColumnDictionary> GetTableHeaderDictionary(ComputeMode compute
...
@@ -324,7 +343,7 @@ public List<SecondColumnDictionary> GetTableHeaderDictionary(ComputeMode compute
{
{
maps
.
Add
(
new
SecondColumnDictionary
(
item
.
Value
,
item
.
Title
,
false
,
++
preAccountingRewardSort
,
type
:
"PreAccountingReward"
,
color
:
"preaccountingreward_color"
));
maps
.
Add
(
new
SecondColumnDictionary
(
item
.
Value
,
item
.
Title
,
false
,
++
preAccountingRewardSort
,
type
:
"PreAccountingReward"
,
color
:
"preaccountingreward_color"
));
}
}
return
maps
.
OrderBy
(
w
=>
w
.
Sort
).
ToList
();
return
maps
.
OrderBy
(
w
=>
w
.
S
ite
).
ThenBy
(
w
=>
w
.
S
ort
).
ToList
();
}
}
/// <summary>
/// <summary>
...
...
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