public IEnumerable <DrpOrd> GetTWLDrpOrdInterfaces(string coNum, string whNum, string ruleCode, int batchsize = 0, string fldlist = "") { var getTWLAutoDropOrdersApi = new GetTWLAutoDropOrdersApi() { coNum = coNum, whNum = whNum, ruleCode = ruleCode, batchsize = batchsize, fldlist = fldlist }; return(this.drpLogService.GetTWLAutoDropOrders(getTWLAutoDropOrdersApi)); }
public IEnumerable <DrpOrd> GetTWLAutoDropOrders(GetTWLAutoDropOrdersApi getTWLAutoDropOrdersApi) { var sb = new StringBuilder(); if (!string.IsNullOrWhiteSpace(getTWLAutoDropOrdersApi.coNum)) { sb.AppendFormatWithEscape("drp_ord.co_num = '{0}'", getTWLAutoDropOrdersApi.coNum); if (!string.IsNullOrWhiteSpace(getTWLAutoDropOrdersApi.whNum)) { sb.AppendFormatWithEscape(" AND drp_ord.wh_num = '{0}'", getTWLAutoDropOrdersApi.whNum); } if (!string.IsNullOrWhiteSpace(getTWLAutoDropOrdersApi.ruleCode)) { sb.AppendFormatWithEscape(" AND drp_ord.rule_code = '{0}'", getTWLAutoDropOrdersApi.ruleCode); } } var where = sb.ToString(); return(this.drpordRepository.GetList(where, getTWLAutoDropOrdersApi.batchsize, getTWLAutoDropOrdersApi.fldlist)); }
public IEnumerable <DrpOrd> GetTWLAutoDropOrders(GetTWLAutoDropOrdersApi getTWLAutoDropOrdersApi) { return(this.drpLogService.GetTWLAutoDropOrders(getTWLAutoDropOrdersApi)); }