public override void ShowUpdateForm(long id) { DataRow row = gridViewMaster.GetDataRow(gridViewMaster.FocusedRowHandle); if (row == null) return; if (TinTucPermission.I._checkPermissionRes( HelpNumber.ParseInt64(row["ID"]), PermissionOfResource.RES_PERMISSION_TYPE.UPDATE) == false) { HelpMsgBox.ShowNotificationMessage("Bạn không có quyền sửa tin tức này!"); return; } frmNewsPaper frm = new frmNewsPaper(HelpNumber.ParseInt64(row["ID"]), false); frm.AfterUpdateSuccessfully += new frmNewsPaper._AfterUpdateSuccessfully(frm_AfterUpdateSuccessfully); HelpProtocolForm.ShowModalDialog(this, frm); PLBuildQueryFilter(); }
public override void ShowViewForm(long id) { frmNewsPaper frm = new frmNewsPaper(id,null); HelpProtocolForm.ShowModalDialog(this, frm); }
public override long[] ShowAddForm() { office.frmNewsPaper frm = new frmNewsPaper(); HelpProtocolForm.ShowModalDialog(this, frm); return null; }