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
56261cca
Commit
56261cca
authored
Jan 19, 2021
by
ruyun.zhang@suvalue.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
药占比CMI工作量倾斜
parent
88a437e0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
performance/Performance.Services/ComputeService.cs
+8
-8
No files found.
performance/Performance.Services/ComputeService.cs
View file @
56261cca
...
@@ -758,7 +758,7 @@ public DeptDataDetails<DetailModuleExtend> DeptDetail(int accountId)
...
@@ -758,7 +758,7 @@ public DeptDataDetails<DetailModuleExtend> DeptDetail(int accountId)
{
{
(
int
)
SheetType
.
Income
,
(
int
)
SheetType
.
OtherIncome
,
(
int
)
SheetType
.
Expend
,
(
int
)
SheetType
.
Workload
,
(
int
)
SheetType
.
Income
,
(
int
)
SheetType
.
OtherIncome
,
(
int
)
SheetType
.
Expend
,
(
int
)
SheetType
.
Workload
,
(
int
)
SheetType
.
AccountExtra
,(
int
)
SheetType
.
AccountDrugAssess
,
(
int
)
SheetType
.
AccountMaterialsAssess
,
(
int
)
SheetType
.
AccountScoreAverage
,
(
int
)
SheetType
.
AccountExtra
,(
int
)
SheetType
.
AccountDrugAssess
,
(
int
)
SheetType
.
AccountMaterialsAssess
,
(
int
)
SheetType
.
AccountScoreAverage
,
(
int
)
SheetType
.
AccountAdjustLaterOtherFee
,
(
int
)
SheetType
.
BudgetRatio
,
(
int
)
SheetType
.
AssessBeforeOtherFee
(
int
)
SheetType
.
AccountAdjustLaterOtherFee
,
(
int
)
SheetType
.
BudgetRatio
,
(
int
)
SheetType
.
AssessBeforeOtherFee
,
};
};
int
groupbasis
=
1
;
string
single
=
""
;
int
groupbasis
=
1
;
string
single
=
""
;
...
@@ -787,9 +787,9 @@ public DeptDataDetails<DetailModuleExtend> DeptDetail(int accountId)
...
@@ -787,9 +787,9 @@ public DeptDataDetails<DetailModuleExtend> DeptDetail(int accountId)
var
workitems
=
cofworkitemRepository
.
GetEntities
(
t
=>
t
.
AllotID
==
account
.
AllotID
);
var
workitems
=
cofworkitemRepository
.
GetEntities
(
t
=>
t
.
AllotID
==
account
.
AllotID
);
//var allotCmi = cofcmiRepository.GetEntity(t => t.AllotId == account.AllotID && t.UnitType == account.UnitType && t.AccountingUnit == account.AccountingUnit);
//var allotCmi = cofcmiRepository.GetEntity(t => t.AllotId == account.AllotID && t.UnitType == account.UnitType && t.AccountingUnit == account.AccountingUnit);
var
medicineFactor
=
GetFactors
(
persheet
,
basicData
,
SheetType
.
WorkloadMedicineProp
);
var
medicineFactor
=
GetFactors
(
persheet
,
basicData
,
type
,
SheetType
.
WorkloadMedicineProp
);
var
cmiFactor
=
GetFactors
(
persheet
,
basicData
,
SheetType
.
WorkloadCMI
);
var
cmiFactor
=
GetFactors
(
persheet
,
basicData
,
type
,
SheetType
.
WorkloadCMI
);
var
inclineFactor
=
GetFactors
(
persheet
,
basicData
,
SheetType
.
WorkloadIncline
);
var
inclineFactor
=
GetFactors
(
persheet
,
basicData
,
type
,
SheetType
.
WorkloadIncline
);
foreach
(
var
dto
in
items
)
foreach
(
var
dto
in
items
)
{
{
...
@@ -797,7 +797,7 @@ public DeptDataDetails<DetailModuleExtend> DeptDetail(int accountId)
...
@@ -797,7 +797,7 @@ public DeptDataDetails<DetailModuleExtend> DeptDetail(int accountId)
dto
.
MediFactor
=
medicineFactor
;
dto
.
MediFactor
=
medicineFactor
;
if
(
workitems
!=
null
&&
workitems
.
Any
(
a
=>
a
.
Type
==
2
&&
a
.
Item
==
dto
.
ItemName
)
&&
cmiFactor
!=
null
)
if
(
workitems
!=
null
&&
workitems
.
Any
(
a
=>
a
.
Type
==
2
&&
a
.
Item
==
dto
.
ItemName
)
&&
cmiFactor
!=
null
)
dto
.
CMIFactor
=
cmiFactor
;
dto
.
CMIFactor
=
cmiFactor
;
if
(
workitems
!=
null
&&
workitems
.
Any
(
a
=>
a
.
Type
==
2
&&
a
.
Item
==
dto
.
ItemName
)
&&
inclineFactor
!=
null
)
if
(
workitems
!=
null
&&
workitems
.
Any
(
a
=>
a
.
Type
==
3
&&
a
.
Item
==
dto
.
ItemName
)
&&
inclineFactor
!=
null
)
dto
.
InclineFactor
=
inclineFactor
;
dto
.
InclineFactor
=
inclineFactor
;
dto
.
ItemValue
=
dto
.
ItemValue
*
(
dto
.
MediFactor
??
1
)
*
(
dto
.
CMIFactor
??
1
)
*
(
dto
.
InclineFactor
??
1
);
dto
.
ItemValue
=
dto
.
ItemValue
*
(
dto
.
MediFactor
??
1
)
*
(
dto
.
CMIFactor
??
1
)
*
(
dto
.
InclineFactor
??
1
);
}
}
...
@@ -818,10 +818,10 @@ public DeptDataDetails<DetailModuleExtend> DeptDetail(int accountId)
...
@@ -818,10 +818,10 @@ public DeptDataDetails<DetailModuleExtend> DeptDetail(int accountId)
//return deptDetails;
//return deptDetails;
}
}
private
decimal
?
GetFactors
(
List
<
per_sheet
>
persheet
,
List
<
im_data
>
basicData
,
SheetType
sheetType
)
private
decimal
?
GetFactors
(
List
<
per_sheet
>
persheet
,
List
<
im_data
>
basicData
,
UnitType
type
,
SheetType
sheetType
)
{
{
var
sheet
=
persheet
.
FirstOrDefault
(
w
=>
w
.
SheetType
==
(
int
)
sheetType
);
var
sheet
=
persheet
.
FirstOrDefault
(
w
=>
w
.
SheetType
==
(
int
)
sheetType
);
return
basicData
.
FirstOrDefault
(
t
=>
t
.
SheetID
==
sheet
.
ID
&&
t
.
UnitType
==
(
int
)
sheetType
&&
t
.
IsTotal
!
=
1
)?.
CellValue
;
return
basicData
.
FirstOrDefault
(
t
=>
t
.
SheetID
==
sheet
.
ID
&&
t
.
UnitType
==
(
int
)
type
&&
t
.
IsTotal
=
=
1
)?.
CellValue
;
}
}
private
(
int
sheettype
,
decimal
amount
)
ClinicDepartmentDetail
(
List
<
per_sheet
>
persheet
,
res_account
account
,
List
<
im_data
>
basicData
,
per_sheet
sheet
,
UnitType
type
,
string
sheetName
)
private
(
int
sheettype
,
decimal
amount
)
ClinicDepartmentDetail
(
List
<
per_sheet
>
persheet
,
res_account
account
,
List
<
im_data
>
basicData
,
per_sheet
sheet
,
UnitType
type
,
string
sheetName
)
...
@@ -885,7 +885,7 @@ public DeptDataDetails<DetailModuleExtend> DeptDetail(int accountId)
...
@@ -885,7 +885,7 @@ public DeptDataDetails<DetailModuleExtend> DeptDetail(int accountId)
SheetType
[]
pairs
=
new
SheetType
[]
SheetType
[]
pairs
=
new
SheetType
[]
{
{
SheetType
.
AccountExtra
,
SheetType
.
AccountDrugAssess
,
SheetType
.
AccountMaterialsAssess
,
SheetType
.
AccountScoreAverage
,
SheetType
.
AccountAdjustLaterOtherFee
,
SheetType
.
AccountExtra
,
SheetType
.
AccountDrugAssess
,
SheetType
.
AccountMaterialsAssess
,
SheetType
.
AccountScoreAverage
,
SheetType
.
AccountAdjustLaterOtherFee
,
SheetType
.
AssessBeforeOtherFee
,
SheetType
.
BudgetRatio
SheetType
.
AssessBeforeOtherFee
,
SheetType
.
BudgetRatio
,
};
};
if
(
pairs
.
Contains
((
SheetType
)
sheet
.
SheetType
))
if
(
pairs
.
Contains
((
SheetType
)
sheet
.
SheetType
))
{
{
...
...
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