Ignore:
Timestamp:
Jul 15, 2010, 8:02:17 PM (14 years ago)
Author:
Kevin Toppenberg
Message:

Dual sync of source code enabled: SVN + BZR

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cprs/branches/tmg-cprs/CPRS-Chart/fNotes.pas

    r819 r877  
    184184    mnuSelectExistingImage: TMenuItem;
    185185    mnuAddNewImage: TMenuItem;
    186     mnuSearchNotes: TMenuItem;                //kt 4/10
     186    mnuSearchNotes: TMenuItem;                //kt 7/5/10
    187187    procedure mnuChartTabClick(Sender: TObject);
    188188    procedure lstNotesClick(Sender: TObject);
     
    665665    case BOOLCHAR[frmFrame.CCOWContextChanging] of
    666666      '1': begin
    667              if ((vmHTML in FViewMode) and (HTMLEditor.Text <> ''))                 //kt 8/09
    668                or ((not (vmHTML in FViewMode)) and (memNewNote.GetTextLen > 0 )) then begin  //kt
     667             {if ((vmHTML in FViewMode) and (HTMLEditor.Text <> ''))                 //kt 8/09
     668               or ((not (vmHTML in FViewMode)) and (memNewNote.GetTextLen > 0 )) then begin  //kt }
     669             if EditorHasText then begin  //kt 7/10                 
    669670//             WhyNot := WhyNot + 'A note in progress will be saved as unsigned.  '  <-- original line.  //kt 7/19/2007
    670671               WhyNot := WhyNot + DKLangConstW('fNotes_A_note_in_progress_will_be_saved_as_unsignedx') //kt added 7/19/2007
     
    698699               end;
    699700           end;
    700     end;
    701 end;
    702 
    703 procedure TfrmNotes.LstNotesToPrint;       
     701    end; {case}
     702end;
     703
     704procedure TfrmNotes.LstNotesToPrint;
    704705var
    705706  AParentID: string;
     
    709710  inherited;
    710711  if not uIDNotesActive then exit;
    711   if lstNotes.ItemIEN = 0 then exit;           
     712  if lstNotes.ItemIEN = 0 then exit;
    712713  SavedDocID := lstNotes.ItemID;
    713714  if EditingIndex <> -1 then
     
    17591760  DisplayPCE;                          //kt 5-31-05 (move down from above)
    17601761  BroadcastImages(Note);               //kt 8/09
    1761 
    1762   //-----------------------------
    1763   //kt RESTORE LATER... frmImages.NewNoteSelected(lstNotes.ItemIndex=EditingIndex);  //kt added 9-20-05
    17641762end;
    17651763
     
    18021800begin
    18031801  if (vmHTML in FViewMode) then begin
    1804     Result := (HTMLViewer.Text <> '');
     1802    //kt Result := (HTMLViewer.Text <> '');
     1803    Result := (HTMLEditor.Text <> ''); // kt 7/10
    18051804  end else begin
    1806     Result := (memNote.Lines.Count > 0);
     1805    //kt Result := (memNote.Lines.Count > 0);
     1806    Result := (memNewNote.GetTextLen > 0);  //kt 7/10
    18071807  end;
    18081808end;
     
    24772477  ReasonForDelete, AVisitStr, SavedDocID, x: string;
    24782478  Saved: boolean;
     2479const
     2480  ATTACHED_IMAGES_SERVER_REPLY = 'You must "delete" the Images using the Imaging package before proceeding.';
    24792481begin
    24802482  SetupVars;  //kt added 7/19/2007 to replace constants with vars.
     
    24822484  if lstNotes.ItemIEN = 0 then Exit;
    24832485  ActOnDocument(ActionSts, lstNotes.ItemIEN, 'DELETE RECORD');
     2486  if Pos(ATTACHED_IMAGES_SERVER_REPLY, ActionSts.Reason) > 0 then ActionSts.Success := true;  //elh 7-13-10
    24842487  if ShowMsgOn(not ActionSts.Success, ActionSts.Reason, TX_IN_AUTH) then Exit;
    24852488  ReasonForDelete := SelectDeleteReason(lstNotes.ItemIEN);
    24862489  if ReasonForDelete = DR_CANCEL then Exit;
     2490  if Pos(ATTACHED_IMAGES_SERVER_REPLY, ActionSts.Reason) > 0 then frmImages.DeleteAll(idmDelete);  //elh 7-13-10
    24872491  // suppress prompt for deletion when called from SaveEditedNote (Sender = Self)
    24882492  if (Sender <> Self) and (InfoBox(MakeNoteDisplayText(lstNotes.Items[lstNotes.ItemIndex]) + TX_DEL_OK,
     
    48994903  if frmPtDocSearch.ShowModal > -1 then begin
    49004904    //open diff note it selected
    4901 
    49024905  end;
    49034906  frmPtDocSearch.Free;
     
    49084911//Effect changing note by simulating a notification click.
    49094912begin
     4913  //implement later
    49104914end;
    49114915
Note: See TracChangeset for help on using the changeset viewer.