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
961909b0
Commit
961909b0
authored
Sep 26, 2021
by
ruyun.zhang@suvalue.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
二次分配新增分配科室及不需要二次分配行政工勤带出业绩绩效
parent
8279aa70
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
27 additions
and
8 deletions
+27
-8
performance/Performance.Api/wwwroot/Performance.EntityModels.xml
+5
-0
performance/Performance.EntityModels/Entity/ag_bodysource.cs
+5
-0
performance/Performance.Services/AllotCompute/ProcessComputService.cs
+0
-1
performance/Performance.Services/ComputeService.cs
+1
-1
performance/Performance.Services/RedistributionService.cs
+16
-6
No files found.
performance/Performance.Api/wwwroot/Performance.EntityModels.xml
View file @
961909b0
...
...
@@ -450,6 +450,11 @@
科室
</summary>
</member>
<member
name=
"P:Performance.EntityModels.ag_bodysource.AccountingUnit"
>
<summary>
核算单元
</summary>
</member>
<member
name=
"P:Performance.EntityModels.ag_bodysource.Post"
>
<summary>
岗位
...
...
performance/Performance.EntityModels/Entity/ag_bodysource.cs
View file @
961909b0
...
...
@@ -47,6 +47,11 @@ public class ag_bodysource
public
string
Department
{
get
;
set
;
}
/// <summary>
/// 核算单元
/// </summary>
public
string
AccountingUnit
{
get
;
set
;
}
/// <summary>
/// 岗位
/// </summary>
public
string
Post
{
get
;
set
;
}
...
...
performance/Performance.Services/AllotCompute/ProcessComputService.cs
View file @
961909b0
...
...
@@ -416,7 +416,6 @@ public void ComputeOffice(per_allot allot, PerExcel excel)
//dept.MedicineExtra = 0;// (drugExtra ?? 0);
//dept.MaterialsExtra = 0;//(materialsExtra ?? 0);
dept
.
PerforFee
=
empolyees
.
Sum
(
w
=>
w
.
PerforTotal
??
0
);
dept
.
PerforTotal
=
Math
.
Round
(
empolyees
.
Sum
(
w
=>
w
.
GiveFee
??
0
),
MidpointRounding
.
AwayFromZero
);
dept
.
AssessLaterPerforTotal
=
Math
.
Round
((
dept
.
PerforTotal
*
dept
.
ScoringAverage
+
dept
.
MedicineExtra
+
dept
.
MaterialsExtra
+
dept
.
Extra
)
??
0
,
MidpointRounding
.
AwayFromZero
);
...
...
performance/Performance.Services/ComputeService.cs
View file @
961909b0
...
...
@@ -590,7 +590,7 @@ public List<DeptResponse> GetAdminPerformance(int allotId)
UnitName
=
t
.
Key
.
AccountType
==
"行政后勤"
?
"行政工勤"
:
t
.
Key
.
AccountType
,
AccountingUnit
=
t
.
Key
.
AccountingUnit
,
Department
=
t
.
Key
.
AccountingUnit
,
PerforFee
=
0
,
PerforFee
=
t
.
Sum
(
w
=>
w
.
PerforTotal
)
,
WorkloadFee
=
0
,
AssessBeforeOtherFee
=
0
,
PerforTotal
=
t
.
Sum
(
w
=>
w
.
PerforTotal
),
...
...
performance/Performance.Services/RedistributionService.cs
View file @
961909b0
...
...
@@ -176,7 +176,8 @@ public List<SecondColumnDictionary> GetTableHeaderDictionary(ComputeMode compute
{
new
SecondColumnDictionary
(
"人员工号"
,
nameof
(
ag_bodysource
.
WorkNumber
),
true
,
100
),
new
SecondColumnDictionary
(
"姓名"
,
nameof
(
ag_bodysource
.
Name
),
true
,
100
),
new
SecondColumnDictionary
(
"科室"
,
nameof
(
ag_bodysource
.
Department
),
true
,
100
),
new
SecondColumnDictionary
(
"分配科室"
,
nameof
(
ag_bodysource
.
Department
),
true
,
100
),
new
SecondColumnDictionary
(
"核算单元"
,
nameof
(
ag_bodysource
.
AccountingUnit
),
true
,
100
),
new
SecondColumnDictionary
(
"职称绩效"
,
nameof
(
ag_bodysource
.
TitlePerformance
),
true
,
299
),
...
...
@@ -495,7 +496,8 @@ List<ag_bodysource> LoadEmployeeByDictionary(ag_secondallot second, List<per_emp
var
data
=
new
ag_bodysource
{
SecondId
=
second
.
Id
,
Department
=
existEmp
?.
AccountingUnit
??
""
,
Department
=
second
.
Department
??
""
,
AccountingUnit
=
existEmp
?.
AccountingUnit
??
""
,
WorkNumber
=
personnelNumber
,
Name
=
existEmp
?.
DoctorName
??
"花名册无信息"
,
JobTitle
=
existEmp
?.
JobTitle
??
""
,
...
...
@@ -792,7 +794,8 @@ public void SupplementOtherPerfor(ag_secondallot second, List<Dictionary<string,
{
nameof
(
ag_bodysource
.
SecondId
),
second
.
Id
},
{
nameof
(
ag_bodysource
.
WorkNumber
),
item
.
Key
.
PersonnelNumber
},
{
nameof
(
ag_bodysource
.
Name
),
item
.
Key
.
DoctorName
},
{
nameof
(
ag_bodysource
.
Department
),
item
.
Key
.
AccountingUnit
},
{
nameof
(
ag_bodysource
.
Department
),
second
.
Department
},
{
nameof
(
ag_bodysource
.
AccountingUnit
),
item
.
Key
.
AccountingUnit
},
{
nameof
(
ag_bodysource
.
OtherPerformance
),
item
.
Sum
(
w
=>
w
.
Amount
)},
});
}
...
...
@@ -1298,7 +1301,12 @@ public List<SecondComputeCheckResultDto> CheckData(ag_secondallot second, Comput
?.
Select
(
w
=>
new
{
w
.
PersonnelNumber
,
w
.
DoctorName
,
w
.
AccountingUnit
,
w
.
UnitType
,
w
.
ReservedRatio
});
var
handsonTable
=
GetHandsonTable
(
computeMode
,
loads
);
var
fixat
=
new
string
[]
{
nameof
(
ag_bodysource
.
Id
).
ToLower
(),
nameof
(
ag_bodysource
.
SecondId
).
ToLower
(),
nameof
(
ag_bodysource
.
Department
).
ToLower
()
};
var
fixat
=
new
string
[]
{
nameof
(
ag_bodysource
.
Id
).
ToLower
(),
nameof
(
ag_bodysource
.
SecondId
).
ToLower
(),
nameof
(
ag_bodysource
.
Department
).
ToLower
(),
nameof
(
ag_bodysource
.
AccountingUnit
).
ToLower
()
};
for
(
int
i
=
0
;
i
<
body
.
Count
;
i
++)
{
var
item
=
body
[
i
];
...
...
@@ -1321,7 +1329,8 @@ public List<SecondComputeCheckResultDto> CheckData(ag_secondallot second, Comput
{
var
emp
=
employees
?.
FirstOrDefault
(
w
=>
w
.
PersonnelNumber
==
number
&&
w
.
DoctorName
==
name
);
item
.
AddOrUpdate
(
nameof
(
ResponseType
),
ResponseType
.
OK
);
item
.
AddOrUpdate
(
nameof
(
ag_bodysource
.
Department
),
emp
?.
AccountingUnit
??
""
);
item
.
AddOrUpdate
(
nameof
(
ag_bodysource
.
Department
),
second
.
Department
??
""
);
item
.
AddOrUpdate
(
nameof
(
ag_bodysource
.
AccountingUnit
),
emp
?.
AccountingUnit
??
""
);
item
.
AddOrUpdate
(
nameof
(
ag_bodysource
.
ReservedRatio
),
emp
?.
ReservedRatio
??
0
);
}
}
...
...
@@ -1416,7 +1425,8 @@ public object RedistributionEmployee(SecondEmployeeDto request)
item
.
Add
(
nameof
(
per_employee
.
UnitType
),
employee
.
UnitType
);
item
.
Add
(
nameof
(
ag_bodysource
.
SecondId
),
request
.
SecondId
);
item
.
Add
(
nameof
(
ag_bodysource
.
Department
),
employee
.
AccountingUnit
);
item
.
Add
(
nameof
(
ag_bodysource
.
Department
),
second
.
Department
);
item
.
Add
(
nameof
(
ag_bodysource
.
AccountingUnit
),
employee
.
AccountingUnit
);
item
.
Add
(
nameof
(
ag_bodysource
.
Name
),
employee
.
DoctorName
);
item
.
Add
(
nameof
(
ag_bodysource
.
WorkNumber
),
employee
.
PersonnelNumber
);
item
.
Add
(
nameof
(
ag_bodysource
.
JobTitle
),
employee
.
JobTitle
);
...
...
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