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
d32ee3a4
Commit
d32ee3a4
authored
Oct 20, 2022
by
纪旭 韦
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
二次分配录入
parent
3631c239
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
performance/Performance.Services/RedistributionService.cs
+5
-2
No files found.
performance/Performance.Services/RedistributionService.cs
View file @
d32ee3a4
...
@@ -102,6 +102,9 @@ public SecondDetailDto Load(int secondId, ComputeMode computeMode, EmployeeSourc
...
@@ -102,6 +102,9 @@ public SecondDetailDto Load(int secondId, ComputeMode computeMode, EmployeeSourc
var
allot
=
_perallotRepository
.
GetEntity
(
t
=>
t
.
ID
==
second
.
AllotId
);
var
allot
=
_perallotRepository
.
GetEntity
(
t
=>
t
.
ID
==
second
.
AllotId
);
if
(
allot
==
null
)
throw
new
PerformanceException
(
"绩效记录不存在!"
);
if
(
allot
==
null
)
throw
new
PerformanceException
(
"绩效记录不存在!"
);
//前二次绩效
prevSecondAllot
=
_secondAllotDetails
.
GetPreviousSecondAllot
(
allot
.
HospitalId
,
second
);
// 填报模板带出 行政工勤 绩效
// 填报模板带出 行政工勤 绩效
var
computes
=
_rescomputeRepository
.
GetEntities
(
w
=>
w
.
AllotID
==
allot
.
ID
&&
UnitTypeUtil
.
Office
.
Contains
(
w
.
AccountType
));
var
computes
=
_rescomputeRepository
.
GetEntities
(
w
=>
w
.
AllotID
==
allot
.
ID
&&
UnitTypeUtil
.
Office
.
Contains
(
w
.
AccountType
));
...
@@ -469,7 +472,7 @@ public void RowsExpand(per_allot allot, List<SecondColumnDictionary> dic, List<D
...
@@ -469,7 +472,7 @@ public void RowsExpand(per_allot allot, List<SecondColumnDictionary> dic, List<D
{
{
int
secondId
=
overrideMode
==
EmployeeSource
.
PrevSecondAllot
?
prevSecondAllot
.
Id
:
second
.
Id
;
int
secondId
=
overrideMode
==
EmployeeSource
.
PrevSecondAllot
?
prevSecondAllot
.
Id
:
second
.
Id
;
var
history
=
_agheadsourceRepository
.
GetEntity
(
t
=>
t
.
SecondId
==
secondId
);
var
history
=
_agheadsourceRepository
.
GetEntity
(
t
=>
t
.
SecondId
==
secondId
);
if
(
history
==
null
&&
secondId
!=
(
prevSecondAllot
?.
Id
??
0
)
)
if
(
history
==
null
&&
prevSecondAllot
!=
null
&&
secondId
!=
prevSecondAllot
.
Id
)
history
=
_agheadsourceRepository
.
GetEntity
(
t
=>
t
.
SecondId
==
prevSecondAllot
.
Id
);
history
=
_agheadsourceRepository
.
GetEntity
(
t
=>
t
.
SecondId
==
prevSecondAllot
.
Id
);
head
.
AddOrUpdate
(
nameof
(
ag_headsource
.
SeniorityTitlesAccountedPerformance
),
history
?.
SeniorityTitlesAccountedPerformance
??
0.2
m
);
head
.
AddOrUpdate
(
nameof
(
ag_headsource
.
SeniorityTitlesAccountedPerformance
),
history
?.
SeniorityTitlesAccountedPerformance
??
0.2
m
);
...
@@ -480,7 +483,7 @@ public void RowsExpand(per_allot allot, List<SecondColumnDictionary> dic, List<D
...
@@ -480,7 +483,7 @@ public void RowsExpand(per_allot allot, List<SecondColumnDictionary> dic, List<D
var
status
=
(
new
int
[]
{
(
int
)
SecondAllotStatus
.
WaitReview
,
(
int
)
SecondAllotStatus
.
PassAudit
});
var
status
=
(
new
int
[]
{
(
int
)
SecondAllotStatus
.
WaitReview
,
(
int
)
SecondAllotStatus
.
PassAudit
});
var
headDynamic
=
_agworktypesourceRepository
.
GetEntities
(
t
=>
t
.
SecondId
==
secondId
)
??
new
List
<
ag_worktype_source
>();
var
headDynamic
=
_agworktypesourceRepository
.
GetEntities
(
t
=>
t
.
SecondId
==
secondId
)
??
new
List
<
ag_worktype_source
>();
if
(!
headDynamic
.
Any
()
&&
secondId
!=
(
prevSecondAllot
?.
Id
??
0
)
)
if
(!
headDynamic
.
Any
()
&&
prevSecondAllot
!=
null
&&
secondId
!=
prevSecondAllot
.
Id
)
headDynamic
=
_agworktypesourceRepository
.
GetEntities
(
t
=>
t
.
SecondId
==
prevSecondAllot
.
Id
)
??
new
List
<
ag_worktype_source
>();
headDynamic
=
_agworktypesourceRepository
.
GetEntities
(
t
=>
t
.
SecondId
==
prevSecondAllot
.
Id
)
??
new
List
<
ag_worktype_source
>();
...
...
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