public override void ShowViewForm(long id)
 {
     frmNghiPhep frm = new frmNghiPhep(id, null);
     ProtocolForm.ShowModalDialog(this, frm);
 }
 public override void ShowUpdateForm(long id)
 {
     frmNghiPhep frm = new frmNghiPhep(id, false);
     frm.RefreshData += new frmNghiPhep.RefreshNghiPHep(Fix.PLRefresh);
     ProtocolForm.ShowModalDialog(this, frm);
 }
 private void XinNghiPhep(List<object> ids)
 {
     if (ids != null)
     {
         if (ids != null)
         {
             frmNghiPhep frm = new frmNghiPhep();
             ProtocolForm.ShowModalDialog(this, frm);
             Fix.PLRefresh();
         }
     }
 }
 public override long[] ShowAddForm()
 {
     frmNghiPhep frm = new frmNghiPhep();
     frm.RefreshData += new frmNghiPhep.RefreshNghiPHep(Fix.PLRefresh);
     ProtocolForm.ShowModalDialog(this, frm);
     return null;
 }
 public override void ShowViewForm(long id)
 {
     DataRow row = gridViewMaster.GetDataRow(gridViewMaster.FocusedRowHandle);
     if (HelpNumber.ParseInt32(row["LOAI"]) == (Int32)TimeInOutType.NghiPhep)
     {
         frmNghiPhep frm = new frmNghiPhep(id, null);
         ProtocolForm.ShowModalDialog(this, frm);
     }
     else if (HelpNumber.ParseInt32(row["LOAI"]) == (Int32)TimeInOutType.DiSomVeTre)
     {
         frmDiTreVeSom frm = new frmDiTreVeSom(id, null);
         ProtocolForm.ShowModalDialog(this, frm);
     }
     else
     {
         frmTimeInOut frm = new frmTimeInOut(HelpNumber.ParseInt64(row["NV_ID"]), (DateTime)row["NGAY_LAM_VIEC"], null);
         ProtocolForm.ShowModalDialog(this, frm);
     }
 }