瀏覽代碼

成功获取标签,切换标签类型标签列表清空

shim 8 年之前
父節點
當前提交
ca797ebcc8
共有 1 個文件被更改,包括 7 次插入0 次删除
  1. 7 0
      UAS-MES/FunctionCode/Make/Make_RePrintLabel.cs

+ 7 - 0
UAS-MES/FunctionCode/Make/Make_RePrintLabel.cs

@@ -176,6 +176,9 @@ namespace UAS_MES.Make
 
         private void PrintLabel_TextChanged(object sender, EventArgs e)
         {
+            if (pr_code.Text=="") {
+                return;
+            }
             if (fuselagel.Checked)
             {
                 getlabel = "select pl_labelcode ||':'||pl_labelname pl_name,pl_labelname,pl_labelcode, pl_indate,pl_labelurl from productlabel where pl_prodcode='" + pr_code.Text + "'and PL_LABELTYPE='机身标' order by pl_isdefault desc";
@@ -414,6 +417,10 @@ namespace UAS_MES.Make
             pr_code.Text = "";
             pr_detail.Text = "";
             TSN = "";
+            if (listA != null)
+            {
+                listA.Clear();
+            }
         }
     }
 }