|
@@ -154,7 +154,7 @@ namespace UAS_MES.Make
|
|
|
//加载表单数据
|
|
//加载表单数据
|
|
|
string Err = "";
|
|
string Err = "";
|
|
|
sql.Clear();
|
|
sql.Clear();
|
|
|
- sql.Append("select pa_prodcode,pr_cartonmaxw,pa_makecode,pr_cartonunit,pr_code,pr_cartonminw,pr_cartongw,pa_outboxcode,pa_sccode,nvl(pa_downstatus,0) pa_downstatus,pa_checkno,");
|
|
|
|
|
|
|
+ sql.Append("select pa_prodcode,pr_cartonmaxw,pa_salecode,pa_makecode,pr_cartonunit,pr_code,pr_cartonminw,pr_cartongw,pa_outboxcode,pa_sccode,nvl(pa_downstatus,0) pa_downstatus,pa_checkno,");
|
|
|
sql.Append("pa_status,pr_packrule,pr_detail,pa_packageqty,nvl(pa_standardqty,0)pa_standardqty,nvl(pr_outboxinnerqty,0)pr_outboxinnerqty,nvl(PR_CHECKCARTONW,'0') PR_CHECKCARTONW,pa_currentqty from package left join ");
|
|
sql.Append("pa_status,pr_packrule,pr_detail,pa_packageqty,nvl(pa_standardqty,0)pa_standardqty,nvl(pr_outboxinnerqty,0)pr_outboxinnerqty,nvl(PR_CHECKCARTONW,'0') PR_CHECKCARTONW,pa_currentqty from package left join ");
|
|
|
sql.Append("product on pa_prodcode=pr_code where pa_outboxcode='" + pa_outboxcode.Text + "'");
|
|
sql.Append("product on pa_prodcode=pr_code where pa_outboxcode='" + pa_outboxcode.Text + "'");
|
|
|
Err = "箱号";
|
|
Err = "箱号";
|
|
@@ -166,6 +166,7 @@ namespace UAS_MES.Make
|
|
|
string _maxweight = dt.Rows[0]["pr_cartonmaxw"].ToString();
|
|
string _maxweight = dt.Rows[0]["pr_cartonmaxw"].ToString();
|
|
|
string _minweight = dt.Rows[0]["pr_cartonminw"].ToString();
|
|
string _minweight = dt.Rows[0]["pr_cartonminw"].ToString();
|
|
|
PR_CHECKCARTONW = dt.Rows[0]["PR_CHECKCARTONW"].ToString();
|
|
PR_CHECKCARTONW = dt.Rows[0]["PR_CHECKCARTONW"].ToString();
|
|
|
|
|
+ ms_salecode.Text = dt.Rows[0]["pa_salecode"].ToString();
|
|
|
if (PR_CHECKCARTONW != "0")
|
|
if (PR_CHECKCARTONW != "0")
|
|
|
checkweightlabel.Text = "需要检测重量";
|
|
checkweightlabel.Text = "需要检测重量";
|
|
|
else
|
|
else
|