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
28ddeae2
Commit
28ddeae2
authored
May 07, 2025
by
wyc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
加载默认考勤(补充限制)
parent
7cb504e1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
performance/Performance.Services/AttendanceService.cs
+6
-3
No files found.
performance/Performance.Services/AttendanceService.cs
View file @
28ddeae2
...
@@ -723,10 +723,10 @@ public ApiResponse AttendanceTypeBatch(int allotId, int hospitalId, SaveCollectD
...
@@ -723,10 +723,10 @@ public ApiResponse AttendanceTypeBatch(int allotId, int hospitalId, SaveCollectD
return
new
ApiResponse
(
ResponseType
.
WarningTable
,
"验证不通过,当前操作已拒绝"
,
error
);
return
new
ApiResponse
(
ResponseType
.
WarningTable
,
"验证不通过,当前操作已拒绝"
,
error
);
perfoPperAttendanceTypeRepository
.
RemoveRange
(
oldAttendanceType
.
ToArray
());
perfoPperAttendanceTypeRepository
.
RemoveRange
(
oldAttendanceType
.
ToArray
());
List
<
per_attendance_type
>
addAttendanceType
=
new
List
<
per_attendance_type
>();
List
<
per_attendance_type
>
addAttendanceType
=
new
List
<
per_attendance_type
>();
int
idMax
=
perfoPperAttendanceTypeRepository
.
GetEntities
().
Max
(
w
=>
w
.
Id
);
int
idMax
=
perfoPperAttendanceTypeRepository
.
GetEntities
().
Max
(
w
=>
w
.
Id
);
foreach
(
var
data
in
newAttendanceType
)
foreach
(
var
data
in
newAttendanceType
)
{
{
data
.
Id
=
++
idMax
;
data
.
Id
=
++
idMax
;
data
.
AllotId
=
allotId
;
data
.
AllotId
=
allotId
;
data
.
HospitalId
=
hospitalId
;
data
.
HospitalId
=
hospitalId
;
addAttendanceType
.
Add
(
data
);
addAttendanceType
.
Add
(
data
);
...
@@ -756,6 +756,9 @@ public ApiResponse GetAttendanceReplenishment(int allotId, int userid)
...
@@ -756,6 +756,9 @@ public ApiResponse GetAttendanceReplenishment(int allotId, int userid)
.
GetEntity
(
g
=>
g
.
AllotId
==
allotId
&&
g
.
IsDefault
==
(
int
)
Attendance
.
Default
.
默认
)
.
GetEntity
(
g
=>
g
.
AllotId
==
allotId
&&
g
.
IsDefault
==
(
int
)
Attendance
.
Default
.
默认
)
??
throw
new
PerformanceException
(
"未设置默认类型"
);
??
throw
new
PerformanceException
(
"未设置默认类型"
);
var
allot
=
perforPerallotRepository
.
GetEntity
(
w
=>
w
.
ID
==
allotId
)
??
throw
new
PerformanceException
(
"当前绩效记录不存在"
);
;
var
days
=
DateTime
.
DaysInMonth
(
allot
.
Year
,
allot
.
Month
);
//查询全部考勤上报内容
//查询全部考勤上报内容
var
attendanceDepts
=
_perforPerAttendanceDeptRepository
.
GetEntities
(
t
=>
t
.
AllotId
==
allotId
);
var
attendanceDepts
=
_perforPerAttendanceDeptRepository
.
GetEntities
(
t
=>
t
.
AllotId
==
allotId
);
...
@@ -770,7 +773,7 @@ public ApiResponse GetAttendanceReplenishment(int allotId, int userid)
...
@@ -770,7 +773,7 @@ public ApiResponse GetAttendanceReplenishment(int allotId, int userid)
?.
Where
(
w
=>
w
.
PersonnelNumber
==
item
.
PersonnelNumber
&&
w
.
UnitType
!=
item
.
UnitType
&&
w
.
AccountingUnit
!=
item
.
AccountingUnit
)
?.
Where
(
w
=>
w
.
PersonnelNumber
==
item
.
PersonnelNumber
&&
w
.
UnitType
!=
item
.
UnitType
&&
w
.
AccountingUnit
!=
item
.
AccountingUnit
)
.
ToList
();
.
ToList
();
for
(
int
day
=
1
;
day
<=
31
;
day
++)
for
(
int
day
=
1
;
day
<=
days
;
day
++)
{
{
string
dayPropertyName
=
$"Day
{
day
:
00
}
"
;
string
dayPropertyName
=
$"Day
{
day
:
00
}
"
;
int
?
dayValue
=
(
int
?)
typeof
(
per_attendance_dept
).
GetProperty
(
dayPropertyName
)?.
GetValue
(
item
);
int
?
dayValue
=
(
int
?)
typeof
(
per_attendance_dept
).
GetProperty
(
dayPropertyName
)?.
GetValue
(
item
);
...
...
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