hao
2025-10-31 406896ef93ec12bb1d9821f05b14c9ca8dcf7fc8
StandardInterface/MES.Service/service/BasicData/Material/MesItemsManager.cs
@@ -107,10 +107,11 @@
            .SetColumns(s => s.Fforbidstatus == status)
            .Where(s => s.Id == itemId).ExecuteCommand();
        if (result > 0)
            return true;
        /*  if (result > 0)
              return true;
        throw new NotImplementedException(status == "A" ? "启用失败" : "禁用失败");
          throw new NotImplementedException(status == "A" ? "启用失败" : "禁用失败");*/
        return true;
    }
    private bool InsertItem(SqlSugarScope db, MesItems entity)
@@ -176,6 +177,8 @@
            ExpPeriod = item.FExpPeriod,
            //ColorName = item.FColor,
            CreateDate = DateTime.Now,
            Type=item.Type,
            //20250412 是否根据工厂不同修改不同编码
            Company = "1000",
            Factory = "1000",
            /// <summary>
@@ -215,6 +218,11 @@
             F_ZZSTLX     =item.F_ZZSTLX,
             F_DCSL     =item.F_DCSL,
            F_BZGS     =item.F_BZGS,
            WLFZMC=item.F_FZMC,
            MJBM =item.MJBM,
            Khwlbm =item.KHWLBM,
            Ys=item.YS,
            NesxGx=item.NEXT_GX,
        };
    }