Пример #1
0
        public IEnumerable <Dockmstr> GetTWLDocks(string coNum, string whNum, int batchsize = 0, string fldlist = "")
        {
            var getTWLDocksApi = new GetTWLDocksApi()
            {
                coNum     = coNum,
                whNum     = whNum,
                batchsize = batchsize,
                fldlist   = fldlist
            };

            return(this.dockmstrService.GetTWLDocks(getTWLDocksApi));
        }
Пример #2
0
        public IEnumerable <Dockmstr> GetTWLDocks(GetTWLDocksApi getTWLDocksApi)
        {
            var sb = new StringBuilder();

            if (!string.IsNullOrWhiteSpace(getTWLDocksApi.coNum))
            {
                sb.AppendFormatWithEscape("dockmstr.co_num = '{0}'", getTWLDocksApi.coNum);
                if (!string.IsNullOrWhiteSpace(getTWLDocksApi.whNum))
                {
                    sb.AppendFormatWithEscape(" AND dockmstr.wh_num = '{0}'", getTWLDocksApi.whNum);
                }
                if (!string.IsNullOrWhiteSpace(getTWLDocksApi.dockId))
                {
                    sb.AppendFormatWithEscape(" AND dockmstr.dock_id = '{0}'", getTWLDocksApi.dockId);
                }
            }
            var where = sb.ToString();
            return(this.dockmstrRepository.GetList(where, getTWLDocksApi.batchsize, getTWLDocksApi.fldlist));
        }
Пример #3
0
 public IEnumerable <Dockmstr> GetTWLDocks(GetTWLDocksApi getTWLDocksApi)
 {
     return(this.dockmstrService.GetTWLDocks(getTWLDocksApi));
 }