Пример #1
0
 public void ThongTin_NewLoad()
 {
     txtHoVaTen.Clear();
     txtCMND_CCCD.Clear();
     txtSoDienThoai.Clear();
     cboGioiTinh.SelectedIndex = -1;
     cboQueQuan.SelectedIndex  = -1;
     dtpNgaySinh.SelectedDate  = DateTime.Today;
     dtpNgayVao.SelectedDate   = DateTime.Today;
     txtMaNhanVien.Text        = "Mã được cấp tự động";
     txtBoPhan.Text            = "Phân tại TỔ CHỨC";
     txtChucVu.Text            = "Phân tại TỔ CHỨC";
     ChuyenDoi.HinhAnh(base64_defaultAvatar, imgAnhDaiDien);
 }
Пример #2
0
 private void lstvThongTin_SelectionChanged(object sender, SelectionChangedEventArgs e)
 {
     try
     {
         NhanSu nhanSu = (NhanSu)lstvThongTin.SelectedValue;
         try { ChuyenDoi.HinhAnh(nhanSu.Avatar, imgAnhDaiDien); } catch { }
         txtHoVaTen.Text           = nhanSu.HoTen;
         txtBoPhan.Text            = nhanSu.BoPhan;
         txtChucVu.Text            = nhanSu.ChucVu;
         txtCMND_CCCD.Text         = nhanSu.CMND;
         txtMaNhanVien.Text        = nhanSu.MaNhanVien;
         txtSoDienThoai.Text       = nhanSu.SoDienThoai;
         dtpNgaySinh.SelectedDate  = Convert.ToDateTime(nhanSu.NgaySinh);
         dtpNgayVao.SelectedDate   = Convert.ToDateTime(nhanSu.NgayVao);
         cboGioiTinh.SelectedValue = nhanSu.GioiTinh;
         cboQueQuan.SelectedValue  = nhanSu.QueQuan;
     }
     catch { }
 }