public IEnumerable <Whmst> GetTWLWarehouses(string coNum, int batchsize = 0, string fldlist = "") { var getTWLWarehousesApi = new GetTWLWarehousesApi() { coNum = coNum, whNum = "", batchsize = batchsize, fldlist = fldlist }; return(this.whmstService.GetTWLWarehouses(getTWLWarehousesApi)); }
public IEnumerable <Whmst> GetTWLWarehouses(GetTWLWarehousesApi getTWLWarehousesApi) { var sb = new StringBuilder(); if (!string.IsNullOrWhiteSpace(getTWLWarehousesApi.coNum)) { sb.AppendFormatWithEscape("whmst.co_num = '{0}'", getTWLWarehousesApi.coNum); if (!string.IsNullOrWhiteSpace(getTWLWarehousesApi.whNum)) { sb.AppendFormatWithEscape(" AND whmst.wh_num = '{0}'", getTWLWarehousesApi.whNum); } } var where = sb.ToString(); return(this.whmstRepository.GetList(where, getTWLWarehousesApi.batchsize, getTWLWarehousesApi.fldlist)); }
public IEnumerable <Whmst> GetTWLWarehouses(GetTWLWarehousesApi getTWLWarehousesApi) { return(this.whmstService.GetTWLWarehouses(getTWLWarehousesApi)); }