|
@@ -48,6 +48,8 @@ namespace UAS_MES.Make
|
|
|
string ms_id="";
|
|
string ms_id="";
|
|
|
|
|
|
|
|
DataTable formValue;//界面赋值
|
|
DataTable formValue;//界面赋值
|
|
|
|
|
+
|
|
|
|
|
+ string type = "";
|
|
|
public Make_RePrintLabel()
|
|
public Make_RePrintLabel()
|
|
|
{
|
|
{
|
|
|
InitializeComponent();
|
|
InitializeComponent();
|
|
@@ -181,20 +183,23 @@ namespace UAS_MES.Make
|
|
|
}
|
|
}
|
|
|
if (fuselagel.Checked)
|
|
if (fuselagel.Checked)
|
|
|
{
|
|
{
|
|
|
|
|
+ type = "机身标";
|
|
|
getlabel = "select pl_labelcode ||':'||pl_labelname pl_name,pl_labelname,pl_labelcode, pl_indate,pl_labelurl from productlabel where pl_prodcode='" + pr_code.Text + "'and PL_LABELTYPE='机身标' order by pl_isdefault desc";
|
|
getlabel = "select pl_labelcode ||':'||pl_labelname pl_name,pl_labelname,pl_labelcode, pl_indate,pl_labelurl from productlabel where pl_prodcode='" + pr_code.Text + "'and PL_LABELTYPE='机身标' order by pl_isdefault desc";
|
|
|
}
|
|
}
|
|
|
else if (giftBox.Checked)
|
|
else if (giftBox.Checked)
|
|
|
{
|
|
{
|
|
|
|
|
+ type = "彩盒标";
|
|
|
getlabel = "select pl_labelcode ||':'||pl_labelname pl_name,pl_labelname,pl_labelcode, pl_indate,pl_labelurl from productlabel where pl_prodcode='" + pr_code.Text + "'and PL_LABELTYPE='彩盒标' order by pl_isdefault desc";
|
|
getlabel = "select pl_labelcode ||':'||pl_labelname pl_name,pl_labelname,pl_labelcode, pl_indate,pl_labelurl from productlabel where pl_prodcode='" + pr_code.Text + "'and PL_LABELTYPE='彩盒标' order by pl_isdefault desc";
|
|
|
}
|
|
}
|
|
|
else
|
|
else
|
|
|
{
|
|
{
|
|
|
|
|
+ type = "卡通箱标";
|
|
|
getlabel = "select pl_labelcode ||':'||pl_labelname pl_name,pl_labelname,pl_labelcode, pl_indate,pl_labelurl from productlabel where pl_prodcode='" + pr_code.Text + "'and PL_LABELTYPE='卡通箱标' order by pl_isdefault desc";
|
|
getlabel = "select pl_labelcode ||':'||pl_labelname pl_name,pl_labelname,pl_labelcode, pl_indate,pl_labelurl from productlabel where pl_prodcode='" + pr_code.Text + "'and PL_LABELTYPE='卡通箱标' order by pl_isdefault desc";
|
|
|
}
|
|
}
|
|
|
listA = (DataTable)dh.ExecuteSql(getlabel, "select");
|
|
listA = (DataTable)dh.ExecuteSql(getlabel, "select");
|
|
|
if (listA.Rows.Count == 0)
|
|
if (listA.Rows.Count == 0)
|
|
|
{
|
|
{
|
|
|
- OperateResult.AppendText("<<产品:" + pr_code.Text + "未维护机身标标签模板\n", Color.Red);
|
|
|
|
|
|
|
+ OperateResult.AppendText("<<产品:" + pr_code.Text + "未维护"+type+"模板\n", Color.Red);
|
|
|
}
|
|
}
|
|
|
PrintLabel.DataSource = listA;
|
|
PrintLabel.DataSource = listA;
|
|
|
PrintLabel.DisplayMember = "pl_name";
|
|
PrintLabel.DisplayMember = "pl_name";
|
|
@@ -359,6 +364,7 @@ namespace UAS_MES.Make
|
|
|
//记录操作日志commandlog , 补打核对,核对成功
|
|
//记录操作日志commandlog , 补打核对,核对成功
|
|
|
LogicHandler.DoCommandLog(User.UserCode, "", User.UserLineCode, User.UserSourceCode, "标签补打核对", "核对成功", TSN, "");
|
|
LogicHandler.DoCommandLog(User.UserCode, "", User.UserLineCode, User.UserSourceCode, "标签补打核对", "核对成功", TSN, "");
|
|
|
}
|
|
}
|
|
|
|
|
+ OperateResult.AppendText("<<核对失败\n", Color.Red);
|
|
|
//清空TSN的值
|
|
//清空TSN的值
|
|
|
TSN = "";
|
|
TSN = "";
|
|
|
rePrintCheck.Text = "";
|
|
rePrintCheck.Text = "";
|
|
@@ -399,6 +405,7 @@ namespace UAS_MES.Make
|
|
|
//记录操作日志commandlog , 补打核对,核对成功
|
|
//记录操作日志commandlog , 补打核对,核对成功
|
|
|
LogicHandler.DoCommandLog(User.UserCode, "", User.UserLineCode, User.UserSourceCode, "标签补打核对,卡通箱号:"+TSN, "核对成功", "", "");
|
|
LogicHandler.DoCommandLog(User.UserCode, "", User.UserLineCode, User.UserSourceCode, "标签补打核对,卡通箱号:"+TSN, "核对成功", "", "");
|
|
|
}
|
|
}
|
|
|
|
|
+ OperateResult.AppendText("<<核对失败\n", Color.Red);
|
|
|
//清空TSN的值
|
|
//清空TSN的值
|
|
|
TSN = "";
|
|
TSN = "";
|
|
|
rePrintCheck.Text = "";
|
|
rePrintCheck.Text = "";
|