Ignore:
Timestamp:
Jul 6, 2008, 8:20:14 PM (16 years ago)
Author:
Kevin Toppenberg
Message:

Uploading from OR_30_258

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cprs/branches/foia-cprs/CPRS-Chart/fProbEdt.pas

    r459 r460  
    140140begin
    141141  Result := not fChanged;
    142 (*  if not fChanged then
    143     begin
    144       result := true;
    145       exit;
    146     end;
    147   if InfoBox('Discard changes?', 'Confirmation', MB_OKCANCEL or MB_ICONQUESTION) <> IDOK then
    148     result := false
    149   else
    150     result := true;*)
    151142end;
    152143
     
    160151  else
    161152    begin
    162     if (not FSilent) and
    163        (InfoBox('Discard changes?', 'Confirmation', MB_YESNO or MB_ICONQUESTION) <> IDYES) then
    164       begin
    165         FCanQuit := False;
    166         exit;
    167       end
    168     else
    169       begin
    170         frmProblems.lblProbList.caption := frmProblems.pnlRight.Caption ;
    171         FCanQuit := True;
    172         close;
    173       end;
     153      if (not FSilent) and
     154         (InfoBox('Discard changes?', 'Add/Edit a Problem', MB_YESNO or MB_ICONQUESTION) <> IDYES) then
     155        begin
     156          FCanQuit := False;
     157          exit;
     158        end
     159      else
     160        begin
     161          frmProblems.lblProbList.caption := frmProblems.pnlRight.Caption ;
     162          FCanQuit := True;
     163          close;
     164        end;
    174165    end;
    175166end;
     
    388379
    389380    if Pos(Reason,'E,C') > 0 then ShowComments  ;
     381    if ProbRec.CmtIsXHTML then
     382      begin
     383        bbAdd.Enabled := FALSE;
     384        bbEdit.Enabled := FALSE;
     385        bbRemove.Enabled := FALSE;
     386        pnlComments.Hint := ProbRec.CmtNoEditReason;
     387      end
     388    else
     389      begin
     390        bbAdd.Enabled := TRUE;
     391        bbEdit.Enabled := TRUE;
     392        bbRemove.Enabled := TRUE;
     393        pnlComments.Hint := '';
     394      end ;
    390395   // ===================  changed code - REV 7/30/98  =========================
    391396   // PlUser.usVerifyTranscribed is a SITE requirement, not a user ability
Note: See TracChangeset for help on using the changeset viewer.