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
cd53ba09
Commit
cd53ba09
authored
Jan 21, 2022
by
纪旭 韦
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化保存逻辑
parent
fb4619ea
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
130 additions
and
99 deletions
+130
-99
performance/Performance.Api/Controllers/ReportGlobalController.cs
+10
-7
performance/Performance.Api/wwwroot/Performance.Api.xml
+2
-1
performance/Performance.Services/ComputeService.cs
+59
-59
performance/Performance.Services/ReportGlobalService.cs
+59
-32
No files found.
performance/Performance.Api/Controllers/ReportGlobalController.cs
View file @
cd53ba09
...
...
@@ -132,13 +132,13 @@ public ApiResponse Import(int hospitalId, [FromForm] IFormCollection form)
/// <returns></returns>
[
Route
(
"ReportPersonTag"
)]
[
HttpPost
]
public
ApiResponse
ReportPersonTag
(
int
hospitalId
,
int
allotId
)
public
ApiResponse
ReportPersonTag
(
int
hospitalId
,
int
allotId
)
{
if
(
hospitalId
<=
0
)
if
(
hospitalId
<=
0
)
{
return
new
ApiResponse
(
ResponseType
.
Fail
,
"参数错误"
,
"hospitalId无效"
);
return
new
ApiResponse
(
ResponseType
.
Fail
,
"参数错误"
,
"hospitalId无效"
);
}
var
relust
=
reportGlobalService
.
GetReportPersonTag
(
hospitalId
,
allotId
);
var
relust
=
reportGlobalService
.
GetReportPersonTag
(
hospitalId
,
allotId
);
return
new
ApiResponse
(
ResponseType
.
OK
,
relust
);
}
...
...
@@ -146,17 +146,20 @@ public ApiResponse ReportPersonTag(int hospitalId,int allotId)
/// 保存科室标签配置
/// </summary>
/// <param name="hospitalId"></param>
/// <param name="allotId"></param>
/// <param name="request"></param>
/// <returns></returns>
[
Route
(
"saveReportPersonTag"
)]
[
Route
(
"saveReportPersonTag
/{allotId}
"
)]
[
HttpPost
]
public
ApiResponse
SaveReportPersonTag
(
int
hospitalId
,[
FromBody
]
SaveCollectData
request
)
public
ApiResponse
SaveReportPersonTag
(
int
hospitalId
,
int
allotId
,
[
FromBody
]
SaveCollectData
request
)
{
if
(
hospitalId
<=
0
)
{
return
new
ApiResponse
(
ResponseType
.
Fail
,
"参数错误"
,
"hospitalId无效"
);
}
reportGlobalService
.
SaveReportPersonTag
(
hospitalId
,
request
);
var
result
=
reportGlobalService
.
SaveReportPersonTag
(
hospitalId
,
allotId
,
request
);
if
(
result
!=
null
&&
result
.
Any
())
return
new
ApiResponse
(
ResponseType
.
Fail
,
$"保存失败:工号
{
string
.
Join
(
", "
,
result
)}
不存在"
);
return
new
ApiResponse
(
ResponseType
.
OK
);
}
...
...
performance/Performance.Api/wwwroot/Performance.Api.xml
View file @
cd53ba09
...
...
@@ -1800,11 +1800,12 @@
<param
name=
"allotId"
></param>
<returns></returns>
</member>
<member
name=
"M:Performance.Api.Controllers.ReportGlobalController.SaveReportPersonTag(System.Int32,Performance.DtoModels.SaveCollectData)"
>
<member
name=
"M:Performance.Api.Controllers.ReportGlobalController.SaveReportPersonTag(System.Int32,
System.Int32,
Performance.DtoModels.SaveCollectData)"
>
<summary>
保存科室标签配置
</summary>
<param
name=
"hospitalId"
></param>
<param
name=
"allotId"
></param>
<param
name=
"request"
></param>
<returns></returns>
</member>
...
...
performance/Performance.Services/ComputeService.cs
View file @
cd53ba09
...
...
@@ -2305,28 +2305,28 @@ public static List<cof_alias> PerformanceTotal(string route, string[] heads)
}
public
static
List
<
cof_alias
>
AllComputeView
{
get
;
}
=
new
List
<
cof_alias
>
{
new
cof_alias
{
Alias
=
"来源"
,
Name
=
nameof
(
view_allot_sign_emp
.
Source
),
States
=
0
,
SumStatus
=
0
},
new
cof_alias
{
Alias
=
"核算组别"
,
Name
=
nameof
(
view_allot_sign_emp
.
UnitType
),
States
=
0
,
SumStatus
=
0
},
new
cof_alias
{
Alias
=
"核算单元"
,
Name
=
nameof
(
view_allot_sign_emp
.
AccountingUnit
),
States
=
0
,
SumStatus
=
0
},
new
cof_alias
{
Alias
=
"员工号"
,
Name
=
nameof
(
view_allot_sign_emp
.
JobNumber
),
States
=
0
,
SumStatus
=
0
},
new
cof_alias
{
Alias
=
"人员姓名"
,
Name
=
nameof
(
view_allot_sign_emp
.
EmployeeName
),
States
=
0
,
SumStatus
=
0
},
new
cof_alias
{
Alias
=
"职称"
,
Name
=
nameof
(
view_allot_sign_emp
.
TitlePosition
),
States
=
0
,
SumStatus
=
0
},
new
cof_alias
{
Alias
=
"批次"
,
Name
=
nameof
(
view_allot_sign_emp
.
Batch
),
States
=
0
,
SumStatus
=
0
},
new
cof_alias
{
Alias
=
"银行卡号"
,
Name
=
nameof
(
view_allot_sign_emp
.
BankCard
),
States
=
0
,
SumStatus
=
0
},
new
cof_alias
{
Alias
=
"正式/临聘"
,
Name
=
nameof
(
view_allot_sign_emp
.
JobCategory
),
States
=
0
,
SumStatus
=
0
},
new
cof_alias
{
Alias
=
"职务"
,
Name
=
nameof
(
view_allot_sign_emp
.
Duty
),
States
=
0
,
SumStatus
=
0
},
new
cof_alias
{
Alias
=
"调节后业绩绩效"
,
Name
=
nameof
(
view_allot_sign_emp
.
PerforSumFee
),
States
=
0
,
SumStatus
=
1
},
new
cof_alias
{
Alias
=
"调节后实发管理绩效"
,
Name
=
nameof
(
view_allot_sign_emp
.
PerforManagementFee
),
States
=
0
,
SumStatus
=
1
},
new
cof_alias
{
Alias
=
"调节后其他绩效"
,
Name
=
nameof
(
view_allot_sign_emp
.
AdjustLaterOtherFee
),
States
=
0
,
SumStatus
=
1
},
new
cof_alias
{
Alias
=
"夜班费"
,
Name
=
nameof
(
view_allot_sign_emp
.
NightWorkPerfor
),
States
=
0
,
SumStatus
=
1
},
new
cof_alias
{
Alias
=
"医院其他绩效"
,
Name
=
nameof
(
view_allot_sign_emp
.
OtherPerfor
),
States
=
0
,
SumStatus
=
1
},
new
cof_alias
{
Alias
=
"不公示其他绩效"
,
Name
=
nameof
(
view_allot_sign_emp
.
HideOtherPerfor
),
States
=
0
,
SumStatus
=
1
},
new
cof_alias
{
Alias
=
"应发小计"
,
Name
=
nameof
(
view_allot_sign_emp
.
ShouldGiveFee
),
States
=
0
,
SumStatus
=
1
},
new
cof_alias
{
Alias
=
"预留绩效"
,
Name
=
nameof
(
view_allot_sign_emp
.
ReservedRatioFee
),
States
=
0
,
SumStatus
=
1
},
new
cof_alias
{
Alias
=
"实发绩效"
,
Name
=
nameof
(
view_allot_sign_emp
.
RealGiveFee
),
States
=
0
,
SumStatus
=
1
},
new
cof_alias
{
Alias
=
"来源"
,
Name
=
nameof
(
view_allot_sign_emp
.
Source
),
States
=
1
,
SumStatus
=
0
},
new
cof_alias
{
Alias
=
"核算组别"
,
Name
=
nameof
(
view_allot_sign_emp
.
UnitType
),
States
=
1
,
SumStatus
=
0
},
new
cof_alias
{
Alias
=
"核算单元"
,
Name
=
nameof
(
view_allot_sign_emp
.
AccountingUnit
),
States
=
1
,
SumStatus
=
0
},
new
cof_alias
{
Alias
=
"员工号"
,
Name
=
nameof
(
view_allot_sign_emp
.
JobNumber
),
States
=
1
,
SumStatus
=
0
},
new
cof_alias
{
Alias
=
"人员姓名"
,
Name
=
nameof
(
view_allot_sign_emp
.
EmployeeName
),
States
=
1
,
SumStatus
=
0
},
new
cof_alias
{
Alias
=
"职称"
,
Name
=
nameof
(
view_allot_sign_emp
.
TitlePosition
),
States
=
1
,
SumStatus
=
0
},
new
cof_alias
{
Alias
=
"批次"
,
Name
=
nameof
(
view_allot_sign_emp
.
Batch
),
States
=
1
,
SumStatus
=
0
},
new
cof_alias
{
Alias
=
"银行卡号"
,
Name
=
nameof
(
view_allot_sign_emp
.
BankCard
),
States
=
1
,
SumStatus
=
0
},
new
cof_alias
{
Alias
=
"正式/临聘"
,
Name
=
nameof
(
view_allot_sign_emp
.
JobCategory
),
States
=
1
,
SumStatus
=
0
},
new
cof_alias
{
Alias
=
"职务"
,
Name
=
nameof
(
view_allot_sign_emp
.
Duty
),
States
=
1
,
SumStatus
=
0
},
new
cof_alias
{
Alias
=
"调节后业绩绩效"
,
Name
=
nameof
(
view_allot_sign_emp
.
PerforSumFee
),
States
=
1
,
SumStatus
=
1
},
new
cof_alias
{
Alias
=
"调节后实发管理绩效"
,
Name
=
nameof
(
view_allot_sign_emp
.
PerforManagementFee
),
States
=
1
,
SumStatus
=
1
},
new
cof_alias
{
Alias
=
"调节后其他绩效"
,
Name
=
nameof
(
view_allot_sign_emp
.
AdjustLaterOtherFee
),
States
=
1
,
SumStatus
=
1
},
new
cof_alias
{
Alias
=
"夜班费"
,
Name
=
nameof
(
view_allot_sign_emp
.
NightWorkPerfor
),
States
=
1
,
SumStatus
=
1
},
new
cof_alias
{
Alias
=
"医院其他绩效"
,
Name
=
nameof
(
view_allot_sign_emp
.
OtherPerfor
),
States
=
1
,
SumStatus
=
1
},
new
cof_alias
{
Alias
=
"不公示其他绩效"
,
Name
=
nameof
(
view_allot_sign_emp
.
HideOtherPerfor
),
States
=
1
,
SumStatus
=
1
},
new
cof_alias
{
Alias
=
"应发小计"
,
Name
=
nameof
(
view_allot_sign_emp
.
ShouldGiveFee
),
States
=
1
,
SumStatus
=
1
},
new
cof_alias
{
Alias
=
"预留绩效"
,
Name
=
nameof
(
view_allot_sign_emp
.
ReservedRatioFee
),
States
=
1
,
SumStatus
=
1
},
new
cof_alias
{
Alias
=
"实发绩效"
,
Name
=
nameof
(
view_allot_sign_emp
.
RealGiveFee
),
States
=
1
,
SumStatus
=
1
},
};
private
static
List
<
cof_alias
>
_allComputeViewByDate
=
new
List
<
cof_alias
>();
...
...
@@ -2336,8 +2336,8 @@ public static List<cof_alias> AllComputeViewByDate
{
if
(
_allComputeViewByDate
==
null
||
_allComputeViewByDate
.
Count
==
0
)
{
_allComputeViewByDate
.
Add
(
new
cof_alias
{
Alias
=
"年份"
,
Name
=
nameof
(
view_allot_sign_emp
.
Year
),
States
=
0
,
SumStatus
=
0
});
_allComputeViewByDate
.
Add
(
new
cof_alias
{
Alias
=
"月份"
,
Name
=
nameof
(
view_allot_sign_emp
.
Month
),
States
=
0
,
SumStatus
=
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
;
...
...
@@ -2350,19 +2350,19 @@ public static List<cof_alias> AllComputeViewByDate
public
static
List
<
cof_alias
>
AllComputePersonView
{
get
;
}
=
new
List
<
cof_alias
>
{
new
cof_alias
{
Alias
=
"核算组别"
,
Name
=
nameof
(
view_allot_sign_emp
.
UnitType
),
States
=
0
,
SumStatus
=
0
},
new
cof_alias
{
Alias
=
"核算单元"
,
Name
=
nameof
(
view_allot_sign_emp
.
AccountingUnit
),
States
=
0
,
SumStatus
=
0
},
new
cof_alias
{
Alias
=
"员工号"
,
Name
=
nameof
(
view_allot_sign_emp
.
JobNumber
),
States
=
0
,
SumStatus
=
0
},
new
cof_alias
{
Alias
=
"人员姓名"
,
Name
=
nameof
(
view_allot_sign_emp
.
EmployeeName
),
States
=
0
,
SumStatus
=
0
},
new
cof_alias
{
Alias
=
"调节后业绩绩效"
,
Name
=
nameof
(
view_allot_sign_emp
.
PerforSumFee
),
States
=
0
,
SumStatus
=
1
},
new
cof_alias
{
Alias
=
"调节后实发管理绩效"
,
Name
=
nameof
(
view_allot_sign_emp
.
PerforManagementFee
),
States
=
0
,
SumStatus
=
1
},
new
cof_alias
{
Alias
=
"调节后其他绩效"
,
Name
=
nameof
(
view_allot_sign_emp
.
AdjustLaterOtherFee
),
States
=
0
,
SumStatus
=
1
},
new
cof_alias
{
Alias
=
"夜班费"
,
Name
=
nameof
(
view_allot_sign_emp
.
NightWorkPerfor
),
States
=
0
,
SumStatus
=
1
},
new
cof_alias
{
Alias
=
"医院其他绩效"
,
Name
=
nameof
(
view_allot_sign_emp
.
OtherPerfor
),
States
=
0
,
SumStatus
=
1
},
new
cof_alias
{
Alias
=
"不公示其他绩效"
,
Name
=
nameof
(
view_allot_sign_emp
.
HideOtherPerfor
),
States
=
0
,
SumStatus
=
1
},
new
cof_alias
{
Alias
=
"应发小计"
,
Name
=
nameof
(
view_allot_sign_emp
.
ShouldGiveFee
),
States
=
0
,
SumStatus
=
1
},
new
cof_alias
{
Alias
=
"预留绩效"
,
Name
=
nameof
(
view_allot_sign_emp
.
ReservedRatioFee
),
States
=
0
,
SumStatus
=
1
},
new
cof_alias
{
Alias
=
"实发绩效"
,
Name
=
nameof
(
view_allot_sign_emp
.
RealGiveFee
),
States
=
0
,
SumStatus
=
1
},
new
cof_alias
{
Alias
=
"核算组别"
,
Name
=
nameof
(
view_allot_sign_emp
.
UnitType
),
States
=
1
,
SumStatus
=
0
},
new
cof_alias
{
Alias
=
"核算单元"
,
Name
=
nameof
(
view_allot_sign_emp
.
AccountingUnit
),
States
=
1
,
SumStatus
=
0
},
new
cof_alias
{
Alias
=
"员工号"
,
Name
=
nameof
(
view_allot_sign_emp
.
JobNumber
),
States
=
1
,
SumStatus
=
0
},
new
cof_alias
{
Alias
=
"人员姓名"
,
Name
=
nameof
(
view_allot_sign_emp
.
EmployeeName
),
States
=
1
,
SumStatus
=
0
},
new
cof_alias
{
Alias
=
"调节后业绩绩效"
,
Name
=
nameof
(
view_allot_sign_emp
.
PerforSumFee
),
States
=
1
,
SumStatus
=
1
},
new
cof_alias
{
Alias
=
"调节后实发管理绩效"
,
Name
=
nameof
(
view_allot_sign_emp
.
PerforManagementFee
),
States
=
1
,
SumStatus
=
1
},
new
cof_alias
{
Alias
=
"调节后其他绩效"
,
Name
=
nameof
(
view_allot_sign_emp
.
AdjustLaterOtherFee
),
States
=
1
,
SumStatus
=
1
},
new
cof_alias
{
Alias
=
"夜班费"
,
Name
=
nameof
(
view_allot_sign_emp
.
NightWorkPerfor
),
States
=
1
,
SumStatus
=
1
},
new
cof_alias
{
Alias
=
"医院其他绩效"
,
Name
=
nameof
(
view_allot_sign_emp
.
OtherPerfor
),
States
=
1
,
SumStatus
=
1
},
new
cof_alias
{
Alias
=
"不公示其他绩效"
,
Name
=
nameof
(
view_allot_sign_emp
.
HideOtherPerfor
),
States
=
1
,
SumStatus
=
1
},
new
cof_alias
{
Alias
=
"应发小计"
,
Name
=
nameof
(
view_allot_sign_emp
.
ShouldGiveFee
),
States
=
1
,
SumStatus
=
1
},
new
cof_alias
{
Alias
=
"预留绩效"
,
Name
=
nameof
(
view_allot_sign_emp
.
ReservedRatioFee
),
States
=
1
,
SumStatus
=
1
},
new
cof_alias
{
Alias
=
"实发绩效"
,
Name
=
nameof
(
view_allot_sign_emp
.
RealGiveFee
),
States
=
1
,
SumStatus
=
1
},
};
private
static
List
<
cof_alias
>
_allComputePersonViewByDate
=
new
List
<
cof_alias
>();
...
...
@@ -2372,8 +2372,8 @@ public static List<cof_alias> AllComputePersonViewByDate
{
if
(
_allComputePersonViewByDate
==
null
||
_allComputePersonViewByDate
.
Count
==
0
)
{
_allComputePersonViewByDate
.
Add
(
new
cof_alias
{
Alias
=
"年份"
,
Name
=
nameof
(
view_allot_sign_emp
.
Year
),
States
=
0
,
SumStatus
=
0
});
_allComputePersonViewByDate
.
Add
(
new
cof_alias
{
Alias
=
"月份"
,
Name
=
nameof
(
view_allot_sign_emp
.
Month
),
States
=
0
,
SumStatus
=
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
;
...
...
@@ -2381,24 +2381,24 @@ public static List<cof_alias> AllComputePersonViewByDate
}
public
static
List
<
cof_alias
>
AllComputeDepartmentView
{
get
;
}
=
new
List
<
cof_alias
>
{
new
cof_alias
{
Alias
=
"核算组别"
,
Name
=
nameof
(
view_allot_sign_dept
.
UnitType
),
States
=
0
,
SumStatus
=
0
},
new
cof_alias
{
Alias
=
"核算单元"
,
Name
=
nameof
(
view_allot_sign_dept
.
AccountingUnit
),
States
=
0
,
SumStatus
=
0
},
new
cof_alias
{
Alias
=
"业绩绩效"
,
Name
=
nameof
(
view_allot_sign_dept
.
PerforFee
),
States
=
0
,
SumStatus
=
1
},
new
cof_alias
{
Alias
=
"工作量绩效"
,
Name
=
nameof
(
view_allot_sign_dept
.
WorkloadFee
),
States
=
0
,
SumStatus
=
1
},
new
cof_alias
{
Alias
=
"考核前其他绩效"
,
Name
=
nameof
(
view_allot_sign_dept
.
AssessBeforeOtherFee
),
States
=
0
,
SumStatus
=
1
},
new
cof_alias
{
Alias
=
"考核前绩效合计"
,
Name
=
nameof
(
view_allot_sign_dept
.
PerforTotal
),
States
=
0
,
SumStatus
=
1
},
new
cof_alias
{
Alias
=
"科室考核得分"
,
Name
=
nameof
(
view_allot_sign_dept
.
ScoringAverage
),
States
=
0
,
SumStatus
=
1
},
new
cof_alias
{
Alias
=
"药占比奖罚"
,
Name
=
nameof
(
view_allot_sign_dept
.
MedicineExtra
),
States
=
0
,
SumStatus
=
1
},
new
cof_alias
{
Alias
=
"材料占比奖罚"
,
Name
=
nameof
(
view_allot_sign_dept
.
MaterialsExtra
),
States
=
0
,
SumStatus
=
1
},
new
cof_alias
{
Alias
=
"医院奖罚"
,
Name
=
nameof
(
view_allot_sign_dept
.
Extra
),
States
=
0
,
SumStatus
=
1
},
new
cof_alias
{
Alias
=
"考核后其他绩效"
,
Name
=
nameof
(
view_allot_sign_dept
.
AssessLaterOtherFee
),
States
=
0
,
SumStatus
=
1
},
new
cof_alias
{
Alias
=
"考核后绩效"
,
Name
=
nameof
(
view_allot_sign_dept
.
AssessLaterPerforTotal
),
States
=
0
,
SumStatus
=
1
},
new
cof_alias
{
Alias
=
"调节系数"
,
Name
=
nameof
(
view_allot_sign_dept
.
AdjustFactor
),
States
=
0
,
SumStatus
=
1
},
new
cof_alias
{
Alias
=
"调节后其他绩效"
,
Name
=
nameof
(
view_allot_sign_dept
.
AdjustLaterOtherFee
),
States
=
0
,
SumStatus
=
1
},
new
cof_alias
{
Alias
=
"科主任实发管理绩效"
,
Name
=
nameof
(
view_allot_sign_dept
.
AssessLaterManagementFee
),
States
=
0
,
SumStatus
=
1
},
new
cof_alias
{
Alias
=
"医院其他绩效"
,
Name
=
nameof
(
view_allot_sign_dept
.
AprPerforAmount
),
States
=
0
,
SumStatus
=
1
},
new
cof_alias
{
Alias
=
"不公示其他绩效"
,
Name
=
nameof
(
view_allot_sign_dept
.
HideAprOtherPerforAmount
),
States
=
0
,
SumStatus
=
1
},
new
cof_alias
{
Alias
=
"实发绩效"
,
Name
=
nameof
(
view_allot_sign_dept
.
RealGiveFee
),
States
=
0
,
SumStatus
=
1
},
new
cof_alias
{
Alias
=
"核算组别"
,
Name
=
nameof
(
view_allot_sign_dept
.
UnitType
),
States
=
1
,
SumStatus
=
0
},
new
cof_alias
{
Alias
=
"核算单元"
,
Name
=
nameof
(
view_allot_sign_dept
.
AccountingUnit
),
States
=
1
,
SumStatus
=
0
},
new
cof_alias
{
Alias
=
"业绩绩效"
,
Name
=
nameof
(
view_allot_sign_dept
.
PerforFee
),
States
=
1
,
SumStatus
=
1
},
new
cof_alias
{
Alias
=
"工作量绩效"
,
Name
=
nameof
(
view_allot_sign_dept
.
WorkloadFee
),
States
=
1
,
SumStatus
=
1
},
new
cof_alias
{
Alias
=
"考核前其他绩效"
,
Name
=
nameof
(
view_allot_sign_dept
.
AssessBeforeOtherFee
),
States
=
1
,
SumStatus
=
1
},
new
cof_alias
{
Alias
=
"考核前绩效合计"
,
Name
=
nameof
(
view_allot_sign_dept
.
PerforTotal
),
States
=
1
,
SumStatus
=
1
},
new
cof_alias
{
Alias
=
"科室考核得分"
,
Name
=
nameof
(
view_allot_sign_dept
.
ScoringAverage
),
States
=
1
,
SumStatus
=
1
},
new
cof_alias
{
Alias
=
"药占比奖罚"
,
Name
=
nameof
(
view_allot_sign_dept
.
MedicineExtra
),
States
=
1
,
SumStatus
=
1
},
new
cof_alias
{
Alias
=
"材料占比奖罚"
,
Name
=
nameof
(
view_allot_sign_dept
.
MaterialsExtra
),
States
=
1
,
SumStatus
=
1
},
new
cof_alias
{
Alias
=
"医院奖罚"
,
Name
=
nameof
(
view_allot_sign_dept
.
Extra
),
States
=
1
,
SumStatus
=
1
},
new
cof_alias
{
Alias
=
"考核后其他绩效"
,
Name
=
nameof
(
view_allot_sign_dept
.
AssessLaterOtherFee
),
States
=
1
,
SumStatus
=
1
},
new
cof_alias
{
Alias
=
"考核后绩效"
,
Name
=
nameof
(
view_allot_sign_dept
.
AssessLaterPerforTotal
),
States
=
1
,
SumStatus
=
1
},
new
cof_alias
{
Alias
=
"调节系数"
,
Name
=
nameof
(
view_allot_sign_dept
.
AdjustFactor
),
States
=
1
,
SumStatus
=
1
},
new
cof_alias
{
Alias
=
"调节后其他绩效"
,
Name
=
nameof
(
view_allot_sign_dept
.
AdjustLaterOtherFee
),
States
=
1
,
SumStatus
=
1
},
new
cof_alias
{
Alias
=
"科主任实发管理绩效"
,
Name
=
nameof
(
view_allot_sign_dept
.
AssessLaterManagementFee
),
States
=
1
,
SumStatus
=
1
},
new
cof_alias
{
Alias
=
"医院其他绩效"
,
Name
=
nameof
(
view_allot_sign_dept
.
AprPerforAmount
),
States
=
1
,
SumStatus
=
1
},
new
cof_alias
{
Alias
=
"不公示其他绩效"
,
Name
=
nameof
(
view_allot_sign_dept
.
HideAprOtherPerforAmount
),
States
=
1
,
SumStatus
=
1
},
new
cof_alias
{
Alias
=
"实发绩效"
,
Name
=
nameof
(
view_allot_sign_dept
.
RealGiveFee
),
States
=
1
,
SumStatus
=
1
},
};
private
static
List
<
cof_alias
>
_allComputeDepartmentViewByDate
=
new
List
<
cof_alias
>();
public
static
List
<
cof_alias
>
AllComputeDepartmentViewByDate
...
...
@@ -2407,8 +2407,8 @@ public static List<cof_alias> AllComputeDepartmentViewByDate
{
if
(
_allComputeDepartmentViewByDate
==
null
||
_allComputeDepartmentViewByDate
.
Count
==
0
)
{
_allComputeDepartmentViewByDate
.
Add
(
new
cof_alias
{
Alias
=
"年份"
,
Name
=
nameof
(
view_allot_sign_emp
.
Year
),
States
=
0
,
SumStatus
=
0
});
_allComputeDepartmentViewByDate
.
Add
(
new
cof_alias
{
Alias
=
"月份"
,
Name
=
nameof
(
view_allot_sign_emp
.
Month
),
States
=
0
,
SumStatus
=
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/ReportGlobalService.cs
View file @
cd53ba09
...
...
@@ -541,9 +541,8 @@ public HandsonTable GetReportPersonTag(int hospitalId, int allotId)
join
t2
in
tdata
on
t1
.
PersonnelNumber
equals
t2
.
PersonnelNumber
into
temp
from
t
in
temp
.
DefaultIfEmpty
()
select
new
select
new
{
Id
=
t1
.
Id
,
PersonnelNumber
=
t1
.
PersonnelNumber
,
DoctorName
=
t1
.
DoctorName
,
JobCategory
=
t1
.
JobCategory
,
...
...
@@ -594,53 +593,81 @@ select new
//}
result
.
SetRowData
(
rowDatas
,
rowDatas
!=
null
);
result
.
Columns
?.
ForEach
(
t
=>
t
.
Type
=
"text"
);
return
result
;
}
public
void
SaveReportPersonTag
(
int
hospital
Id
,
SaveCollectData
request
)
public
List
<
string
>
SaveReportPersonTag
(
int
hospitalId
,
int
allot
Id
,
SaveCollectData
request
)
{
var
employees
=
perforPeremployeeRepository
.
GetEntities
(
t
=>
t
.
AllotId
==
allotId
);
if
(
employees
==
null
||
!
employees
.
Any
())
throw
new
PerformanceException
(
"人员字典中未保存数据"
);
var
dicData
=
CreateDataRow
(
hospitalId
,
request
,
PersonTag
);
var
tags
=
reportperformancepersontagsRepository
.
GetEntities
(
t
=>
t
.
HospitalId
==
hospitalId
);
//工号不存在
List
<
string
>
personnelNumber
=
dicData
.
Select
(
item
=>
item
[
"PersonnelNumber"
])?.
ToList
();
var
notIn
=
personnelNumber
.
Except
(
employees
.
Select
(
t
=>
t
.
PersonnelNumber
).
ToList
())?.
ToList
();
if
(
notIn
!=
null
&&
notIn
.
Count
>
0
)
return
notIn
;
List
<
report_performance_person_tags
>
personTags
=
new
List
<
report_performance_person_tags
>();
var
upEmployees
=
new
List
<
per_employee
>();
var
newTags
=
new
List
<
report_performance_person_tags
>();
var
upTags
=
new
List
<
report_performance_person_tags
>();
foreach
(
var
item
in
dicData
)
{
if
(!
item
.
ContainsKey
(
"PersonnelNumber"
)
||
string
.
IsNullOrEmpty
(
item
[
"PersonnelNumber"
]))
continue
;
var
employee
=
employees
.
FirstOrDefault
(
t
=>
t
.
PersonnelNumber
==
item
[
"PersonnelNumber"
]);
if
(
employee
==
null
)
continue
;
var
json
=
JsonHelper
.
Serialize
(
item
);
#
region
人员字典表
var
pdata
=
JsonHelper
.
Deserialize
<
per_employee
>(
json
);
employee
.
PersonnelNumber
=
pdata
.
PersonnelNumber
;
employee
.
DoctorName
=
pdata
.
DoctorName
;
employee
.
JobCategory
=
pdata
.
JobCategory
;
employee
.
Duty
=
pdata
.
Duty
;
employee
.
JobTitle
=
pdata
.
JobTitle
;
employee
.
AttendanceDay
=
pdata
.
AttendanceDay
;
employee
.
ReservedRatio
=
pdata
.
ReservedRatio
;
employee
.
BankCard
=
pdata
.
BankCard
;
employee
.
Remark
=
pdata
.
Remark
;
upEmployees
.
Add
(
employee
);
#
endregion
#
region
人员标签表
var
tdata
=
JsonHelper
.
Deserialize
<
report_performance_person_tags
>(
json
);
tdata
.
Id
=
0
;
tdata
.
PersonnelName
=
item
[
"DoctorName"
]?.
ToString
();
if
(
/*!string.IsNullOrEmpty(data.UnitType) && !string.IsNullOrEmpty(data.AccountingUnit) && */
!
string
.
IsNullOrEmpty
(
tdata
.
PersonnelName
)
&&
!
string
.
IsNullOrEmpty
(
tdata
.
PersonnelNumber
)
&&
!
string
.
IsNullOrEmpty
(
tdata
.
Tag1
)
&&
!
string
.
IsNullOrEmpty
(
tdata
.
Tag2
))
{
tdata
.
CreateTime
=
Convert
.
ToDateTime
(
DateTime
.
Now
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
));
personTags
.
Add
(
tdata
);
}
tdata
.
CreateTime
=
DateTime
.
Now
;
var
table
=
perforPeremployeeRepository
.
GetEntities
(
t
=>
t
.
Id
.
ToString
()
==
item
[
"Id"
]).
FirstOrDefault
();
var
pdata
=
JsonHelper
.
Deserialize
<
per_employee
>(
json
);
if
(
/*!string.IsNullOrEmpty(data.UnitType) && !string.IsNullOrEmpty(pdata.AccountingUnit) && */
!
string
.
IsNullOrEmpty
(
pdata
.
DoctorName
)
&&
!
string
.
IsNullOrEmpty
(
pdata
.
PersonnelNumber
)
&&
table
!=
null
)
var
tag
=
tags
.
FirstOrDefault
(
t
=>
t
.
PersonnelNumber
==
item
[
"PersonnelNumber"
]);
if
(
tag
!=
null
)
{
pdata
.
CreateTime
=
Convert
.
ToDateTime
(
DateTime
.
Now
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
));
table
.
PersonnelNumber
=
pdata
.
PersonnelNumber
;
table
.
DoctorName
=
pdata
.
DoctorName
;
table
.
JobCategory
=
pdata
.
JobCategory
;
table
.
Duty
=
pdata
.
Duty
;
table
.
JobTitle
=
pdata
.
JobTitle
;
table
.
AttendanceDay
=
pdata
.
AttendanceDay
;
table
.
ReservedRatio
=
pdata
.
ReservedRatio
;
table
.
BankCard
=
pdata
.
BankCard
;
table
.
Remark
=
pdata
.
Remark
;
perforPeremployeeRepository
.
Update
(
table
);
tag
.
PersonnelName
=
tdata
.
PersonnelName
;
tag
.
PersonnelNumber
=
tdata
.
PersonnelNumber
;
tag
.
Tag1
=
tdata
.
Tag1
;
tag
.
Tag2
=
tdata
.
Tag2
;
tag
.
Tag3
=
tdata
.
Tag3
;
tag
.
Tag4
=
tdata
.
Tag4
;
tag
.
Tag5
=
tdata
.
Tag5
;
upTags
.
Add
(
tag
);
}
if
(
table
==
null
)
perforPeremployeeRepository
.
Add
(
pdata
);
else
newTags
.
Add
(
tdata
);
#
endregion
}
reportperformancepersontagsRepository
.
Execute
(
"delete from report_performance_person_tags where HospitalId=@hospitalId"
,
new
{
hospitalId
});
reportperformancepersontagsRepository
.
AddRange
(
personTags
.
ToArray
());
if
(
upEmployees
!=
null
&&
upEmployees
.
Any
())
perforPeremployeeRepository
.
UpdateRange
(
upEmployees
.
ToArray
());
if
(
newTags
!=
null
&&
newTags
.
Any
())
reportperformancepersontagsRepository
.
AddRange
(
newTags
.
ToArray
());
if
(
upTags
!=
null
&&
upTags
.
Any
())
reportperformancepersontagsRepository
.
UpdateRange
(
upTags
.
ToArray
());
return
new
List
<
string
>();
}
public
HandsonTable
GetReportTag
(
int
hospitalId
)
...
...
@@ -695,7 +722,7 @@ public void SaveReportTag(int hospitalId, SaveCollectData request)
//{nameof(report_performance_person_tags.UnitType), "核算单元类型"},
//{nameof(report_performance_person_tags.AccountingUnit), "科室"},
{
nameof
(
per_employee
.
Id
),
"Id"
},
//
{nameof(per_employee.Id), "Id"},
{
nameof
(
per_employee
.
PersonnelNumber
),
"工号"
},
{
nameof
(
per_employee
.
DoctorName
),
"姓名"
},
{
nameof
(
per_employee
.
JobCategory
),
"正式/临聘"
},
...
...
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