public IEnumerable <ReturnReason> GetTWLReturnReasons(string coNum, string whNum, int batchsize = 0, string fldlist = "") { var getTWLReturnReasonsApi = new GetTWLReturnReasonsApi() { coNum = coNum, whNum = whNum, batchsize = batchsize, fldlist = fldlist }; return(this.returnReasonService.GetTWLReturnReasons(getTWLReturnReasonsApi)); }
public IEnumerable <ReturnReason> GetTWLReturnReasons(GetTWLReturnReasonsApi getTWLReturnReasonsApi) { var sb = new StringBuilder(); if (!string.IsNullOrWhiteSpace(getTWLReturnReasonsApi.coNum)) { sb.AppendFormatWithEscape("return_reason.co_num = '{0}'", getTWLReturnReasonsApi.coNum); if (!string.IsNullOrWhiteSpace(getTWLReturnReasonsApi.whNum)) { sb.AppendFormatWithEscape(" AND return_reason.wh_num = '{0}'", getTWLReturnReasonsApi.whNum); } if (!string.IsNullOrWhiteSpace(getTWLReturnReasonsApi.code)) { sb.AppendFormatWithEscape(" AND return_reason.code = '{0}'", getTWLReturnReasonsApi.code); } } var where = sb.ToString(); return(this.returnReasonRepository.GetList(where, getTWLReturnReasonsApi.batchsize, getTWLReturnReasonsApi.fldlist)); }
public IEnumerable <ReturnReason> GetTWLReturnReasons(GetTWLReturnReasonsApi getTWLReturnReasonsApi) { return(this.returnReasonService.GetTWLReturnReasons(getTWLReturnReasonsApi)); }