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
1b8f0709
Commit
1b8f0709
authored
Jun 28, 2021
by
lcx
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' into feature/自定义模板抽取
# Conflicts: # performance/Performance.Api/appsettings.Localhost.json
parents
3a17417f
4c27c696
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
8 deletions
+19
-8
performance/Performance.Api/wwwroot/Performance.DtoModels.xml
+5
-0
performance/Performance.Services/SecondAllot/SecondAllotService.cs
+14
-8
No files found.
performance/Performance.Api/wwwroot/Performance.DtoModels.xml
View file @
1b8f0709
...
...
@@ -3660,6 +3660,11 @@
夜班工作量绩效
</summary>
</member>
<member
name=
"P:Performance.DtoModels.SecPrintResponse.ReservedRatio"
>
<summary>
预留比例
</summary>
</member>
<member
name=
"P:Performance.DtoModels.SecPrintResponse.RealAmount"
>
<summary>
实发绩效工资金额
...
...
performance/Performance.Services/SecondAllot/SecondAllotService.cs
View file @
1b8f0709
...
...
@@ -106,7 +106,7 @@ private JArray GetBodyItemsByEmployeeSource(int userId, int employeeSource, ag_s
break
;
case
int
source
when
source
==
(
int
)
EmployeeSource
.
PrevSecondAllot
&&
prevSecond
!=
null
:
bodysources
=
GetEmployeeFromPrevData
(
prevSecond
,
employeeList
);
bodysources
=
GetEmployeeFromPrevData
(
prevSecond
,
employeeList
,
second
.
Id
);
break
;
default
:
...
...
@@ -149,20 +149,24 @@ public List<ag_bodysource> GetEmployeeFromEmployeeDict(List<per_employee> employ
}
return
bodysources
;
}
/// <summary>
/// 从上一次的保存信息中获取人员信息
/// </summary>
/// <param name="prevSecondAllot"></param>
/// <param name="otherShowColumns"></param>
/// <param name="prevSecond"></param>
/// <param name="employeeList"></param>
/// <param name="secondId"></param>
/// <returns></returns>
public
List
<
ag_bodysource
>
GetEmployeeFromPrevData
(
ag_secondallot
prevSecond
,
List
<
per_employee
>
employeeList
)
public
List
<
ag_bodysource
>
GetEmployeeFromPrevData
(
ag_secondallot
prevSecond
,
List
<
per_employee
>
employeeList
,
int
secondId
)
{
var
result
=
new
List
<
ag_bodysource
>();
var
body
=
agbodysourceRepository
.
GetEntities
(
t
=>
t
.
SecondId
==
prevSecond
.
Id
);
if
(
body
==
null
||
!
body
.
Any
())
return
new
List
<
ag_bodysource
>()
;
if
(
body
==
null
||
!
body
.
Any
())
return
result
;
foreach
(
var
item
in
body
.
Select
(
t
=>
new
ag_bodysource
var
data
=
body
.
Select
(
t
=>
new
ag_bodysource
{
Id
=
0
,
SecondId
=
secondId
,
WorkNumber
=
t
.
WorkNumber
,
Name
=
t
.
Name
,
Post
=
t
.
Post
,
...
...
@@ -170,11 +174,13 @@ public List<ag_bodysource> GetEmployeeFromPrevData(ag_secondallot prevSecond, Li
StaffCoefficient
=
t
.
StaffCoefficient
,
JobTitle
=
t
.
JobTitle
,
TitleCoefficient
=
t
.
TitleCoefficient
}))
});
foreach
(
var
item
in
data
)
{
item
.
ActualAttendance
=
employeeList
?.
FirstOrDefault
(
w
=>
w
.
PersonnelNumber
==
item
.
WorkNumber
&&
w
.
DoctorName
==
item
.
Name
)?.
AttendanceDay
;
result
.
Add
(
item
);
}
return
body
;
return
result
;
}
/// <summary>
...
...
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