public IEnumerable <Dockmstr> GetTWLDocks(string coNum, string whNum, int batchsize = 0, string fldlist = "") { var getTWLDocksApi = new GetTWLDocksApi() { coNum = coNum, whNum = whNum, batchsize = batchsize, fldlist = fldlist }; return(this.dockmstrService.GetTWLDocks(getTWLDocksApi)); }
public IEnumerable <Dockmstr> GetTWLDocks(GetTWLDocksApi getTWLDocksApi) { var sb = new StringBuilder(); if (!string.IsNullOrWhiteSpace(getTWLDocksApi.coNum)) { sb.AppendFormatWithEscape("dockmstr.co_num = '{0}'", getTWLDocksApi.coNum); if (!string.IsNullOrWhiteSpace(getTWLDocksApi.whNum)) { sb.AppendFormatWithEscape(" AND dockmstr.wh_num = '{0}'", getTWLDocksApi.whNum); } if (!string.IsNullOrWhiteSpace(getTWLDocksApi.dockId)) { sb.AppendFormatWithEscape(" AND dockmstr.dock_id = '{0}'", getTWLDocksApi.dockId); } } var where = sb.ToString(); return(this.dockmstrRepository.GetList(where, getTWLDocksApi.batchsize, getTWLDocksApi.fldlist)); }
public IEnumerable <Dockmstr> GetTWLDocks(GetTWLDocksApi getTWLDocksApi) { return(this.dockmstrService.GetTWLDocks(getTWLDocksApi)); }