|
@@ -211,7 +211,7 @@ namespace UAS_MES.Make
|
|
|
if (dh.getFieldDataByCondition("package", "pa_status", "pa_outboxcode='" + pa_outboxcode.Text + "'").ToString() == "1")
|
|
if (dh.getFieldDataByCondition("package", "pa_status", "pa_outboxcode='" + pa_outboxcode.Text + "'").ToString() == "1")
|
|
|
{
|
|
{
|
|
|
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");
|
|
|
- doc = lbl.Documents.Open(ftpOperater.DownLoadTo + PrintLabel.Text);
|
|
|
|
|
|
|
+ doc = lbl.Documents.Open(PrintLabel.Text);
|
|
|
if (Print.CodeSoft(Tag.ToString(), doc, PrintLabel.Text, PrintLabel.SelectedValue.ToString(), PrintList.Text, pa_outboxcode.Text, int.Parse(PrintNum.Text), oMakeCode == "" ? pa_makecode.Text : oMakeCode, pr_code.Text, "卡通箱标", "0", out ErrorMessage))
|
|
if (Print.CodeSoft(Tag.ToString(), doc, PrintLabel.Text, PrintLabel.SelectedValue.ToString(), PrintList.Text, pa_outboxcode.Text, int.Parse(PrintNum.Text), oMakeCode == "" ? pa_makecode.Text : oMakeCode, pr_code.Text, "卡通箱标", "0", out ErrorMessage))
|
|
|
{
|
|
{
|
|
|
OperateResult.AppendText(">>开始打印箱号" + pa_outboxcode.Text + "\n", Color.Black);
|
|
OperateResult.AppendText(">>开始打印箱号" + pa_outboxcode.Text + "\n", Color.Black);
|
|
@@ -515,13 +515,8 @@ namespace UAS_MES.Make
|
|
|
LoadCheckQTY();
|
|
LoadCheckQTY();
|
|
|
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");
|
|
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 = "la_name";
|
|
|
|
|
|
|
+ PrintLabel.DisplayMember = "la_url";
|
|
|
PrintLabel.ValueMember = "la_id";
|
|
PrintLabel.ValueMember = "la_id";
|
|
|
- ftpOperater ftp = new ftpOperater();
|
|
|
|
|
- for (int i = 0; i < dt.Rows.Count; i++)
|
|
|
|
|
- {
|
|
|
|
|
- BaseUtil.GetPrintLabel(dt.Rows[i]["la_name"].ToString(), dt.Rows[i]["la_url"].ToString());
|
|
|
|
|
- }
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
private void Make_PackageCollectionWeigh_FormClosing(object sender, FormClosingEventArgs e)
|
|
private void Make_PackageCollectionWeigh_FormClosing(object sender, FormClosingEventArgs e)
|
|
@@ -882,7 +877,7 @@ namespace UAS_MES.Make
|
|
|
{
|
|
{
|
|
|
dh.UpdateByCondition("package", "pa_remark='" + pa_remark.Text + "'", "pa_outboxcode='" + pa_outboxcode.Text + "'");
|
|
dh.UpdateByCondition("package", "pa_remark='" + pa_remark.Text + "'", "pa_outboxcode='" + pa_outboxcode.Text + "'");
|
|
|
OperateResult.AppendText(">>箱号" + pa_outboxcode.Text + "关联信息" + pa_remark.Text + "采集成功\n", Color.Green);
|
|
OperateResult.AppendText(">>箱号" + pa_outboxcode.Text + "关联信息" + pa_remark.Text + "采集成功\n", Color.Green);
|
|
|
- pa_remark.Text="";
|
|
|
|
|
|
|
+ pa_remark.Text = "";
|
|
|
pa_outboxcode.Focus();
|
|
pa_outboxcode.Focus();
|
|
|
}
|
|
}
|
|
|
else OperateResult.AppendText(">>请先采集箱内数据\n", Color.Red);
|
|
else OperateResult.AppendText(">>请先采集箱内数据\n", Color.Red);
|