Ejemplo n.º 1
0
        protected void Page_Load(object sender, System.EventArgs e)
        {
            Session.LCID       = 1033;
            elt_account_number = Request.Cookies["CurrentUserInfo"]["elt_account_number"];
            user_id            = Request.Cookies["CurrentUserInfo"]["user_id"];
            user_right         = Request.Cookies["CurrentUserInfo"]["user_right"];
            login_name         = Request.Cookies["CurrentUserInfo"]["login_name"];

            if (Session["Accounting_sPeriod"] == null)
            {
                Response.Redirect("./GLSelection.aspx?parm=bal");
            }

            if (login_name == "imoon")
            {
                this.TextBox1.Width = new Unit("100px");
                this.TextBox2.Width = new Unit("100px");
            }

            if (!IsPostBack)
            {
                ViewState["Count"] = 1;

                if (Request.UrlReferrer == null)
                {
                    Response.Redirect(ParentPage);
                }
                else
                {
                    ViewState["Parent"] = Request.UrlReferrer.ToString();
                }

                PerformSearch();
                PerformDataBind();
            }
            else
            {
                ViewState["Count"] = (int)ViewState["Count"] + 1;
            }
            UltraWebGrid1.ExpandAll(true);
            UltraWebGrid2.ExpandAll(true);
            UltraWebGrid3.ExpandAll(true);
        }