Esempio n. 1
0
        public ActionResult QuanLyUser()
        {
            IEnumerable <CUserGroupModel> v_lst_user_group = m_mana_user.GetAllUserGroup();
            IEnumerable <CUserModel>      v_lst_user       = m_mana_user.GetAllUser();

            ViewBag._lst_user_group = v_lst_user_group;
            ViewBag._lst_user       = v_lst_user;
            return(View());
        }
Esempio n. 2
0
        private void LoadUserButtons()
        {
            try
            {
                CUserManager     tempUserManager = new CUserManager();
                List <CUserInfo> tempUserList    = new List <CUserInfo>();
                tempUserList = (List <CUserInfo>)tempUserManager.GetAllUser().Data;

                int buttonCount = tempUserList.Count;
                buttons = new UserButton[buttonCount];

                for (int counter = 0; counter < buttonCount; counter++)
                {
                    if (tempUserList[counter].Status == 1)
                    {
                        // NAIN.K modified 06/01/2009

                        string webuser = "******";

                        if (tempUserList[counter].UserName.Replace(" ", " ").ToUpper() != webuser.Replace(" ", " ").ToUpper())
                        {
                            buttons[counter]        = new UserButton();
                            buttons[counter].Gender = tempUserList[counter].Gender;
                            // buttons[counter].TouchButton.Text = tempUserList[counter].UserName;
                            buttons[counter].rmsUserName.Text = tempUserList[counter].UserName;
                            buttons[counter].Click           += new System.EventHandler(this.UserButton_Click);

                            buttons[counter].Show();
                        }
                    }
                }

                LoadUserPanel();
            }
            catch (Exception ee)
            {
                MessageBox.Show(ee.Message);
            }
        }