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
cc72121c
Commit
cc72121c
authored
Jun 01, 2021
by
lcx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
人员字典新增银行卡号
parent
ddb13f30
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
20 additions
and
4 deletions
+20
-4
performance/Performance.Api/Controllers/ComputeController.cs
+1
-0
performance/Performance.DtoModels/Response/ComputeResponse.cs
+5
-0
performance/Performance.EntityModels/Entity/per_employee.cs
+6
-1
performance/Performance.Services/ComputeService.cs
+2
-0
performance/Performance.Services/PersonService.cs
+6
-3
No files found.
performance/Performance.Api/Controllers/ComputeController.cs
View file @
cc72121c
...
...
@@ -309,6 +309,7 @@ public ApiResponse AllComputeByPM([FromBody] ComputerRequest request)
RealGiveFee
=
t
.
Sum
(
s
=>
s
.
RealGiveFee
),
ReservedRatio
=
t
.
Sum
(
s
=>
s
.
ReservedRatio
),
ReservedRatioFee
=
t
.
Sum
(
s
=>
s
.
ReservedRatioFee
),
BankCard
=
t
.
FirstOrDefault
()?.
BankCard
}).
OrderBy
(
t
=>
{
string
value
=
t
.
JobNumber
;
...
...
performance/Performance.DtoModels/Response/ComputeResponse.cs
View file @
cc72121c
...
...
@@ -103,5 +103,10 @@ public ComputeResponse(string source, string accountingUnit, string employeeName
///
/// </summary>
public
Nullable
<
decimal
>
AdjustLaterOtherFee
{
get
;
set
;
}
/// <summary>
/// 银行卡号
/// </summary>
public
string
BankCard
{
get
;
set
;
}
}
}
performance/Performance.EntityModels/Entity/per_employee.cs
View file @
cc72121c
...
...
@@ -115,7 +115,12 @@ public class per_employee
/// 预留比例
/// </summary>
public
Nullable
<
decimal
>
ReservedRatio
{
get
;
set
;
}
/// <summary>
/// 银行卡号
/// </summary>
public
string
BankCard
{
get
;
set
;
}
/// <summary>
/// 备注
/// </summary>
...
...
performance/Performance.Services/ComputeService.cs
View file @
cc72121c
...
...
@@ -761,6 +761,8 @@ public List<ComputeResponse> AllCompute(int allotId, int hospitalId, int isShowM
item
.
ReservedRatio
=
empDic
?.
FirstOrDefault
(
w
=>
w
.
PersonnelNumber
==
item
.
JobNumber
)?.
ReservedRatio
??
0
;
item
.
ReservedRatioFee
=
Math
.
Round
(
real
*
(
item
.
ReservedRatio
??
0
),
2
,
MidpointRounding
.
AwayFromZero
);
item
.
RealGiveFee
=
Math
.
Round
(
item
.
ShouldGiveFee
-
(
item
.
ReservedRatioFee
??
0
)
??
0
,
2
,
MidpointRounding
.
AwayFromZero
);
item
.
BankCard
=
empDic
?.
FirstOrDefault
(
w
=>
w
.
PersonnelNumber
==
item
.
JobNumber
)?.
BankCard
??
""
;
// 人员信息使用人员字典中数据
if
(
isEmpDic
)
{
...
...
performance/Performance.Services/PersonService.cs
View file @
cc72121c
...
...
@@ -92,6 +92,8 @@ public void CreateAllotPersons(int hospitalId, int allotId, int prevAllotId = -1
{
var
entity
=
new
per_employee
{
HospitalId
=
t
.
HospitalId
,
AllotId
=
allotId
,
AccountingUnit
=
t
.
AccountingUnit
,
Department
=
t
.
Department
,
DoctorName
=
t
.
DoctorName
,
...
...
@@ -106,10 +108,9 @@ public void CreateAllotPersons(int hospitalId, int allotId, int prevAllotId = -1
WorkTime
=
t
.
WorkTime
,
BirthDate
=
t
.
BirthDate
,
Age
=
t
.
Age
,
Remark
=
t
.
Remark
,
HospitalId
=
t
.
HospitalId
,
AllotId
=
allotId
,
ReservedRatio
=
t
.
ReservedRatio
,
BankCard
=
t
.
BankCard
,
Remark
=
t
.
Remark
,
CreateTime
=
DateTime
.
Now
,
};
if
(!
string
.
IsNullOrEmpty
(
t
.
PersonnelNumber
)
&&
!
string
.
IsNullOrEmpty
(
t
.
JobNumber
))
...
...
@@ -244,10 +245,12 @@ public bool UpdatePerson(PerEmployeeResponse request)
employee
.
WorkTime
=
request
.
WorkTime
==
null
?
null
:
ConvertHelper
.
To
<
DateTime
?>(
request
.
WorkTime
);
employee
.
BirthDate
=
request
.
BirthDate
==
null
?
null
:
ConvertHelper
.
To
<
DateTime
?>(
request
.
BirthDate
);
employee
.
Age
=
request
.
Age
;
employee
.
BankCard
=
request
.
BankCard
;
employee
.
Remark
=
request
.
Remark
;
employee
.
EfficiencyNumber
=
request
.
EfficiencyNumber
;
employee
.
PermanentStaff
=
request
.
PermanentStaff
;
employee
.
AttendanceDay
=
request
.
AttendanceDay
;
employee
.
ReservedRatio
=
request
.
ReservedRatio
;
// 出勤率
var
allot
=
perallotRepository
.
GetEntity
(
t
=>
t
.
ID
==
request
.
AllotId
);
...
...
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