Changeset 793 for cprs/branches/tmg-cprs/CPRS-Chart/TMG_Extra
- Timestamp:
- Jun 10, 2010, 3:13:12 PM (15 years ago)
- Location:
- cprs/branches/tmg-cprs/CPRS-Chart/TMG_Extra
- Files:
-
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
cprs/branches/tmg-cprs/CPRS-Chart/TMG_Extra/EditTextU.pas
r541 r793 101 101 cmd := 'GET ONE WP FIELD^' + FileNum + '^' + FieldNum + '^' + IENS; 102 102 RPCBrokerV.Param[0].Mult['"REQUEST"'] := cmd; 103 RPCBrokerV.Call; 103 //RPCBrokerV.Call; 104 CallBroker; 104 105 RPCResult := RPCBrokerV.Results[0]; //returns: error: -1; success=1 105 106 if piece(RPCResult,'^',1)='-1' then begin … … 131 132 RPCBrokerV.param[0].ptype := list; 132 133 cmd := 'POST WP FIELD^' + FileNum + '^' + FieldNum + '^' + IENS; 133 RPCBrokerV.Param[0].Mult['"REQUEST"'] := cmd; 134 RPCBrokerV.Param[0].Mult['"REQUEST"'] := cmd; 134 135 for i := 0 to Lines.Count-1 do begin 135 RPCBrokerV.Param[0].Mult['"' + IntToStr(i+1) + '"'] := Lines.Strings[i]; 136 RPCBrokerV.Param[0].Mult['"' + IntToStr(i+1) + '"'] := Lines.Strings[i]; 136 137 end; 137 RPCBrokerV.Call; 138 //RPCBrokerV.Call; 139 CallBroker; 138 140 RPCResult := RPCBrokerV.Results[0]; //returns: error: -1; success=1 139 141 if piece(RPCResult,'^',1)='-1' then begin -
cprs/branches/tmg-cprs/CPRS-Chart/TMG_Extra/FMErrorU.dfm
r541 r793 1 1 object FMErrorForm: TFMErrorForm 2 Left = 12173 Top = 3202 Left = 247 3 Top = 195 4 4 Width = 482 5 5 Height = 417 -
cprs/branches/tmg-cprs/CPRS-Chart/TMG_Extra/HTMLEdit/TMGHTML2.pas
r698 r793 122 122 function MoveCaretToEnd : boolean; 123 123 function MoveCaretToPos(ScreenPos: TPoint) : HRESULT; //kt added 124 procedure InsertHTMLAtCaret(HTMLText : AnsiString); //kt 4/21/10 124 125 procedure InsertTextAtCaret(Text : AnsiString); //Note: Text is NOT HTMLtext 125 126 property HTMLText:string read GetHTMLText write SetHTMLText; … … 691 692 end; 692 693 694 procedure THtmlObj.InsertHTMLAtCaret(HTMLText : AnsiString); 695 var 696 Range: IHTMLTxtRange; 697 begin 698 Range:= GetTextRange; 699 Range.pasteHTML(HTMLText); 700 end; 701 693 702 procedure THtmlObj.InsertTextAtCaret(Text : AnsiString); 694 703 //kt added. Note: inserts external format (not HTML markup) … … 754 763 procedure THtmlObj.SubMessageHandler(var Msg: TMessage); 755 764 //Called from parent's EDMessageHandler, or from GlobalMsgHandler 765 766 const 767 FontSizes : array [0..6] of byte = (8,10,12,14,18,24,36); 768 756 769 var i : Integer; 757 770 WinControl : TWinControl; 771 TextSize : integer; 758 772 759 773 begin … … 820 834 Msg.Result := 1; //Handled 821 835 end; 836 $31..$38 : begin 837 if CtrlToBeProcessed = true then begin 838 TextSize := Msg.WParam-$31; 839 if (TextSize >= 0) and (TextSize <=6 ) then begin 840 SetFontSize(FontSizes[TextSize]); 841 CtrlToBeProcessed := False; 842 end; 843 end; 844 end; 822 845 { 823 846 VK_RETURN : if CtrlReturnToBeProcessed then begin … … 854 877 Msg.Result := 1; //Handled 855 878 end; 879 Ord('Q') : if CtrlToBeProcessed then begin 880 //kt if not FEditable then exit; 881 Outdent; 882 Msg.Result := 1; //Handled 883 exit; 884 end; 885 Ord('W') : if CtrlToBeProcessed then begin 886 //kt if not FEditable then exit; 887 Indent; 888 Msg.Result := 1; //Handled 889 exit; 890 end; 891 Ord('D') : if CtrlToBeProcessed then begin 892 //kt if not FEditable then exit; 893 FontDialog; 894 Msg.Result := 1; //Handled 895 exit; 896 end; 897 { 898 Ord('.') : if CtrlToBeProcessed then begin 899 //kt if not FEditable then exit; 900 ToggleBullet; 901 Msg.Result := 1; //Handled 902 exit; 903 end; 904 Ord('N') : if CtrlToBeProcessed then begin 905 //kt if not FEditable then exit; 906 ToggleNumbering; 907 Msg.Result := 1; //Handled 908 exit; 909 end; 910 Ord(';') : if CtrlToBeProcessed then begin 911 //kt if not FEditable then exit; 912 TextForeColorDialog; 913 Msg.Result := 1; //Handled 914 exit; 915 end; 916 Ord('''') : if CtrlToBeProcessed then begin 917 //kt if not FEditable then exit; 918 TextBackColorDialog; 919 Msg.Result := 1; //Handled 920 exit; 921 end; 922 } 856 923 end; {case} 857 924 end; -
cprs/branches/tmg-cprs/CPRS-Chart/TMG_Extra/HTMLEdit/TMGHTML2.~pas
r698 r793 60 60 FEditable: boolean; 61 61 ColorDialog: TColorDialog; 62 AllowNextBlur : boolean; 63 procedure SetMsgActive (Active : boolean); 62 AllowNextBlur : boolean; 64 63 function GetHTMLText:string; 65 64 procedure SetHTMLText(HTML:String); … … 91 90 public 92 91 {end public} 93 PopupMenu: TPopupMenu; 92 PopupMenu: TPopupMenu; 94 93 KeyStruck : boolean; // A VERY crude determiner as to if Modified. 95 94 NextControl : TWinControl; 96 95 PrevControl : TWinControl; 97 constructor Create(Owner:TControl; Application : TApplication); 96 procedure SetMsgActive (Active : boolean); 97 constructor Create(Owner:TControl; Application : TApplication); 98 98 destructor Destroy; override; 99 procedure Clear; 99 procedure Clear; 100 100 procedure ToggleBullet; 101 101 procedure ToggleItalic; … … 122 122 function MoveCaretToEnd : boolean; 123 123 function MoveCaretToPos(ScreenPos: TPoint) : HRESULT; //kt added 124 procedure InsertHTMLAtCaret(HTMLText : AnsiString); //kt 4/21/10 124 125 procedure InsertTextAtCaret(Text : AnsiString); //Note: Text is NOT HTMLtext 125 126 property HTMLText:string read GetHTMLText write SetHTMLText; … … 689 690 Result := FCaret.MoveCaretToPointer(FTMGDisplayPointer,Integer(True),CARET_DIRECTION_INDETERMINATE); 690 691 FCaret.Show(Integer(True)); 692 end; 693 694 procedure THtmlObj.InsertHTMLAtCaret(HTMLText : AnsiString); 695 var 696 Range: IHTMLTxtRange; 697 begin 698 Range:= Self.GetTextRange; 699 Range.pasteHTML(HTMLText); 691 700 end; 692 701 -
cprs/branches/tmg-cprs/CPRS-Chart/TMG_Extra/LookupU.dfm
r541 r793 1 1 object FieldLookupForm: TFieldLookupForm 2 Left = 13763 Top = 3492 Left = 451 3 Top = 232 4 4 Width = 302 5 5 Height = 169 -
cprs/branches/tmg-cprs/CPRS-Chart/TMG_Extra/LookupU.pas
r541 r793 111 111 cmd := cmd + '^' + FileNum + '^' + StartFrom + '^' + IntToStr(Direction); 112 112 RPCBrokerV.Param[0].Mult['"REQUEST"'] := cmd; 113 RPCBrokerV.Call; 113 //RPCBrokerV.Call; 114 CallBroker; 114 115 RPCResult := RPCBrokerV.Results[0]; //returns: error: -1; success=1 115 116 if piece(RPCResult,'^',1)='-1' then begin -
cprs/branches/tmg-cprs/CPRS-Chart/TMG_Extra/PostU.pas
r541 r793 106 106 RPCBrokerV.Param[0].Mult[IntToStr(i)] := FChanges.Strings[i]; 107 107 end; 108 RPCBrokerV.Call; 108 //RPCBrokerV.Call; 109 CallBroker; 109 110 RPCResult := RPCBrokerV.Results[0]; //returns: error: -1; success=1 110 111 if piece(RPCResult,'^',1)='1' then begin -
cprs/branches/tmg-cprs/CPRS-Chart/TMG_Extra/SubfilesU.pas
r541 r793 203 203 cmd := 'GET SUB RECS LIST' + '^' + SubFileNum + '^' + ParentIENS; 204 204 RPCBrokerV.Param[0].Mult['"REQUEST"'] := cmd; 205 RPCBrokerV.Call; 205 //RPCBrokerV.Call; 206 CallBroker; 206 207 RPCResult := RPCBrokerV.Results[0]; //returns: error: -1; success=1 207 208 if piece(RPCResult,'^',1)='-1' then begin -
cprs/branches/tmg-cprs/CPRS-Chart/TMG_Extra/fPtAdd.pas
r453 r793 479 479 //CheckPost('PtType',PtType); 480 480 481 RPCBrokerV.Call; 481 //RPCBrokerV.Call; 482 CallBroker; 482 483 tempS := RPCBrokerV.Results.Strings[0]; 483 484 tempResult := strtoint(piece(tempS,'^',1)); -
cprs/branches/tmg-cprs/CPRS-Chart/TMG_Extra/fPtDemoEdit.pas
r541 r793 592 592 RPCBrokerV.remoteprocedure := 'TMG GET PATIENT DEMOGRAPHICS'; 593 593 RPCBrokerV.param[0].value := Patient.DFN; RPCBrokerV.param[0].ptype := literal; 594 RPCBrokerV.Call; 595 594 //RPCBrokerV.Call; 595 CallBroker; 596 596 597 with FServerPatientInfo do begin 597 598 //Store results in a hash table for easier random access … … 743 744 end; 744 745 745 RPCBrokerV.Call; 746 //RPCBrokerV.Call; 747 CallBroker; 746 748 if RPCBrokerV.Results.Strings[0]<>'1' then begin 747 749 MessageDlg(RPCBrokerV.Results.Strings[0],mtError,[mbOK],0); … … 1463 1465 cmd := 'GET ONE RECORD^2^' + IENS; 1464 1466 RPCBrokerV.Param[0].Mult['"REQUEST"'] := cmd; 1465 RPCBrokerV.Call; 1467 //RPCBrokerV.Call; 1468 CallBroker; 1466 1469 RPCResult := RPCBrokerV.Results[0]; //returns: error: -1; success=1 1467 1470 //Results[1]='FileNum^IENS^FieldNum^ExtValue^FieldName^DDInfo... … … 1642 1645 RPCBrokerV.param[0].ptype := list; 1643 1646 RPCBrokerV.Param[0].Mult['"REQUEST"'] := 'IS WP FIELD^' + FileNum + '^' + FieldNum; 1644 RPCBrokerV.Call; 1647 //RPCBrokerV.Call; 1648 CallBroker; 1645 1649 RPCResult := RPCBrokerV.Results[0]; //returns: error: -1; success=1 1646 1650 if piece(RPCResult,'^',1)='-1' then begin … … 1833 1837 cmd := 'GET ONE RECORD^' + FileNum + '^' + IENS; 1834 1838 RPCBrokerV.Param[0].Mult['"REQUEST"'] := cmd; 1835 RPCBrokerV.Call; 1839 //RPCBrokerV.Call; 1840 CallBroker; 1836 1841 RPCResult := RPCBrokerV.Results[0]; //returns: error: -1; success=1 1837 1842 if piece(RPCResult,'^',1)='-1' then begin -
cprs/branches/tmg-cprs/CPRS-Chart/TMG_Extra/fWebTab.pas
r453 r793 68 68 RPCBrokerV.Param[1].Value := 'R'; 69 69 RPCBrokerV.Param[1].ptype := literal; 70 RPCResult := RPCBrokerV.StrCall; {returns 1 if available, 0 if not available} 70 //RPCResult := RPCBrokerV.StrCall; {returns 1 if available, 0 if not available} 71 CallBroker; 72 if RPCBrokerV.Results.Count > 0 then begin 73 RPCResult := RPCBrokerV.Results.Strings[0]; 74 end else begin 75 RPCResult := ''; 76 end; 71 77 TMG_URL_RPC_Checked := true; 72 78 TMG_URL_RPC_Available := (RPCResult='1'); … … 76 82 if (URLList <> nil) then begin 77 83 RPCBrokerV.remoteprocedure := 'TMG CPRS GET URL LIST'; 78 RPCBrokerV.Call; 84 //RPCBrokerV.Call; 85 CallBroker; 79 86 URLList.Assign(RPCBrokerV.Results); 80 87 if RPCBrokerV.Results.Count>0 then Result := RPCBrokerV.Results.Strings[0] -
cprs/branches/tmg-cprs/CPRS-Chart/TMG_Extra/frmImageTransferProgress.dfm
r729 r793 1 1 object ImageTransferForm: TImageTransferForm 2 Left = 34 83 Top = 2 122 Left = 341 3 Top = 256 4 4 BorderStyle = bsToolWindow 5 5 Caption = 'Image Transfer Progress' 6 ClientHeight = 867 ClientWidth = 2 766 ClientHeight = 108 7 ClientWidth = 265 8 8 Color = clBtnFace 9 9 Font.Charset = DEFAULT_CHARSET … … 277 277 TabOrder = 0 278 278 end 279 object btnCancel: TButton 280 Left = 80 281 Top = 80 282 Width = 75 283 Height = 25 284 Caption = '&Cancel' 285 TabOrder = 1 286 Visible = False 287 end 279 288 object DKLanguageController1: TDKLanguageController 280 289 Left = 176 … … 282 291 LangData = { 283 292 1100496D6167655472616E73666572466F726D01010000000100000007004361 284 7074696F6E010 400000006004C6162656C310101000000020000000700436170293 7074696F6E010500000006004C6162656C310101000000020000000700436170 285 294 74696F6E000600496D6167653100000B0050726F67726573734D736701010000 286 0003000000070043617074696F6E000B0050726F67726573734261720000} 295 0003000000070043617074696F6E000B0050726F677265737342617200000900 296 62746E43616E63656C010100000004000000070043617074696F6E00} 287 297 end 288 298 end -
cprs/branches/tmg-cprs/CPRS-Chart/TMG_Extra/frmImageTransferProgress.pas
r729 r793 16 16 ProgressMsg: TLabel; 17 17 DKLanguageController1: TDKLanguageController; 18 btnCancel: TButton; 18 19 private 19 20 { Private declarations }
Note:
See TracChangeset
for help on using the changeset viewer.