| | |
| | | { |
| | | return rohInErpRohIn.Type switch |
| | | { |
| | | "2" or "4" or "5" => SaveOrUpdateData(db, mesRohIn, |
| | | mesRohInDatas) |
| | | ? 1 |
| | | : 0, |
| | | "3" => UpdateData(db, mesRohIn, mesRohInDatas) ? 1 : 0, |
| | | _ => throw new NotImplementedException( |
| | | "2" or "4" or "5" => SaveOrUpdateData(db, mesRohIn, mesRohInDatas) ? 1 : 0, |
| | | "3" => UpdateData(db, mesRohIn, mesRohInDatas) ? 1 : 0, _ => throw new NotImplementedException( |
| | | $"type没有{rohInErpRohIn.Type}这个类型") |
| | | }; |
| | | }) > 0; |
| | |
| | | mesRohIn.Purchaser = rohIn.FPurchaserId; |
| | | mesRohIn.SettlementParty = rohIn.FSettleId; |
| | | mesRohIn.PaymentParty = rohIn.FChargeId; |
| | | mesRohIn.Email = rohIn.FProviderEMail; |
| | | //mesRohIn.Email = rohIn.FProviderEMail; |
| | | mesRohIn.Remarks = rohIn.Remarks; |
| | | mesRohIn.CancellationStatus = rohIn.FCancelStatus; |
| | | mesRohIn.CancellationPerson = rohIn.FCancellerId; |
| | |
| | | mesRohIn.ReceiveOrgId = rohIn.FReceiveOrgId; |
| | | mesRohIn.ProviderId = rohIn.FProviderId; |
| | | |
| | | mesRohIn.Anred = rohIn.FTContact; |
| | | mesRohIn.Telf1 = rohIn.Fmobilephone; |
| | | mesRohIn.FixedTelephone = rohIn.FixedTelephone; |
| | | mesRohIn.Address = rohIn.Address; |
| | | //mesRohIn.Anred = rohIn.FTContact; |
| | | //mesRohIn.Telf1 = rohIn.Fmobilephone; |
| | | //mesRohIn.FixedTelephone = rohIn.FixedTelephone; |
| | | //mesRohIn.Address = rohIn.Address; |
| | | mesRohIn.Acctype = rohIn.Acctype; |
| | | mesRohIn.SynchronousDate = DateTime.Now; |
| | | |
| | |
| | | PurchaseOrderLineNumber = s.FSEQ, |
| | | Demand = s.FRequireOrgId, |
| | | Receiving = s.FReceiveOrgId, |
| | | Settlement = s.FSETTLEORGID, |
| | | //Settlement = s.FSETTLEORGID, |
| | | DemandDepartment = s.FRequireDeptId, |
| | | ReceivingDepartment = s.FReceiveDeptId, |
| | | SalesOrderId = s.SalesOrderId, |
| | | OrderLineId = s.OrderLineId |
| | | //SalesOrderId = s.SalesOrderId, |
| | | //OrderLineId = s.OrderLineId |
| | | Fsubreqentryid=s.FSUBREQENTRYID |
| | | }; |
| | | |
| | | if (s.FFreezeDate != null) |