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
7eece475
Commit
7eece475
authored
Sep 27, 2022
by
ruyun.zhang@suvalue.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
二次分配科室改名后也能加载上次绩效
parent
ee75db05
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
performance/Performance.Services/RedistributionService.cs
+0
-3
performance/Performance.Services/SecondAllot/SecondAllotDetails.cs
+6
-2
No files found.
performance/Performance.Services/RedistributionService.cs
View file @
7eece475
...
@@ -387,8 +387,6 @@ public void RowsExpand(per_allot allot, List<SecondColumnDictionary> dic, List<D
...
@@ -387,8 +387,6 @@ public void RowsExpand(per_allot allot, List<SecondColumnDictionary> dic, List<D
var
allworkload
=
_agworkloadRepository
.
GetEntities
(
t
=>
t
.
HospitalId
==
allot
.
HospitalId
&&
t
.
Department
==
second
.
Department
)
??
new
List
<
ag_workload
>();
var
allworkload
=
_agworkloadRepository
.
GetEntities
(
t
=>
t
.
HospitalId
==
allot
.
HospitalId
&&
t
.
Department
==
second
.
Department
)
??
new
List
<
ag_workload
>();
var
workloads
=
allworkload
.
Where
(
w
=>
UnitTypeUtil
.
Is
(
w
.
UnitType
,
second
.
UnitType
))
??
new
List
<
ag_workload
>();
var
workloads
=
allworkload
.
Where
(
w
=>
UnitTypeUtil
.
Is
(
w
.
UnitType
,
second
.
UnitType
))
??
new
List
<
ag_workload
>();
if
(
workloads
!=
null
&&
workloads
.
Any
())
{
/* isSave 为True时,没必要查询数据 */
/* isSave 为True时,没必要查询数据 */
var
secondWorkload
=
isSave
&&
overrideMode
!=
EmployeeSource
.
Workload
var
secondWorkload
=
isSave
&&
overrideMode
!=
EmployeeSource
.
Workload
?
new
List
<
view_second_workload_result
>()
?
new
List
<
view_second_workload_result
>()
...
@@ -419,7 +417,6 @@ public void RowsExpand(per_allot allot, List<SecondColumnDictionary> dic, List<D
...
@@ -419,7 +417,6 @@ public void RowsExpand(per_allot allot, List<SecondColumnDictionary> dic, List<D
result
.
Add
(
dict
);
result
.
Add
(
dict
);
}
}
}
}
}
return
result
;
return
result
;
}
}
...
...
performance/Performance.Services/SecondAllot/SecondAllotDetails.cs
View file @
7eece475
...
@@ -947,8 +947,12 @@ public ag_secondallot GetPreviousSecondAllot(int hospitalId, ag_secondallot seco
...
@@ -947,8 +947,12 @@ public ag_secondallot GetPreviousSecondAllot(int hospitalId, ag_secondallot seco
if
(
index
==
0
)
return
null
;
if
(
index
==
0
)
return
null
;
var
prevAllot
=
allotList
[
index
-
1
];
var
prevAllot
=
allotList
[
index
-
1
];
var
temp
=
agsecondallotRepository
.
GetEntities
(
w
=>
w
.
AllotId
==
prevAllot
.
ID
&&
w
.
Department
==
secondAllot
.
Department
);
var
temp
=
agsecondallotRepository
.
GetEntities
(
w
=>
w
.
AllotId
==
prevAllot
.
ID
&&
(
w
.
Department
==
secondAllot
.
Department
||
w
.
Department
==
secondAllot
.
NewAccountingUnit
));
var
prevSecondAllot
=
temp
.
FirstOrDefault
(
w
=>
UnitTypeUtil
.
IsEqualsUnitType
(
w
.
UnitType
,
secondAllot
.
UnitType
));
var
prevSecondAllot
=
temp
.
FirstOrDefault
(
w
=>
(
UnitTypeUtil
.
IsEqualsUnitType
(
w
.
UnitType
,
secondAllot
.
UnitType
)
&&
w
.
Department
==
secondAllot
.
Department
)
||
(
UnitTypeUtil
.
IsEqualsUnitType
(
w
.
UnitType
,
secondAllot
.
NewUnitType
)
&&
w
.
Department
==
secondAllot
.
NewAccountingUnit
));
return
prevSecondAllot
;
return
prevSecondAllot
;
}
}
...
...
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