Browse Source

排版修改

章政 8 years ago
parent
commit
3f7b2ee6fb
1 changed files with 5 additions and 3 deletions
  1. 5 3
      UAS-MES/FunctionCode/OQC/OQC_Inspection.cs

+ 5 - 3
UAS-MES/FunctionCode/OQC/OQC_Inspection.cs

@@ -110,7 +110,7 @@ namespace UAS_MES.OQC
                                     sql.Append(",v_outboxcode,v_makecode,sysdate from MES_PACKAGE_VIEW where v_outboxcode='" + pa_outboxcode.Text + "'");
                                     dh.ExecuteSql(sql.GetString(), "insert");
                                     string obd_id = dh.getFieldDataByCondition("OQCBatchDetail", "obd_id", "obd_outboxcode='" + pa_outboxcode.Text + "'").ToString();
-                                    dh.UpdateByCondition("OQCBatch", "ob_nowcheckqty =(select count(1) from OQCBatchDetail where obd_checkno='" + ob_checkno.Text + "')", "ob_checkno='" + ob_checkno.Text+"'");
+                                    dh.UpdateByCondition("OQCBatch", "ob_nowcheckqty =(select count(1) from OQCBatchDetail where obd_checkno='" + ob_checkno.Text + "')", "ob_checkno='" + ob_checkno.Text + "'");
                                     dh.UpdateByCondition("makeserial", "ms_checkno='" + ob_checkno.Text + "'", "ms_outboxcode='" + pa_outboxcode.Text + "'");
                                     GetBatch.PerformClick();
                                     OperateResult.AppendText(">>箱号" + pa_outboxcode.Text + "成功维护到送检批\n", Color.Green, pa_outboxcode);
@@ -232,8 +232,7 @@ namespace UAS_MES.OQC
                 OperateResult.AppendText(">>抽检批次" + ob_checkno.Text + "已删除\n", Color.Green);
                 BaseUtil.CleanForm(this);
             }
-            else
-                OperateResult.AppendText(">>抽检批次不存在或者单据状态不是在录入\n", Color.Red);
+            else OperateResult.AppendText(">>抽检批次不存在或者单据状态不是在录入\n", Color.Red);
         }
 
         /// <summary>
@@ -259,7 +258,10 @@ namespace UAS_MES.OQC
         {
             if (ob_checkno.Text != "")
                 SendOQC.Enabled = true;
+            else
+                SendOQC.Enabled = false;
         }
+
         private void ob_checkno_KeyDown(object sender, KeyEventArgs e)
         {
             if (e.KeyCode == Keys.Enter)