Browse Source

清除无用代码

章政 7 years ago
parent
commit
9025023780
1 changed files with 2 additions and 35 deletions
  1. 2 35
      UAS-出货标签管理/生成条码.cs

+ 2 - 35
UAS-出货标签管理/生成条码.cs

@@ -25,8 +25,6 @@ namespace UAS_LabelMachine
         Dictionary<string, string> NotPass = new Dictionary<string, string>();
         Dictionary<string, string> NotPass = new Dictionary<string, string>();
         //前缀条件
         //前缀条件
         string Prefix = "";
         string Prefix = "";
-
-        string Condition = "";
         //生成条码的流水号
         //生成条码的流水号
         int serialnum = 0;
         int serialnum = 0;
         //客户的流水号
         //客户的流水号
@@ -51,8 +49,7 @@ namespace UAS_LabelMachine
             //如果传进了出入库单号则默认执行一次取数据
             //如果传进了出入库单号则默认执行一次取数据
             if (pi_inoutno.Text != "")
             if (pi_inoutno.Text != "")
             {
             {
-                KeyEventArgs e2 = new KeyEventArgs(Keys.Enter);
-                bi_inoutno_KeyDown(sender, e2);
+                bi_inoutno_KeyDown(sender, new KeyEventArgs(Keys.Enter));
             }
             }
             pr_kind.Text = "全部";
             pr_kind.Text = "全部";
             asc.controllInitializeSize(this);
             asc.controllInitializeSize(this);
@@ -79,22 +76,7 @@ namespace UAS_LabelMachine
         /// <param name="e"></param>
         /// <param name="e"></param>
         private void Screen_Click(object sender, EventArgs e)
         private void Screen_Click(object sender, EventArgs e)
         {
         {
-            switch (pr_kind.Text)
-            {
-                case "全部":
-                    Condition = "";
-                    break;
-                case "单件管控":
-                    Condition = " and pr_tracekind=1";
-                    break;
-                case "批管控":
-                    Condition = " and pr_tracekind=2";
-                    break;
-                default:
-                    break;
-            }
-            KeyEventArgs e2 = new KeyEventArgs(Keys.Enter);
-            bi_inoutno_KeyDown(sender, e2);
+            bi_inoutno_KeyDown(sender, new KeyEventArgs(Keys.Enter));
         }
         }
 
 
         /// <summary>
         /// <summary>
@@ -334,8 +316,6 @@ namespace UAS_LabelMachine
             return str;
             return str;
         }
         }
 
 
-      
-
         private static string lpad(int length, string number)
         private static string lpad(int length, string number)
         {
         {
             while (number.Length < length)
             while (number.Length < length)
@@ -536,19 +516,6 @@ namespace UAS_LabelMachine
                 BaseUtil.SetFormValue(this.Controls, dt);
                 BaseUtil.SetFormValue(this.Controls, dt);
                 //查询出入库的类型
                 //查询出入库的类型
                 dt = (DataTable)dh.ExecuteSql("select ds_inorout from documentsetup where ds_name='" + pi_class.Text + "'", "select");
                 dt = (DataTable)dh.ExecuteSql("select ds_inorout from documentsetup where ds_name='" + pi_class.Text + "'", "select");
-                string pd_inoroutqty = "";
-                string pd_barcodeioqty = "";
-                //判断出入库类型,查询的时候设置不同的字段
-                if (dt.Rows[0]["ds_inorout"].ToString().ToUpper() == "IN")
-                {
-                    pd_inoroutqty = "pd_inqty";
-                    pd_barcodeioqty = "pd_barcodeinqty";
-                }
-                else if (dt.Rows[0]["ds_inorout"].ToString().ToUpper() == "OUT")
-                {
-                    pd_inoroutqty = "pd_outqty";
-                    pd_barcodeioqty = "pd_barcodeoutqty";
-                }
                 sql.Clear();
                 sql.Clear();
                 sql.Append("select * from prodiobarcode_view where  pd_piid='" + pi_id + "'");
                 sql.Append("select * from prodiobarcode_view where  pd_piid='" + pi_id + "'");
                 dt = (DataTable)dh.ExecuteSql(sql.ToString(), "select");
                 dt = (DataTable)dh.ExecuteSql(sql.ToString(), "select");