|
|
@@ -85,15 +85,15 @@ namespace UAS_MES.Make
|
|
|
//根据箱号查询表单数据
|
|
|
pd_barcode.Text = dh.getFieldDataByCondition("makeserial left join package on ms_prodcode=pa_prodcode", "ms_sncode", "pa_outboxcode='" + outboxcode.Text + "'").ToString();
|
|
|
sql.Clear();
|
|
|
- sql.Append("select pa_totalqty,pd_barcode,ma_code,mcd_inqty,ma_qty,ma_qty-mcd_inqty as mcd_waitqty,ma_salecode,pr_detail,pr_cartonunit,pr_code,pr_cartongw,");
|
|
|
- sql.Append("pr_cartonmaxw,pr_cartonminw from package left join product on pr_code=pa_prodcode left join make on ma_prodcode=pr_code left join makecraftdetail ");
|
|
|
- sql.Append("on mcd_macode=ma_code left join packagedetail on pd_outboxcode=pa_outboxcode where pa_outboxcode='" + outboxcode.Text + "' and mcd_stepcode='" + User.CurrentStepCode + "'");
|
|
|
+ sql.Append("select pa_totalqty,ma_code,mcd_inqty,ma_qty,ma_qty-mcd_inqty as mcd_waitqty,ma_salecode,pr_detail,pr_cartonunit,pr_code,pr_cartongw,");
|
|
|
+ sql.Append("pr_cartonmaxw,pr_cartonminw from package left join product on pr_code=pa_prodcode left join make on ma_prodcode=pr_code and ma_code=pa_makecode ");
|
|
|
+ sql.Append("left join makecraftdetail on mcd_macode=ma_code where pa_outboxcode='" + outboxcode.Text + "' and mcd_stepcode='" + User.CurrentStepCode + "'");
|
|
|
dt = (DataTable)dh.ExecuteSql(sql.GetString(), "select");
|
|
|
//填充Form的值
|
|
|
BaseUtil.SetFormValue(this.Controls, dt);
|
|
|
//填充打印文件选项的DataGridView
|
|
|
if (dt.Rows.Count > 0)
|
|
|
- {
|
|
|
+ {
|
|
|
string ErrorMessage;
|
|
|
//重量的临时变量
|
|
|
string _weight = dt.Rows[0]["pr_cartongw"].ToString();
|