| | |
| | | using Castle.Core.Resource; |
| | | using MES.Service.DB; |
| | | using MES.Service.DB; |
| | | using MES.Service.Dto.webApi; |
| | | using MES.Service.Modes; |
| | | using SqlSugar; |
| | |
| | | return 1; |
| | | break; |
| | | case "4": |
| | | case "5": |
| | | if (InsertOrUpdate(db, entity)) |
| | | return 1; |
| | | break; |
| | |
| | | throw new NotImplementedException("删除失败"); |
| | | break; |
| | | case "4": |
| | | case "5": |
| | | if (!InsertOrUpdateBatch(db, itemGroup.Value)) |
| | | throw new NotImplementedException("同步失败"); |
| | | break; |
| | |
| | | ProductionWorkshop = item.FWorkShopId, |
| | | ProduceUnit = item.FPRODUCEUNITID, |
| | | SubconUnit = item.FSUBCONUNITID, |
| | | FSubsidiary = item.FUseOrgId, |
| | | Fsubsidiary = item.FUseOrgId, |
| | | Fumbrella = item.FCreateOrgId, |
| | | FLOSSPERCENT = item.FLOSSPERCENT, |
| | | FMnemonicCode = item.FMnemonicCode, |
| | | FExpPeriod = item.FExpPeriod, |
| | | Flosspercent = item.FLOSSPERCENT, |
| | | Fmnemoniccode = item.FMnemonicCode, |
| | | Fexpperiod = item.FExpPeriod, |
| | | LastupdateDate = DateTime.Now, |
| | | CreateDate = DateTime.Now, |
| | | Company = "1000", |
| | | Factory = "1000", |
| | | ColorName = item.FColor, |
| | | FIsKitting = item.FIsKitting, |
| | | Provenance = item.F_XIFG_Text_qtr |
| | | Fiskitting = item.FIsKitting, |
| | | Provenance = item.F_XIFG_Text_qtr, |
| | | Material = item.F_XIFG_Text_83g |
| | | }; |
| | | } |
| | | |