Changeset 877 for cprs/branches/tmg-cprs/CPRS-Chart/fNotes.pas
- Timestamp:
- Jul 15, 2010, 8:02:17 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cprs/branches/tmg-cprs/CPRS-Chart/fNotes.pas
r819 r877 184 184 mnuSelectExistingImage: TMenuItem; 185 185 mnuAddNewImage: TMenuItem; 186 mnuSearchNotes: TMenuItem; //kt 4/10186 mnuSearchNotes: TMenuItem; //kt 7/5/10 187 187 procedure mnuChartTabClick(Sender: TObject); 188 188 procedure lstNotesClick(Sender: TObject); … … 665 665 case BOOLCHAR[frmFrame.CCOWContextChanging] of 666 666 '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 669 670 // WhyNot := WhyNot + 'A note in progress will be saved as unsigned. ' <-- original line. //kt 7/19/2007 670 671 WhyNot := WhyNot + DKLangConstW('fNotes_A_note_in_progress_will_be_saved_as_unsignedx') //kt added 7/19/2007 … … 698 699 end; 699 700 end; 700 end; 701 end; 702 703 procedure TfrmNotes.LstNotesToPrint; 701 end; {case} 702 end; 703 704 procedure TfrmNotes.LstNotesToPrint; 704 705 var 705 706 AParentID: string; … … 709 710 inherited; 710 711 if not uIDNotesActive then exit; 711 if lstNotes.ItemIEN = 0 then exit; 712 if lstNotes.ItemIEN = 0 then exit; 712 713 SavedDocID := lstNotes.ItemID; 713 714 if EditingIndex <> -1 then … … 1759 1760 DisplayPCE; //kt 5-31-05 (move down from above) 1760 1761 BroadcastImages(Note); //kt 8/09 1761 1762 //-----------------------------1763 //kt RESTORE LATER... frmImages.NewNoteSelected(lstNotes.ItemIndex=EditingIndex); //kt added 9-20-051764 1762 end; 1765 1763 … … 1802 1800 begin 1803 1801 if (vmHTML in FViewMode) then begin 1804 Result := (HTMLViewer.Text <> ''); 1802 //kt Result := (HTMLViewer.Text <> ''); 1803 Result := (HTMLEditor.Text <> ''); // kt 7/10 1805 1804 end else begin 1806 Result := (memNote.Lines.Count > 0); 1805 //kt Result := (memNote.Lines.Count > 0); 1806 Result := (memNewNote.GetTextLen > 0); //kt 7/10 1807 1807 end; 1808 1808 end; … … 2477 2477 ReasonForDelete, AVisitStr, SavedDocID, x: string; 2478 2478 Saved: boolean; 2479 const 2480 ATTACHED_IMAGES_SERVER_REPLY = 'You must "delete" the Images using the Imaging package before proceeding.'; 2479 2481 begin 2480 2482 SetupVars; //kt added 7/19/2007 to replace constants with vars. … … 2482 2484 if lstNotes.ItemIEN = 0 then Exit; 2483 2485 ActOnDocument(ActionSts, lstNotes.ItemIEN, 'DELETE RECORD'); 2486 if Pos(ATTACHED_IMAGES_SERVER_REPLY, ActionSts.Reason) > 0 then ActionSts.Success := true; //elh 7-13-10 2484 2487 if ShowMsgOn(not ActionSts.Success, ActionSts.Reason, TX_IN_AUTH) then Exit; 2485 2488 ReasonForDelete := SelectDeleteReason(lstNotes.ItemIEN); 2486 2489 if ReasonForDelete = DR_CANCEL then Exit; 2490 if Pos(ATTACHED_IMAGES_SERVER_REPLY, ActionSts.Reason) > 0 then frmImages.DeleteAll(idmDelete); //elh 7-13-10 2487 2491 // suppress prompt for deletion when called from SaveEditedNote (Sender = Self) 2488 2492 if (Sender <> Self) and (InfoBox(MakeNoteDisplayText(lstNotes.Items[lstNotes.ItemIndex]) + TX_DEL_OK, … … 4899 4903 if frmPtDocSearch.ShowModal > -1 then begin 4900 4904 //open diff note it selected 4901 4902 4905 end; 4903 4906 frmPtDocSearch.Free; … … 4908 4911 //Effect changing note by simulating a notification click. 4909 4912 begin 4913 //implement later 4910 4914 end; 4911 4915
Note:
See TracChangeset
for help on using the changeset viewer.