예제 #1
0
        public IEnumerable <Wlal> GetWlalByLocationDescription(GetWlalByLocationDescriptionApi getWlalByLocationDescriptionApi)
        {
            var where = new StringBuilder();

            if (!string.IsNullOrWhiteSpace(getWlalByLocationDescriptionApi.wlloc))
            {
                where.AppendFormatWithEscape(" wlal.wlloc BEGINS '{0}'", getWlalByLocationDescriptionApi.wlloc);
            }
            if (!string.IsNullOrWhiteSpace(getWlalByLocationDescriptionApi.descrip))
            {
                if (!string.IsNullOrEmpty(where.ToString()))
                {
                    where.Append(" AND ");
                }
                where.AppendFormatWithEscape(" wlal.descrip BEGINS '{0}'", getWlalByLocationDescriptionApi.descrip);
            }
            return(this.wlalRepository.GetList(where.ToString(), getWlalByLocationDescriptionApi.batchsize, getWlalByLocationDescriptionApi.fldlist));
        }
예제 #2
0
 public IEnumerable <Wlal> GetWlalByLocationDescription(GetWlalByLocationDescriptionApi getWlalByLocationDescriptionApi)
 {
     return(this.wlalService.GetWlalByLocationDescription(getWlalByLocationDescriptionApi));
 }