Esempio n. 1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                string userType = (string)Session["UserType"];

                if (userType == null)
                {
                    Response.Redirect("Login.aspx?category=User", true);
                }
                else
                {

                    StoredProcedures sp = new StoredProcedures();
                    DataSet fiscalYears = sp.GetFiscalYears();
                    int lastRecord = fiscalYears.Tables[0].Rows.Count - 1;

                    String mostRecentFY = fiscalYears.Tables[0].Rows[lastRecord][0].ToString();
                    ViewState["MostRecentFiscalYear"] = mostRecentFY;

                    MakeProjections();
                }
            }
        }
Esempio n. 2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                string userType = (string)Session["UserType"];

                if (userType == null)
                {
                    Response.Redirect("Login.aspx?category=User", true);
                }
                else
                {

                    Session["supportUnit"] = null;

                    StoredProcedures sp = new StoredProcedures();
                    DataSet fiscalYears = sp.GetFiscalYears();

                    FinancialYearDropDownList.DataSource = fiscalYears.Tables[0];
                    FinancialYearDropDownList.DataTextField = "fiscalYear";
                    FinancialYearDropDownList.DataValueField = "fiscalYear";

                    FinancialYearDropDownList.DataBind();
                }
            }
        }
Esempio n. 3
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {

                string userType = (string)Session["UserType"];

                if (userType == null)
                {
                    Response.Redirect("Login.aspx?category=User", true);
                }
                else
                {

                    Session["supportUnit"] = null;

                    StoredProcedures sp = new StoredProcedures();

                    ProjectionPercentages percentages = new ProjectionPercentages();

                    DataSet fiscalYears = sp.GetFiscalYears();
                    int lastRecord = fiscalYears.Tables[0].Rows.Count - 1;

                    String mostRecentFY = fiscalYears.Tables[0].Rows[lastRecord][0].ToString();

                    Session["MostRecentFY"] = mostRecentFY;

                    DisplayRevenueExpenseSummaryReport();
                }
            }
        }