Exemplo n.º 1
0
        /// <summary>
        /// 数据初始化
        /// </summary>
        private void InitData()
        {
            #region 搜索条件初始化
            IniSearch();

            #endregion
            #region 数据绑定及分页
            //绑定数据列表
            DataTable dt = null;

            /*
             *
             */
            //if (JKZL_TYPE == "FTTB未配置到ONU")
            //{
            Eastcom.BLL.v_月度考核内容 bll = new Eastcom.BLL.v_月度考核内容();
            dt = bll.GetPageList(this.PageSize, this.PageIndex, ref this.RecordCount, strWhere, fieldName, "[ID]", "[ID] Desc");
            //}
            Session[StrWhereOutPutSessionName] = strWhere;
            this.InitPager(this.pager);
            pager.ShowPageIndexBox = Wuqi.Webdiyer.ShowPageIndexBox.Never;
            /*手机端绑定*/


            CommonClass.Control.Control.RepDataBind(this.RepList, dt, true);
            //XCLNetTools.Control.Control.RepDataBind(this.RepList, dt, true);
            #endregion
        }
Exemplo n.º 2
0
        public void btn_export_Click(object sender, EventArgs e)
        {
            if (!string.IsNullOrEmpty(Convert.ToString(Session[StrWhereOutPutSessionName])))
            {
                DataSet ds = new Eastcom.BLL.v_月度考核内容().GetOutPutViewList(Convert.ToString(Session[StrWhereOutPutSessionName]) ?? "", fieldName, "[ID] desc");

                CommonClass.DataHandler.DataToExcel.OutPutExcel(null, null, ds, "考试答题情况_统一Excel导出", new string[] { "考试答题情况_统一Excel导出" });
            }
            else
            {
                CommonClass.StringHander.Common.ResponseClearWrite("操作失败,请刷新页面后再导出!");
            }
        }
Exemplo n.º 3
0
        /// <summary>
        /// 数据初始化
        /// </summary>
        private void InitData()
        {
            #region 搜索条件初始化
            IniSearch();

            #endregion
            #region 数据绑定及分页
            //绑定数据列表
            DataTable dt = null;

            /*
             *
             */
            //if (JKZL_TYPE == "FTTB未配置到ONU")
            //{
            Eastcom.BLL.v_月度考核内容 bll = new Eastcom.BLL.v_月度考核内容();
            dt = bll.GetPageList(this.PageSize, this.PageIndex, ref this.RecordCount, strWhere, fieldName, "[ID]", "[ID] Desc");
            //}
            Session[StrWhereOutPutSessionName] = strWhere;
            this.InitPager(this.pager);
            CommonClass.Control.Control.DataGridDataBind(this.Dg_Record, dt, true);
            #endregion
        }