protected void InitializeGridUser()
        {
            //int userid = Convert.ToInt32(Session["UserId"]);
            GetMyAccessRights();
            User user = new User();

            List<User> userlist = new List<User>();
            if (dropDownListDepartment.SelectedItem.Text == "All")
            {
                userlist = user.GetUserListByStatus("Active");
            }
            else
            {
                userlist = user.GetUserListByDepartmentAndStatus(Convert.ToInt32(dropDownListDepartment.SelectedItem.Value),"Active");
            }
            gridViewUser.DataSource = userlist;
            gridViewUser.DataBind();
        }
        protected void InitializeGridUser()
        {
            //int userid = Convert.ToInt32(Session["UserId"]);
            GetMyAccessRights();
            User user = new User();
            if (myAccessRights.CanAdd == true)
                linkBtnAddUser.Visible = true;
            else
                linkBtnAddUser.Visible = false;

            List<User> userlist = new List<User>();
            if (dropDownListDepartment.SelectedItem.Text == "All")
            {
                if (radioBtnListStatus.SelectedItem.Text == "All")
                    userlist = user.GetUserList();
                else
                    userlist = user.GetUserListByStatus(radioBtnListStatus.SelectedItem.Value.Trim());
            }
            else
            {
                if (radioBtnListStatus.SelectedItem.Text == "All")
                    userlist = user.GetUserList(Convert.ToInt32(dropDownListDepartment.SelectedItem.Value));
                else
                    userlist = user.GetUserListByDepartmentAndStatus(Convert.ToInt32(dropDownListDepartment.SelectedItem.Value), radioBtnListStatus.SelectedItem.Value.Trim());
            }
            gridViewUser.DataSource = userlist;
            gridViewUser.DataBind();
        }