Ejemplo n.º 1
0
        protected override void OnPreInit(EventArgs e)
        {
            if (listPrivillagePage.Count == 0)
            {
                listPrivillagePage.Add("/UserManagement/ManagerAdd.aspx");
                //listPrivillagePage.Add("/UserManagement/ManagerEdit.aspx");
                listPrivillagePage.Add("/UserManagement/ManagerList.aspx");
                listPrivillagePage.Add("/Log/LogList.aspx");
                listPrivillagePage.Add("/Module/ModuleList.aspx");
            }
            if (Session["Manager"] != null)
            {
                this.manager = Session["Manager"] as CY.HotelBooking.Core.Business.Manager;
            }
            else
            {
                string strURL = ResolveUrl("~") + "Login.aspx";
                Response.Write("<html><head><script type=\"text/javascript\">top.document.location='" + strURL + "';</script></head><body></body></html>");
            }

            if (Session["Settings"] == null)
            {
                this.settings = CY.HotelBooking.Core.Business.Settings.Load(0);
                Session["Settings"] = this.settings;
            }
            else
            {
                this.settings = Session["Settings"] as CY.HotelBooking.Core.Business.Settings;
            }

            base.OnPreInit(e);
        }
Ejemplo n.º 2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     settings = CY.HotelBooking.Core.Business.Settings.Load(0);
 }