Пример #1
0
 public IEnumerable <Pdsc> GetPdscListByWhse(
     GetPdscListByWhseRequestApi getPdscListByWhseRequestApi)
 {
     var where = new StringBuilder();
     where.AppendFormat("pdsc.cono = {0}", this.pdscRepository.Cono);
     where.AppendFormat(" AND pdsc.levelcd = 0");
     if (getPdscListByWhseRequestApi.whse != null)
     {
         where.AppendFormatWithEscape(" AND pdsc.whse = '{0}'", getPdscListByWhseRequestApi.whse);
     }
     return(this.pdscRepository.GetList(
                where.ToString(),
                getPdscListByWhseRequestApi.batchsize,
                getPdscListByWhseRequestApi.fldlist));
 }
Пример #2
0
 public IEnumerable <Pdsc> GetPdscListByWhse(GetPdscListByWhseRequestApi getPdscListByWhseRequestApi)
 {
     return(this.pdscService.GetPdscListByWhse(getPdscListByWhseRequestApi));
 }