Browse Source

卡通箱转移限制不允许目标箱号和原箱号相同

Hcsy 8 years ago
parent
commit
272065dbfc
1 changed files with 4 additions and 0 deletions
  1. 4 0
      UAS-MES/FunctionCode/Packing/Packing_CartonTransfer.cs

+ 4 - 0
UAS-MES/FunctionCode/Packing/Packing_CartonTransfer.cs

@@ -212,6 +212,10 @@ namespace UAS_MES.Packing
                                 {
                                     if (CheckBoxCode())
                                     {
+                                        if (pa_outboxcode.Text == ms_outboxcode) {
+                                            OperateResult.AppendText(">>原箱" + ms_outboxcode + "和目标箱号" + pa_outboxcode.Text + "相同,不允许转移\n", Color.Red, sn_code);
+                                            return;
+                                        }
                                         if (PA_PACKTYPE != new_pa_packtype)
                                         {
                                             OperateResult.AppendText(">>原箱" + ms_outboxcode + "和目标箱号" + pa_outboxcode.Text + "的包装方式不一致,不允许转移\n", Color.Red, sn_code);