示例#1
0
        public static EasyUiGridData  createGrid(string connName, string tableName)
        {
            DatabaseAdmin dba      = DatabaseAdmin.getInstance(connName);
            TableDef      tableDef = dba.getTableDef(tableName);
            string        title    = string.IsNullOrEmpty(tableDef.Title)?tableName:tableDef.Title;

            return(EUGridUtils.getGrid(connName, title, tableDef.FieldDefs));
        }
示例#2
0
        public EasyUiGridData drillTableToGrid(List <string> parentMembers)
        {
            DatabaseAdmin  dba   = DatabaseAdmin.getInstance(table.connection);
            TableDef       tbf   = dba.getTableDef(table.name);
            string         title = string.IsNullOrEmpty(tbf.Title) ? table.name : tbf.Title;
            EasyUiGridData ret   = EUGridUtils.getGrid(table.connection, title, tbf.FieldDefs);

            return(ret);
        }
示例#3
0
        /// <summary>
        /// 返回easy ui规范的表格
        /// </summary>
        /// <returns></returns>
        public EasyUiGridData grid()
        {
            _filterRules = null;
            _sorts       = null;
            _ds          = null;

            string title = _name;

            if (_schema != null && !string.IsNullOrEmpty(_schema.Title))
            {
                title = _schema.Title;
            }
            return(EUGridUtils.getGrid(title, _schema.Fields));
        }
示例#4
0
        public EasyUiGridData grid()
        {
            openFile();
            List <FieldDef> fields = new List <FieldDef>();

            foreach (ColumnDef field in ColumnMaps)
            {
                fields.Add(field);
            }
            EasyUiGridData ret = EUGridUtils.getGrid(_connName, fileName, fields);

            ret.url          = "ExcelTransfer." + name + ".data.wbo";
            ret.filterInputs = null;
            return(ret);
        }