Browse Source

添加合并存储过程调用

章政 6 years ago
parent
commit
4f0465a0c3
1 changed files with 17 additions and 5 deletions
  1. 17 5
      UAS-出货标签管理(泽天)/UAS_出货标签管理.cs

+ 17 - 5
UAS-出货标签管理(泽天)/UAS_出货标签管理.cs

@@ -571,6 +571,10 @@ namespace UAS_LabelMachine
                 dt = (DataTable)dh.ExecuteSql(sql.ToString(), "select");
                 if (dt.Rows.Count > 0)
                 {
+                    pi_cardcode.Text = dt.Rows[0]["pi_cardcode"].ToString();
+                    pi_title.Text = dt.Rows[0]["pi_title"].ToString();
+                    pi_date.Text = dt.Rows[0]["pi_date"].ToString();
+                    PI_ID = dt.Rows[0]["pi_id"].ToString();
                     switch (dt.Rows[0]["pi_combine_user"].ToString())
                     {
                         case "1":
@@ -582,8 +586,6 @@ namespace UAS_LabelMachine
                         default:
                             break;
                     }
-                    pi_cardcode.Text = dt.Rows[0]["pi_cardcode"].ToString();
-                    pi_title.Text = dt.Rows[0]["pi_title"].ToString();
                     if (pi_cardcode.Text != "ZGCC")
                     {
                         CustomerLabel.Enabled = false;
@@ -592,8 +594,7 @@ namespace UAS_LabelMachine
                     {
                         CustomerLabel.Enabled = true;
                     }
-                    pi_date.Text = dt.Rows[0]["pi_date"].ToString();
-                    PI_ID = dt.Rows[0]["pi_id"].ToString();
+       
                     OutBoxNum_Click(new object(), new EventArgs());
                     LoadPrcodeData();
                     //获取条码规则
@@ -1896,9 +1897,14 @@ namespace UAS_LabelMachine
             {
                 CombindetailTwo.Checked = false;
             }
-            if (LoadCheck)
+            if (LoadCheck) {
                 LoadPrcodeData();
+                string response = "";
+                string[] param = new string[] { PI_ID, "1", response };
+                dh.CallProcedure("USER_PRODOUT_GROUPQTY", param);
+            }
         }
+
         private void CombindetailTwo_CheckedChanged(object sender, EventArgs e)
         {
             if (CombindetailTwo.Checked)
@@ -1906,8 +1912,14 @@ namespace UAS_LabelMachine
                 Combindetail.Checked = false;
             }
             if (LoadCheck)
+            {
                 LoadPrcodeData();
+                string response = "";
+                string[] param = new string[] { PI_ID, "2", response };
+                dh.CallProcedure("USER_PRODOUT_GROUPQTY", param);
+            }
         }
+
         string SelectProdcode = "";
         int SelectRowIndex = -1;
         private void LabelInf_CellClick(object sender, DataGridViewCellEventArgs e)