|
|
@@ -11,7 +11,6 @@ using LabelManager2;
|
|
|
using UAS_LabelMachine.PublicMethod;
|
|
|
using UAS_LabelMachine.Entity;
|
|
|
using UAS_特殊解析规则;
|
|
|
-using UAS_LabelMachine.CustomControl.GroupBoxWithBorder;
|
|
|
using UAS_LabelMachine.PublicForm;
|
|
|
using System.Threading;
|
|
|
using System.IO;
|
|
|
@@ -207,6 +206,7 @@ namespace UAS_LabelMachine
|
|
|
pib_datecode1.Visible = true;
|
|
|
SingleLabelAutoPrint.Checked = true;
|
|
|
MidLabelAutoPrint.Checked = true;
|
|
|
+ pib_madein.Visible = true;
|
|
|
}
|
|
|
if (!(DataHelper.DBConnectionString.Contains("richwell") || DataHelper.DBConnectionString.Contains("192.168.0.88")))
|
|
|
{
|
|
|
@@ -1028,6 +1028,8 @@ namespace UAS_LabelMachine
|
|
|
OutBoxCombox.DisplayMember = "cl_labelname";
|
|
|
OutBoxCombox.ValueMember = "la_id";
|
|
|
OutBoxCombox.DataSource = dt;
|
|
|
+ if (OutBoxDoc != null)
|
|
|
+ OutBoxDoc.Close();
|
|
|
if (!GetGridOnly.Checked)
|
|
|
for (int i = 0; i < dt.Rows.Count; i++)
|
|
|
{
|
|
|
@@ -1040,8 +1042,6 @@ namespace UAS_LabelMachine
|
|
|
}
|
|
|
if (OutBoxCombox.Text != "")
|
|
|
{
|
|
|
- if (OutBoxDoc != null)
|
|
|
- OutBoxDoc.Close();
|
|
|
OutBoxDoc = lbl.Documents.Open(ftpOperater.DownLoadTo + OutBoxCombox.Text);
|
|
|
}
|
|
|
ComBoxClickChangeLabelDoc = true;
|
|
|
@@ -1214,6 +1214,11 @@ namespace UAS_LabelMachine
|
|
|
if (LabelInf.Rows[i].Cells["pib_madein"].Value != null)
|
|
|
SingleDoc.Variables.FreeVariables.Item(j + 1).Value = LabelInf.Rows[i].Cells["pib_madein"].Value.ToString();
|
|
|
}
|
|
|
+ else if (SingleDoc.Variables.FreeVariables.Item(j + 1).Name.ToLower().Contains("pib_cusbarcode"))
|
|
|
+ {
|
|
|
+ if (LabelInf.Rows[i].Cells["pib_cusbarcode"].Value != null)
|
|
|
+ SingleDoc.Variables.FreeVariables.Item(j + 1).Value = LabelInf.Rows[i].Cells["pib_cusbarcode"].Value.ToString();
|
|
|
+ }
|
|
|
else if (arg.Contains(SingleDoc.Variables.FreeVariables.Item(j + 1).Name))
|
|
|
SingleDoc.Variables.FreeVariables.Item(j + 1).Value = dr[0][SingleDoc.Variables.FreeVariables.Item(j + 1).Name].ToString();
|
|
|
ParamLog.AppendLine("pib_id:" + LabelInf.Rows[i].Cells["pib_id1"].Value.ToString() + ",SingleDoc打印参数【" + SingleDoc.Variables.FreeVariables.Item(j + 1).Name + "】赋值," + "取到值" + SingleDoc.Variables.FreeVariables.Item(j + 1).Value);
|
|
|
@@ -2403,8 +2408,8 @@ namespace UAS_LabelMachine
|
|
|
string OrderCode = LabelInf.Rows[i].Cells["pr_vendprodcode"].Value.ToString();
|
|
|
string custprodcode = LabelInf.Rows[i].Cells["pd_custprodcode"].Value.ToString();
|
|
|
//通过接口获取Vivo料盘号
|
|
|
- string custbarcode = getPlateID.getCompID(Createcode, "", custprodcode, VenderCode, LotNo, DateCode, amount, OrderCode, "", "");
|
|
|
- LabelInf.Rows[i].Cells["pib_cusbarcode"].Value = custbarcode.Replace("T-", "");
|
|
|
+ string custbarcode = getPlateID.getCompID(Createcode, "", custprodcode, VenderCode, LotNo, DateCode, amount, OrderCode, "", "").Replace("T-", "");
|
|
|
+ LabelInf.Rows[i].Cells["pib_cusbarcode"].Value = custbarcode;
|
|
|
//如果下一行的外箱号和当前行不一致
|
|
|
bool NextBoxDiff = false;
|
|
|
//通过接口维护料盘和外箱关系,需要根据箱内容量计算
|