コード例 #1
0
        public IEnumerable <Comdet> GetTWLComdetInterfaces(string recordType, string version, int batchsize = 0, string fldlist = "")
        {
            var getTWLComdetInterfacesApi = new GetTWLComdetInterfacesApi()
            {
                recordType = recordType,
                version    = version,
                batchsize  = batchsize,
                fldlist    = fldlist
            };

            return(this.comdetService.GetTWLComdetInterfaces(getTWLComdetInterfacesApi));
        }
コード例 #2
0
ファイル: ComdetService.cs プロジェクト: arentlog/web-ui
        public IEnumerable <Comdet> GetTWLComdetInterfaces(GetTWLComdetInterfacesApi getTWLComdetInterfacesApi)
        {
            var sb = new StringBuilder();

            if (!string.IsNullOrWhiteSpace(getTWLComdetInterfacesApi.version))
            {
                sb.AppendFormatWithEscape("comdet.version = '{0}'", getTWLComdetInterfacesApi.version);
                if (!string.IsNullOrWhiteSpace(getTWLComdetInterfacesApi.recordType))
                {
                    sb.AppendFormatWithEscape(" AND comdet.record_type = '{0}'", getTWLComdetInterfacesApi.recordType);
                }
            }
            var where = sb.ToString();
            return(this.comdetRepository.GetList(where, getTWLComdetInterfacesApi.batchsize, getTWLComdetInterfacesApi.fldlist));
        }
コード例 #3
0
 public IEnumerable <Comdet> GetTWLComdetInterfaces(GetTWLComdetInterfacesApi getTWLComdetInterfacesApi)
 {
     return(this.comdetService.GetTWLComdetInterfaces(getTWLComdetInterfacesApi));
 }