Ejemplo n.º 1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            ReportDataView data = (ReportDataView)HttpContext.Current.Session["ReportData"];

            if (data != null)
            {
                UpnReportService upnService = new UpnReportService();

                bool F = data.FilterEnabled;

                if (F == false)//ok
                {
                    fillTable(upnService.getUpnReportNoFilter());
                }
                else
                {
                    fillTable(upnService.getUpnReportFilterByCriteria(data));
                }

            }
            else
            {
                GridView3.DataSource = null;
                GridView3.DataBind();
            }
        }
Ejemplo n.º 2
0
        private void getData()
        {
            ReportDataView data = (ReportDataView)HttpContext.Current.Session["ReportData"];

            if (data != null)
            {
                UpnReportService upnService = new UpnReportService();

                bool F = data.FilterEnabled;

                if (F == false)//ok
                {
                    fillTable(upnService.getUpnReportNoFilter());
                }
                else
                {
                    fillTable(upnService.getUpnReportFilterByCriteria(data));
                }

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