Beispiel #1
0
        public IEnumerable <Slsi> GetSlsiListByImportTypeDesc(GetSlsiListByImportTypeDescRequestApi getGetSlsiListByImportTypeDescRequestApi)
        {
            var where = new StringBuilder();

            if (!string.IsNullOrEmpty(getGetSlsiListByImportTypeDescRequestApi.imptype))
            {
                where.AppendFormatWithEscape("slsi.imptype BEGINS '{0}'", getGetSlsiListByImportTypeDescRequestApi.imptype);
            }

            if (!string.IsNullOrEmpty(getGetSlsiListByImportTypeDescRequestApi.impdescrip))
            {
                if (!string.IsNullOrEmpty(where.ToString()))
                {
                    where.Append(" AND ");
                }
                where.AppendFormatWithEscape("slsi.impdescrip BEGINS '{0}'", getGetSlsiListByImportTypeDescRequestApi.impdescrip);
            }

            return(this.slsiRepository.GetList(
                       where.ToString(),
                       getGetSlsiListByImportTypeDescRequestApi.batchsize,
                       getGetSlsiListByImportTypeDescRequestApi.fldlist));
        }
Beispiel #2
0
 public IEnumerable <Slsi> GetSlsiListByImportTypeDesc(GetSlsiListByImportTypeDescRequestApi GetSlsiListByImportTypeDescRequestApi)
 {
     return(this.slsiService.GetSlsiListByImportTypeDesc(GetSlsiListByImportTypeDescRequestApi));
 }