private void barBtnCapNhat_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     if (gridViewMaster.GetSelectedRows().Length > 1)
         PLMessageBox.ShowNotificationMessage("Chỉ cho phép cập nhật dữ liệu trên 1 dòng!");
     else
     {
         DataSet ds = (gridControlMaster.DataSource as DataTable).DataSet;
         if (ds.Tables[0].Rows.Count > 0)
         {
             DataRow r = gridViewMaster.GetDataRow(gridViewMaster.FocusedRowHandle);
             DateTime ngay = Convert.ToDateTime(r["NGAY_LAM_VIEC"]);
             long ID = HelpNumber.ParseInt64(r["NV_ID"]);
             frmTimeTable frm = new frmTimeTable(ngay, ID, HelpNumber.ParseInt64(r["CTCCV_ID"]), true);
             ProtocolForm.ShowModalDialog(this, frm);
             PLBuildQueryFilter();
         }
     }
 }
 private void gridViewMaster_DoubleClick(object sender, EventArgs e)
 {
     try
     {
         DataSet ds = (gridControlMaster.DataSource as DataTable).DataSet;
         if (ds.Tables[0].Rows.Count > 0)
         {
             DataRow r = gridViewMaster.GetDataRow(gridViewMaster.FocusedRowHandle);
             DateTime ngay = Convert.ToDateTime(r["NGAY_LAM_VIEC"]);
             long ID = HelpNumber.ParseInt64(r["NV_ID"]);
             frmTimeTable frm = new frmTimeTable(ngay, ID, HelpNumber.ParseInt64(r["CTCCV_ID"]), false);
             ProtocolForm.ShowModalDialog(this, frm);
         }
     }
     catch
     {
     }
 }
 public override bool ShowAddForm()
 {
     frmTimeTable frm = new frmTimeTable();
     ProtocolForm.ShowDialog(this, frm);
     PLBuildQueryFilter();
     return true;
 }