|
|
@@ -397,7 +397,7 @@ namespace UAS_MES.Make
|
|
|
dh.ExecuteSql("update package set PA_TOTALQTY=(select sum(pd_innerqty) from packagedetail left join package on pa_id=pd_paid where pa_outboxcode='" + MotherCode2 + "') where pa_outboxcode='" + MotherCode2 + "'", "update");
|
|
|
}
|
|
|
}
|
|
|
- if (dt.Rows[0]["pa_type"] == "3")
|
|
|
+ if (dt.Rows[0]["pa_type"].ToString() == "3")
|
|
|
{
|
|
|
dh.ExecuteSql("update package set PA_TOTALQTY=(select sum(pd_innerqty) from packagedetail left join package on pa_id=pd_paid where pa_outboxcode='" + MotherBoxCode + "') where pa_outboxcode='" + MotherBoxCode + "'", "update");
|
|
|
}
|
|
|
@@ -480,7 +480,7 @@ namespace UAS_MES.Make
|
|
|
dh.ExecuteSql("update package set PA_TOTALQTY=(select sum(pd_innerqty) from packagedetail left join package on pa_id=pd_paid where pa_outboxcode='" + MotherCode2 + "') where pa_outboxcode='" + MotherCode2 + "'", "update");
|
|
|
}
|
|
|
}
|
|
|
- if (dt.Rows[0]["pa_type"] == "3")
|
|
|
+ if (dt.Rows[0]["pa_type"].ToString() == "3")
|
|
|
{
|
|
|
dh.ExecuteSql("update package set PA_TOTALQTY=(select sum(pd_innerqty) from packagedetail left join package on pa_id=pd_paid where pa_outboxcode='" + MotherBoxCode + "') where pa_outboxcode='" + MotherBoxCode + "'", "update");
|
|
|
}
|