Ejemplo n.º 1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            MasterPage.RequiredPermission = 8000;
            MasterPage.IsSecure           = true;
            MasterPage.PageTitle          = string.Format("{0}", "Organization List");

            if (!(bool)CRIsMasterTenant)
            {
                Response.Redirect("MyTenantAccount.aspx");
            }

            _mStrSortExp = String.Empty;

            if (!IsPostBack)
            {
                SetPageRibbon(StandardModuleRibbons.MasterTenantRibbon());

                _mStrSortExp = String.Empty;
            }
            else
            {
                if (null != ViewState["_SortExp_"])
                {
                    _mStrSortExp = ViewState["_SortExp_"] as String;
                }

                if (null != ViewState["_Direction_"])
                {
                    _mSortDirection = (SortDirection)ViewState["_Direction_"];
                }
            }
        }
Ejemplo n.º 2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            MasterPage.IsSecure  = false;
            MasterPage.PageTitle = "Organization - Add / Edit User";

            ControlRoomAccessPermission.CheckControlRoomAccessPermission(1000); // Change Appropriately;

            if (!IsPostBack)
            {
                List <RibbonPanel> moduleRibbonPanels = StandardModuleRibbons.MasterTenantRibbon();
                foreach (var moduleRibbonPanel in moduleRibbonPanels)
                {
                    MasterPage.PageRibbon.Add(moduleRibbonPanel);
                }
                MasterPage.PageRibbon.DataBind();
            }


            if (!IsPostBack)
            {
                lblUID.Text = Session["UID"] == null ? "" : Session["UID"].ToString(); //Session["UID"]= string.Empty;
                //lblUID.Text = Request["PK"];
                dv.ChangeMode(lblUID.Text.Length == 0 ? DetailsViewMode.Insert : DetailsViewMode.Edit);

                var t = Core.Utilities.Tenant.FetchObject(int.Parse(Session["ATENID"].ToString()));
                lblOrg.Text = t.AdminName;
            }
        }
Ejemplo n.º 3
0
        protected void Page_Load(object sender, EventArgs e)
        {
            MasterPage.RequiredPermission = 8000;
            MasterPage.IsSecure           = true;

            if (!IsPostBack)
            {
                MasterPage.PageTitle = string.Format("{0}", "Tenant Summary Report");

                SetPageRibbon(StandardModuleRibbons.MasterTenantRibbon());
            }
        }
Ejemplo n.º 4
0
        protected void Page_Load(object sender, EventArgs e)
        {
            MasterPage.RequiredPermission = 8000;
            MasterPage.IsSecure           = true;
            MasterPage.PageTitle          = string.Format("{0}", "Organization Add / Edit");

            if (!IsPostBack)
            {
                SetPageRibbon(StandardModuleRibbons.MasterTenantRibbon());

                lblPK.Text      = Session["TeMID"].ToString();
                Button1.Visible = lblPK.Text.Length > 0;
                dv.ChangeMode(lblPK.Text.Length == 0 ? DetailsViewMode.Insert : DetailsViewMode.Edit);
                Page.DataBind();
            }
        }
Ejemplo n.º 5
0
        protected void Page_Load(object sender, EventArgs e)
        {
            MasterPage.IsSecure  = true;
            MasterPage.PageTitle = "Organization SRP User List";

            ControlRoomAccessPermission.CheckControlRoomAccessPermission(1000); // User Security;

            if (!IsPostBack)
            {
                List <RibbonPanel> moduleRibbonPanels = StandardModuleRibbons.MasterTenantRibbon();
                foreach (var moduleRibbonPanel in moduleRibbonPanels)
                {
                    MasterPage.PageRibbon.Add(moduleRibbonPanel);
                }
                MasterPage.PageRibbon.DataBind();
            }


            _mStrSortExp = String.Empty;
            if (!IsPostBack)
            {
                _mStrSortExp = String.Empty;
            }
            else
            {
                if (null != ViewState["_SortExp_"])
                {
                    _mStrSortExp = ViewState["_SortExp_"] as String;
                }

                if (null != ViewState["_Direction_"])
                {
                    _mSortDirection = (SortDirection)ViewState["_Direction_"];
                }
            }

            if (!IsPostBack)
            {
                if (Session["ATENID"] != null)
                {
                    TenID.SelectedValue = Session["ATENID"].ToString();
                    LoadData(Session["ATENID"].ToString());
                }
            }
        }