Exemple #1
0
        public IEnumerable <Poerah> GetPoerahListByVendWhseProdLine(
            GetPoerahListByVendWhseProdLineRequestApi getPoerahListByVendWhseProdLineRequestApi)
        {
            var where = new StringBuilder();
            where.AppendFormat("poerah.cono = {0}", this.poerahRepository.Cono);
            where.AppendFormat(" and poerah.vendno = {0}", getPoerahListByVendWhseProdLineRequestApi.vendno);

            if (!string.IsNullOrEmpty(getPoerahListByVendWhseProdLineRequestApi.whse))
            {
                where.AppendFormatWithEscape(" AND poerah.whse = '{0}'", getPoerahListByVendWhseProdLineRequestApi.whse);
            }
            if (!string.IsNullOrEmpty(getPoerahListByVendWhseProdLineRequestApi.prodline))
            {
                where.AppendFormatWithEscape(" AND poerah.prodline = '{0}'", getPoerahListByVendWhseProdLineRequestApi.prodline);
            }

            return(this.poerahRepository.GetList(
                       where.ToString(),
                       getPoerahListByVendWhseProdLineRequestApi.batchsize,
                       getPoerahListByVendWhseProdLineRequestApi.fldlist));
        }
Exemple #2
0
 public IEnumerable <Poerah> GetPoerahListByVendWhseProdLine(GetPoerahListByVendWhseProdLineRequestApi getPoerahListByVendWhseProdLineRequestApi)
 {
     return(this.poerahService.GetPoerahListByVendWhseProdLine(getPoerahListByVendWhseProdLineRequestApi));
 }