Ejemplo n.º 1
0
        protected override void OnLoad(EventArgs e)
        {
            string userName     = this.UserName;
            bool   isAuthorized = this.IsAuthorized;

            MasterKiosk ucMasterPage = (MasterKiosk)this.Master;

            ucMasterPage.ShowTheContent(this.IsAuthorized);



            if (!this.Page.IsPostBack)
            {
                if (this.UserId != 0)
                {
                    FacilityDS.FacilityDSDataTable dt = BllProxyFacility.GetFacilityByUser(this.UserId);

                    facilityId = 0;
                    if (dt.Rows.Count == 0)
                    {
                        this.SetFacilityName("No Facility assigned to the username: "******"Logged out...");
                }
            }



            base.OnLoad(e);
        }
Ejemplo n.º 2
0
        public void SetFacilityName(string facilityName)
        {
            MasterKiosk master = (MasterKiosk)this.Master;

            master.FacilityName = facilityName;
        }