|
|
@@ -1096,7 +1096,7 @@ namespace UAS_LabelMachine
|
|
|
if (dh.GetConfig("AutoBarcode", "ProdInOut!Sale").ToString() != "")
|
|
|
{
|
|
|
string[] param = new string[] { PI_ID, "" };
|
|
|
- dh.CallProcedure("GetCustBarcode", param);
|
|
|
+ dh.CallProcedure("GetCustBarcode", ref param);
|
|
|
}
|
|
|
LoadGridData(sender, e);
|
|
|
//重新输入单号后清除缓存
|
|
|
@@ -2232,6 +2232,15 @@ namespace UAS_LabelMachine
|
|
|
}
|
|
|
string pib_outboxcode2 = dt.Rows[i]["箱号"].ToString();
|
|
|
DataRow[] dr = dt1.Select("pr_orispeccode='" + pr_orispeccode + "'");
|
|
|
+ if (dr.Length == 0)
|
|
|
+ {
|
|
|
+ LogicHandler.FilterData(cu_code.Text, "FUDAN", pr_orispeccode, qty, DateCode, LotNo, out pr_orispeccode, out qty, out DateCode, out LotNo);
|
|
|
+ dr = dt1.Select("pr_orispeccode='" + pr_orispeccode + "'");
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ LogicHandler.FilterData(cu_code.Text, dr[0]["pr_brand"].ToString(), pr_orispeccode, qty, DateCode, LotNo, out pr_orispeccode, out qty, out DateCode, out LotNo);
|
|
|
+ }
|
|
|
if (dr.Length > 0)
|
|
|
{
|
|
|
string pd_orderdetno = dr[0]["pd_orderdetno"].ToString();
|
|
|
@@ -2249,7 +2258,7 @@ namespace UAS_LabelMachine
|
|
|
string pib_barcode = dh.getFieldDataByCondition("prodiobarcode", "max(pib_barcode)", "PIB_INOUTNO='" + pi_inoutno.Text + "'").ToString();
|
|
|
if (outqty % zxbzs != 0)
|
|
|
{
|
|
|
- barcodenum = outqty / zxbzs + 1;
|
|
|
+ barcodenum = Math.Floor(outqty / zxbzs) + 1;
|
|
|
//如果有余数先加上所有最小包最后加尾数
|
|
|
for (int j = 0; j < barcodenum - 1; j++)
|
|
|
{
|