//public override DataTable PLLoadDataDetailPart(long MasterID)
 //{
 //    return null;
 //}
 public override void ShowViewForm(long id)
 {
     frmPhieuXNLamViec frm = new frmPhieuXNLamViec(id, null);
     HelpProtocolForm.ShowModalDialog(this, frm);
 }
 public override long[] ShowAddForm()
 {
     frmPhieuXNLamViec frm = new frmPhieuXNLamViec();
     //frm.RefreshData += new frmPhieuXNLamViec.RefreshPhieuXacNhan(PLBuildQueryFilter);
     HelpProtocolForm.ShowModalDialog(this, frm);
     return null;
 }
 public override void ShowUpdateForm(long id)
 {
     frmPhieuXNLamViec frm = new frmPhieuXNLamViec(id, false);
     HelpProtocolForm.ShowModalDialog(this, frm);
 }
        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);
                HelpProtocolForm.ShowModalDialog(this, frm);

            }
            else if (HelpNumber.ParseInt32(row["LOAI"]) == (Int32)TimeInOutType.XacNhanLamViec)
            {
                frmPhieuXNLamViec frm = new frmPhieuXNLamViec(row["ID"], null);
                HelpProtocolForm.ShowModalDialog(this, frm);
            }
            else if (HelpNumber.ParseInt32(row["LOAI"]) == (Int32)TimeInOutType.RaVaoCongTy)
            {
                frmPhieuRaVaoCty frm = new frmPhieuRaVaoCty(row["ID"], null);
                HelpProtocolForm.ShowModalDialog(this, frm);
            }
            else
            {
                frmTimeInOut frm = new frmTimeInOut(HelpNumber.ParseInt64(row["NV_ID"]), (DateTime)row["NGAY_LAM_VIEC"], null);
                HelpProtocolForm.ShowModalDialog(this, frm);
            }
        }