| | |
| | | namespace MES.Service.service.BasicData; |
| | | using Masuit.Tools; |
| | | |
| | | namespace MES.Service.service.BasicData; |
| | | |
| | | using MES.Service.DB; |
| | | using MES.Service.Dto.webApi; |
| | |
| | | PositionCode = staff.FPostId, |
| | | PhoneNumber = staff.FMobile, |
| | | Remark = staff.FDescription, |
| | | FforbidStatus = staff.FForbidStatus, |
| | | FSubsidiary = string.IsNullOrEmpty(staff.FUseOrgId) |
| | | ? "1" |
| | | : staff.FUseOrgId, |
| | | Fumbrella = string.IsNullOrEmpty(staff.FCreateOrgId) |
| | | ? "1" |
| | | : staff.FCreateOrgId, |
| | | FSubsidiary = "1", |
| | | Fumbrella = "1", |
| | | CreateDate = DateTime.Now, |
| | | LastupdateDate = DateTime.Now, |
| | | Type = staff.Type |
| | | }; |
| | | |
| | | if (staff.FForbidStatus.IsNullOrEmpty()) |
| | | { |
| | | entity.FforbidStatus = "A"; |
| | | } |
| | | else |
| | | { |
| | | //我期望的值是A=否,B=是 |
| | | //实际给我的值是0或1,我希望为我转换从A和B的方式 |
| | | entity.FforbidStatus = staff.FForbidStatus == "1" ? "B" : "A"; |
| | | } |
| | | |
| | | if (!string.IsNullOrEmpty(staff.FStaffStartDate)) |
| | | { |
| | | entity.StartDate = DateTime.ParseExact(staff.FStaffStartDate, |