| | |
| | | } |
| | | } |
| | | |
| | | mesRohIn.CloseStatus = rohIn.FCloseStatus; |
| | | |
| | | // mesRohIn.PurchaseOrg = rohIn.FPurchaseOrgId; |
| | | mesRohIn.PurchaseOrg = "1"; |
| | | mesRohIn.PurchaseGroup = rohIn.FPurchaserGroupId; |
| | |
| | | mesRohIn.Email = rohIn.FProviderEMail; |
| | | mesRohIn.Remarks = rohIn.Remarks; |
| | | mesRohIn.CancellationPerson = rohIn.FCancellerId; |
| | | /*if (rohIn.FCancelDate != null) |
| | | if (!mesRohIn.CancellationPerson.IsNullOrEmpty()) |
| | | mesRohIn.CancellationDate = |
| | | DateTime.ParseExact(rohIn.FCancelDate, |
| | | "yyyy-MM-d H:m:s", null); |
| | | mesRohIn.CreateBy = rohIn.FCreatorId; |
| | | if (rohIn.FCreateDate != null) |
| | | mesRohIn.CreateDate = DateTime.ParseExact(rohIn.FCreateDate, |
| | | "yyyy-MM-d H:m:s", null); |
| | | mesRohIn.LastupdateBy = rohIn.FModifierId; |
| | | if (rohIn.FModifyDate != null) |
| | | mesRohIn.LastupdateDate = DateTime.ParseExact(rohIn.FModifyDate, |
| | | "yyyy-MM-d H:m:s", null); |
| | | mesRohIn.Prearrivaldate = rohIn.Prearrivaldate != null |
| | | ? DateTime.ParseExact(rohIn.Prearrivaldate, |
| | | "yyyy-MM-d H:m:s", null) |
| | | : null;*/ |
| | | |
| | | if (!rohIn.FCancelDate.IsNullOrEmpty() && |
| | | !mesRohIn.CancellationPerson.IsNullOrEmpty()) |
| | | { |
| | |
| | | mesRohIn.SynchronousDate = DateTime.Now; |
| | | mesRohIn.DocumentStatus = "C"; |
| | | mesRohIn.CancellationStatus = "A"; |
| | | |
| | | if (rohIn.FCloseStatus.IsNullOrEmpty()) |
| | | { |
| | | mesRohIn.CloseStatus = "A"; |
| | | } |
| | | else |
| | | { |
| | | //我期望的值是A=否,B=是 |
| | | //实际给我的值是0或1,我希望为我转换从A和B的方式 |
| | | mesRohIn.CloseStatus = rohIn.FCloseStatus == "1" ? "B" : "A"; |
| | | } |
| | | |
| | | return mesRohIn; |
| | | } |