protected void CustomersContainerDataSource_Selecting(object sender, Microsoft.Practices.Web.UI.WebControls.ObjectContainerDataSourceSelectingEventArgs e)
 {
     if (e != null)
     {
         _presenter.OnPageChange(e.Arguments.StartRowIndex);
     }
 }
Esempio n. 2
0
 protected void dataSourceViewPAMSummary_Selecting(object sender, Microsoft.Practices.Web.UI.WebControls.ObjectContainerDataSourceSelectingEventArgs e)
 {
     if (Session["PAMSummaryReport"] != null)
     {
         BindSessionData();
         ViewData = (ViewPAMSummaryReportViewData)Session["PAMSummaryReport"];
         if (ViewData != null)
         {
             dataSourceViewPAMSummary.DataSource = ViewData;
         }
         else
         {
             lblMessage.Visible = true;
             lblMessage.Text    = "No Records found.";
         }
         DisplayReportParameter();
         //Session["PAMSummaryReport"] = "";
         //Session["PAMSummaryReport"] = null;
     }
     else
     {
         lblMessage.Visible = true;
         lblMessage.Text    = "Your report session is lost. Please rerun your report";
         //RouteController.RouteTo(RouteController.NprPAMReports());
     }
 }
Esempio n. 3
0
        protected void dataSourceViewPAMSummary_Selecting(object sender, Microsoft.Practices.Web.UI.WebControls.ObjectContainerDataSourceSelectingEventArgs e)
        {
            BindSessionData();
            ViewData = GetPAMSummaryReport();
            if (ViewData != null)
            {
                dataSourceViewPAMSummary.DataSource = ViewData;
                ////////////Session["PAMSummaryReport"] = ViewData;
                panelPrinterFriendly.Visible = true;
            }
            else
            {
                /////////////////////Session["PAMSummaryReport"] = null;
                lblMessage.Visible           = true;
                panelPrinterFriendly.Visible = false;

                lblMessage.Text = "No Records found for the given parameter";
            }
            DisplayReportParameter();
        }