コード例 #1
0
 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();
 }
コード例 #2
0
 public override void ShowViewForm(long id)
 {
     frmNewsPaper frm = new frmNewsPaper(id,null);
     HelpProtocolForm.ShowModalDialog(this, frm);
 }
コード例 #3
0
 public override long[] ShowAddForm()
 {
     office.frmNewsPaper frm = new frmNewsPaper();
     HelpProtocolForm.ShowModalDialog(this, frm);
     return null;
 }