|
@@ -862,7 +862,7 @@ namespace UAS_LabelMachine
|
|
|
{
|
|
|
ComBoxClickChangeLabelDoc = false;
|
|
|
sql.Clear();
|
|
|
- sql.Append("select to_char(nvl(cl_date,sysdate),'YYYY-MM-DD HH24:Mi:SS') cl_date,replace(upper(cl_labelurl),'\\\\10.2.10.238\\PRINTE\\FASTREPORT','C:\\打印标签')cl_labelurl,cl_labelname,cl_isdefault,la_id||'#'||cl_labelurl||'#'||to_char(cl_date,'YYYY-MM-DD HH24:Mi:SS') la_id,cl_custcode from customerlabel left join prodinout on pi_cardcode=cl_custcode ");
|
|
|
+ sql.Append("select to_char(nvl(cl_date,sysdate),'YYYY-MM-DD HH24:Mi:SS') cl_date,cl_labelurl,cl_labelname,cl_isdefault,la_id||'#'||cl_labelurl||'#'||to_char(cl_date,'YYYY-MM-DD HH24:Mi:SS') la_id,cl_custcode from customerlabel left join prodinout on pi_cardcode=cl_custcode ");
|
|
|
sql.Append("left join customer on cu_code=cl_custcode left join label on la_code=CL_LABELCODE where ((pi_cardcode='" + pi_cardcode.Text + "' ");
|
|
|
sql.Append("and pi_inoutno='" + pi_inoutno.Text + "') or( cl_custcode is null)) and cl_labeltype='单盘' order by cl_custcode,cl_date desc");
|
|
|
dt = (DataTable)dh.ExecuteSql(sql.ToString(), "select");
|
|
@@ -871,7 +871,7 @@ namespace UAS_LabelMachine
|
|
|
SingleLabelCombox.DataSource = dt;
|
|
|
|
|
|
sql.Clear();
|
|
|
- sql.Append("select to_char(nvl(cl_date,sysdate),'YYYY-MM-DD HH24:Mi:SS') cl_date,replace(upper(cl_labelurl),'\\\\10.2.10.238\\PRINTE\\FASTREPORT','C:\\打印标签')cl_labelurl,cl_labelname,cl_isdefault,la_id||'#'||cl_labelurl||'#'||to_char(cl_date,'YYYY-MM-DD HH24:Mi:SS') la_id,cl_custcode from customerlabel left join prodinout on pi_cardcode=cl_custcode ");
|
|
|
+ sql.Append("select to_char(nvl(cl_date,sysdate),'YYYY-MM-DD HH24:Mi:SS') cl_date,cl_labelurl,cl_labelname,cl_isdefault,la_id||'#'||cl_labelurl||'#'||to_char(cl_date,'YYYY-MM-DD HH24:Mi:SS') la_id,cl_custcode from customerlabel left join prodinout on pi_cardcode=cl_custcode ");
|
|
|
sql.Append("left join customer on cu_code=cl_custcode left join label on la_code=CL_LABELCODE where ((pi_cardcode='" + pi_cardcode.Text + "' ");
|
|
|
sql.Append("and pi_inoutno='" + pi_inoutno.Text + "') or( cl_custcode is null)) and cl_labeltype='中盒' order by cl_custcode,cl_date desc");
|
|
|
dt = (DataTable)dh.ExecuteSql(sql.ToString(), "select");
|
|
@@ -880,7 +880,7 @@ namespace UAS_LabelMachine
|
|
|
MidLabelCombox.DataSource = dt;
|
|
|
|
|
|
sql.Clear();
|
|
|
- sql.Append("select to_char(nvl(cl_date,sysdate),'YYYY-MM-DD HH24:Mi:SS') cl_date,replace(upper(cl_labelurl),'\\\\10.2.10.238\\PRINTE\\FASTREPORT','C:\\打印标签')cl_labelurl,cl_labelname,cl_isdefault,la_id||'#'||cl_labelurl||'#'||to_char(cl_date,'YYYY-MM-DD HH24:Mi:SS') la_id,cl_custcode from customerlabel left join prodinout on pi_cardcode=cl_custcode ");
|
|
|
+ sql.Append("select to_char(nvl(cl_date,sysdate),'YYYY-MM-DD HH24:Mi:SS') cl_date,cl_labelurl,cl_labelname,cl_isdefault,la_id||'#'||cl_labelurl||'#'||to_char(cl_date,'YYYY-MM-DD HH24:Mi:SS') la_id,cl_custcode from customerlabel left join prodinout on pi_cardcode=cl_custcode ");
|
|
|
sql.Append("left join customer on cu_code=cl_custcode left join label on la_code=CL_LABELCODE where ((pi_cardcode='" + pi_cardcode.Text + "' ");
|
|
|
sql.Append("and pi_inoutno='" + pi_inoutno.Text + "') or( cl_custcode is null)) and cl_labeltype='外箱' order by cl_custcode,cl_date desc");
|
|
|
dt = (DataTable)dh.ExecuteSql(sql.ToString(), "select");
|
|
@@ -2270,7 +2270,7 @@ namespace UAS_LabelMachine
|
|
|
|
|
|
private void PrintFooter_Click(object sender, EventArgs e)
|
|
|
{
|
|
|
- FootReport.Load(@"C:\\打印标签\\唛头.frx");
|
|
|
+ FootReport.Load(@"\\10.2.10.238\PRINTE\FASTREPORT\唛头.frx");
|
|
|
DataTable dt = (DataTable)dh.ExecuteSql("select pib_outboxcode2,max(pib_id) pib_id from prodiobarcode where pib_inoutno='" + pi_inoutno.Text + "' group by pib_outboxcode2 order by to_number(pib_outboxcode2)", "select");
|
|
|
string SQL = "select pib_outboxcode2||'/'||(select max(to_number(pib_outboxcode2)) from prodiobarcode where pib_inoutno='" + pi_inoutno.Text + "') from prodiobarcode where pib_id=";
|
|
|
for (int i = 0; i < dt.Rows.Count; i++)
|