|
|
@@ -71,6 +71,12 @@ namespace UAS_MES_NEW.Warehouse
|
|
|
asc.controllInitializeSize(this);
|
|
|
dh = SystemInf.dh;
|
|
|
needMakeIn = dh.GetConfig("needMakeIn", "MESSetting").ToString();
|
|
|
+ try
|
|
|
+ {
|
|
|
+ ComList.Text = BaseUtil.GetCacheData("PortName").ToString();
|
|
|
+ Baurate.Text = BaseUtil.GetCacheData("BaudRate").ToString();
|
|
|
+ }
|
|
|
+ catch (Exception) { }
|
|
|
thread = new Thread(getSerialData);
|
|
|
try
|
|
|
{
|
|
|
@@ -142,7 +148,7 @@ namespace UAS_MES_NEW.Warehouse
|
|
|
|
|
|
private string RefreshWeight(string pr_code, string pa_outboxcode)
|
|
|
{
|
|
|
- string boxweight = dh.getFieldDataByCondition("package", "nvl(sum(pa_weight),0)", "pa_mothercode='" + pa_outboxcode + "'").ToString();
|
|
|
+ string boxweight = dh.getFieldDataByCondition("makeserial", "nvl(sum(ms_midboxweight),0)", "ms_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();
|