public ActionResult Information(string select)
        {
            switch (select)
            {
            case "查询记录":
                //Session["LoginRecord"] = !Convert.ToBoolean(Session["LoginRecord"]);
                IsShowRecordTable = !IsShowRecordTable;
                break;

            case "修改信息":
                Session["LoginRecord"] = false;
                break;

            default:
                break;
            }

            //个人信息页面视图模型
            InformationBusinessLayer informationBusinessLayer = new InformationBusinessLayer();
            string name     = Session["User"].ToString();
            string password = Session["Password"].ToString();
            InformationViewModel informationViewModel = informationBusinessLayer.getInformationViewModel(name, password);

            informationViewModel.UserName = Session["User"].ToString();

            return(View("Information", informationViewModel));
        }
        public ActionResult Information()
        {
            HomeController.page = 1;
            //Session["LoginRecord"] = false;

            //个人信息页面视图模型
            InformationBusinessLayer informationBusinessLayer = new InformationBusinessLayer();
            string name     = Session["User"].ToString();
            string password = Session["Password"].ToString();
            InformationViewModel informationViewModel = informationBusinessLayer.getInformationViewModel(name, password);

            informationViewModel.UserName = name;
            //全局变量用户组
            //S_users = informationViewModel.users;

            return(View("Information", informationViewModel));
        }
        public ActionResult searchUser(string Select, string uname, string BtnSubmit)
        {
            //如果BtnSubmit是触发的搜索按键
            AttributesViewModel attributesViewModel = new AttributesViewModel();

            attributesViewModel.UserName = Session["User"].ToString();//继承的,显示右边的用户名

            //个人信息页面视图模型
            InformationBusinessLayer informationBusinessLayer = new InformationBusinessLayer();
            string name     = Session["User"].ToString();
            string password = Session["Password"].ToString();
            InformationViewModel informationViewModel = informationBusinessLayer.getInformationViewModel(name, password, Select, uname);

            S_select       = Select;
            S_name         = uname;
            IsSearchPeople = true;

            //S_users = informationViewModel.users;

            return(View("Information", informationViewModel));
        }