Example #1
0
        private void frmAddAcc_Load(object sender, EventArgs e)
        {
            botro.ApplyElipse(txtCMND, 40);
            if (key != 0)
            {
                DTO_Account acc = BUS_Account.GetAccount(key);
                txtCMND.Text        = acc.CMND.ToString();
                txtTenDangNhap.Text = acc.TenDangNhap;
                string chucvu = acc.ChucVu;

                switch (chucvu)
                {
                case "Admin":
                    cbbChucVu.selectedIndex = 0;
                    break;

                case "Lễ Tân":
                    cbbChucVu.selectedIndex = 1;
                    break;

                case "Kinh Doanh":
                    cbbChucVu.selectedIndex = 2;
                    break;
                }
                txtPass.Text = null;
                txtPass.Focus();
                txtPassRepeat.Text = null;
                msg = "Sửa thành công";
            }
        }
Example #2
0
        private void frmLeTan_Load(object sender, EventArgs e)
        {
            a = BUS_Account.GetAccount(id);

            lbNameWelCome.Text = BUS_User.GetUser(a.CMND).HoTen;
            MoveSidePanel(btnAccount);

            UCInfo.Instance.Dock = DockStyle.Fill;
            panelNV.Controls.Add(UCInfo.Instance);
            UCInfo.Instance.ShowInfo(a.CMND);
        }
Example #3
0
 public frmAdmin(int stt)
 {
     this.stt     = stt;
     this.thisacc = BUS_Account.GetAccount(stt);
     InitializeComponent();
 }