|
|
@@ -1046,8 +1046,8 @@ namespace UAS_LabelMachine
|
|
|
ComBoxClickChangeLabelDoc = false;
|
|
|
Attach = (DataTable)dh.ExecuteSql("select lap_param lp_name,lap_value lp_sql from LabelAttachPARAMETER where lap_custcode='" + cu_code.Text + "'", "select");
|
|
|
sql.Clear();
|
|
|
- sql.Append("select to_char(nvl(cl_date,sysdate),'YYYY-MM-DD HH24:Mi:SS') cl_date,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 ");
|
|
|
+ sql.Append("select to_char(nvl(cl_date,sysdate),'YYYY-MM-DD HH24:Mi:SS') cl_date,cl_labelname,cl_isdefault,la_id||'#'||cl_labelurl||'#'|| ");
|
|
|
+ sql.Append("to_char(cl_date,'YYYY-MM-DD HH24:Mi:SS') la_id,cl_custcode from customerlabel left join label on la_code=CL_LABELCODE where ");
|
|
|
sql.Append("(cl_custcode='" + cu_code.Text + "' or cl_custcode is null) and cl_labeltype='单盘' order by cl_custcode");
|
|
|
dt = (DataTable)dh.ExecuteSql(sql.ToString(), "select");
|
|
|
SingleLabelCombox.DisplayMember = "cl_labelname";
|
|
|
@@ -1075,8 +1075,8 @@ namespace UAS_LabelMachine
|
|
|
}
|
|
|
}
|
|
|
sql.Clear();
|
|
|
- sql.Append("select to_char(nvl(cl_date,sysdate),'YYYY-MM-DD HH24:Mi:SS') cl_date,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 ");
|
|
|
+ sql.Append("select to_char(nvl(cl_date,sysdate),'YYYY-MM-DD HH24:Mi:SS') cl_date,cl_labelname,cl_isdefault,la_id||'#'||cl_labelurl||'#'|| ");
|
|
|
+ sql.Append("to_char(cl_date,'YYYY-MM-DD HH24:Mi:SS') la_id,cl_custcode from customerlabel left join label on la_code=CL_LABELCODE where ");
|
|
|
sql.Append("(cl_custcode='" + cu_code.Text + "' or cl_custcode is null) and cl_labeltype='中盒' order by cl_custcode");
|
|
|
dt = (DataTable)dh.ExecuteSql(sql.ToString(), "select");
|
|
|
MidLabelCombox.DisplayMember = "cl_labelname";
|
|
|
@@ -1101,8 +1101,8 @@ namespace UAS_LabelMachine
|
|
|
}
|
|
|
//缓存中盒参数
|
|
|
sql.Clear();
|
|
|
- sql.Append("select to_char(nvl(cl_date,sysdate),'YYYY-MM-DD HH24:Mi:SS') cl_date,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 ");
|
|
|
+ sql.Append("select to_char(nvl(cl_date,sysdate),'YYYY-MM-DD HH24:Mi:SS') cl_date,cl_labelname,cl_isdefault,la_id||'#'||cl_labelurl||'#'|| ");
|
|
|
+ sql.Append("to_char(cl_date,'YYYY-MM-DD HH24:Mi:SS') la_id,cl_custcode from customerlabel left join label on la_code=CL_LABELCODE where ");
|
|
|
sql.Append("(cl_custcode='" + cu_code.Text + "' or cl_custcode is null) and cl_labeltype='外箱' order by cl_custcode");
|
|
|
dt = (DataTable)dh.ExecuteSql(sql.ToString(), "select");
|
|
|
OutBoxCombox.DisplayMember = "cl_labelname";
|