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
081bd1ba
Commit
081bd1ba
authored
Jul 08, 2021
by
lcx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
工作量计算结果包含cmi系数值
parent
39985a14
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
7 deletions
+9
-7
performance/Performance.Services/AllotCompute/ProcessComputService.cs
+2
-2
performance/Performance.Services/ComputeService.cs
+5
-5
performance/Performance.Services/PerExcelService/SheetDataCompute/PerSheetDataComputeWorkload.cs
+2
-0
No files found.
performance/Performance.Services/AllotCompute/ProcessComputService.cs
View file @
081bd1ba
...
@@ -325,8 +325,8 @@ public List<PerSheet> Compute(PerExcel excel, List<PerSheet> perSheet, per_allot
...
@@ -325,8 +325,8 @@ public List<PerSheet> Compute(PerExcel excel, List<PerSheet> perSheet, per_allot
dept
.
PerforFee
=
dept
.
Income
*
dept
.
BasicFactor
;
dept
.
PerforFee
=
dept
.
Income
*
dept
.
BasicFactor
;
//dept.PerforTotal = Math.Round((dept.PerforFee + dept.WorkloadFee + dept.OtherPerfor1 + dept.AssessBeforeOtherFee) ?? 0);
//dept.PerforTotal = Math.Round((dept.PerforFee + dept.WorkloadFee + dept.OtherPerfor1 + dept.AssessBeforeOtherFee) ?? 0);
dept
.
PerforTotal
=
Math
.
Round
((
dept
.
PerforFee
+
dept
.
WorkloadFee
+
dept
.
AssessBeforeOtherFee
)
??
0
);
dept
.
PerforTotal
=
Math
.
Round
((
dept
.
PerforFee
+
dept
.
WorkloadFee
+
dept
.
AssessBeforeOtherFee
)
??
0
);
dept
.
AssessLaterPerforTotal
=
Math
.
Round
((
dept
.
PerforTotal
*
dept
.
ScoringAverage
+
dept
.
MedicineExtra
+
dept
.
MaterialsExtra
+
dept
.
Extra
+
dept
.
AssessLaterOtherFee
)
??
0
);
dept
.
AssessLaterPerforTotal
=
Math
.
Round
((
dept
.
PerforTotal
*
dept
.
ScoringAverage
+
dept
.
MedicineExtra
+
dept
.
MaterialsExtra
+
dept
.
Extra
+
dept
.
AssessLaterOtherFee
)
??
0
,
MidpointRounding
.
AwayFromZero
);
dept
.
RealGiveFee
=
Math
.
Round
((
dept
.
AssessLaterPerforTotal
*
dept
.
AdjustFactor
+
dept
.
AdjustLaterOtherFee
)
??
0
);
dept
.
RealGiveFee
=
Math
.
Round
((
dept
.
AssessLaterPerforTotal
*
dept
.
AdjustFactor
+
dept
.
AdjustLaterOtherFee
)
??
0
,
MidpointRounding
.
AwayFromZero
);
//dept.Avg = dept.ManagerNumber + dept.Number == 0 ? 0 : dept.PerforTotal / (dept.ManagerNumber + dept.Number);
//dept.Avg = dept.ManagerNumber + dept.Number == 0 ? 0 : dept.PerforTotal / (dept.ManagerNumber + dept.Number);
dept
.
Avg
=
dept
.
Number
==
0
?
0
:
dept
.
PerforTotal
/
dept
.
Number
;
dept
.
Avg
=
dept
.
Number
==
0
?
0
:
dept
.
PerforTotal
/
dept
.
Number
;
...
...
performance/Performance.Services/ComputeService.cs
View file @
081bd1ba
...
@@ -541,7 +541,7 @@ public List<DeptResponse> GetAdminPerformance(int allotId)
...
@@ -541,7 +541,7 @@ public List<DeptResponse> GetAdminPerformance(int allotId)
MedicineExtra
=
t
.
Max
(
w
=>
w
.
MedicineExtra
),
MedicineExtra
=
t
.
Max
(
w
=>
w
.
MedicineExtra
),
MaterialsExtra
=
t
.
Max
(
w
=>
w
.
MaterialsExtra
),
MaterialsExtra
=
t
.
Max
(
w
=>
w
.
MaterialsExtra
),
AssessLaterOtherFee
=
t
.
Max
(
w
=>
w
.
AssessLaterOtherFee
),
AssessLaterOtherFee
=
t
.
Max
(
w
=>
w
.
AssessLaterOtherFee
),
AssessLaterPerforTotal
=
Math
.
Round
((
t
.
Max
(
w
=>
w
.
PerforTotal
)
*
t
.
Max
(
w
=>
w
.
ScoringAverage
)
+
t
.
Max
(
w
=>
w
.
MedicineExtra
)
+
t
.
Max
(
w
=>
w
.
MaterialsExtra
)
+
t
.
Max
(
w
=>
w
.
Punishment
)
+
t
.
Max
(
w
=>
w
.
AssessLaterOtherFee
))
??
0
),
AssessLaterPerforTotal
=
Math
.
Round
((
t
.
Max
(
w
=>
w
.
PerforTotal
)
*
t
.
Max
(
w
=>
w
.
ScoringAverage
)
+
t
.
Max
(
w
=>
w
.
MedicineExtra
)
+
t
.
Max
(
w
=>
w
.
MaterialsExtra
)
+
t
.
Max
(
w
=>
w
.
Punishment
)
+
t
.
Max
(
w
=>
w
.
AssessLaterOtherFee
))
??
0
,
MidpointRounding
.
AwayFromZero
),
AdjustFactor
=
t
.
Max
(
w
=>
w
.
Adjust
),
AdjustFactor
=
t
.
Max
(
w
=>
w
.
Adjust
),
AdjustLaterOtherFee
=
t
.
Max
(
w
=>
w
.
AdjustLaterOtherFee
),
AdjustLaterOtherFee
=
t
.
Max
(
w
=>
w
.
AdjustLaterOtherFee
),
AssessLaterManagementFee
=
clinicalComputes
?.
Where
(
w
=>
w
.
AccountingUnit
==
t
.
Key
.
AccountingUnit
&&
w
.
UnitType
==
UnitType
.
特殊核算组
.
ToString
())?.
Sum
(
c
=>
c
.
RealGiveFee
),
AssessLaterManagementFee
=
clinicalComputes
?.
Where
(
w
=>
w
.
AccountingUnit
==
t
.
Key
.
AccountingUnit
&&
w
.
UnitType
==
UnitType
.
特殊核算组
.
ToString
())?.
Sum
(
c
=>
c
.
RealGiveFee
),
...
@@ -899,9 +899,9 @@ public List<ComputeResponse> AllCompute(int allotId, int hospitalId, int isShowM
...
@@ -899,9 +899,9 @@ public List<ComputeResponse> AllCompute(int allotId, int hospitalId, int isShowM
//item.EmployeeName = employees?.FirstOrDefault(w => w.PersonnelNumber == item.JobNumber)?.DoctorName ?? "";
//item.EmployeeName = employees?.FirstOrDefault(w => w.PersonnelNumber == item.JobNumber)?.DoctorName ?? "";
item
.
BankCard
=
emps
?.
BankCard
??
""
;
item
.
BankCard
=
emps
?.
BankCard
??
""
;
item
.
JobCategory
=
emps
?.
JobCategory
??
""
;
item
.
JobCategory
=
emps
?.
JobCategory
??
""
;
item
.
Duty
=
emps
?.
Duty
??
""
;
item
.
Duty
=
emps
?.
Duty
??
""
;
item
.
TitlePosition
=
emps
?.
JobTitle
??
""
;
item
.
TitlePosition
=
emps
?.
JobTitle
??
""
;
// 人员信息使用人员字典中数据
// 人员信息使用人员字典中数据
if
(
isEmpDic
)
if
(
isEmpDic
)
{
{
...
@@ -1920,7 +1920,7 @@ private decimal GetDecimal(decimal? value, decimal _ = 0)
...
@@ -1920,7 +1920,7 @@ private decimal GetDecimal(decimal? value, decimal _ = 0)
public
List
<
cof_alias
>
CustomColumnHeaders
(
ComputerAliasRequest
request
)
public
List
<
cof_alias
>
CustomColumnHeaders
(
ComputerAliasRequest
request
)
{
{
var
result
=
cofaliasRepository
.
GetEntities
(
t
=>
t
.
HospitalId
==
request
.
HospitalId
&&
t
.
Route
==
request
.
Route
&&
t
.
States
==
1
);
var
result
=
cofaliasRepository
.
GetEntities
(
t
=>
t
.
HospitalId
==
request
.
HospitalId
&&
t
.
Route
==
request
.
Route
&&
t
.
States
==
1
);
if
(
result
==
null
||
!
result
.
Any
())
return
new
List
<
cof_alias
>();
if
(
result
==
null
||
!
result
.
Any
())
return
new
List
<
cof_alias
>();
return
result
;
return
result
;
}
}
...
...
performance/Performance.Services/PerExcelService/SheetDataCompute/PerSheetDataComputeWorkload.cs
View file @
081bd1ba
...
@@ -157,6 +157,8 @@ public PerSheet OnceCompute(PerSheet sheet, List<CofDrugProp> confs = null)
...
@@ -157,6 +157,8 @@ public PerSheet OnceCompute(PerSheet sheet, List<CofDrugProp> confs = null)
var
value
=
group
.
Sum
(
s
=>
var
value
=
group
.
Sum
(
s
=>
{
{
if
(
s
.
TypeName
==
"CMI系数"
)
return
0
;
var
cellvalue
=
s
.
IsFactor
?
s
.
CellValue
*
s
.
FactorValue
:
s
.
CellValue
;
var
cellvalue
=
s
.
IsFactor
?
s
.
CellValue
*
s
.
FactorValue
:
s
.
CellValue
;
if
(
workitems
.
Any
(
w
=>
w
.
Type
==
3
&&
w
.
Item
==
s
.
TypeName
))
if
(
workitems
.
Any
(
w
=>
w
.
Type
==
3
&&
w
.
Item
==
s
.
TypeName
))
cellvalue
=
cellvalue
*
inclinefactor
;
cellvalue
=
cellvalue
*
inclinefactor
;
...
...
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