Browse Source

完工入库界面数据显示问题修改

Hcsy 7 năm trước cách đây
mục cha
commit
5a19cc21d1

+ 4 - 3
UAS-MES/FunctionCode/Warehouse/Warehouse_ProductMakeIn.cs

@@ -467,7 +467,7 @@ namespace UAS_MES.Warehouse
             dh = SystemInf.dh;
             sql.Clear();
             sql.Append("select pim_id,pim_outboxcode,pim_mac,pim_prodcode,pr_detail,pr_spec from prodiomac ");
-            sql.Append("left join product on pr_code=pim_prodcode where pr_detail is null");
+            sql.Append("left join product on pr_code=pim_prodcode where pim_id is null");
             bindingSource1.DataSource = dh.ExecuteSql(sql.GetString(), "select");
             input.Focus();
             OperateResult.AppendText("请输入栈板进行采集\n", Color.Black, input);
@@ -514,7 +514,7 @@ namespace UAS_MES.Warehouse
 
         private void Search_Click(object sender, EventArgs e)
         {
-            if (pallecode.Text.Length >= 0)
+            if (pallecode.Text.Length >= 1)
             {
                 sql.Clear();
                 sql.Append("select pim_id,pim_outboxcode,pim_mac,pim_prodcode,pr_detail,pr_spec from prodiomac ");
@@ -522,7 +522,8 @@ namespace UAS_MES.Warehouse
                 DataTable dt = (DataTable)dh.ExecuteSql(sql.GetString(), "select");
                 BaseUtil.FillDgvWithDataTable(InOutDetailDGV, dt);
                 input.Enabled = false;
-            }
+            }else
+                OperateResult.AppendText("查询栏为空\n", Color.Black);
         }
 
         private void InOutDetailDGV_DataSourceChanged(object sender, EventArgs e)

+ 4 - 2
UAS_MES_NEW/FunctionCode/Warehouse/Warehouse_ProductMakeIn.cs

@@ -467,7 +467,7 @@ namespace UAS_MES_NEW.Warehouse
             dh = SystemInf.dh;
             sql.Clear();
             sql.Append("select pim_id,pim_outboxcode,pim_mac,pim_prodcode,pr_detail,pr_spec from prodiomac ");
-            sql.Append("left join product on pr_code=pim_prodcode where pr_detail is null");
+            sql.Append("left join product on pr_code=pim_prodcode where pim_id is null");
             bindingSource1.DataSource = dh.ExecuteSql(sql.GetString(), "select");
             input.Focus();
             OperateResult.AppendText("请输入栈板进行采集\n", Color.Black, input);
@@ -514,7 +514,7 @@ namespace UAS_MES_NEW.Warehouse
 
         private void Search_Click(object sender, EventArgs e)
         {
-            if (pallecode.Text.Length >= 0)
+            if (pallecode.Text.Length >= 1)
             {
                 sql.Clear();
                 sql.Append("select pim_id,pim_outboxcode,pim_mac,pim_prodcode,pr_detail,pr_spec from prodiomac ");
@@ -523,6 +523,8 @@ namespace UAS_MES_NEW.Warehouse
                 BaseUtil.FillDgvWithDataTable(InOutDetailDGV, dt);
                 input.Enabled = false;
             }
+            else
+                OperateResult.AppendText("查询栏为空\n", Color.Black);
         }
 
         private void InOutDetailDGV_DataSourceChanged(object sender, EventArgs e)