Ejemplo n.º 1
0
 private void LoadSearchNameData()
 {
     blDD      = new BLDiemDanh();
     dsNVandDD = blDD.dsVShiftAndEmployee();
     dgvNhanVien.Rows.Clear();
     for (int i = 0; i < dsNVandDD.Count; i++)
     {
         dgvNhanVien.Rows.Add(dsNVandDD[i].MaNV, dsNVandDD[i].HoTen, dsNVandDD[i].MaCa.ToString("dd/MM/yyy"), dsNVandDD[i].MaCa.TimeOfDay);
     }
 }
Ejemplo n.º 2
0
 private void LoadSearchDateData()
 {
     blDD      = new BLDiemDanh();
     dsNVandDD = blDD.dsVShiftAndEmployee();
     dgvSearchDate.Rows.Clear();
     for (int i = 0; i < dsNVandDD.Count; i++)
     {
         if (dsNVandDD[i].GT == true)
         {
             dgvSearchDate.Rows.Add(dsNVandDD[i].MaNV, dsNVandDD[i].HoTen, dsNVandDD[i].TenCV, "Nữ", dsNVandDD[i].CMND, dsNVandDD[i].SDT);
         }
         else
         {
             dgvSearchDate.Rows.Add(dsNVandDD[i].MaNV, dsNVandDD[i].HoTen, dsNVandDD[i].TenCV, "Nam", dsNVandDD[i].CMND, dsNVandDD[i].SDT);
         }
     }
 }