目前代码如下,希望销售出库单中分录行出库选指定的仓库时才用该拣货规则,从其他仓库出库则按正常的拣货,要怎么实现啊???
public class JJLotPickingExtendForSale : LotPickingExtendForSale
{
public override string RegexCurRowPickFilterString(RegexCurRowPickFilterStringArgs e)
{
base.RegexCurRowPickFilterString(e);
if (string.IsNullOrWhiteSpace(e.FilterString))
{
e.FilterString = " FSTKJJKCCQBL < FSTKJJCQBL ";
}
else
{
e.FilterString = e.FilterString + " AND FSTKJJKCCQBL < FSTKJJCQBL ";
}
return e.FilterString;
}
public override string RegexGetInvDataSql(string sql, List
{
sql = sql.Replace("TT.FNOTSALE FSTKSTATUSNOTSALE", "TT.FNOTSALE FSTKSTATUSNOTSALE,TI.f_jj_kccqbl FSTKJJKCCQBL,TMS.f_jj_cqbl FSTKJJCQBL");
return base.RegexGetInvDataSql(sql, paras);
}
}
推荐阅读