| | |
| | | { |
| | | return new MesDepots |
| | | { |
| | | Guid = depots.Id, |
| | | DepotCode = depots.FNumber, |
| | | DepotName = depots.FName, |
| | | DepotId = Convert.ToDecimal(depots.Id), |
| | |
| | | Fumbrella = depots.FCreateOrgId, |
| | | CreateDate = DateTime.Now, |
| | | LastupdateDate = DateTime.Now, |
| | | SupplierId = depots.FSUPPLIERID, |
| | | ClientId = depots.ClientId, |
| | | Department = depots.Fdeptid, |
| | | Phone = depots.Phone, |
| | | Company = "1000", |
| | | Factory = "1000" |
| | | }; |
| | |
| | | "B")) // 批量禁用仓库 |
| | | throw new NotImplementedException("禁用失败"); |
| | | break; |
| | | case "2": |
| | | if (!InsertDepotBatch(db, |
| | | depotsGroup.Value)) // 批量插入仓库 |
| | | throw new NotImplementedException("插入失败"); |
| | | break; |
| | | case "3": |
| | | if (!DeleteDepotBatch(db, |
| | | depotsGroup.Value)) // 批量删除仓库 |
| | | throw new NotImplementedException("删除失败"); |
| | | break; |
| | | case "2": |
| | | case "4": |
| | | if (!InsertOrUpdateBatch(db, |
| | | depotsGroup.Value)) // 批量插入或更新仓库 |