Ejemplo n.º 1
0
 private void AddNewSalary()
 {
     try
     {
         row = 0;
         Int32          idStaff        = Convert.ToInt32(dgvTimeKeeping.Rows[row].Cells[0].Value);
         FrmInforSalary frmInforSalary = new FrmInforSalary();
         FrmInforSalary.idStaff     = idStaff;
         FrmInforSalary.checkSender = 3;
         frmInforSalary.ShowDialog();
         LoadSalary();
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }
Ejemplo n.º 2
0
 private void TimeKeeping()
 {
     try
     {
         if (row < 0 || row >= dgvTimeKeeping.Rows.Count - 1)
         {
             throw new Exception("Vui lòng chọn nhân viên cần chấm công!");
         }
         Int32          idStaff        = Convert.ToInt32(dgvTimeKeeping.Rows[row].Cells[0].Value);
         FrmInforSalary frmInforSalary = new FrmInforSalary();
         FrmInforSalary.idStaff     = idStaff;
         FrmInforSalary.checkSender = 1;
         frmInforSalary.ShowDialog();
         LoadSalary();
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }