Пример #1
0
 public IEnumerable <Pdss> GetPdssListBySearchTerms(
     GetPdssListBySearchTermsRequestApi getPdssListBySearchTermsRequestApi)
 {
     var where = new StringBuilder();
     where.AppendFormat("pdss.cono = {0}", this.pdssRepository.Cono);
     if (getPdssListBySearchTermsRequestApi.whse != null)
     {
         where.AppendFormatWithEscape(" AND pdss.whse = '{0}'", getPdssListBySearchTermsRequestApi.whse);
     }
     if (getPdssListBySearchTermsRequestApi.custptype != null)
     {
         where.AppendFormatWithEscape(" AND pdss.custptype = '{0}'", getPdssListBySearchTermsRequestApi.custptype);
     }
     if (getPdssListBySearchTermsRequestApi.pricetype != null)
     {
         where.AppendFormatWithEscape(" AND pdss.pricetype = '{0}'", getPdssListBySearchTermsRequestApi.pricetype);
     }
     if (getPdssListBySearchTermsRequestApi.startdt != null)
     {
         where.AppendFormatWithEscape(" AND pdss.startdt = '{0}'", getPdssListBySearchTermsRequestApi.startdt);
     }
     return(this.pdssRepository.GetList(
                where.ToString(),
                getPdssListBySearchTermsRequestApi.batchsize,
                getPdssListBySearchTermsRequestApi.fldlist));
 }
Пример #2
0
 public IEnumerable <Pdss> GetPdssListBySearchTerms(GetPdssListBySearchTermsRequestApi getPdssListBySearchTermsRequestApi)
 {
     return(this.pdssService.GetPdssListBySearchTerms(getPdssListBySearchTermsRequestApi));
 }