Administrator 2 năm trước cách đây
mục cha
commit
2462270fe7

+ 1 - 0
Projects/永冠OPP/WCS.Service/Works/Station/BOPP入库.cs

@@ -27,6 +27,7 @@ namespace WCS.Service.Works.Station
             obj.EX(stationDeviceGroup =>
             {
                 if (!stationDeviceGroup.BcrStationIsForbid()) return;
+                if (!SystemConfigHelpers.GetDeviceConfig(obj.Entity.CODE)) throw new WarnException($"已禁止{obj.Entity.CODE}入库,请联系相关人员查询");
 
                 //设备组无论单卷还是双卷都必须满足的条件
                 if (stationDeviceGroup.Items.Any(v => v.Data.VoucherNo != v.Data2.VoucherNo))

+ 1 - 0
Projects/永冠OPP/WCS.Service/Works/Station/一楼入库.cs

@@ -29,6 +29,7 @@ namespace WCS.Service.Works.Station
             obj.EX(obj =>
                 {
                     if (!obj.BcrStationIsForbid()) return;
+                    if (!SystemConfigHelpers.GetDeviceConfig(obj.Entity.CODE)) throw new WarnException($"已禁止{obj.Entity.CODE}入库,请联系相关人员查询");
 
                     //设备组无论单卷还是双卷都必须满足的条件
                     if (obj.Items.Any(v => v.Data.VoucherNo != v.Data2.VoucherNo)) throw new WarnException($"等待任务执行--凭证号不一致");

+ 1 - 0
Projects/永冠OPP/WCS.Service/Works/Station/涂布入库.cs

@@ -245,6 +245,7 @@ namespace WCS.Service.Works.Station
             obj.EX(stationDeviceGroup =>
             {
                 if (!stationDeviceGroup.BcrStationIsForbid()) return;
+                if(!SystemConfigHelpers.GetDeviceConfig(obj.Entity.CODE)) throw new WarnException($"已禁止{obj.Entity.CODE}入库,请联系相关人员查询");
 
                 //设备组无论单卷还是双卷都必须满足的条件
                 if (stationDeviceGroup.Items.Any(v => v.Data.VoucherNo != v.Data2.VoucherNo)) throw new WarnException($"等待任务执行--凭证号不一致");

+ 1 - 0
Projects/永冠OPP/WCS.Service/Works/Station/连廊车间入库.cs

@@ -32,6 +32,7 @@ namespace WCS.Service.Works.Station
             obj.EX(obj =>
             {
                 //if (!obj.BcrStationIsForbid()) return;
+                if (!SystemConfigHelpers.GetDeviceConfig(obj.Entity.CODE)) throw new WarnException($"已禁止{obj.Entity.CODE}入库,请联系相关人员查询");
 
                 //设备组无论单卷还是双卷都必须满足的条件
                 if (obj.Items.Any(v => v.Data.VoucherNo != v.Data2.VoucherNo)) throw new WarnException($"等待任务执行--凭证号不一致");