Ejemplo n.º 1
0
        public IEnumerable <Oeds> GetOedsListAllByConoAndWhse(
            GetOedsListAllByConoAndWhseRequestApi getGetOedsListAllByConoAndWhseRequestApi)
        {
            var where = new StringBuilder();
            where.Append($"oeds.cono = {this.oedsRepository.Cono}");

            if (!string.IsNullOrEmpty(getGetOedsListAllByConoAndWhseRequestApi.whse))
            {
                where.AppendFormatWithEscape(" AND oeds.whse = '{0}'", getGetOedsListAllByConoAndWhseRequestApi.whse);
            }


            return(this.oedsRepository.GetList(
                       where.ToString(),
                       getGetOedsListAllByConoAndWhseRequestApi.batchsize,
                       getGetOedsListAllByConoAndWhseRequestApi.fldlist));
        }
Ejemplo n.º 2
0
 public IEnumerable <Oeds> GetOedsListAllByConoAndWhse(GetOedsListAllByConoAndWhseRequestApi getOedsListAllByConoAndWhseRequestApi)
 {
     return(this.oedsService.GetOedsListAllByConoAndWhse(getOedsListAllByConoAndWhseRequestApi));
 }