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
5a0e2b4a
Commit
5a0e2b4a
authored
Jul 26, 2021
by
钟博
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
重新加载人员字典,费用类别配置新增序号,绩效发放页面新增审核时间
parent
c2c1a74f
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
69 additions
and
1 deletions
+69
-1
performance/Performance.Api/Controllers/PersonController.cs
+14
-0
performance/Performance.DtoModels/Response/ComputeResponse.cs
+4
-1
performance/Performance.Services/ComputeService.cs
+3
-0
performance/Performance.Services/PersonService.cs
+48
-0
No files found.
performance/Performance.Api/Controllers/PersonController.cs
View file @
5a0e2b4a
...
@@ -269,5 +269,19 @@ public ApiResponse SaveDeptHands(int hospitalId, SaveCollectData request)
...
@@ -269,5 +269,19 @@ public ApiResponse SaveDeptHands(int hospitalId, SaveCollectData request)
personService
.
SaveDeptDicHands
(
hospitalId
,
request
);
personService
.
SaveDeptDicHands
(
hospitalId
,
request
);
return
new
ApiResponse
(
ResponseType
.
OK
);
return
new
ApiResponse
(
ResponseType
.
OK
);
}
}
/// <summary>
/// 重新加载人员字典
/// </summary>
/// <param name="hospitalId"></param>
/// <param name="allotId"></param>
/// <returns></returns>
[
HttpPost
]
[
Route
(
"peson/{hospitalId}/reloadPersonnel/{allotId}"
)]
public
ApiResponse
ReloadPersonnel
(
int
hospitalId
,
int
allotId
)
{
personService
.
ReloadPersonnel
(
hospitalId
,
allotId
);
return
new
ApiResponse
(
ResponseType
.
OK
);
}
}
}
}
}
performance/Performance.DtoModels/Response/ComputeResponse.cs
View file @
5a0e2b4a
...
@@ -126,7 +126,10 @@ public ComputeResponse(string source, string accountingUnit, string employeeName
...
@@ -126,7 +126,10 @@ public ComputeResponse(string source, string accountingUnit, string employeeName
/// </summary>
/// </summary>
public
string
TitlePosition
{
get
;
set
;
}
public
string
TitlePosition
{
get
;
set
;
}
/// <summary>
/// 审核时间
/// </summary>
public
Nullable
<
DateTime
>
AuditTime
{
get
;
set
;
}
}
}
...
...
performance/Performance.Services/ComputeService.cs
View file @
5a0e2b4a
...
@@ -866,6 +866,7 @@ public List<ComputeResponse> AllCompute(int allotId, int hospitalId, int isShowM
...
@@ -866,6 +866,7 @@ public List<ComputeResponse> AllCompute(int allotId, int hospitalId, int isShowM
if
(
response
!=
null
)
if
(
response
!=
null
)
{
{
var
types
=
new
string
[]
{
UnitType
.
行政高层
.
ToString
(),
UnitType
.
行政中层
.
ToString
(),
UnitType
.
行政后勤
.
ToString
(),
"行政工勤"
};
var
types
=
new
string
[]
{
UnitType
.
行政高层
.
ToString
(),
UnitType
.
行政中层
.
ToString
(),
UnitType
.
行政后勤
.
ToString
(),
"行政工勤"
};
var
agSecond
=
_perforAgsecondallotRepository
.
GetEntities
(
t
=>
t
.
AllotId
==
allotId
);
foreach
(
var
item
in
response
)
foreach
(
var
item
in
response
)
{
{
// 二次分配默认 调节系数100%
// 二次分配默认 调节系数100%
...
@@ -902,12 +903,14 @@ public List<ComputeResponse> AllCompute(int allotId, int hospitalId, int isShowM
...
@@ -902,12 +903,14 @@ public List<ComputeResponse> AllCompute(int allotId, int hospitalId, int isShowM
item
.
JobCategory
=
emps
?.
JobCategory
??
""
;
item
.
JobCategory
=
emps
?.
JobCategory
??
""
;
item
.
Duty
=
emps
?.
Duty
??
""
;
item
.
Duty
=
emps
?.
Duty
??
""
;
item
.
TitlePosition
=
emps
?.
JobTitle
??
""
;
item
.
TitlePosition
=
emps
?.
JobTitle
??
""
;
// 人员信息使用人员字典中数据
// 人员信息使用人员字典中数据
if
(
isEmpDic
)
if
(
isEmpDic
)
{
{
item
.
AccountingUnit
=
employees
?.
FirstOrDefault
(
w
=>
w
.
PersonnelNumber
==
item
.
JobNumber
)?.
AccountingUnit
??
""
;
item
.
AccountingUnit
=
employees
?.
FirstOrDefault
(
w
=>
w
.
PersonnelNumber
==
item
.
JobNumber
)?.
AccountingUnit
??
""
;
item
.
UnitType
=
employees
?.
FirstOrDefault
(
w
=>
w
.
PersonnelNumber
==
item
.
JobNumber
)?.
UnitType
??
""
;
item
.
UnitType
=
employees
?.
FirstOrDefault
(
w
=>
w
.
PersonnelNumber
==
item
.
JobNumber
)?.
UnitType
??
""
;
}
}
item
.
AuditTime
=
agSecond
.
FirstOrDefault
(
t
=>
t
.
Department
==
item
.
AccountingUnit
)?.
AuditTime
;
}
}
}
}
response
.
RemoveAll
(
w
=>
w
.
PerforSumFee
==
0
&&
w
.
PerforManagementFee
==
0
&&
w
.
ShouldGiveFee
==
0
&&
w
.
OthePerfor
==
0
&&
w
.
HideOtherPerfor
==
0
&&
w
.
RealGiveFee
==
0
);
response
.
RemoveAll
(
w
=>
w
.
PerforSumFee
==
0
&&
w
.
PerforManagementFee
==
0
&&
w
.
ShouldGiveFee
==
0
&&
w
.
OthePerfor
==
0
&&
w
.
HideOtherPerfor
==
0
&&
w
.
RealGiveFee
==
0
);
...
...
performance/Performance.Services/PersonService.cs
View file @
5a0e2b4a
...
@@ -1000,5 +1000,53 @@ public string GetPersonDictFile(int allotId, int userId)
...
@@ -1000,5 +1000,53 @@ public string GetPersonDictFile(int allotId, int userId)
}
}
return
filepath
;
return
filepath
;
}
}
public
void
ReloadPersonnel
(
int
hospitalId
,
int
allotId
)
{
var
allotList
=
perallotRepository
.
GetEntities
(
w
=>
w
.
HospitalId
==
hospitalId
)?.
OrderBy
(
s
=>
s
.
Year
).
ThenBy
(
s
=>
s
.
Month
).
ToList
();
if
(
allotList
==
null
||
!
allotList
.
Any
())
return
;
var
allot
=
allotList
.
FirstOrDefault
(
w
=>
w
.
ID
==
allotId
);
if
(
allot
==
null
)
return
;
var
index
=
allotList
.
IndexOf
(
allot
);
if
(
index
==
0
)
return
;
var
prevAllot
=
allotList
[
index
-
1
];
if
(
prevAllot
==
null
)
prevAllot
.
ID
=
-
1
;
var
persons
=
peremployeeRepository
.
GetEntities
(
t
=>
t
.
HospitalId
==
hospitalId
&&
t
.
AllotId
==
prevAllot
.
ID
);
if
(
persons
==
null
||
!
persons
.
Any
())
return
;
var
i
=
peremployeeRepository
.
Execute
(
$@"DELETE FROM per_employee WHERE HospitalId=@HospitalId and AllotId=@AllotId;"
,
new
{
hospitalId
,
allotId
});
if
(
i
<=
0
)
return
;
int
day
=
DateTime
.
DaysInMonth
(
allot
.
Year
,
allot
.
Month
);
var
data
=
persons
.
Select
(
t
=>
new
per_employee
{
HospitalId
=
t
.
HospitalId
,
AllotId
=
allotId
,
AccountingUnit
=
t
.
AccountingUnit
,
Department
=
t
.
Department
,
DoctorName
=
t
.
DoctorName
,
JobCategory
=
t
.
JobCategory
,
Duty
=
t
.
Duty
,
JobTitle
=
t
.
JobTitle
,
UnitType
=
t
.
UnitType
,
AttendanceDay
=
day
,
Attendance
=
1
,
PermanentStaff
=
t
.
PermanentStaff
,
EfficiencyNumber
=
t
.
EfficiencyNumber
,
WorkTime
=
t
.
WorkTime
,
BirthDate
=
t
.
BirthDate
,
Age
=
t
.
Age
,
ReservedRatio
=
t
.
ReservedRatio
,
BankCard
=
t
.
BankCard
,
Remark
=
t
.
Remark
,
CreateTime
=
DateTime
.
Now
,
}).
ToList
();
SaveAllotPersons
(
data
);
}
}
}
}
}
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