| | |
| | | List<Womcab> mesRohInDatas) |
| | | { |
| | | var decimals = mesRohInDatas.Select(s => s.Id).ToArray(); |
| | | var update = base.DeleteById(womcaaWW.Id); |
| | | var insertOrUpdate = db |
| | | .Deleteable<Womcab>().In(decimals) |
| | | .ExecuteCommand() > 0; |
| | | |
| | | if (update && insertOrUpdate) return true; |
| | | var update = true; |
| | | if (womcaaWW != null) |
| | | { |
| | | if (womcaaWW.Id != null) |
| | | { |
| | | update = base.DeleteById(womcaaWW.Id); |
| | | } |
| | | } |
| | | var insertOrUpdate = true; |
| | | if (decimals != null || decimals.Length > 0) |
| | | { |
| | | insertOrUpdate = db.Deleteable<Womcab>().In(decimals).ExecuteCommand() > 0; |
| | | } |
| | | |
| | | if (update && insertOrUpdate) |
| | | { |
| | | return true; |
| | | } |
| | | throw new NotImplementedException("更新失败"); |
| | | } |
| | | |
| | |
| | | |
| | | var entity = new Womcaa |
| | | { |
| | | Caa001 = erpDto.ppbombillno, /// 单号 |
| | | Caa001 = erpDto.FBillNo, /// 单号 |
| | | //Caa001 = erpDto.FBillNo, |
| | | DepotCode = erpDto.FStockID, |
| | | CreateDate = erpDto.FDate, // ParseDateTime(erpDto.FDate) ?? null, |
| | |
| | | Fsubid = erpDto.FSUBID, |
| | | Fsubbillnoseq = erpDto.FSUBBILLNOSEQ, |
| | | Fsubbillno = erpDto.FSUBBILLNO, |
| | | Caa020 = erpDto.FSUBBILLNO, |
| | | SrcBillType = erpDto.FSrcBillType, |
| | | SrcBillNo = erpDto.FSrcBillNo, |
| | | SrcBillentryseq = erpDto.FSrcBillEntrySeq, |
| | |
| | | // F_WWDD_SCTZD = erpDto.F_WWDD_SCTZD, |
| | | // F_WWDD_XH = erpDto.F_WWDD_XH, |
| | | //F_XIFG_TEXT_TZK = erpDto.F_XIFG_Text_tzk |
| | | WwOrg=erpDto.WW_ZZ, |
| | | CgOrg=erpDto.CG_ZZ, |
| | | SuppId=erpDto.FSUPPLIERID, |
| | | |
| | | }; |
| | | |
| | | var single = base.GetSingle(it => it.Erpid == entity.Erpid); |