Commit 99c264e7 by wyc

考勤类型继承 补充

parent fdc38366
...@@ -296,7 +296,7 @@ public void Copy_AttendanceType(per_allot allot, int prevAllotId, bool delHistot ...@@ -296,7 +296,7 @@ public void Copy_AttendanceType(per_allot allot, int prevAllotId, bool delHistot
string attendanceName = attendanceTypess.FirstOrDefault(t => t.Id == dayValue)?.AttendanceName; string attendanceName = attendanceTypess.FirstOrDefault(t => t.Id == dayValue)?.AttendanceName;
if (!string.IsNullOrEmpty(attendanceName)) if (!string.IsNullOrEmpty(attendanceName))
{ {
int? attendanceId = attendanceTypess.FirstOrDefault(w => w.AttendanceName == attendanceName)?.Id; int? attendanceId = attendanceTypess.FirstOrDefault(w => w.AttendanceName == attendanceName && w.AllotId == allot.ID)?.Id;
if (attendanceId != null) if (attendanceId != null)
{ {
typeof(per_attendance_dept).GetProperty("Day" + i.ToString("D2"))?.SetValue(item, attendanceId); typeof(per_attendance_dept).GetProperty("Day" + i.ToString("D2"))?.SetValue(item, attendanceId);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment