|
|
@@ -150,7 +150,7 @@ namespace UAS_MES_NEW.Packing
|
|
|
}
|
|
|
//根据箱号查询表单数据
|
|
|
sql.Clear();
|
|
|
- sql.Append("select pa_totalqty,ma_code,ma_qty,ma_salecode,pa_prodcode,PA_STANDARDQTY PA_STANDARDQTYCARTON,PA_CURRENTQTY,pr_detail,pr_cartonunit,pr_code,pr_palletweight,");
|
|
|
+ sql.Append("select pr_palletminweight,pr_palletmaxweight,pa_totalqty,ma_code,ma_qty,ma_salecode,pa_prodcode,PA_STANDARDQTY PA_STANDARDQTYCARTON,PA_CURRENTQTY,pr_detail,pr_cartonunit,pr_code,pr_palletweight,");
|
|
|
sql.Append("pr_cartonmaxw,pr_cartonminw,nvl(PR_CHECKCARTONW,'0') PR_CHECKCARTONW,nvl(pr_sendchecktype,'LineCode')pr_sendchecktype from package left join packagedetail ");
|
|
|
sql.Append("on pa_id=pd_paid left join makeserial on ms_sncode=pd_barcode and ms_makecode=pa_makecode left join product on pr_code=pd_prodcode left join make on ma_code=pd_makecode ");
|
|
|
sql.Append(" where pa_outboxcode='" + outboxcode.Text + "' and pa_nextstep='" + User.CurrentStepCode + "'");
|
|
|
@@ -163,8 +163,8 @@ namespace UAS_MES_NEW.Packing
|
|
|
//重量的临时变量
|
|
|
PR_CHECKCARTONW = dt.Rows[0]["PR_CHECKCARTONW"].ToString();
|
|
|
string _weight = dt.Rows[0]["pr_palletweight"].ToString();
|
|
|
- string _maxweight = dt.Rows[0]["pr_cartonmaxw"].ToString();
|
|
|
- string _minweight = dt.Rows[0]["pr_cartonminw"].ToString();
|
|
|
+ string _maxweight = dt.Rows[0]["pr_palletmaxweight"].ToString();
|
|
|
+ string _minweight = dt.Rows[0]["pr_palletminweight"].ToString();
|
|
|
string pa_pr_cartonunit = dt.Rows[0]["pr_cartonunit"].ToString();
|
|
|
string PA_STANDARDQTY = dt.Rows[0]["PA_STANDARDQTYCARTON"].ToString();
|
|
|
string PA_CURRENTQTY = dt.Rows[0]["PA_CURRENTQTY"].ToString();
|
|
|
@@ -806,14 +806,14 @@ namespace UAS_MES_NEW.Packing
|
|
|
private void RefreshWeigh_Click(object sender, EventArgs e)
|
|
|
{
|
|
|
sql.Clear();
|
|
|
- sql.Append("select pr_cartonmaxw,pr_cartonunit,pr_cartonminw,pr_palletweight from product where pr_code='" + pr_code.Text + "'");
|
|
|
+ sql.Append("select pr_palletminweight,pr_palletmaxweight,pr_cartonmaxw,pr_cartonunit,pr_cartonminw,pr_palletweight from product where pr_code='" + pr_code.Text + "'");
|
|
|
DataTable dt = (DataTable)dh.ExecuteSql(sql.GetString(), "select");
|
|
|
//填充打印文件选项的DataGridView
|
|
|
if (dt.Rows.Count > 0)
|
|
|
{
|
|
|
string _weight = dt.Rows[0]["pr_palletweight"].ToString();
|
|
|
- string _maxweight = dt.Rows[0]["pr_cartonmaxw"].ToString();
|
|
|
- string _minweight = dt.Rows[0]["pr_cartonminw"].ToString();
|
|
|
+ string _maxweight = dt.Rows[0]["pr_palletmaxweight"].ToString();
|
|
|
+ string _minweight = dt.Rows[0]["pr_palletminweight"].ToString();
|
|
|
Weight = double.Parse(_weight == "" ? "0" : _weight);
|
|
|
MaxWeight = double.Parse(_maxweight == "" ? "0" : _maxweight);
|
|
|
MinWeight = double.Parse(_minweight == "" ? "0" : _minweight);
|