Ejemplo n.º 1
0
 /// <summary>
 /// 将符合查询的数据导出Excel
 /// </summary>
 /// <param name="filename"></param>
 /// <param name="grid"></param>
 /// <param name="httplink"></param>
 public void OutputExcel(string filename, ExtjsGrid grid, EntityAddress address)
 {
     #region
     int         totalcount  = 0;
     PageParams  queryparams = new PageParams(1, 65536);
     DataSet     ds          = this.GetData(address, queryparams, out totalcount);
     ExportExcel exportexcel = new ExportExcel(filename, ds, grid);
     exportexcel.Output();
     #endregion
 }
Ejemplo n.º 2
0
        /// <summary>
        /// 将符合查询的数据导出Excel
        /// </summary>
        /// <param name="filename"></param>
        /// <param name="grid"></param>
        /// <param name="httplink"></param>
        public void OutputExcel(string filename, ExtjsGrid grid, EntityWLOGProjectTree wlogprojecttree)
        {
            #region
            int        totalcount  = 0;
            PageParams queryparams = new PageParams(1, 65536);
            DataSet    ds          = this.GetData(wlogprojecttree, queryparams, out totalcount);

            ExportExcel exportexcel = new ExportExcel(filename, ds, grid);
            exportexcel.Output();
            #endregion
        }
Ejemplo n.º 3
0
        /// <summary>
        /// 将符合查询的数据导出Excel
        /// </summary>
        /// <param name="filename"></param>
        /// <param name="grid"></param>
        /// <param name="httplink"></param>
        public void OutputExcel(string filename, ExtjsGrid grid, EntityProjectCollect projectcollect)
        {
            #region
            int        totalcount  = 0;
            PageParams queryparams = new PageParams(1, 65536);
            DataSet    ds          = this.GetData(projectcollect, queryparams, out totalcount);

            ExportExcelProjectCollect exportexcelprojectcollect = new ExportExcelProjectCollect(filename, ds, grid);
            exportexcelprojectcollect.Output();
            #endregion
        }
        /// <summary>
        /// 将符合查询的数据导出Excel
        /// </summary>
        /// <param name="filename"></param>
        /// <param name="grid"></param>
        /// <param name="httplink"></param>
        public void OutputExcel(string filename, ExtjsGrid grid, EntityRoleControlFunctionPoint rolecontrolfunctionpoint)
        {
            #region
            int        totalcount  = 0;
            PageParams queryparams = new PageParams(1, 65536);
            DataSet    ds          = this.GetData(rolecontrolfunctionpoint, queryparams, out totalcount);

            ExportExcel exportexcel = new ExportExcel(filename, ds, grid);
            exportexcel.Output();
            #endregion
        }
Ejemplo n.º 5
0
        /// <summary>
        /// 将符合查询的数据导出Excel
        /// </summary>
        /// <param name="filename"></param>
        /// <param name="grid"></param>
        /// <param name="httplink"></param>
        public void OutputExcel(string filename, ExtjsGrid grid, EntityComputer computer)
        {
            #region
            int        totalcount  = 0;
            PageParams queryparams = new PageParams(1, 65536);
            DataSet    ds          = this.GetData(computer, queryparams, out totalcount);

            ExportExcelComputer exportexcelcomputer = new ExportExcelComputer(filename, ds, grid);
            exportexcelcomputer.Output();
            #endregion
        }
Ejemplo n.º 6
0
        /// <summary>
        /// 将符合查询的数据导出Excel
        /// </summary>
        /// <param name="filename"></param>
        /// <param name="grid"></param>
        /// <param name="httplink"></param>
        public void OutputExcel(string filename, ExtjsGrid grid, EntityCollectType collecttype)
        {
            #region
            int        totalcount  = 0;
            PageParams queryparams = new PageParams(1, 65536);
            DataSet    ds          = this.GetData(collecttype, queryparams, out totalcount);

            ExportExcelCollectType exportexcelcollecttype = new ExportExcelCollectType(filename, ds, grid);
            exportexcelcollecttype.Output();
            #endregion
        }
Ejemplo n.º 7
0
        /// <summary>
        /// 将符合查询的数据导出Excel
        /// </summary>
        /// <param name="filename"></param>
        /// <param name="grid"></param>
        /// <param name="httplink"></param>
        public void OutputExcel(string filename, ExtjsGrid grid, EntityWLOGPersonLog wlogpersonlog)
        {
            #region
            int        totalcount  = 0;
            PageParams queryparams = new PageParams(1, 65536);
            DataSet    ds          = this.GetData(wlogpersonlog, queryparams, out totalcount);

            ExportExcelPersonLog exportexcel = new ExportExcelPersonLog(filename, ds, grid);
            exportexcel.Output();
            #endregion
        }
Ejemplo n.º 8
0
        /// <summary>
        ///
        /// </summary>
        /// <returns></returns>
        public ExtjsGrid GetExcelParams()
        {
            #region
            string viewcolumnnames = HttpContext.Current.Request.Params["viewcolumnnames"];
            string hiddens         = HttpContext.Current.Request.Params["hiddens"];
            string columnstitle    = HttpContext.Current.Request.Params["columnstitle"];

            ExtjsGrid grid = new ExtjsGrid();
            grid.ViewColumnNames = viewcolumnnames;
            grid.ColumnsHidden   = hiddens;
            grid.ViewTitleNames  = columnstitle;

            return(grid);

            #endregion
        }