Пример #1
0
        public IEnumerable <Autodrpcfg> GetTWLAutoDropConfigs(string coNum, string whNum, int batchsize = 0, string fldlist = "")
        {
            var getTWLAutoDropConfigsApi = new GetTWLAutoDropConfigsApi()
            {
                coNum     = coNum,
                whNum     = whNum,
                batchsize = batchsize,
                fldlist   = fldlist,
            };

            return(this.autodropcfgService.GetTWLAutoDropConfigs(getTWLAutoDropConfigsApi));
        }
Пример #2
0
        public IEnumerable <Autodrpcfg> GetTWLAutoDropConfigs(GetTWLAutoDropConfigsApi getTWLAutoDropConfigsApi)
        {
            var sb = new StringBuilder();

            if (!string.IsNullOrWhiteSpace(getTWLAutoDropConfigsApi.coNum))
            {
                sb.AppendFormatWithEscape("autodrpcfg.co_num = '{0}'", getTWLAutoDropConfigsApi.coNum);
                if (!string.IsNullOrWhiteSpace(getTWLAutoDropConfigsApi.whNum))
                {
                    sb.AppendFormatWithEscape(" AND autodrpcfg.wh_num = '{0}'", getTWLAutoDropConfigsApi.whNum);
                }
            }
            var where = sb.ToString();
            return(this.autodrpcfgRepository.GetList(where, getTWLAutoDropConfigsApi.batchsize, getTWLAutoDropConfigsApi.fldlist));
        }
Пример #3
0
 public IEnumerable <Autodrpcfg> GetTWLAutoDropConfigs(GetTWLAutoDropConfigsApi getTWLAutoDropConfigsApi)
 {
     return(this.autodropcfgService.GetTWLAutoDropConfigs(getTWLAutoDropConfigsApi));
 }