コード例 #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            ReportDataView data = (ReportDataView)HttpContext.Current.Session["ReportData"];

            if (data != null)
            {
                RouterReportService routerService = new RouterReportService();

                bool F = data.FilterEnabled;

                if (F == false)//ok
                {
                    fillTable(routerService.getRouterNoFilter());
                }
                else
                {
                   fillTable(routerService.getRouterFilterByCriteria(data));
                }

            }
            else
            {
                GridView3.DataSource = null;
                GridView3.DataBind();
            }
        }
コード例 #2
0
        private void getData()
        {
            ReportDataView data = (ReportDataView)HttpContext.Current.Session["ReportData"];

            if (data != null)
            {
                RouterReportService routerService = new RouterReportService();

                bool F = data.FilterEnabled;

                if (F == false)//ok
                {
                    fillTable(routerService.getRouterNoFilter());
                }
                else
                {
                    fillTable(routerService.getRouterFilterByCriteria(data));
                }

            }
            else
            {
                GridView3.DataSource = null;
                GridView3.DataBind();
            }
        }