|
@@ -46,8 +46,6 @@ namespace UAS_MES.Make
|
|
|
//true的时候表示从串口读取数据
|
|
//true的时候表示从串口读取数据
|
|
|
bool GetData = true;
|
|
bool GetData = true;
|
|
|
|
|
|
|
|
- System.DateTime[] indate;
|
|
|
|
|
-
|
|
|
|
|
public Make_PackageCollectionWeigh()
|
|
public Make_PackageCollectionWeigh()
|
|
|
{
|
|
{
|
|
|
|
|
|
|
@@ -191,8 +189,8 @@ namespace UAS_MES.Make
|
|
|
{
|
|
{
|
|
|
dh.ExecuteSql("update package set pa_printcount=pa_printcount+1 where pa_outboxcode='" + pa_outboxcode.Text + "'", "update");
|
|
dh.ExecuteSql("update package set pa_printcount=pa_printcount+1 where pa_outboxcode='" + pa_outboxcode.Text + "'", "update");
|
|
|
OperateResult.AppendText(">>开始打印箱号" + pa_outboxcode.Text + "\n", Color.Black);
|
|
OperateResult.AppendText(">>开始打印箱号" + pa_outboxcode.Text + "\n", Color.Black);
|
|
|
- doc = lbl.Documents.Open(ftpOperater.DownLoadTo + PrintLabel.Text.Split(':')[1]);
|
|
|
|
|
- Print.CodeSoft(Tag.ToString(), doc, PrintLabel.Text.Split(':')[1], PrintLabel.SelectedValue.ToString(), PrintList.Text, pa_outboxcode.Text, int.Parse(PrintNum.Text), indate[PrintLabel.SelectedIndex]);
|
|
|
|
|
|
|
+ doc = lbl.Documents.Open(ftpOperater.DownLoadTo + PrintLabel.Text);
|
|
|
|
|
+ Print.CodeSoft(Tag.ToString(), doc, PrintLabel.Text, PrintLabel.SelectedValue.ToString(), PrintList.Text, pa_outboxcode.Text, int.Parse(PrintNum.Text));
|
|
|
}
|
|
}
|
|
|
else OperateResult.AppendText(">>箱号" + pa_outboxcode.Text + "尚未封箱,请封箱后执行打印\n", Color.Red);
|
|
else OperateResult.AppendText(">>箱号" + pa_outboxcode.Text + "尚未封箱,请封箱后执行打印\n", Color.Red);
|
|
|
}
|
|
}
|
|
@@ -377,16 +375,14 @@ namespace UAS_MES.Make
|
|
|
pa_outboxcode.MakeCode = pa_makecode.Text;
|
|
pa_outboxcode.MakeCode = pa_makecode.Text;
|
|
|
pa_outboxcode.ProdCode = pr_code.Text;
|
|
pa_outboxcode.ProdCode = pr_code.Text;
|
|
|
pa_outboxcode.Caller = "PACKAGE";
|
|
pa_outboxcode.Caller = "PACKAGE";
|
|
|
- dt = (DataTable)dh.ExecuteSql("select pl_labelcode||':'||pl_labelname pl_laname,pl_labelname,pl_labelcode,pl_labelurl,pl_indate from productlabel where pl_prodcode='" + pr_code.Text + "' and pl_labeltype='卡通箱标' order by pl_isdefault desc ", "select");
|
|
|
|
|
|
|
+ dt = (DataTable)dh.ExecuteSql("select la_id,substr(la_url,instr(la_url,'\\',-1)+1)la_name,la_url,la_isdefault from label where la_prodcode='" + pr_code.Text + "' and la_templatetype='卡通箱标' and la_statuscode='AUDITED' order by la_isdefault", "select");
|
|
|
PrintLabel.DataSource = dt;
|
|
PrintLabel.DataSource = dt;
|
|
|
- PrintLabel.DisplayMember = "pl_laname";
|
|
|
|
|
- PrintLabel.ValueMember = "pl_labelcode";
|
|
|
|
|
|
|
+ PrintLabel.DisplayMember = "la_name";
|
|
|
|
|
+ PrintLabel.ValueMember = "la_id";
|
|
|
ftpOperater ftp = new ftpOperater();
|
|
ftpOperater ftp = new ftpOperater();
|
|
|
- indate = new System.DateTime[dt.Rows.Count];
|
|
|
|
|
for (int i = 0; i < dt.Rows.Count; i++)
|
|
for (int i = 0; i < dt.Rows.Count; i++)
|
|
|
{
|
|
{
|
|
|
- BaseUtil.GetPrintLabel(dt.Rows[i]["pl_labelname"].ToString(), dt.Rows[i]["pl_labelurl"].ToString(), dt.Rows[i]["pl_indate"].ToString());
|
|
|
|
|
- indate[i] = Convert.ToDateTime(dt.Rows[i]["pl_indate"].ToString());
|
|
|
|
|
|
|
+ BaseUtil.GetPrintLabel(dt.Rows[i]["la_name"].ToString(), dt.Rows[i]["la_url"].ToString(), dt.Rows[i]["pl_indate"].ToString());
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|