private void lueMaNhanVien_EditValueChanged(object sender, EventArgs e) { if (lueMaNhanVien.Text != string.Empty) { txtTenNhanVien.Text = nvControl.getTenNV(lueMaNhanVien.Text.Trim()); } }
private void frmChaoMung_Load(object sender, EventArgs e) { this.StartPosition = FormStartPosition.CenterScreen; SkinManager.EnableFormSkins(); UserLookAndFeel.Default.SetSkinStyle("Pumpkin"); lblTen.Text = nvControl.getTenNV(frmDangNhap.MaNhanVien); }
private void frmThayDoiThongTinDangNhap_Load(object sender, EventArgs e) { txtMatKhauMoi.Text = txtNhapLaiMK.Text = string.Empty; lblMaNV.Text = frmDangNhap.MaNhanVien; lblTenNV.Text = nvControl.getTenNV(frmDangNhap.MaNhanVien); txtMaDN.Text = frmDangNhap.MaDangNhap; txtTenDN.Text = frmDangNhap.TenDangNhap; txtQuyenTC.Text = frmDangNhap.QuyenTruyCap; }
private void timer_Tick(object sender, EventArgs e) { Random rd = new Random(); lblTenNV.Text = "Xin chào " + nvControl.getTenNV(frmDangNhap.MaNhanVien); x++; if (x == 5) { timer.Stop(); if (!b) { lblNgay.Text = DateTime.Now.ToString("HH:mm:ss"); b = true; } else { b = false; lblNgay.Text = DateTime.Now.ToShortDateString(); } lblNgay.ForeColor = Color.FromArgb(rd.Next(0, 256), rd.Next(0, 256), rd.Next(0, 256)); lblTenNV.ForeColor = Color.FromArgb(rd.Next(0, 256), rd.Next(0, 256), rd.Next(0, 256)); timer.Start(); x = 0; } }
private void lueMaNV_EditValueChanged(object sender, EventArgs e) { txtTenNV.Text = nvControl.getTenNV(lueMaNV.Text.Trim()); txtChucVu.Text = nvControl.getChucVuNV(lueMaNV.Text.Trim()); }