|
@@ -103,9 +103,10 @@ namespace MTWorkHR.Application.Mapper
|
|
CreateMap<ProjectTeam, ProjectTeamDto>().ReverseMap().ForMember(d => d.CreateDate, o => o.Ignore());
|
|
CreateMap<ProjectTeam, ProjectTeamDto>().ReverseMap().ForMember(d => d.CreateDate, o => o.Ignore());
|
|
|
|
|
|
CreateMap<Attendance, AttendanceDto>().ForMember(d=> d.WeekDay , o=> o.MapFrom(s=> s.AttendanceDate.DayOfWeek))
|
|
CreateMap<Attendance, AttendanceDto>().ForMember(d=> d.WeekDay , o=> o.MapFrom(s=> s.AttendanceDate.DayOfWeek))
|
|
- .ForMember(d => d.TotalHours, o => o.MapFrom(s =>(s.CheckInTime.HasValue && s.CheckOutTime.HasValue) ? (s.CheckOutTime.Value - s.CheckInTime.Value).TotalHours:0)).ReverseMap()
|
|
|
|
- .ForMember(d => d.CreateDate, o => o.Ignore());
|
|
|
|
|
|
+ .ForMember(d => d.TotalHours, o => o.MapFrom(s =>(s.CheckInTime.HasValue && s.CheckOutTime.HasValue) ? (s.CheckOutTime.Value - s.CheckInTime.Value).TotalHours:0));
|
|
|
|
|
|
|
|
+ CreateMap<AttendanceDto, Attendance>().ForMember(d => d.CreateDate, o => o.Ignore())
|
|
|
|
+ .ForMember(d => d.AttendanceDate, o => o.Ignore());
|
|
CreateMap<OrderAllocation, OrderAllocationDto>().ReverseMap().ForMember(d => d.CreateDate, o => o.Ignore());
|
|
CreateMap<OrderAllocation, OrderAllocationDto>().ReverseMap().ForMember(d => d.CreateDate, o => o.Ignore());
|
|
CreateMap<OrderRequest, OrderRequestDto>().ReverseMap().ForMember(d => d.CreateDate, o => o.Ignore());
|
|
CreateMap<OrderRequest, OrderRequestDto>().ReverseMap().ForMember(d => d.CreateDate, o => o.Ignore());
|
|
CreateMap<OrderType, OrderTypeDto>().ReverseMap();
|
|
CreateMap<OrderType, OrderTypeDto>().ReverseMap();
|