|
|
@@ -21,7 +21,6 @@ namespace UAS_MES.Make
|
|
|
public partial class Make_BigBoxWeight : Form
|
|
|
{
|
|
|
AutoSizeFormClass asc = new AutoSizeFormClass();
|
|
|
- System.DateTime[] indate;
|
|
|
DataHelper dh;
|
|
|
Document doc;
|
|
|
//true的时候表示从串口读取数据
|
|
|
@@ -139,7 +138,7 @@ namespace UAS_MES.Make
|
|
|
try
|
|
|
{
|
|
|
doc = lbl.Documents.Open(ftpOperater.DownLoadTo + PrintLabel.Text.Split(':')[1]);
|
|
|
- Print.CodeSoft(Tag.ToString(), doc, PrintLabel.Text.Split(':')[1], PrintLabel.SelectedValue.ToString(), Printer.Text, pa_outboxcode.Text, int.Parse(PrintNum.Text), indate[PrintLabel.SelectedIndex]);
|
|
|
+ Print.CodeSoft(Tag.ToString(), doc, PrintLabel.Text, PrintLabel.SelectedValue.ToString(), Printer.Text, pa_outboxcode.Text, int.Parse(PrintNum.Text));
|
|
|
dh.ExecuteSql("update package set pa_printcount= pa_printcount+1 where pa_outboxcode='" + pa_outboxcode.Text + "'", "update");
|
|
|
printcount++;
|
|
|
weightsum.Text = printcount + "";
|
|
|
@@ -179,16 +178,14 @@ namespace UAS_MES.Make
|
|
|
|
|
|
private void pa_prodcode_TextChanged(object sender, EventArgs e)
|
|
|
{
|
|
|
- DataTable _dt = (DataTable)dh.ExecuteSql("select pl_labelcode ||':'||pl_labelname pl_name,pl_labelname,pl_labelcode,pl_labelurl,pl_indate from productlabel where pl_prodcode='" + pa_prodcode.Text + "' and PL_LABELTYPE='大箱标' order by PL_ISDEFAULT DESC", "select");
|
|
|
+ DataTable _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='" + pa_prodcode.Text + "' and la_templatetype='大箱标' order by la_isdefault", "select");
|
|
|
PrintLabel.DataSource = _dt;
|
|
|
- PrintLabel.DisplayMember = "pl_name";
|
|
|
- PrintLabel.ValueMember = "pl_labelcode";
|
|
|
+ PrintLabel.DisplayMember = "la_name";
|
|
|
+ PrintLabel.ValueMember = "la_id";
|
|
|
ftpOperater ftp = new ftpOperater();
|
|
|
- indate = new System.DateTime[_dt.Rows.Count];
|
|
|
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());
|
|
|
}
|
|
|
}
|
|
|
|