Procházet zdrojové kódy

自动带出箱内容量

章政 před 8 roky
rodič
revize
2d5113c611

+ 5 - 1
UAS-MES/FunctionCode/Make/Make_PalletCollection.cs

@@ -112,11 +112,15 @@ namespace UAS_MES.Make
                         return;
                     }
                     sql.Clear();
-                    sql.Append("select pd_makecode pa_makecode,nvl(pa_downstatus,0)pa_downstatus,pa_id,pd_prodcode pa_prodcode,pa_mothercode,pa_status,pa_nextstep from packagedetail ");
+                    sql.Append("select pd_makecode pa_makecode,nvl(pa_downstatus,0)pa_downstatus,nvl(pa_standardqty,PR_PALLETQTY)pa_standardqty,pa_id,pd_prodcode pa_prodcode,pa_mothercode,pa_status,pa_nextstep from packagedetail ");
                     sql.Append("left join package on pd_paid=pa_id left join product on pr_code=pd_prodcode where pd_outboxcode='" + outboxcode.Text + "'");
                     dt = (DataTable)dh.ExecuteSql(sql.GetString(), "select");
                     if (dt.Rows.Count > 0)
                     {
+                        if (pa_standardqty.Text != "")
+                        {
+                            dt.Columns.Remove("pa_standardqty");
+                        }
                         BaseUtil.SetFormValue(this.Controls, dt);
                         if (dt.Rows[0]["pa_downstatus"].ToString() != "0")
                         {