|
@@ -151,7 +151,7 @@ namespace UAS_MES_NEW.Warehouse
|
|
|
string boxweight = dh.getFieldDataByCondition("package", "nvl(sum(pa_weight),0)", "pa_outboxcode='" + pa_outboxcode + "'").ToString();
|
|
string boxweight = dh.getFieldDataByCondition("package", "nvl(sum(pa_weight),0)", "pa_outboxcode='" + pa_outboxcode + "'").ToString();
|
|
|
if (boxweight == "0" || boxweight == "")
|
|
if (boxweight == "0" || boxweight == "")
|
|
|
{
|
|
{
|
|
|
- boxweight = dh.getFieldDataByCondition("makeserial", "nvl(sum(ms_midboxweight),0)", "ms_outboxcode='" + pa_outboxcode + "'").ToString();
|
|
|
|
|
|
|
+ boxweight = dh.getFieldDataByCondition("mes_package_view left join makeserial on ms_sncode=v_barcode and ms_makecode=v_makecode", "nvl(sum(ms_midboxweight),0)", "v_outboxcode='" + pa_outboxcode + "'").ToString();
|
|
|
}
|
|
}
|
|
|
string pr_Singlelevelqty = dh.getFieldDataByCondition("packagedetail left join product on PD_PRODCODE=pr_code", "nvl(pr_Singlelevelqty,1)", "pd_outboxcode='" + pa_outboxcode + "'").ToString();
|
|
string pr_Singlelevelqty = dh.getFieldDataByCondition("packagedetail left join product on PD_PRODCODE=pr_code", "nvl(pr_Singlelevelqty,1)", "pd_outboxcode='" + pa_outboxcode + "'").ToString();
|
|
|
string palletweight = dh.getFieldDataByCondition("pallet", "nvl(PL_WEIGHT,0)", "PL_CODE=(select PA_PALLETNO from package where pa_outboxcode='" + pa_outboxcode + "')").ToString();
|
|
string palletweight = dh.getFieldDataByCondition("pallet", "nvl(PL_WEIGHT,0)", "PL_CODE=(select PA_PALLETNO from package where pa_outboxcode='" + pa_outboxcode + "')").ToString();
|