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
985ee9f6
Commit
985ee9f6
authored
Mar 30, 2022
by
ruyun.zhang@suvalue.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
人员标签备用
parent
2458960b
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
244 additions
and
244 deletions
+244
-244
performance/Performance.Api/wwwroot/Performance.DtoModels.xml
+0
-7
performance/Performance.DtoModels/HandsonTable.cs
+0
-6
performance/Performance.DtoModels/Response/PerEmployeeResponse.cs
+0
-5
performance/Performance.EntityModels/Entity/per_employee.cs
+10
-0
performance/Performance.Services/ComputeConfig.cs
+189
-0
performance/Performance.Services/ComputeService.cs
+11
-141
performance/Performance.Services/PersonService.cs
+2
-28
performance/Performance.Services/ReportGlobalService.cs
+32
-57
No files found.
performance/Performance.Api/wwwroot/Performance.DtoModels.xml
View file @
985ee9f6
...
@@ -205,13 +205,6 @@
...
@@ -205,13 +205,6 @@
<member
name=
"F:Performance.DtoModels.DataFormat.日期"
>
<member
name=
"F:Performance.DtoModels.DataFormat.日期"
>
<summary>
日期
</summary>
<summary>
日期
</summary>
</member>
</member>
<member
name=
"M:Performance.DtoModels.HandsonTable.SetRowData(System.Collections.Generic.IEnumerable{Performance.DtoModels.HandsonRowData},System.Boolean)"
>
<summary>
</summary>
<param
name=
"datas"
></param>
<param
name=
"isTypein"
>
是否是用户录入的 是:true 不是:false
</param>
</member>
<member
name=
"P:Performance.DtoModels.HistoryData.Year"
>
<member
name=
"P:Performance.DtoModels.HistoryData.Year"
>
<summary>
<summary>
年
年
...
...
performance/Performance.DtoModels/HandsonTable.cs
View file @
985ee9f6
...
@@ -37,12 +37,6 @@ public HandsonTable(int sheetType, string[] cols, List<collect_permission> permi
...
@@ -37,12 +37,6 @@ public HandsonTable(int sheetType, string[] cols, List<collect_permission> permi
InitColumns
(
permissions
);
InitColumns
(
permissions
);
}
}
/// <summary>
///
/// </summary>
/// <param name="datas"></param>
/// <param name="isTypein">是否是用户录入的 是:true 不是:false</param>
public
void
SetRowData
(
IEnumerable
<
HandsonRowData
>
datas
,
bool
isTypein
)
public
void
SetRowData
(
IEnumerable
<
HandsonRowData
>
datas
,
bool
isTypein
)
{
{
foreach
(
var
dt
in
datas
)
foreach
(
var
dt
in
datas
)
...
...
performance/Performance.DtoModels/Response/PerEmployeeResponse.cs
View file @
985ee9f6
...
@@ -18,9 +18,4 @@ public class PerEmployeeResponse : per_employee
...
@@ -18,9 +18,4 @@ public class PerEmployeeResponse : per_employee
/// </summary>
/// </summary>
public
new
string
BirthDate
{
get
;
set
;
}
public
new
string
BirthDate
{
get
;
set
;
}
}
}
public
class
PersonePassword
:
per_employee
{
public
string
Password
{
get
;
set
;
}
}
}
}
performance/Performance.EntityModels/Entity/per_employee.cs
View file @
985ee9f6
...
@@ -150,5 +150,15 @@ public class per_employee
...
@@ -150,5 +150,15 @@ public class per_employee
///
///
/// </summary>
/// </summary>
public
Nullable
<
int
>
CreateUser
{
get
;
set
;
}
public
Nullable
<
int
>
CreateUser
{
get
;
set
;
}
public
string
Reserve01
{
get
;
set
;
}
public
string
Reserve02
{
get
;
set
;
}
public
string
Reserve03
{
get
;
set
;
}
public
string
Reserve04
{
get
;
set
;
}
public
string
Reserve05
{
get
;
set
;
}
public
string
Reserve06
{
get
;
set
;
}
public
string
Reserve07
{
get
;
set
;
}
public
string
Reserve08
{
get
;
set
;
}
public
string
Reserve09
{
get
;
set
;
}
public
string
Reserve10
{
get
;
set
;
}
}
}
}
}
performance/Performance.Services/ComputeConfig.cs
0 → 100644
View file @
985ee9f6
using
Performance.DtoModels
;
using
Performance.EntityModels
;
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
namespace
Performance.Services
{
public
class
ComputeConfig
{
public
static
List
<
cof_alias
>
PerformanceTotal
(
string
route
,
string
[]
heads
)
{
if
(
heads
==
null
||
heads
.
Length
==
0
||
(
heads
.
Length
>
0
&&
heads
[
0
]
==
""
))
{
if
(
route
==
"/report/wholehospital_grant_summary"
)
return
AllComputeView
.
ToList
();
if
(
route
==
"/report/wholehospital_accounting_grant_summary"
)
return
AllComputeDepartmentView
.
ToList
();
if
(
route
==
"/report/wholehospital_finance_grant_summary"
)
return
AllComputePersonView
.
ToList
();
}
if
(
route
==
"/report/wholehospital_grant_summary"
)
return
AllComputeView
.
Where
(
t
=>
heads
.
Contains
(
t
.
Name
.
ToLower
())).
ToList
();
if
(
route
==
"/report/wholehospital_accounting_grant_summary"
)
return
AllComputeDepartmentView
.
Where
(
t
=>
heads
.
Contains
(
t
.
Name
.
ToLower
())).
ToList
();
if
(
route
==
"/report/wholehospital_finance_grant_summary"
)
return
AllComputePersonView
.
Where
(
t
=>
heads
.
Contains
(
t
.
Name
.
ToLower
())).
ToList
();
return
null
;
}
public
static
List
<
cof_alias
>
AllComputeView
{
get
;
}
=
new
List
<
cof_alias
>
{
new
cof_alias
{
Alias
=
"来源"
,
Name
=
nameof
(
view_allot_sign_emp
.
Source
),
States
=
1
,
SumStatus
=
0
,
Sort
=
1
},
new
cof_alias
{
Alias
=
"核算组别"
,
Name
=
nameof
(
view_allot_sign_emp
.
UnitType
),
States
=
1
,
SumStatus
=
0
,
Sort
=
2
},
new
cof_alias
{
Alias
=
"核算单元编码"
,
Name
=
nameof
(
view_allot_sign_emp
.
Code
),
States
=
1
,
SumStatus
=
0
,
Sort
=
2
},
new
cof_alias
{
Alias
=
"核算单元"
,
Name
=
nameof
(
view_allot_sign_emp
.
AccountingUnit
),
States
=
1
,
SumStatus
=
0
,
Sort
=
3
},
new
cof_alias
{
Alias
=
"员工号"
,
Name
=
nameof
(
view_allot_sign_emp
.
JobNumber
),
States
=
1
,
SumStatus
=
0
,
Sort
=
4
},
new
cof_alias
{
Alias
=
"人员姓名"
,
Name
=
nameof
(
view_allot_sign_emp
.
EmployeeName
),
States
=
1
,
SumStatus
=
0
,
Sort
=
5
},
new
cof_alias
{
Alias
=
"职称"
,
Name
=
nameof
(
view_allot_sign_emp
.
TitlePosition
),
States
=
1
,
SumStatus
=
0
,
Sort
=
6
},
new
cof_alias
{
Alias
=
"批次"
,
Name
=
nameof
(
view_allot_sign_emp
.
Batch
),
States
=
1
,
SumStatus
=
0
,
Sort
=
7
},
new
cof_alias
{
Alias
=
"银行卡号"
,
Name
=
nameof
(
view_allot_sign_emp
.
BankCard
),
States
=
1
,
SumStatus
=
0
,
Sort
=
8
},
new
cof_alias
{
Alias
=
"正式/临聘"
,
Name
=
nameof
(
view_allot_sign_emp
.
JobCategory
),
States
=
1
,
SumStatus
=
0
,
Sort
=
9
},
new
cof_alias
{
Alias
=
"职务"
,
Name
=
nameof
(
view_allot_sign_emp
.
Duty
),
States
=
1
,
SumStatus
=
0
,
Sort
=
10
},
new
cof_alias
{
Alias
=
"调节后业绩绩效"
,
Name
=
nameof
(
view_allot_sign_emp
.
PerforSumFee
),
States
=
1
,
SumStatus
=
1
,
Sort
=
11
},
new
cof_alias
{
Alias
=
"调节后实发管理绩效"
,
Name
=
nameof
(
view_allot_sign_emp
.
PerforManagementFee
),
States
=
1
,
SumStatus
=
1
,
Sort
=
12
},
new
cof_alias
{
Alias
=
"调节后其他绩效"
,
Name
=
nameof
(
view_allot_sign_emp
.
AdjustLaterOtherFee
),
States
=
1
,
SumStatus
=
1
,
Sort
=
13
},
new
cof_alias
{
Alias
=
"夜班费"
,
Name
=
nameof
(
view_allot_sign_emp
.
NightWorkPerfor
),
States
=
1
,
SumStatus
=
1
,
Sort
=
14
},
new
cof_alias
{
Alias
=
"医院其他绩效"
,
Name
=
nameof
(
view_allot_sign_emp
.
OtherPerfor
),
States
=
1
,
SumStatus
=
1
,
Sort
=
15
},
new
cof_alias
{
Alias
=
"不公示其他绩效"
,
Name
=
nameof
(
view_allot_sign_emp
.
HideOtherPerfor
),
States
=
1
,
SumStatus
=
1
,
Sort
=
16
},
new
cof_alias
{
Alias
=
"应发小计"
,
Name
=
nameof
(
view_allot_sign_emp
.
ShouldGiveFee
),
States
=
1
,
SumStatus
=
1
,
Sort
=
17
},
new
cof_alias
{
Alias
=
"预留绩效"
,
Name
=
nameof
(
view_allot_sign_emp
.
ReservedRatioFee
),
States
=
1
,
SumStatus
=
1
,
Sort
=
18
},
new
cof_alias
{
Alias
=
"实发绩效"
,
Name
=
nameof
(
view_allot_sign_emp
.
RealGiveFee
),
States
=
1
,
SumStatus
=
1
,
Sort
=
19
},
};
private
static
List
<
cof_alias
>
_allComputeViewByDate
=
new
List
<
cof_alias
>();
public
static
List
<
cof_alias
>
AllComputeViewByDate
{
get
{
if
(
_allComputeViewByDate
==
null
||
_allComputeViewByDate
.
Count
==
0
)
{
_allComputeViewByDate
.
Add
(
new
cof_alias
{
Alias
=
"年份"
,
Name
=
nameof
(
view_allot_sign_emp
.
Year
),
States
=
1
,
SumStatus
=
0
});
_allComputeViewByDate
.
Add
(
new
cof_alias
{
Alias
=
"月份"
,
Name
=
nameof
(
view_allot_sign_emp
.
Month
),
States
=
1
,
SumStatus
=
0
});
_allComputeViewByDate
.
AddRange
(
AllComputeView
);
}
return
_allComputeViewByDate
;
}
}
public
static
List
<
cof_alias
>
AllComputePersonView
{
get
;
}
=
new
List
<
cof_alias
>
{
new
cof_alias
{
Alias
=
"核算组别"
,
Name
=
nameof
(
view_allot_sign_emp
.
UnitType
),
States
=
1
,
SumStatus
=
0
,
Sort
=
1
},
new
cof_alias
{
Alias
=
"核算单元编码"
,
Name
=
nameof
(
view_allot_sign_emp
.
Code
),
States
=
1
,
SumStatus
=
0
,
Sort
=
2
},
new
cof_alias
{
Alias
=
"核算单元"
,
Name
=
nameof
(
view_allot_sign_emp
.
AccountingUnit
),
States
=
1
,
SumStatus
=
0
,
Sort
=
2
},
new
cof_alias
{
Alias
=
"员工号"
,
Name
=
nameof
(
view_allot_sign_emp
.
JobNumber
),
States
=
1
,
SumStatus
=
0
,
Sort
=
3
},
new
cof_alias
{
Alias
=
"人员姓名"
,
Name
=
nameof
(
view_allot_sign_emp
.
EmployeeName
),
States
=
1
,
SumStatus
=
0
,
Sort
=
4
},
new
cof_alias
{
Alias
=
"调节后业绩绩效"
,
Name
=
nameof
(
view_allot_sign_emp
.
PerforSumFee
),
States
=
1
,
SumStatus
=
1
,
Sort
=
5
},
new
cof_alias
{
Alias
=
"调节后实发管理绩效"
,
Name
=
nameof
(
view_allot_sign_emp
.
PerforManagementFee
),
States
=
1
,
SumStatus
=
1
,
Sort
=
6
},
new
cof_alias
{
Alias
=
"调节后其他绩效"
,
Name
=
nameof
(
view_allot_sign_emp
.
AdjustLaterOtherFee
),
States
=
1
,
SumStatus
=
1
,
Sort
=
7
},
new
cof_alias
{
Alias
=
"夜班费"
,
Name
=
nameof
(
view_allot_sign_emp
.
NightWorkPerfor
),
States
=
1
,
SumStatus
=
1
,
Sort
=
8
},
new
cof_alias
{
Alias
=
"医院其他绩效"
,
Name
=
nameof
(
view_allot_sign_emp
.
OtherPerfor
),
States
=
1
,
SumStatus
=
1
,
Sort
=
9
},
new
cof_alias
{
Alias
=
"不公示其他绩效"
,
Name
=
nameof
(
view_allot_sign_emp
.
HideOtherPerfor
),
States
=
1
,
SumStatus
=
1
,
Sort
=
10
},
new
cof_alias
{
Alias
=
"应发小计"
,
Name
=
nameof
(
view_allot_sign_emp
.
ShouldGiveFee
),
States
=
1
,
SumStatus
=
1
,
Sort
=
11
},
new
cof_alias
{
Alias
=
"预留绩效"
,
Name
=
nameof
(
view_allot_sign_emp
.
ReservedRatioFee
),
States
=
1
,
SumStatus
=
1
,
Sort
=
12
},
new
cof_alias
{
Alias
=
"实发绩效"
,
Name
=
nameof
(
view_allot_sign_emp
.
RealGiveFee
),
States
=
1
,
SumStatus
=
1
,
Sort
=
13
},
};
private
static
List
<
cof_alias
>
_allComputePersonViewByDate
=
new
List
<
cof_alias
>();
public
static
List
<
cof_alias
>
AllComputePersonViewByDate
{
get
{
if
(
_allComputePersonViewByDate
==
null
||
_allComputePersonViewByDate
.
Count
==
0
)
{
_allComputePersonViewByDate
.
Add
(
new
cof_alias
{
Alias
=
"年份"
,
Name
=
nameof
(
view_allot_sign_emp
.
Year
),
States
=
1
,
SumStatus
=
0
});
_allComputePersonViewByDate
.
Add
(
new
cof_alias
{
Alias
=
"月份"
,
Name
=
nameof
(
view_allot_sign_emp
.
Month
),
States
=
1
,
SumStatus
=
0
});
_allComputePersonViewByDate
.
AddRange
(
AllComputePersonView
);
}
return
_allComputePersonViewByDate
;
}
}
public
static
List
<
cof_alias
>
AllComputeDepartmentView
{
get
;
}
=
new
List
<
cof_alias
>
{
new
cof_alias
{
Alias
=
"核算组别"
,
Name
=
nameof
(
view_allot_sign_dept
.
UnitType
),
States
=
1
,
SumStatus
=
0
,
Sort
=
1
},
new
cof_alias
{
Alias
=
"核算单元编码"
,
Name
=
nameof
(
view_allot_sign_emp
.
Code
),
States
=
1
,
SumStatus
=
0
,
Sort
=
2
},
new
cof_alias
{
Alias
=
"核算单元"
,
Name
=
nameof
(
view_allot_sign_dept
.
AccountingUnit
),
States
=
1
,
SumStatus
=
0
,
Sort
=
2
},
new
cof_alias
{
Alias
=
"业绩绩效"
,
Name
=
nameof
(
view_allot_sign_dept
.
PerforFee
),
States
=
1
,
SumStatus
=
1
,
Sort
=
3
},
new
cof_alias
{
Alias
=
"工作量绩效"
,
Name
=
nameof
(
view_allot_sign_dept
.
WorkloadFee
),
States
=
1
,
SumStatus
=
1
,
Sort
=
4
},
new
cof_alias
{
Alias
=
"考核前其他绩效"
,
Name
=
nameof
(
view_allot_sign_dept
.
AssessBeforeOtherFee
),
States
=
1
,
SumStatus
=
1
,
Sort
=
5
},
new
cof_alias
{
Alias
=
"考核前绩效合计"
,
Name
=
nameof
(
view_allot_sign_dept
.
PerforTotal
),
States
=
1
,
SumStatus
=
1
,
Sort
=
6
},
new
cof_alias
{
Alias
=
"科室考核得分"
,
Name
=
nameof
(
view_allot_sign_dept
.
ScoringAverage
),
States
=
1
,
SumStatus
=
1
,
Sort
=
7
},
new
cof_alias
{
Alias
=
"药占比奖罚"
,
Name
=
nameof
(
view_allot_sign_dept
.
MedicineExtra
),
States
=
1
,
SumStatus
=
1
,
Sort
=
8
},
new
cof_alias
{
Alias
=
"材料占比奖罚"
,
Name
=
nameof
(
view_allot_sign_dept
.
MaterialsExtra
),
States
=
1
,
SumStatus
=
1
,
Sort
=
9
},
new
cof_alias
{
Alias
=
"医院奖罚"
,
Name
=
nameof
(
view_allot_sign_dept
.
Extra
),
States
=
1
,
SumStatus
=
1
,
Sort
=
10
},
new
cof_alias
{
Alias
=
"考核后其他绩效"
,
Name
=
nameof
(
view_allot_sign_dept
.
AssessLaterOtherFee
),
States
=
1
,
SumStatus
=
1
,
Sort
=
11
},
new
cof_alias
{
Alias
=
"考核后绩效"
,
Name
=
nameof
(
view_allot_sign_dept
.
AssessLaterPerforTotal
),
States
=
1
,
SumStatus
=
1
,
Sort
=
12
},
new
cof_alias
{
Alias
=
"调节系数"
,
Name
=
nameof
(
view_allot_sign_dept
.
AdjustFactor
),
States
=
1
,
SumStatus
=
1
,
Sort
=
13
},
new
cof_alias
{
Alias
=
"调节后其他绩效"
,
Name
=
nameof
(
view_allot_sign_dept
.
AdjustLaterOtherFee
),
States
=
1
,
SumStatus
=
1
,
Sort
=
14
},
new
cof_alias
{
Alias
=
"科主任实发管理绩效"
,
Name
=
nameof
(
view_allot_sign_dept
.
AssessLaterManagementFee
),
States
=
1
,
SumStatus
=
1
,
Sort
=
15
},
new
cof_alias
{
Alias
=
"医院其他绩效"
,
Name
=
nameof
(
view_allot_sign_dept
.
AprPerforAmount
),
States
=
1
,
SumStatus
=
1
,
Sort
=
16
},
new
cof_alias
{
Alias
=
"不公示其他绩效"
,
Name
=
nameof
(
view_allot_sign_dept
.
HideAprOtherPerforAmount
),
States
=
1
,
SumStatus
=
1
,
Sort
=
17
},
new
cof_alias
{
Alias
=
"实发绩效"
,
Name
=
nameof
(
view_allot_sign_dept
.
RealGiveFee
),
States
=
1
,
SumStatus
=
1
,
Sort
=
18
},
};
private
static
List
<
cof_alias
>
_allComputeDepartmentViewByDate
=
new
List
<
cof_alias
>();
public
static
List
<
cof_alias
>
AllComputeDepartmentViewByDate
{
get
{
if
(
_allComputeDepartmentViewByDate
==
null
||
_allComputeDepartmentViewByDate
.
Count
==
0
)
{
_allComputeDepartmentViewByDate
.
Add
(
new
cof_alias
{
Alias
=
"年份"
,
Name
=
nameof
(
view_allot_sign_emp
.
Year
),
States
=
1
,
SumStatus
=
0
});
_allComputeDepartmentViewByDate
.
Add
(
new
cof_alias
{
Alias
=
"月份"
,
Name
=
nameof
(
view_allot_sign_emp
.
Month
),
States
=
1
,
SumStatus
=
0
});
_allComputeDepartmentViewByDate
.
AddRange
(
AllComputeDepartmentView
);
}
return
_allComputeDepartmentViewByDate
;
}
}
public
static
List
<
cof_alias
>
GetAllPersonnelTags
(
bool
ownerQuery
)
{
var
alias
=
new
List
<
cof_alias
>
{
new
cof_alias
{
Alias
=
"员工工号"
,
Name
=
nameof
(
per_employee
.
PersonnelNumber
),
States
=
1
,
SumStatus
=
0
,
Sort
=
2
},
new
cof_alias
{
Alias
=
"姓名"
,
Name
=
nameof
(
per_employee
.
DoctorName
),
States
=
1
,
SumStatus
=
0
,
Sort
=
4
},
new
cof_alias
{
Alias
=
"核算单元"
,
Name
=
nameof
(
per_employee
.
AccountingUnit
),
States
=
1
,
SumStatus
=
0
,
Sort
=
6
},
new
cof_alias
{
Alias
=
"正式/临聘"
,
Name
=
nameof
(
per_employee
.
JobCategory
),
States
=
1
,
SumStatus
=
0
,
Sort
=
8
},
new
cof_alias
{
Alias
=
"职务"
,
Name
=
nameof
(
per_employee
.
Duty
),
States
=
1
,
SumStatus
=
0
,
Sort
=
10
},
new
cof_alias
{
Alias
=
"职称"
,
Name
=
nameof
(
per_employee
.
JobTitle
),
States
=
1
,
SumStatus
=
0
,
Sort
=
12
},
new
cof_alias
{
Alias
=
"出勤天数"
,
Name
=
nameof
(
per_employee
.
AttendanceDay
),
States
=
1
,
SumStatus
=
0
,
Sort
=
14
},
new
cof_alias
{
Alias
=
"预留比例"
,
Name
=
nameof
(
per_employee
.
ReservedRatio
),
States
=
1
,
SumStatus
=
0
,
Sort
=
16
},
new
cof_alias
{
Alias
=
"银行卡号"
,
Name
=
nameof
(
per_employee
.
BankCard
),
States
=
1
,
SumStatus
=
0
,
Sort
=
18
},
new
cof_alias
{
Alias
=
"银行卡号"
,
Name
=
nameof
(
per_employee
.
BankCard
),
States
=
1
,
SumStatus
=
0
,
Sort
=
99
},
new
cof_alias
{
Alias
=
"备用01"
,
Name
=
nameof
(
per_employee
.
Reserve01
),
States
=
0
,
SumStatus
=
0
,
Sort
=
20
},
new
cof_alias
{
Alias
=
"备用02"
,
Name
=
nameof
(
per_employee
.
Reserve02
),
States
=
0
,
SumStatus
=
0
,
Sort
=
20
},
new
cof_alias
{
Alias
=
"备用03"
,
Name
=
nameof
(
per_employee
.
Reserve03
),
States
=
0
,
SumStatus
=
0
,
Sort
=
20
},
new
cof_alias
{
Alias
=
"备用04"
,
Name
=
nameof
(
per_employee
.
Reserve04
),
States
=
0
,
SumStatus
=
0
,
Sort
=
20
},
new
cof_alias
{
Alias
=
"备用05"
,
Name
=
nameof
(
per_employee
.
Reserve05
),
States
=
0
,
SumStatus
=
0
,
Sort
=
20
},
new
cof_alias
{
Alias
=
"备用06"
,
Name
=
nameof
(
per_employee
.
Reserve06
),
States
=
0
,
SumStatus
=
0
,
Sort
=
20
},
new
cof_alias
{
Alias
=
"备用07"
,
Name
=
nameof
(
per_employee
.
Reserve07
),
States
=
0
,
SumStatus
=
0
,
Sort
=
20
},
new
cof_alias
{
Alias
=
"备用08"
,
Name
=
nameof
(
per_employee
.
Reserve08
),
States
=
0
,
SumStatus
=
0
,
Sort
=
20
},
new
cof_alias
{
Alias
=
"备用09"
,
Name
=
nameof
(
per_employee
.
Reserve09
),
States
=
0
,
SumStatus
=
0
,
Sort
=
20
},
new
cof_alias
{
Alias
=
"备用10"
,
Name
=
nameof
(
per_employee
.
Reserve10
),
States
=
0
,
SumStatus
=
0
,
Sort
=
20
},
new
cof_alias
{
Alias
=
"绩效发放情况"
,
Name
=
nameof
(
report_performance_person_tags
.
Tag1
),
States
=
1
,
SumStatus
=
0
,
Sort
=
100
},
new
cof_alias
{
Alias
=
"当月绩效权重"
,
Name
=
nameof
(
report_performance_person_tags
.
Tag2
),
States
=
1
,
SumStatus
=
0
,
Sort
=
101
},
new
cof_alias
{
Alias
=
"重点群体对比1"
,
Name
=
nameof
(
report_performance_person_tags
.
Tag3
),
States
=
1
,
SumStatus
=
0
,
Sort
=
102
},
new
cof_alias
{
Alias
=
"重点群体对比2"
,
Name
=
nameof
(
report_performance_person_tags
.
Tag4
),
States
=
1
,
SumStatus
=
0
,
Sort
=
103
},
new
cof_alias
{
Alias
=
"重点群体对比5"
,
Name
=
nameof
(
report_performance_person_tags
.
Tag5
),
States
=
1
,
SumStatus
=
0
,
Sort
=
104
},
};
if
(
ownerQuery
)
alias
.
Add
(
new
cof_alias
{
Alias
=
"密码"
,
Name
=
"Password"
,
States
=
1
,
SumStatus
=
0
,
Sort
=
7
});
return
alias
.
Where
(
w
=>
w
.
States
==
1
).
OrderBy
(
w
=>
w
.
Sort
).
ToList
();
}
}
}
performance/Performance.Services/ComputeService.cs
View file @
985ee9f6
...
@@ -2094,6 +2094,11 @@ public bool UpdateHeadersStatus(ComputerAliasUpdate request)
...
@@ -2094,6 +2094,11 @@ public bool UpdateHeadersStatus(ComputerAliasUpdate request)
/// <returns></returns>
/// <returns></returns>
public
List
<
cof_alias
>
CustomColumnHeaders
(
int
hospitalId
,
string
route
,
params
string
[]
heads
)
public
List
<
cof_alias
>
CustomColumnHeaders
(
int
hospitalId
,
string
route
,
params
string
[]
heads
)
{
{
var
hos
=
hospitalRepository
.
GetEntity
(
w
=>
w
.
ID
==
hospitalId
);
return
CustomColumnHeaders
(
hos
,
route
,
heads
);
}
public
List
<
cof_alias
>
CustomColumnHeaders
(
sys_hospital
hos
,
string
route
,
params
string
[]
heads
)
{
var
pairs
=
new
Dictionary
<
string
,
List
<
cof_alias
>>
var
pairs
=
new
Dictionary
<
string
,
List
<
cof_alias
>>
{
{
{
"/result/compute"
,
ComputeConfig
.
AllComputeView
},
{
"/result/compute"
,
ComputeConfig
.
AllComputeView
},
...
@@ -2108,10 +2113,14 @@ public List<cof_alias> CustomColumnHeaders(int hospitalId, string route, params
...
@@ -2108,10 +2113,14 @@ public List<cof_alias> CustomColumnHeaders(int hospitalId, string route, params
{
"/report/wholehospital_accounting_grant_summary"
,
ComputeConfig
.
PerformanceTotal
(
route
,
heads
)
},
{
"/report/wholehospital_accounting_grant_summary"
,
ComputeConfig
.
PerformanceTotal
(
route
,
heads
)
},
{
"/report/wholehospital_finance_grant_summary"
,
ComputeConfig
.
PerformanceTotal
(
route
,
heads
)
},
{
"/report/wholehospital_finance_grant_summary"
,
ComputeConfig
.
PerformanceTotal
(
route
,
heads
)
},
{
"/result/all_employee"
,
ComputeConfig
.
GetAllPersonnelTags
(
hos
?.
IsOwnerQuery
==
1
)
},
};
};
var
init
=
pairs
.
ContainsKey
(
route
.
ToLower
())
?
pairs
[
route
.
ToLower
()]
:
new
List
<
cof_alias
>();
var
init
=
pairs
.
ContainsKey
(
route
.
ToLower
())
?
pairs
[
route
.
ToLower
()]
:
new
List
<
cof_alias
>();
var
alias
=
cofaliasRepository
.
GetEntities
(
t
=>
t
.
HospitalId
==
hospitalId
&&
t
.
Route
.
Equals
(
route
,
StringComparison
.
OrdinalIgnoreCase
))?.
OrderBy
(
w
=>
w
.
Sort
).
ToList
()
if
(
hos
==
null
)
return
init
;
var
alias
=
cofaliasRepository
.
GetEntities
(
t
=>
t
.
HospitalId
==
hos
.
ID
&&
t
.
Route
.
Equals
(
route
,
StringComparison
.
OrdinalIgnoreCase
))?.
OrderBy
(
w
=>
w
.
Sort
).
ToList
()
??
new
List
<
cof_alias
>();
??
new
List
<
cof_alias
>();
if
(
alias
==
null
||
!
alias
.
Any
())
return
init
;
if
(
alias
==
null
||
!
alias
.
Any
())
return
init
;
...
@@ -2126,7 +2135,7 @@ public List<cof_alias> CustomColumnHeaders(int hospitalId, string route, params
...
@@ -2126,7 +2135,7 @@ public List<cof_alias> CustomColumnHeaders(int hospitalId, string route, params
else
else
{
{
x
.
Id
=
item
.
Id
;
x
.
Id
=
item
.
Id
;
x
.
HospitalId
=
hos
pitalId
;
x
.
HospitalId
=
hos
.
ID
;
x
.
Route
=
route
;
x
.
Route
=
route
;
x
.
OriginalName
=
item
.
OriginalName
;
x
.
OriginalName
=
item
.
OriginalName
;
x
.
Alias
=
item
.
Alias
;
x
.
Alias
=
item
.
Alias
;
...
@@ -2244,143 +2253,4 @@ public QueryComputeByDateGetPage GetPerformanceSummary(HospitalGrantSummary requ
...
@@ -2244,143 +2253,4 @@ public QueryComputeByDateGetPage GetPerformanceSummary(HospitalGrantSummary requ
return
pairs
;
return
pairs
;
}
}
}
}
public
class
ComputeConfig
{
public
static
List
<
cof_alias
>
PerformanceTotal
(
string
route
,
string
[]
heads
)
{
if
(
heads
==
null
||
heads
.
Length
==
0
||
(
heads
.
Length
>
0
&&
heads
[
0
]
==
""
))
{
if
(
route
==
"/report/wholehospital_grant_summary"
)
return
AllComputeView
.
ToList
();
if
(
route
==
"/report/wholehospital_accounting_grant_summary"
)
return
AllComputeDepartmentView
.
ToList
();
if
(
route
==
"/report/wholehospital_finance_grant_summary"
)
return
AllComputePersonView
.
ToList
();
}
if
(
route
==
"/report/wholehospital_grant_summary"
)
return
AllComputeView
.
Where
(
t
=>
heads
.
Contains
(
t
.
Name
.
ToLower
())).
ToList
();
if
(
route
==
"/report/wholehospital_accounting_grant_summary"
)
return
AllComputeDepartmentView
.
Where
(
t
=>
heads
.
Contains
(
t
.
Name
.
ToLower
())).
ToList
();
if
(
route
==
"/report/wholehospital_finance_grant_summary"
)
return
AllComputePersonView
.
Where
(
t
=>
heads
.
Contains
(
t
.
Name
.
ToLower
())).
ToList
();
return
null
;
}
public
static
List
<
cof_alias
>
AllComputeView
{
get
;
}
=
new
List
<
cof_alias
>
{
new
cof_alias
{
Alias
=
"来源"
,
Name
=
nameof
(
view_allot_sign_emp
.
Source
),
States
=
1
,
SumStatus
=
0
,
Sort
=
1
},
new
cof_alias
{
Alias
=
"核算组别"
,
Name
=
nameof
(
view_allot_sign_emp
.
UnitType
),
States
=
1
,
SumStatus
=
0
,
Sort
=
2
},
new
cof_alias
{
Alias
=
"核算单元编码"
,
Name
=
nameof
(
view_allot_sign_emp
.
Code
),
States
=
1
,
SumStatus
=
0
,
Sort
=
2
},
new
cof_alias
{
Alias
=
"核算单元"
,
Name
=
nameof
(
view_allot_sign_emp
.
AccountingUnit
),
States
=
1
,
SumStatus
=
0
,
Sort
=
3
},
new
cof_alias
{
Alias
=
"员工号"
,
Name
=
nameof
(
view_allot_sign_emp
.
JobNumber
),
States
=
1
,
SumStatus
=
0
,
Sort
=
4
},
new
cof_alias
{
Alias
=
"人员姓名"
,
Name
=
nameof
(
view_allot_sign_emp
.
EmployeeName
),
States
=
1
,
SumStatus
=
0
,
Sort
=
5
},
new
cof_alias
{
Alias
=
"职称"
,
Name
=
nameof
(
view_allot_sign_emp
.
TitlePosition
),
States
=
1
,
SumStatus
=
0
,
Sort
=
6
},
new
cof_alias
{
Alias
=
"批次"
,
Name
=
nameof
(
view_allot_sign_emp
.
Batch
),
States
=
1
,
SumStatus
=
0
,
Sort
=
7
},
new
cof_alias
{
Alias
=
"银行卡号"
,
Name
=
nameof
(
view_allot_sign_emp
.
BankCard
),
States
=
1
,
SumStatus
=
0
,
Sort
=
8
},
new
cof_alias
{
Alias
=
"正式/临聘"
,
Name
=
nameof
(
view_allot_sign_emp
.
JobCategory
),
States
=
1
,
SumStatus
=
0
,
Sort
=
9
},
new
cof_alias
{
Alias
=
"职务"
,
Name
=
nameof
(
view_allot_sign_emp
.
Duty
),
States
=
1
,
SumStatus
=
0
,
Sort
=
10
},
new
cof_alias
{
Alias
=
"调节后业绩绩效"
,
Name
=
nameof
(
view_allot_sign_emp
.
PerforSumFee
),
States
=
1
,
SumStatus
=
1
,
Sort
=
11
},
new
cof_alias
{
Alias
=
"调节后实发管理绩效"
,
Name
=
nameof
(
view_allot_sign_emp
.
PerforManagementFee
),
States
=
1
,
SumStatus
=
1
,
Sort
=
12
},
new
cof_alias
{
Alias
=
"调节后其他绩效"
,
Name
=
nameof
(
view_allot_sign_emp
.
AdjustLaterOtherFee
),
States
=
1
,
SumStatus
=
1
,
Sort
=
13
},
new
cof_alias
{
Alias
=
"夜班费"
,
Name
=
nameof
(
view_allot_sign_emp
.
NightWorkPerfor
),
States
=
1
,
SumStatus
=
1
,
Sort
=
14
},
new
cof_alias
{
Alias
=
"医院其他绩效"
,
Name
=
nameof
(
view_allot_sign_emp
.
OtherPerfor
),
States
=
1
,
SumStatus
=
1
,
Sort
=
15
},
new
cof_alias
{
Alias
=
"不公示其他绩效"
,
Name
=
nameof
(
view_allot_sign_emp
.
HideOtherPerfor
),
States
=
1
,
SumStatus
=
1
,
Sort
=
16
},
new
cof_alias
{
Alias
=
"应发小计"
,
Name
=
nameof
(
view_allot_sign_emp
.
ShouldGiveFee
),
States
=
1
,
SumStatus
=
1
,
Sort
=
17
},
new
cof_alias
{
Alias
=
"预留绩效"
,
Name
=
nameof
(
view_allot_sign_emp
.
ReservedRatioFee
),
States
=
1
,
SumStatus
=
1
,
Sort
=
18
},
new
cof_alias
{
Alias
=
"实发绩效"
,
Name
=
nameof
(
view_allot_sign_emp
.
RealGiveFee
),
States
=
1
,
SumStatus
=
1
,
Sort
=
19
},
};
private
static
List
<
cof_alias
>
_allComputeViewByDate
=
new
List
<
cof_alias
>();
public
static
List
<
cof_alias
>
AllComputeViewByDate
{
get
{
if
(
_allComputeViewByDate
==
null
||
_allComputeViewByDate
.
Count
==
0
)
{
_allComputeViewByDate
.
Add
(
new
cof_alias
{
Alias
=
"年份"
,
Name
=
nameof
(
view_allot_sign_emp
.
Year
),
States
=
1
,
SumStatus
=
0
});
_allComputeViewByDate
.
Add
(
new
cof_alias
{
Alias
=
"月份"
,
Name
=
nameof
(
view_allot_sign_emp
.
Month
),
States
=
1
,
SumStatus
=
0
});
_allComputeViewByDate
.
AddRange
(
AllComputeView
);
}
return
_allComputeViewByDate
;
}
}
public
static
List
<
cof_alias
>
AllComputePersonView
{
get
;
}
=
new
List
<
cof_alias
>
{
new
cof_alias
{
Alias
=
"核算组别"
,
Name
=
nameof
(
view_allot_sign_emp
.
UnitType
),
States
=
1
,
SumStatus
=
0
,
Sort
=
1
},
new
cof_alias
{
Alias
=
"核算单元编码"
,
Name
=
nameof
(
view_allot_sign_emp
.
Code
),
States
=
1
,
SumStatus
=
0
,
Sort
=
2
},
new
cof_alias
{
Alias
=
"核算单元"
,
Name
=
nameof
(
view_allot_sign_emp
.
AccountingUnit
),
States
=
1
,
SumStatus
=
0
,
Sort
=
2
},
new
cof_alias
{
Alias
=
"员工号"
,
Name
=
nameof
(
view_allot_sign_emp
.
JobNumber
),
States
=
1
,
SumStatus
=
0
,
Sort
=
3
},
new
cof_alias
{
Alias
=
"人员姓名"
,
Name
=
nameof
(
view_allot_sign_emp
.
EmployeeName
),
States
=
1
,
SumStatus
=
0
,
Sort
=
4
},
new
cof_alias
{
Alias
=
"调节后业绩绩效"
,
Name
=
nameof
(
view_allot_sign_emp
.
PerforSumFee
),
States
=
1
,
SumStatus
=
1
,
Sort
=
5
},
new
cof_alias
{
Alias
=
"调节后实发管理绩效"
,
Name
=
nameof
(
view_allot_sign_emp
.
PerforManagementFee
),
States
=
1
,
SumStatus
=
1
,
Sort
=
6
},
new
cof_alias
{
Alias
=
"调节后其他绩效"
,
Name
=
nameof
(
view_allot_sign_emp
.
AdjustLaterOtherFee
),
States
=
1
,
SumStatus
=
1
,
Sort
=
7
},
new
cof_alias
{
Alias
=
"夜班费"
,
Name
=
nameof
(
view_allot_sign_emp
.
NightWorkPerfor
),
States
=
1
,
SumStatus
=
1
,
Sort
=
8
},
new
cof_alias
{
Alias
=
"医院其他绩效"
,
Name
=
nameof
(
view_allot_sign_emp
.
OtherPerfor
),
States
=
1
,
SumStatus
=
1
,
Sort
=
9
},
new
cof_alias
{
Alias
=
"不公示其他绩效"
,
Name
=
nameof
(
view_allot_sign_emp
.
HideOtherPerfor
),
States
=
1
,
SumStatus
=
1
,
Sort
=
10
},
new
cof_alias
{
Alias
=
"应发小计"
,
Name
=
nameof
(
view_allot_sign_emp
.
ShouldGiveFee
),
States
=
1
,
SumStatus
=
1
,
Sort
=
11
},
new
cof_alias
{
Alias
=
"预留绩效"
,
Name
=
nameof
(
view_allot_sign_emp
.
ReservedRatioFee
),
States
=
1
,
SumStatus
=
1
,
Sort
=
12
},
new
cof_alias
{
Alias
=
"实发绩效"
,
Name
=
nameof
(
view_allot_sign_emp
.
RealGiveFee
),
States
=
1
,
SumStatus
=
1
,
Sort
=
13
},
};
private
static
List
<
cof_alias
>
_allComputePersonViewByDate
=
new
List
<
cof_alias
>();
public
static
List
<
cof_alias
>
AllComputePersonViewByDate
{
get
{
if
(
_allComputePersonViewByDate
==
null
||
_allComputePersonViewByDate
.
Count
==
0
)
{
_allComputePersonViewByDate
.
Add
(
new
cof_alias
{
Alias
=
"年份"
,
Name
=
nameof
(
view_allot_sign_emp
.
Year
),
States
=
1
,
SumStatus
=
0
});
_allComputePersonViewByDate
.
Add
(
new
cof_alias
{
Alias
=
"月份"
,
Name
=
nameof
(
view_allot_sign_emp
.
Month
),
States
=
1
,
SumStatus
=
0
});
_allComputePersonViewByDate
.
AddRange
(
AllComputePersonView
);
}
return
_allComputePersonViewByDate
;
}
}
public
static
List
<
cof_alias
>
AllComputeDepartmentView
{
get
;
}
=
new
List
<
cof_alias
>
{
new
cof_alias
{
Alias
=
"核算组别"
,
Name
=
nameof
(
view_allot_sign_dept
.
UnitType
),
States
=
1
,
SumStatus
=
0
,
Sort
=
1
},
new
cof_alias
{
Alias
=
"核算单元编码"
,
Name
=
nameof
(
view_allot_sign_emp
.
Code
),
States
=
1
,
SumStatus
=
0
,
Sort
=
2
},
new
cof_alias
{
Alias
=
"核算单元"
,
Name
=
nameof
(
view_allot_sign_dept
.
AccountingUnit
),
States
=
1
,
SumStatus
=
0
,
Sort
=
2
},
new
cof_alias
{
Alias
=
"业绩绩效"
,
Name
=
nameof
(
view_allot_sign_dept
.
PerforFee
),
States
=
1
,
SumStatus
=
1
,
Sort
=
3
},
new
cof_alias
{
Alias
=
"工作量绩效"
,
Name
=
nameof
(
view_allot_sign_dept
.
WorkloadFee
),
States
=
1
,
SumStatus
=
1
,
Sort
=
4
},
new
cof_alias
{
Alias
=
"考核前其他绩效"
,
Name
=
nameof
(
view_allot_sign_dept
.
AssessBeforeOtherFee
),
States
=
1
,
SumStatus
=
1
,
Sort
=
5
},
new
cof_alias
{
Alias
=
"考核前绩效合计"
,
Name
=
nameof
(
view_allot_sign_dept
.
PerforTotal
),
States
=
1
,
SumStatus
=
1
,
Sort
=
6
},
new
cof_alias
{
Alias
=
"科室考核得分"
,
Name
=
nameof
(
view_allot_sign_dept
.
ScoringAverage
),
States
=
1
,
SumStatus
=
1
,
Sort
=
7
},
new
cof_alias
{
Alias
=
"药占比奖罚"
,
Name
=
nameof
(
view_allot_sign_dept
.
MedicineExtra
),
States
=
1
,
SumStatus
=
1
,
Sort
=
8
},
new
cof_alias
{
Alias
=
"材料占比奖罚"
,
Name
=
nameof
(
view_allot_sign_dept
.
MaterialsExtra
),
States
=
1
,
SumStatus
=
1
,
Sort
=
9
},
new
cof_alias
{
Alias
=
"医院奖罚"
,
Name
=
nameof
(
view_allot_sign_dept
.
Extra
),
States
=
1
,
SumStatus
=
1
,
Sort
=
10
},
new
cof_alias
{
Alias
=
"考核后其他绩效"
,
Name
=
nameof
(
view_allot_sign_dept
.
AssessLaterOtherFee
),
States
=
1
,
SumStatus
=
1
,
Sort
=
11
},
new
cof_alias
{
Alias
=
"考核后绩效"
,
Name
=
nameof
(
view_allot_sign_dept
.
AssessLaterPerforTotal
),
States
=
1
,
SumStatus
=
1
,
Sort
=
12
},
new
cof_alias
{
Alias
=
"调节系数"
,
Name
=
nameof
(
view_allot_sign_dept
.
AdjustFactor
),
States
=
1
,
SumStatus
=
1
,
Sort
=
13
},
new
cof_alias
{
Alias
=
"调节后其他绩效"
,
Name
=
nameof
(
view_allot_sign_dept
.
AdjustLaterOtherFee
),
States
=
1
,
SumStatus
=
1
,
Sort
=
14
},
new
cof_alias
{
Alias
=
"科主任实发管理绩效"
,
Name
=
nameof
(
view_allot_sign_dept
.
AssessLaterManagementFee
),
States
=
1
,
SumStatus
=
1
,
Sort
=
15
},
new
cof_alias
{
Alias
=
"医院其他绩效"
,
Name
=
nameof
(
view_allot_sign_dept
.
AprPerforAmount
),
States
=
1
,
SumStatus
=
1
,
Sort
=
16
},
new
cof_alias
{
Alias
=
"不公示其他绩效"
,
Name
=
nameof
(
view_allot_sign_dept
.
HideAprOtherPerforAmount
),
States
=
1
,
SumStatus
=
1
,
Sort
=
17
},
new
cof_alias
{
Alias
=
"实发绩效"
,
Name
=
nameof
(
view_allot_sign_dept
.
RealGiveFee
),
States
=
1
,
SumStatus
=
1
,
Sort
=
18
},
};
private
static
List
<
cof_alias
>
_allComputeDepartmentViewByDate
=
new
List
<
cof_alias
>();
public
static
List
<
cof_alias
>
AllComputeDepartmentViewByDate
{
get
{
if
(
_allComputeDepartmentViewByDate
==
null
||
_allComputeDepartmentViewByDate
.
Count
==
0
)
{
_allComputeDepartmentViewByDate
.
Add
(
new
cof_alias
{
Alias
=
"年份"
,
Name
=
nameof
(
view_allot_sign_emp
.
Year
),
States
=
1
,
SumStatus
=
0
});
_allComputeDepartmentViewByDate
.
Add
(
new
cof_alias
{
Alias
=
"月份"
,
Name
=
nameof
(
view_allot_sign_emp
.
Month
),
States
=
1
,
SumStatus
=
0
});
_allComputeDepartmentViewByDate
.
AddRange
(
AllComputeDepartmentView
);
}
return
_allComputeDepartmentViewByDate
;
}
}
}
}
}
performance/Performance.Services/PersonService.cs
View file @
985ee9f6
...
@@ -718,17 +718,8 @@ private string[] GetUnitType(int userId)
...
@@ -718,17 +718,8 @@ private string[] GetUnitType(int userId)
public
HandsonTable
GetBatchPersonStructrue
(
int
hospitalId
)
public
HandsonTable
GetBatchPersonStructrue
(
int
hospitalId
)
{
{
var
hos
=
perforHospitalRepository
.
GetEntity
(
t
=>
t
.
ID
==
hospitalId
);
var
cols
=
Person
.
Select
(
t
=>
t
.
Item2
).
ToArray
();
var
cols
=
hos
.
IsOwnerQuery
==
1
?
PersonPassword
.
Select
(
t
=>
t
.
Item2
).
ToArray
()
:
Person
.
Select
(
t
=>
t
.
Item2
).
ToArray
();
var
permissions
=
Person
.
Select
(
t
=>
new
collect_permission
{
HeadName
=
t
.
Item2
,
Visible
=
1
}).
ToList
();
var
permissions
=
hos
.
IsOwnerQuery
==
1
?
PersonPassword
.
Select
(
t
=>
new
collect_permission
{
HeadName
=
t
.
Item2
,
Visible
=
1
}).
ToList
()
:
Person
.
Select
(
t
=>
new
collect_permission
{
HeadName
=
t
.
Item2
,
Visible
=
1
}).
ToList
();
var
result
=
new
HandsonTable
((
int
)
SheetType
.
Unidentifiable
,
cols
,
permissions
);
var
result
=
new
HandsonTable
((
int
)
SheetType
.
Unidentifiable
,
cols
,
permissions
);
var
deptdics
=
perdeptdicRepository
.
GetEntities
(
t
=>
t
.
HospitalId
==
hospitalId
);
var
deptdics
=
perdeptdicRepository
.
GetEntities
(
t
=>
t
.
HospitalId
==
hospitalId
);
...
@@ -1073,23 +1064,6 @@ private void DeptDicList(int HospitalId, List<per_dept_dic> deptDics, DeptdicHan
...
@@ -1073,23 +1064,6 @@ private void DeptDicList(int HospitalId, List<per_dept_dic> deptDics, DeptdicHan
return
result
;
return
result
;
}
}
public
static
List
<(
string
,
string
,
Func
<
PersonePassword
,
object
>)>
PersonPassword
{
get
;
}
=
new
List
<(
string
,
string
,
Func
<
PersonePassword
,
object
>)>
{
(
nameof
(
PersonePassword
.
UnitType
),
"核算组别"
,
t
=>
t
.
UnitType
),
(
nameof
(
PersonePassword
.
AccountingUnit
),
"核算单元"
,
t
=>
t
.
AccountingUnit
),
(
nameof
(
PersonePassword
.
Department
),
"科室名称"
,
t
=>
t
.
Department
),
(
nameof
(
PersonePassword
.
DoctorName
),
"姓名"
,
t
=>
t
.
DoctorName
),
(
nameof
(
PersonePassword
.
PersonnelNumber
),
"员工工号"
,
t
=>
t
.
PersonnelNumber
),
//(nameof(PersonePassword.JobCategory), "正式/临聘", t => t.JobCategory),
//(nameof(PersonePassword.Duty), "职务", t => t.Duty),
//(nameof(PersonePassword.JobTitle), "职称", t => t.JobTitle),
//(nameof(PersonePassword.AttendanceDay), "出勤天数", t => t.AttendanceDay),
//(nameof(PersonePassword.ReservedRatio), "预留比例", t => t.ReservedRatio),
//(nameof(PersonePassword.BankCard), "银行卡号", t => t.BankCard),
//(nameof(PersonePassword.Password), "密码", t => t.Password),
//(nameof(PersonePassword.Remark), "备注", t => t.Remark),
};
public
static
List
<(
string
,
string
,
Func
<
per_employee
,
object
>)>
Person
{
get
;
}
=
new
List
<(
string
,
string
,
Func
<
per_employee
,
object
>)>
public
static
List
<(
string
,
string
,
Func
<
per_employee
,
object
>)>
Person
{
get
;
}
=
new
List
<(
string
,
string
,
Func
<
per_employee
,
object
>)>
{
{
(
nameof
(
per_employee
.
UnitType
),
"核算组别"
,
t
=>
t
.
UnitType
),
(
nameof
(
per_employee
.
UnitType
),
"核算组别"
,
t
=>
t
.
UnitType
),
...
...
performance/Performance.Services/ReportGlobalService.cs
View file @
985ee9f6
...
@@ -16,6 +16,8 @@ namespace Performance.Services
...
@@ -16,6 +16,8 @@ namespace Performance.Services
public
class
ReportGlobalService
:
IAutoInjection
public
class
ReportGlobalService
:
IAutoInjection
{
{
private
readonly
ILogger
logger
;
private
readonly
ILogger
logger
;
private
readonly
ComputeService
_computeService
;
private
readonly
PerforHospitalRepository
_hospitalRepository
;
private
readonly
PerforPerallotRepository
perallotRepository
;
private
readonly
PerforPerallotRepository
perallotRepository
;
private
readonly
PerforReportglobalRepository
reportglobalRepository
;
private
readonly
PerforReportglobalRepository
reportglobalRepository
;
private
readonly
PerforHisimportdataRepository
hisimportdataRepository
;
private
readonly
PerforHisimportdataRepository
hisimportdataRepository
;
...
@@ -31,6 +33,8 @@ public class ReportGlobalService : IAutoInjection
...
@@ -31,6 +33,8 @@ public class ReportGlobalService : IAutoInjection
public
ReportGlobalService
(
public
ReportGlobalService
(
ILogger
<
ReportGlobalService
>
logger
,
ILogger
<
ReportGlobalService
>
logger
,
ComputeService
computeService
,
PerforHospitalRepository
hospitalRepository
,
PerforPerallotRepository
perallotRepository
,
PerforPerallotRepository
perallotRepository
,
PerforReportglobalRepository
reportglobalRepository
,
PerforReportglobalRepository
reportglobalRepository
,
PerforHisimportdataRepository
hisimportdataRepository
,
PerforHisimportdataRepository
hisimportdataRepository
,
...
@@ -46,6 +50,8 @@ PersonService personService
...
@@ -46,6 +50,8 @@ PersonService personService
)
)
{
{
this
.
logger
=
logger
;
this
.
logger
=
logger
;
_computeService
=
computeService
;
_hospitalRepository
=
hospitalRepository
;
this
.
perallotRepository
=
perallotRepository
;
this
.
perallotRepository
=
perallotRepository
;
this
.
reportglobalRepository
=
reportglobalRepository
;
this
.
reportglobalRepository
=
reportglobalRepository
;
this
.
hisimportdataRepository
=
hisimportdataRepository
;
this
.
hisimportdataRepository
=
hisimportdataRepository
;
...
@@ -537,11 +543,11 @@ private T GetCellValue<T>(IRow row, List<string> columns, string key)
...
@@ -537,11 +543,11 @@ private T GetCellValue<T>(IRow row, List<string> columns, string key)
public
HandsonTable
GetReportPersonTag
(
int
hospitalId
,
int
allotId
)
public
HandsonTable
GetReportPersonTag
(
int
hospitalId
,
int
allotId
)
{
{
var
result
=
new
HandsonTable
((
int
)
SheetType
.
Unidentifiable
,
PersonTag
.
Select
(
t
=>
t
.
Value
).
ToArray
(),
PersonTag
.
Select
(
t
=>
new
collect_permission
var
hos
=
_hospitalRepository
.
GetEntity
(
t
=>
t
.
ID
==
hospitalId
);
{
var
type
=
(
int
)
SheetType
.
Unidentifiable
;
HeadName
=
t
.
Value
,
var
cols
=
_computeService
.
CustomColumnHeaders
(
hos
,
"/result/all_employee"
).
Select
(
t
=>
t
.
Alias
).
ToArray
();
Visible
=
1
var
permissions
=
_computeService
.
CustomColumnHeaders
(
hos
,
"/result/all_employee"
).
Select
(
t
=>
new
collect_permission
{
HeadName
=
t
.
Alias
,
Visible
=
1
}).
ToList
();
}).
ToList
()
);
var
result
=
new
HandsonTable
(
type
,
cols
,
permissions
);
var
pdata
=
perforPeremployeeRepository
.
GetEntities
(
t
=>
t
.
HospitalId
==
hospitalId
&&
t
.
AllotId
==
allotId
);
var
pdata
=
perforPeremployeeRepository
.
GetEntities
(
t
=>
t
.
HospitalId
==
hospitalId
&&
t
.
AllotId
==
allotId
);
var
tdata
=
reportperformancepersontagsRepository
.
GetEntities
(
t
=>
t
.
HospitalId
==
hospitalId
)?.
OrderBy
(
t
=>
ConvertHelper
.
To
<
long
>(
t
.
PersonnelNumber
));
var
tdata
=
reportperformancepersontagsRepository
.
GetEntities
(
t
=>
t
.
HospitalId
==
hospitalId
)?.
OrderBy
(
t
=>
ConvertHelper
.
To
<
long
>(
t
.
PersonnelNumber
));
...
@@ -571,12 +577,15 @@ select new
...
@@ -571,12 +577,15 @@ select new
if
(
data
==
null
||
!
data
.
Any
())
return
result
;
if
(
data
==
null
||
!
data
.
Any
())
return
result
;
var
userhospitals
=
perforUserhospitalRepository
.
GetEntities
(
w
=>
w
.
HospitalID
==
hospitalId
);
var
users
=
new
List
<
sys_user
>();
var
users
=
new
List
<
sys_user
>();
if
(
hos
?.
IsOwnerQuery
==
1
)
{
var
userhospitals
=
perforUserhospitalRepository
.
GetEntities
(
w
=>
w
.
HospitalID
==
hospitalId
);
if
(
userhospitals
!=
null
&&
userhospitals
.
Any
())
if
(
userhospitals
!=
null
&&
userhospitals
.
Any
())
{
{
users
=
perforUserRepository
.
GetEntities
(
w
=>
userhospitals
.
Select
(
w
=>
w
.
UserID
).
Contains
(
w
.
ID
)
&&
w
.
IsDelete
==
1
)
??
new
List
<
sys_user
>();
users
=
perforUserRepository
.
GetEntities
(
w
=>
userhospitals
.
Select
(
w
=>
w
.
UserID
).
Contains
(
w
.
ID
)
&&
w
.
IsDelete
==
1
)
??
new
List
<
sys_user
>();
}
}
}
List
<
HandsonRowData
>
rowDatas
=
new
List
<
HandsonRowData
>();
List
<
HandsonRowData
>
rowDatas
=
new
List
<
HandsonRowData
>();
int
i
=
0
;
int
i
=
0
;
foreach
(
var
item
in
data
)
foreach
(
var
item
in
data
)
...
@@ -584,34 +593,19 @@ select new
...
@@ -584,34 +593,19 @@ select new
var
json
=
JsonHelper
.
Serialize
(
item
);
var
json
=
JsonHelper
.
Serialize
(
item
);
var
firstDic
=
JsonHelper
.
Deserialize
<
Dictionary
<
string
,
string
>>(
json
);
var
firstDic
=
JsonHelper
.
Deserialize
<
Dictionary
<
string
,
string
>>(
json
);
var
cells
=
(
from
conf
in
PersonTag
join
fst
in
firstDic
on
conf
.
Key
.
ToUpper
()
equals
fst
.
Key
.
ToUpper
()
select
new
HandsonCellData
(
conf
.
Value
,
fst
.
Value
)).
ToList
();
var
cells
=
(
from
conf
in
ComputeConfig
.
GetAllPersonnelTags
(
hos
?.
IsOwnerQuery
==
1
)
var
user
=
users
.
FirstOrDefault
(
w
=>
w
.
Login
==
item
.
PersonnelNumber
&&
w
.
Department
==
item
.
AccountingUnit
);
join
fst
in
firstDic
on
conf
.
Name
.
ToUpper
()
equals
fst
.
Key
.
ToUpper
()
if
(
user
!=
null
)
select
new
HandsonCellData
(
conf
.
Alias
,
fst
.
Value
)).
ToList
();
if
(
hos
?.
IsOwnerQuery
==
1
)
{
{
cells
.
Add
(
new
HandsonCellData
(
PersonTag
[
nameof
(
PersonePassword
.
Password
)],
user
.
Password
));
var
password
=
users
.
FirstOrDefault
(
w
=>
w
.
Login
==
item
.
PersonnelNumber
&&
w
.
Department
==
item
.
AccountingUnit
)?.
Password
??
""
;
cells
.
Add
(
new
HandsonCellData
(
"密码"
,
password
));
}
}
rowDatas
.
Add
(
new
HandsonRowData
(
i
,
cells
));
rowDatas
.
Add
(
new
HandsonRowData
(
i
,
cells
));
i
++;
i
++;
}
}
//List<HandsonRowData> rowDatas2 = new List<HandsonRowData>();
//foreach (var item in rowDatas)
//{
// if (rowDatas2.Count == 0)
// rowDatas2.Add(item);
// var flag = true;
// foreach (var item2 in rowDatas2)
// {
// if (item.CellData.ToList()[1].Value.Equals(item2.CellData.ToList()[1].Value))
// flag = false;
// }
// if (flag)
// rowDatas2.Add(item);
//}
result
.
SetRowData
(
rowDatas
,
rowDatas
!=
null
);
result
.
SetRowData
(
rowDatas
,
rowDatas
!=
null
);
var
columns
=
new
string
[]
{
"员工工号"
,
"姓名"
,
"核算单元"
};
var
columns
=
new
string
[]
{
"员工工号"
,
"姓名"
,
"核算单元"
};
...
@@ -626,10 +620,12 @@ select new
...
@@ -626,10 +620,12 @@ select new
public
ApiResponse
SaveReportPersonTag
(
int
hospitalId
,
int
allotId
,
int
userId
,
SaveCollectData
request
)
public
ApiResponse
SaveReportPersonTag
(
int
hospitalId
,
int
allotId
,
int
userId
,
SaveCollectData
request
)
{
{
var
hos
=
_hospitalRepository
.
GetEntity
(
t
=>
t
.
ID
==
hospitalId
);
var
employees
=
perforPeremployeeRepository
.
GetEntities
(
t
=>
t
.
AllotId
==
allotId
);
var
employees
=
perforPeremployeeRepository
.
GetEntities
(
t
=>
t
.
AllotId
==
allotId
);
if
(
employees
==
null
||
!
employees
.
Any
())
throw
new
PerformanceException
(
"人员字典中未保存数据"
);
if
(
employees
==
null
||
!
employees
.
Any
())
throw
new
PerformanceException
(
"人员字典中未保存数据"
);
var
dicData
=
CreateDataRow
(
hospitalId
,
request
,
PersonTag
);
var
alias
=
ComputeConfig
.
GetAllPersonnelTags
(
hos
?.
IsOwnerQuery
==
1
);
var
dicData
=
CreateDataRow
(
hospitalId
,
request
,
alias
);
var
tags
=
reportperformancepersontagsRepository
.
GetEntities
(
t
=>
t
.
HospitalId
==
hospitalId
);
var
tags
=
reportperformancepersontagsRepository
.
GetEntities
(
t
=>
t
.
HospitalId
==
hospitalId
);
var
upEmployees
=
new
List
<
per_employee
>();
var
upEmployees
=
new
List
<
per_employee
>();
...
@@ -769,7 +765,9 @@ public HandsonTable GetReportTag(int hospitalId)
...
@@ -769,7 +765,9 @@ public HandsonTable GetReportTag(int hospitalId)
public
void
SaveReportTag
(
int
hospitalId
,
SaveCollectData
request
)
public
void
SaveReportTag
(
int
hospitalId
,
SaveCollectData
request
)
{
{
var
dicData
=
CreateDataRow
(
hospitalId
,
request
,
PersonTag
);
var
hos
=
_hospitalRepository
.
GetEntity
(
t
=>
t
.
ID
==
hospitalId
);
var
alias
=
ComputeConfig
.
GetAllPersonnelTags
(
hos
?.
IsOwnerQuery
==
1
);
var
dicData
=
CreateDataRow
(
hospitalId
,
request
,
alias
);
List
<
report_performance_tags
>
report
=
new
List
<
report_performance_tags
>();
List
<
report_performance_tags
>
report
=
new
List
<
report_performance_tags
>();
foreach
(
var
item
in
dicData
)
foreach
(
var
item
in
dicData
)
...
@@ -787,29 +785,6 @@ public void SaveReportTag(int hospitalId, SaveCollectData request)
...
@@ -787,29 +785,6 @@ public void SaveReportTag(int hospitalId, SaveCollectData request)
reportperformancetagsRepository
.
AddRange
(
report
.
ToArray
());
reportperformancetagsRepository
.
AddRange
(
report
.
ToArray
());
}
}
private
static
Dictionary
<
string
,
string
>
PersonTag
{
get
;
}
=
new
Dictionary
<
string
,
string
>
{
//{nameof(report_performance_person_tags.UnitType), "核算单元类型"},
//{nameof(report_performance_person_tags.AccountingUnit), "科室"},
//{nameof(per_employee.Id), "Id"},
{
nameof
(
per_employee
.
PersonnelNumber
),
"员工工号"
},
{
nameof
(
per_employee
.
DoctorName
),
"姓名"
},
{
nameof
(
per_employee
.
AccountingUnit
),
"核算单元"
},
{
nameof
(
PersonePassword
.
Password
),
"密码"
},
{
nameof
(
per_employee
.
JobCategory
),
"正式/临聘"
},
{
nameof
(
per_employee
.
Duty
),
"职务"
},
{
nameof
(
per_employee
.
JobTitle
),
"职称"
},
{
nameof
(
per_employee
.
AttendanceDay
),
"出勤天数"
},
{
nameof
(
per_employee
.
ReservedRatio
),
"预留比例"
},
{
nameof
(
per_employee
.
BankCard
),
"银行卡号"
},
{
nameof
(
per_employee
.
Remark
),
"备注"
},
{
nameof
(
report_performance_person_tags
.
Tag1
),
"绩效发放情况"
},
{
nameof
(
report_performance_person_tags
.
Tag2
),
"当月绩效权重"
},
{
nameof
(
report_performance_person_tags
.
Tag3
),
"重点群体对比1"
},
{
nameof
(
report_performance_person_tags
.
Tag4
),
"重点群体对比2"
},
{
nameof
(
report_performance_person_tags
.
Tag5
),
"重点群体对比5"
},
};
public
static
Dictionary
<
string
,
string
>
ReportTag
{
get
;
}
=
new
Dictionary
<
string
,
string
>
public
static
Dictionary
<
string
,
string
>
ReportTag
{
get
;
}
=
new
Dictionary
<
string
,
string
>
{
{
...
@@ -822,14 +797,14 @@ public void SaveReportTag(int hospitalId, SaveCollectData request)
...
@@ -822,14 +797,14 @@ public void SaveReportTag(int hospitalId, SaveCollectData request)
{
nameof
(
report_performance_tags
.
Tag5
),
"重点群体对比5"
},
{
nameof
(
report_performance_tags
.
Tag5
),
"重点群体对比5"
},
};
};
private
List
<
Dictionary
<
string
,
string
>>
CreateDataRow
(
int
hospitalId
,
SaveCollectData
request
,
Dictionary
<
string
,
string
>
config
)
private
List
<
Dictionary
<
string
,
string
>>
CreateDataRow
(
int
hospitalId
,
SaveCollectData
request
,
List
<
cof_alias
>
alias
)
{
{
List
<
Dictionary
<
string
,
string
>>
allData
=
new
List
<
Dictionary
<
string
,
string
>>();
List
<
Dictionary
<
string
,
string
>>
allData
=
new
List
<
Dictionary
<
string
,
string
>>();
for
(
int
r
=
0
;
r
<
request
.
Data
.
Length
;
r
++)
for
(
int
r
=
0
;
r
<
request
.
Data
.
Length
;
r
++)
{
{
// 创建固定数据列
// 创建固定数据列
Dictionary
<
string
,
string
>
baseData
=
CreateBaseData
(
request
,
config
,
r
);
Dictionary
<
string
,
string
>
baseData
=
CreateBaseData
(
request
,
alias
,
r
);
baseData
.
Add
(
nameof
(
cof_hrp_department
.
HospitalId
),
hospitalId
.
ToString
());
baseData
.
Add
(
nameof
(
cof_hrp_department
.
HospitalId
),
hospitalId
.
ToString
());
allData
.
Add
(
baseData
);
allData
.
Add
(
baseData
);
...
@@ -837,18 +812,18 @@ public void SaveReportTag(int hospitalId, SaveCollectData request)
...
@@ -837,18 +812,18 @@ public void SaveReportTag(int hospitalId, SaveCollectData request)
return
allData
;
return
allData
;
}
}
private
Dictionary
<
string
,
string
>
CreateBaseData
(
SaveCollectData
request
,
Dictionary
<
string
,
string
>
config
,
int
rownumber
)
private
Dictionary
<
string
,
string
>
CreateBaseData
(
SaveCollectData
request
,
List
<
cof_alias
>
alias
,
int
rownumber
)
{
{
Dictionary
<
string
,
string
>
result
=
new
Dictionary
<
string
,
string
>();
Dictionary
<
string
,
string
>
result
=
new
Dictionary
<
string
,
string
>();
for
(
int
c
=
0
;
c
<
request
.
ColHeaders
.
Length
;
c
++)
for
(
int
c
=
0
;
c
<
request
.
ColHeaders
.
Length
;
c
++)
{
{
var
header
=
request
.
ColHeaders
[
c
];
var
header
=
request
.
ColHeaders
[
c
];
var
first
=
config
.
FirstOrDefault
(
w
=>
w
.
Value
==
header
);
var
first
=
alias
.
FirstOrDefault
(
w
=>
w
.
Alias
==
header
);
if
(!
default
(
KeyValuePair
<
string
,
string
>).
Equals
(
first
)
if
(!
default
(
KeyValuePair
<
string
,
string
>).
Equals
(
first
)
&&
!
result
.
ContainsKey
(
header
)
&&
!
result
.
ContainsKey
(
header
)
&&
request
.
Data
[
rownumber
].
Length
>
c
)
&&
request
.
Data
[
rownumber
].
Length
>
c
)
{
{
result
.
Add
(
first
.
Key
,
request
.
Data
[
rownumber
][
c
]);
result
.
Add
(
first
.
Name
,
request
.
Data
[
rownumber
][
c
]);
}
}
}
}
...
...
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