|
|
@@ -149,6 +149,10 @@ namespace UAS_MES_NEW.Warehouse
|
|
|
private string RefreshWeight(string pr_code, string pa_outboxcode)
|
|
|
{
|
|
|
string boxweight = dh.getFieldDataByCondition("makeserial", "nvl(sum(ms_midboxweight),0)", "ms_outboxcode='" + pa_outboxcode + "'").ToString();
|
|
|
+ if (boxweight == "0")
|
|
|
+ {
|
|
|
+ boxweight = dh.getFieldDataByCondition("package", "nvl(sum(pa_weight),0)", "pa_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();
|
|
|
sumpalletweight.Text = (double.Parse(boxweight)).ToString();
|