浏览代码

添加回来工序限制产品编号的条件

章政 8 年之前
父节点
当前提交
582ec0158e
共有 2 个文件被更改,包括 4 次插入2 次删除
  1. 1 1
      UAS-MES/FunctionCode/Make/Make_Repair.cs
  2. 3 1
      UAS-MES/FunctionCode/Make/Make_TestCollection.cs

+ 1 - 1
UAS-MES/FunctionCode/Make/Make_Repair.cs

@@ -561,7 +561,7 @@ namespace UAS_MES.Make
 
         private void cr_code_UserControlTextChanged(object sender, EventArgs e)
         {
-            cd_stepcode.Condition = "ST_STATUSCODE='AUDITED' and cr_code='" + cr_code.Text + "'";
+            cd_stepcode.Condition = "ST_STATUSCODE='AUDITED' and cr_code='" + cr_code.Text + "' and cr_prodcode='"+ms_prodcode.Text+"'";
         }
 
         private void Clean_Click(object sender, EventArgs e)

+ 3 - 1
UAS-MES/FunctionCode/Make/Make_TestCollection.cs

@@ -528,7 +528,9 @@ namespace UAS_MES.Make
             DataTable dt = (DataTable)dh.ExecuteSql(sql.GetString(), "select");
             if (dt.Rows.Count > 0)
             {
-                BaseUtil.SetFormValue(this.Controls, dt);
+                ob_batchqty.Text = dt.Rows[0]["ob_batchqty"].ToString();
+                ob_nowcheckqty.Text = dt.Rows[0]["ob_nowcheckqty"].ToString();
+                ob_checkno.Text = dt.Rows[0]["ob_checkno"].ToString();
                 nowcheckqty = int.Parse(ob_nowcheckqty.Text == "" ? "0" : ob_nowcheckqty.Text);
                 batchqty = int.Parse(ob_batchqty.Text == "" ? "0" : ob_batchqty.Text);
                 if (nowcheckqty > batchqty)