|
|
@@ -167,8 +167,9 @@ namespace UAS_MES_NEW.Make
|
|
|
string sp_checksalecode = dt1.Rows[RemainIndex]["sp_checksalecode"].ToString();
|
|
|
string sp_subnum = dt1.Rows[RemainIndex]["sp_subnum"].ToString();
|
|
|
string sp_subnumlength = dt1.Rows[RemainIndex]["sp_subnumlength"].ToString();
|
|
|
+ string sp_rate = dt1.Rows[RemainIndex]["sp_rate"].ToString();
|
|
|
string resultstr = "";
|
|
|
- if (LogicHandler.CheckSNBeforeLoad(ma_code.Text, sn_code.Text, code.Text, sp_fsoncode, sp_soncode, sp_barcoderule, sp_prefix, length, sp_ifrepeat, sp_checksalecode, sp_subnum, sp_subnumlength,ms_edistatus, out resultstr, out ErrorMessage))
|
|
|
+ if (LogicHandler.CheckSNBeforeLoad(ma_code.Text, sn_code.Text, code.Text, sp_fsoncode, sp_soncode, sp_barcoderule, sp_prefix, length, sp_ifrepeat, sp_checksalecode, sp_subnum, sp_subnumlength, ms_edistatus, sp_rate, out resultstr, out ErrorMessage))
|
|
|
{
|
|
|
//判断采集的条码和本次采集的也不能重复
|
|
|
if (CollectData.Contains(code.Text) && sp_ifrepeat != "-1")
|
|
|
@@ -410,7 +411,7 @@ namespace UAS_MES_NEW.Make
|
|
|
//单独用一个DataTable存储一个
|
|
|
dt1 = new DataTable();
|
|
|
sql.Clear();
|
|
|
- sql.Append("select max(pr_lightbox)pr_lightbox,sp_id,max(nvl(sp_subnum,0))sp_subnum,max(nvl(sp_subnumlength,0))sp_subnumlength,max(sp_detno)sp_detno,min(sp_ifrepeat)sp_ifrepeat,max(sp_checkbarcode)sp_checkbarcode,min(sp_checksalecode)sp_checksalecode,");
|
|
|
+ sql.Append("select max(sp_rate)sp_rate,max(pr_lightbox)pr_lightbox,sp_id,max(nvl(sp_subnum,0))sp_subnum,max(nvl(sp_subnumlength,0))sp_subnumlength,max(sp_detno)sp_detno,min(sp_ifrepeat)sp_ifrepeat,max(sp_checkbarcode)sp_checkbarcode,min(sp_checksalecode)sp_checksalecode,");
|
|
|
sql.Append("sp_fsoncode,max(sp_barcoderule)sp_barcoderule,wm_concat(sp_soncode) sp_soncode,max(sp_ifuseregex)sp_ifuseregex,max(sp_ifforsn)");
|
|
|
sql.Append("sp_ifforsn,max(sp_length)sp_length,max(sp_type)sp_type,replace(wm_concat(sp_prefix),',','|')sp_prefix,max(sp_regex)");
|
|
|
sql.Append("sp_regex,max(pr_detail)pr_detail,max(substr(pr_spec,0,20))pr_spec from stepproduct left join product on pr_code=sp_fsoncode where ");
|