admin
3 天以前 ae3735e011b0780efdae8b9220ff90ec8a8446b6
删除包装DelPackag增加admin跳过验证
1个文件已修改
4 ■■■■ 已修改文件
Wms/WMS.BLL/SysServer/PackagServer.cs 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Wms/WMS.BLL/SysServer/PackagServer.cs
@@ -305,11 +305,15 @@
            {
                throw Oops.Bah("包装信息不存在!");
            }
            //admin可以跳过此验证
            if (userId != 1)
            {
            var modMaterial = await Db.Queryable<SysMaterials>().FirstAsync(a => a.IsDel == "0" && a.PackagNo == packagItems.PackagNo);
            if (modMaterial != null)
            {
                throw Oops.Bah("存在正在使用此包装的物料!");
            }
            }
            packagItems.IsDel = "1";
            packagItems.UpdateTime = DateTime.Now;