|
@@ -141,13 +141,13 @@ namespace UAS_MES_NEW.Packing
|
|
|
}
|
|
|
}
|
|
|
sql.Clear();
|
|
|
- sql.Append("select nvl(pa_iostatus,0)pa_iostatus,pa_outno,pa_makecode,pa_makecode pd_makecode,nvl(pa_downstatus,0)pa_downstatus,pa_salecode pd_salecode,pr_packrule,pa_id,pa_prodcode pd_prodcode,pa_status,pa_mothercode,pa_nextstep ");
|
|
|
+ sql.Append("select nvl(pa_iostatus,0)pa_iostatus,pa_outno,pa_makecode, pd_makecode,nvl(pa_downstatus,0)pa_downstatus,pa_salecode pd_salecode,pr_packrule,pa_id,pa_prodcode pd_prodcode,pa_status,pa_mothercode,pa_nextstep ");
|
|
|
sql.Append("from packagedetail left join package on pd_paid=pa_id left join product on pd_prodcode=pr_code where pd_outboxcode='" + outboxcode.Text + "'");
|
|
|
dt = (DataTable)dh.ExecuteSql(sql.GetString(), "select");
|
|
|
if (dt.Rows.Count > 0)
|
|
|
{
|
|
|
BaseUtil.SetFormValue(this.Controls, dt);
|
|
|
-
|
|
|
+ pa_makecode.Text = dt.Rows[0]["pd_makecode"].ToString();
|
|
|
if (dt.Rows[0]["pa_downstatus"].ToString() != "0")
|
|
|
{
|
|
|
OperateResult.AppendText(">>箱号" + outboxcode.Text + "下地状态不允许采集\n", Color.Red, outboxcode);
|