Ejemplo n.º 1
0
        private void DisplayWarningMessageForReadOnlyUser()
        {
            bool isCurrentUserReadOnly = AppSecurity.Current_User_Access_Level().Equals(AppSecurity.ROLE_READ_ONLY);

            if (isCurrentUserReadOnly)
            {
                DataSet ds        = DatabaseUtilities.DsGetUserAccessibleStudentSearch(GetStudentIDs());
                int     iRowCount = int.Parse(ds.Tables[0].Rows[0]["Total"].ToString());
                if (iRowCount > 0)
                {
                    DisplayMessage("Please Note ", "You can only view student(s) at the following site location: <br /><br />" + AppSecurity.Get_Current_User_Accessible_Site_Desc());
                }
            }
        }