|
|
@@ -398,7 +398,7 @@ namespace UAS_MES_NEW.Packing
|
|
|
|
|
|
private void FillPrintLabel()
|
|
|
{
|
|
|
- DataTable _dt = (DataTable)dh.ExecuteSql("select la_id,la_url,la_isdefault,replace(LA_SOFTTYPE,';',',')LA_SOFTTYPE from label where la_templatetype='栈板标' and la_statuscode='AUDITED' order by la_isdefault", "select");
|
|
|
+ DataTable _dt = (DataTable)dh.ExecuteSql("select la_id,la_url,la_isdefault,replace(LA_SOFTTYPE,';',',')LA_SOFTTYPE from label where la_prodcode='" + pa_prodcode.Text + "' and la_templatetype='栈板标' and la_statuscode='AUDITED' order by la_isdefault", "select");
|
|
|
if (_dt.Rows.Count == 0)
|
|
|
{
|
|
|
_dt = (DataTable)dh.ExecuteSql("select la_id,la_url,la_isdefault,replace(LA_SOFTTYPE,';',',')LA_SOFTTYPE from label where la_prodcode is null and la_templatetype='栈板标' and la_statuscode='AUDITED' order by la_isdefault", "select");
|