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
86dd9971
Commit
86dd9971
authored
Aug 18, 2021
by
ruyun.zhang@suvalue.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
二次分配多工作量名称返回
parent
0ac56eb4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
4 deletions
+18
-4
performance/Performance.Services/RedistributionService.cs
+18
-4
No files found.
performance/Performance.Services/RedistributionService.cs
View file @
86dd9971
...
...
@@ -229,12 +229,26 @@ public List<SecondColumnDictionary> GetTableHeaderDictionary(ComputeMode compute
maps
.
Add
(
new
SecondColumnDictionary
(
label
,
item
.
Title
,
false
,
++
workloadSort
,
type
:
"Workload"
,
color
:
$"workload_color
{
index
}
"
));
}
}
// 多工作量加载
var
headDynamic
=
_agworktypesourceRepository
.
GetEntities
(
t
=>
t
.
SecondId
==
second
.
Id
)
??
new
List
<
ag_worktype_source
>();
foreach
(
var
item
in
headDynamic
.
OrderBy
(
t
=>
t
.
Id
))
var
status
=
(
new
int
[]
{
(
int
)
SecondAllotStatus
.
WaitReview
,
(
int
)
SecondAllotStatus
.
PassAudit
});
// 已提交
if
(
second
.
Status
.
HasValue
&&
status
.
Contains
(
second
.
Status
.
Value
))
{
maps
.
Add
(
new
SecondColumnDictionary
(
item
.
FieldName
,
item
.
FieldId
,
true
,
1
,
"Top"
));
var
headDynamic
=
_agworktypesourceRepository
.
GetEntities
(
t
=>
t
.
SecondId
==
second
.
Id
)
??
new
List
<
ag_worktype_source
>();
foreach
(
var
item
in
headDynamic
.
OrderBy
(
t
=>
t
.
Id
))
{
maps
.
Add
(
new
SecondColumnDictionary
(
item
.
FieldName
,
item
.
FieldId
,
true
,
1
,
"Top"
));
}
}
else
{
var
workloadTypes
=
_agworkloadtypeRepository
.
GetEntities
(
t
=>
t
.
HospitalId
==
allot
.
HospitalId
&&
t
.
Department
==
second
.
Department
&&
t
.
UnitType
==
second
.
UnitType
)
??
new
List
<
ag_workload_type
>();
foreach
(
var
item
in
workloadTypes
.
OrderBy
(
t
=>
t
.
Id
))
{
maps
.
Add
(
new
SecondColumnDictionary
(
$"
{
item
.
TypeName
}
占比"
,
$"Workload_Ratio_
{
item
.
Id
}
"
,
true
,
1
,
"Top"
));
maps
.
Add
(
new
SecondColumnDictionary
(
$"
{
item
.
TypeName
}
金额"
,
$"Workload_Amount_
{
item
.
Id
}
"
,
true
,
1
,
"Top"
));
}
}
}
// 单项奖励
...
...
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