南骏 池
2025-09-10 eb7aabaca44f5be20ad9fa533f130c96a7342a51
MES.Service/service/BasicData/MesDepotsManager.cs
@@ -91,6 +91,7 @@
    {
        return new MesDepots
        {
            Guid = depots.Id,
            DepotCode = depots.FNumber,
            DepotName = depots.FName,
            DepotId = Convert.ToDecimal(depots.Id),
@@ -103,6 +104,10 @@
            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"
        };
@@ -136,16 +141,12 @@
                                "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)) // 批量插入或更新仓库