예제 #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         ddlMinistry.Enabled = true;
         PopulateMinistries();
         if (Session["ministry_id"].ToInt32() > 0)
         {
             ddlMinistry.Enabled       = false;
             ddlMinistry.SelectedValue = Session["ministry_id"].ToString();
         }
     }
     if (IsPostBack)
     {
         RptViewer.ReportSource = Session["ProblemReport"];
         RptViewer.RefreshReport();
         RptViewer.DataBind();
     }
 }
예제 #2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         ddlMinistry.Enabled     = true;
         Session["rptProjectId"] = "0";
         PopulateMinistries();
         if (Session["ministry_id"].ToInt32() > 0)
         {
             ddlMinistry.Enabled       = false;
             ddlMinistry.SelectedValue = Session["ministry_id"].ToString();
             PopulateBudgetHead();
         }
     }
     if (IsPostBack)
     {
         /*RptViewer.ReportSource = Session["NatijaReport"];*/
         RptViewer.ReportSource = Session["PratifalReport"];
         RptViewer.RefreshReport();
         RptViewer.DataBind();
     }
 }