public override void ShowViewForm(long id) { frmPostMaster frm = new frmPostMaster(id, null); HelpProtocolForm.ShowModalDialog(this, frm); }
public override void ShowUpdateForm(long id) { frmPostMaster frm = new frmPostMaster(id, false); HelpProtocolForm.ShowModalDialog(this, frm); }
public override long[] ShowAddForm() { frmPostMaster frm = new frmPostMaster("-2", true); HelpProtocolForm.ShowModalDialog(this, frm); return null; }
public override void ShowViewForm(long id) { if (SelectedGroup == groupControlPM.Name) { DataRow r = gridViewMaster.GetFocusedDataRow(); if (r == null) return; frmPostMaster frm = new frmPostMaster(HelpNumber.ParseInt64(r[CHUONG_TRINH_POST_MASTER.CTPM_ID]), null); HelpProtocolForm.ShowModalDialog(this, frm); } else { DataRow r = gridViewDetail.GetFocusedDataRow(); if (r == null) return; frmBienMuc frm = new frmBienMuc(HelpNumber.ParseInt64(r[BIEN_MUC.BM_ID]), null); HelpProtocolForm.ShowModalDialog(this, frm); } }
public override void ShowUpdateForm(long id) { if (SelectedGroup == groupControlPM.Name) { DataRow r = gridViewMaster.GetFocusedDataRow(); if (r == null) return; long ID = HelpNumber.ParseInt64(r[CHUONG_TRINH_POST_MASTER.CTPM_ID]); if (ChuongTrinhPermission.I._CheckPerChuongTrinh(RES_PERMISSION_TYPE.UPDATE, HelpNumber.ParseInt64(r[BIEN_MUC.CT_ID])) == false) { HelpMsgBox.ShowNotificationMessage("Bạn không được phép sửa Post/Master đang chọn!"); return; } frmPostMaster frm = new frmPostMaster(ID, false); HelpProtocolForm.ShowModalDialog(this, frm); } else { DataRow r = gridViewDetail.GetFocusedDataRow(); if (r == null) return; long ID = HelpNumber.ParseInt64(r[BIEN_MUC.BM_ID]); if (ChuongTrinhPermission.I._CheckPerChuongTrinh(RES_PERMISSION_TYPE.UPDATE, HelpNumber.ParseInt64(r[BIEN_MUC.CT_ID])) == false) { HelpMsgBox.ShowNotificationMessage("Bạn không được phép sửa biên mục đang chọn!"); return; } frmBienMuc frm = new frmBienMuc(ID, false); HelpProtocolForm.ShowModalDialog(this, frm); } }
public override void ShowUpdateForm(long id) { frmPostMaster frm = new frmPostMaster(id, false); HelpProtocolForm.ShowModalDialog(this, frm); InitKeNgangTang(cboKe, CHUONG_TRINH_POST_MASTER.KE); InitKeNgangTang(cboNgan, CHUONG_TRINH_POST_MASTER.NGAN); InitKeNgangTang(cboTang, CHUONG_TRINH_POST_MASTER.TANG); }