|
|
@@ -2037,7 +2037,7 @@ namespace UAS_LabelMachine
|
|
|
if (DataHelper.DBConnectionString.Contains("richwell") || DataHelper.DBConnectionString.Contains("192.168.0.88"))
|
|
|
{
|
|
|
sql.Clear();
|
|
|
- sql.Append("select pd_custprodcode,pd_pocode,pd_inoutno,pib_madein,pib_custbarcode,pib_brand,pib_cusbarcode,pib_cusoutboxcode,pib_id,pib_pdid,pib_piid,pib_pdno,pib_prodcode,");
|
|
|
+ sql.Append("select pd_custprodcode,pd_pocode,pd_inoutno,pib_datecode1,pib_madein,pib_custbarcode,pib_brand,pib_cusbarcode,pib_cusoutboxcode,pib_id,pib_pdid,pib_piid,pib_pdno,pib_prodcode,");
|
|
|
sql.Append("pr_brand,pr_vendprodcode,pib_lotno,pib_datecode,pib_qty,pib_barcode,pib_outboxcode1,pib_outboxcode2,pib_ifpick,pib_ifprint,");
|
|
|
sql.Append("pr_spec,pd_prodcode,pd_pocode,pr_code from prodiobarcode left join prodiodetail on pib_piid=pd_piid and pd_pdno=pib_pdno ");
|
|
|
sql.Append("and pd_prodcode=pib_prodcode left join product on pr_code=pib_prodcode left join (select pd_prodcode ");
|
|
|
@@ -2450,7 +2450,7 @@ namespace UAS_LabelMachine
|
|
|
string CurrentTime = System.DateTime.Now.ToString("yyyyMM");
|
|
|
string Createcode = VenderCode + CurrentTime;
|
|
|
string outboxcode = "";
|
|
|
- string pwd = "|nxj#~_^";
|
|
|
+ string pwd = "9G69NHy5";
|
|
|
//装入箱内的数量统计,用于判断是否达到容量
|
|
|
decimal InBoxCount = OutboxCapacity.Value;
|
|
|
for (int i = 0; i < LabelInf.Rows.Count; i++)
|
|
|
@@ -2465,7 +2465,7 @@ namespace UAS_LabelMachine
|
|
|
string custprodcode = LabelInf.Rows[i].Cells["pd_custprodcode"].Value.ToString();
|
|
|
//通过接口获取Vivo料盘号
|
|
|
//string custbarcode = getPlateID.getCompID(Createcode, "", custprodcode, VenderCode, LotNo, DateCode, amount, OrderCode, "", "").Replace("T-", "");
|
|
|
- string custbarcode = getPlateID.getCompID_20190403("", custprodcode, VenderCode, "", amount, "新条码", OrderCode, LotNo, DateCode, User.UserCode, pwd).Replace("T-", "");
|
|
|
+ string custbarcode = BaseUtil.ToDictionary(getPlateID.getCompID_20190403("", custprodcode, VenderCode, "", amount, "新条码", OrderCode, LotNo, DateCode, VenderCode, pwd),"")["return_result"].ToString();
|
|
|
LabelInf.Rows[i].Cells["pib_cusbarcode"].Value = custbarcode;
|
|
|
//如果下一行的外箱号和当前行不一致
|
|
|
bool NextBoxDiff = false;
|
|
|
@@ -2481,20 +2481,18 @@ namespace UAS_LabelMachine
|
|
|
InBoxCount = OutboxCapacity.Value - 1;
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
if (InBoxCount == OutboxCapacity.Value || NextBoxDiff)
|
|
|
{
|
|
|
- outboxcode = VenderCode + "-" + CurrentTime + "-" + LabelInf.Rows[i].Cells["pib_id1"].Value.ToString();
|
|
|
InBoxCount = 1;
|
|
|
NextBoxDiff = false;
|
|
|
}
|
|
|
else
|
|
|
InBoxCount = InBoxCount + 1;
|
|
|
+ outboxcode = BaseUtil.ToDictionary(getOutBox.getBoxID_20190403(VenderCode, custprodcode, amount.ToString(), OrderCode, "", VenderCode, pwd), "")["return_result"].ToString();
|
|
|
//获取信息为T-表示成功获取了信息
|
|
|
- string Message = getOutBox.insertBoxReelRelation(Createcode, VenderCode, outboxcode, custbarcode, "", User.UserCode, pwd);
|
|
|
- if (Message.Substring(0, 1) == "T")
|
|
|
- LabelInf.Rows[i].Cells["pib_cusoutboxcode"].Value = outboxcode;
|
|
|
- else
|
|
|
- LabelInf.Rows[i].Cells["pib_cusoutboxcode"].Value = Message;
|
|
|
+ string Message = getOutBox.BindReelToBox(outboxcode, custbarcode, VenderCode, pwd);
|
|
|
+ LabelInf.Rows[i].Cells["pib_cusoutboxcode"].Value = outboxcode;
|
|
|
}
|
|
|
}
|
|
|
}
|