Changeset 877 for cprs/branches/tmg-cprs/CPRS-Chart
- Timestamp:
- Jul 15, 2010, 8:02:17 PM (14 years ago)
- Location:
- cprs/branches/tmg-cprs/CPRS-Chart
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
cprs/branches/tmg-cprs/CPRS-Chart/Accessibility_TLB.pas
r819 r877 13 13 14 14 // PASTLWTR : 1.2 15 // File generated on 7/ 2/2010 7:47:03PM from Type Library described below.15 // File generated on 7/7/2010 12:05:44 PM from Type Library described below. 16 16 17 17 // ************************************************************************ // -
cprs/branches/tmg-cprs/CPRS-Chart/CPRSChart.dpr
r819 r877 9 9 TntSystem, 10 10 TntSysUtils, 11 DKLang, //kt NOTE: Keep this before any app form so it will do it's finalizaton section AFTER forms unload.11 DKLang, 12 12 fPage in 'fPage.pas' {frmPage}, 13 13 fHSplit in 'fHSplit.pas' {frmHSplit}, … … 357 357 Application.HelpFile := 'cprs.hlp'; 358 358 Application.CreateForm(TdmodShared, dmodShared); 359 360 359 Application.CreateForm(TfrmFrame, frmFrame); 360 //kt <--- frmImages etc created here 361 361 if frmframe.TMGAbort = False then begin //kt 3/25/09 362 362 Application.CreateForm(TfrmPtDocSearch, frmPtDocSearch); -
cprs/branches/tmg-cprs/CPRS-Chart/CPRSChart.dsk
r820 r877 1 1 [Closed Files] 2 File_0=SourceModule,'P:\vista\tmg-cprs\CPRS-Chart\Orders\fOrders.pas',0,1,2569,7,2577,0,0 3 File_1=SourceModule,'P:\vista\tmg-cprs\CPRS-Chart\uConst.pas',0,1,229,3,205,0,0 4 File_2=SourceModule,'c:\program files\borland\delphi7\source\vcl\WinHelpViewer.pas',0,1,651,1,669,0,0 5 File_3=SourceModule,'c:\program files\borland\delphi7\source\rtl\Sys\sysutils.pas',0,1,16061,1,16069,0,0 6 File_4=SourceModule,'P:\vista\tmg-cprs\CPRS-Chart\UploadImages.pas',0,1,523,1,527,0,0 7 File_5=SourceModule,'P:\vista\tmg-cprs\CPRS-Chart\Templates\rTemplates.pas',0,1,97,1,107,0,0 8 File_6=SourceModule,'c:\program files\borland\delphi7\source\rtl\Win\Windows.pas',0,1,28842,1,28850,0,0 2 File_0=SourceModule,'P:\vista\tmg-cprs\CPRS-Chart\Options\fOptions.pas',0,1,511,1,522,0,0 3 File_1=SourceModule,'P:\vista\tmg-cprs\CPRS-Chart\Orders\fOrders.pas',0,1,2809,1,2820,0,0 4 File_2=SourceModule,'P:\vista\tmg-cprs\CPRS-Chart\uConst.pas',0,1,241,3,252,0,0 5 File_3=SourceModule,'P:\Vista\tmg-cprs\CPRS-Lib\ORFn.pas',0,1,1378,1,1386,0,0 9 6 10 7 [Modules] 11 Module0=P:\vista\tmg-cprs\CPRS-Chart\fFrame.pas 12 Module1=C:\PROGRA~1\VISTA\BDK32\Source\ccowrpcbroker.pas 13 Module2=P:\vista\tmg-cprs\CPRS-Chart\fLabs.pas 14 Module3=c:\program files\borland\delphi7\source\vcl\Controls.pas 15 Module4=C:\PROGRA~1\VISTA\BDK32\Source\wsockc.pas 16 Module5=P:\Vista\tmg-cprs\dklang-package-3.01\DKLang.pas 17 Module6=P:\vista\tmg-cprs\CPRS-Chart\CPRSChart.dpr 18 Module7=c:\program files\borland\delphi7\source\vcl\Forms.pas 19 Module8=P:\vista\tmg-cprs\CPRS-Lib\ORNet.pas 20 Module9=c:\program files\borland\delphi7\source\rtl\Sys\system.pas 21 Module10=P:\vista\tmg-cprs\CPRS-Chart\fSplash.pas 22 Module11=P:\vista\tmg-cprs\CPRS-Chart\fNotes.pas 23 Count=12 8 Module0=P:\vista\tmg-cprs\CPRS-Chart\fImages.pas 9 Module1=P:\Vista\tmg-cprs\CPRS-Lib\ORCtrls.pas 10 Module2=P:\vista\tmg-cprs\CPRS-Chart\TMG_Extra\HTMLEdit\TMGHTML2.pas 11 Module3=P:\vista\tmg-cprs\CPRS-Chart\fNotes.pas 12 Module4=P:\vista\tmg-cprs\CPRS-Chart\TMG_Extra\fImagePickExisting.pas 13 Module5=c:\program files\borland\delphi7\source\rtl\Sys\system.pas 14 Module6=c:\program files\borland\delphi7\source\vcl\ComCtrls.pas 15 Module7=P:\vista\tmg-cprs\CPRS-Chart\fFrame.pas 16 Module8=c:\program files\borland\delphi7\source\vcl\Forms.pas 17 Module9=P:\vista\tmg-cprs\CPRS-Chart\UploadImages.pas 18 Module10=P:\vista\tmg-cprs\CPRS-Chart\rHTMLTools.pas 19 Module11=c:\program files\borland\delphi7\source\vcl\Menus.pas 20 Module12=c:\program files\borland\delphi7\source\rtl\common\classes.pas 21 Module13=c:\program files\borland\delphi7\source\vcl\Controls.pas 22 Module14=c:\program files\borland\delphi7\source\vcl\ExtCtrls.pas 23 Module15=c:\program files\borland\delphi7\source\vcl\StdCtrls.pas 24 Module16=P:\vista\tmg-cprs\CPRS-Chart\fSplash.pas 25 Module17=P:\vista\tmg-cprs\CPRS-Chart\fPtSel.pas 26 Module18=P:\vista\tmg-cprs\CPRS-Chart\rTIU.pas 27 Module19=P:\Vista\tmg-cprs\CPRS-Lib\ORNet.pas 28 Module20=P:\vista\tmg-cprs\CPRS-Chart\fNoteDR.pas 29 Module21=P:\vista\tmg-cprs\CPRS-Chart\rCore.pas 30 Count=22 24 31 EditWindowCount=1 25 32 TypeLibWindowCount=1 26 33 34 [P:\vista\tmg-cprs\CPRS-Chart\fImages.pas] 35 ModuleType=SourceModule 36 FormState=1 37 FormOnTop=0 38 39 [P:\Vista\tmg-cprs\CPRS-Lib\ORCtrls.pas] 40 ModuleType=SourceModule 41 FormState=0 42 FormOnTop=0 43 44 [P:\vista\tmg-cprs\CPRS-Chart\TMG_Extra\HTMLEdit\TMGHTML2.pas] 45 ModuleType=SourceModule 46 FormState=0 47 FormOnTop=0 48 49 [P:\vista\tmg-cprs\CPRS-Chart\fNotes.pas] 50 ModuleType=SourceModule 51 FormState=1 52 FormOnTop=0 53 54 [P:\vista\tmg-cprs\CPRS-Chart\TMG_Extra\fImagePickExisting.pas] 55 ModuleType=SourceModule 56 FormState=1 57 FormOnTop=0 58 59 [c:\program files\borland\delphi7\source\rtl\Sys\system.pas] 60 ModuleType=SourceModule 61 FormState=0 62 FormOnTop=0 63 64 [c:\program files\borland\delphi7\source\vcl\ComCtrls.pas] 65 ModuleType=SourceModule 66 FormState=0 67 FormOnTop=0 68 27 69 [P:\vista\tmg-cprs\CPRS-Chart\fFrame.pas] 28 70 ModuleType=SourceModule … … 30 72 FormOnTop=0 31 73 32 [C:\PROGRA~1\VISTA\BDK32\Source\ccowrpcbroker.pas] 33 ModuleType=SourceModule 34 FormState=0 35 FormOnTop=0 36 37 [P:\vista\tmg-cprs\CPRS-Chart\fLabs.pas] 74 [c:\program files\borland\delphi7\source\vcl\Forms.pas] 75 ModuleType=SourceModule 76 FormState=0 77 FormOnTop=0 78 79 [P:\vista\tmg-cprs\CPRS-Chart\UploadImages.pas] 80 ModuleType=SourceModule 81 FormState=0 82 FormOnTop=0 83 84 [P:\vista\tmg-cprs\CPRS-Chart\rHTMLTools.pas] 85 ModuleType=SourceModule 86 FormState=0 87 FormOnTop=0 88 89 [c:\program files\borland\delphi7\source\vcl\Menus.pas] 90 ModuleType=SourceModule 91 FormState=0 92 FormOnTop=0 93 94 [c:\program files\borland\delphi7\source\rtl\common\classes.pas] 38 95 ModuleType=SourceModule 39 96 FormState=0 … … 45 102 FormOnTop=0 46 103 47 [C:\PROGRA~1\VISTA\BDK32\Source\wsockc.pas] 48 ModuleType=SourceModule 49 FormState=0 50 FormOnTop=0 51 52 [P:\Vista\tmg-cprs\dklang-package-3.01\DKLang.pas] 53 ModuleType=SourceModule 104 [c:\program files\borland\delphi7\source\vcl\ExtCtrls.pas] 105 ModuleType=SourceModule 106 FormState=0 107 FormOnTop=0 108 109 [c:\program files\borland\delphi7\source\vcl\StdCtrls.pas] 110 ModuleType=SourceModule 111 FormState=0 112 FormOnTop=0 113 114 [P:\vista\tmg-cprs\CPRS-Chart\fSplash.pas] 115 ModuleType=SourceModule 116 FormState=0 117 FormOnTop=0 118 119 [P:\vista\tmg-cprs\CPRS-Chart\fPtSel.pas] 120 ModuleType=SourceModule 121 FormState=0 122 FormOnTop=0 123 124 [P:\vista\tmg-cprs\CPRS-Chart\rTIU.pas] 125 ModuleType=SourceModule 126 FormState=0 127 FormOnTop=0 128 129 [P:\Vista\tmg-cprs\CPRS-Lib\ORNet.pas] 130 ModuleType=SourceModule 131 FormState=0 132 FormOnTop=0 133 134 [P:\vista\tmg-cprs\CPRS-Chart\fNoteDR.pas] 135 ModuleType=SourceModule 136 FormState=0 137 FormOnTop=0 138 139 [P:\vista\tmg-cprs\CPRS-Chart\rCore.pas] 140 ModuleType=SourceModule 141 FormState=0 142 FormOnTop=0 143 144 [C:\Program Files\Borland\Delphi7\Projects\ProjectGroup1.bpg] 54 145 FormState=0 55 146 FormOnTop=0 56 147 57 148 [P:\vista\tmg-cprs\CPRS-Chart\CPRSChart.dpr] 58 ModuleType=SourceModule59 FormState=060 FormOnTop=061 62 [c:\program files\borland\delphi7\source\vcl\Forms.pas]63 ModuleType=SourceModule64 FormState=065 FormOnTop=066 67 [P:\vista\tmg-cprs\CPRS-Lib\ORNet.pas]68 ModuleType=SourceModule69 FormState=070 FormOnTop=071 72 [c:\program files\borland\delphi7\source\rtl\Sys\system.pas]73 ModuleType=SourceModule74 FormState=075 FormOnTop=076 77 [P:\vista\tmg-cprs\CPRS-Chart\fSplash.pas]78 ModuleType=SourceModule79 FormState=080 FormOnTop=081 82 [P:\vista\tmg-cprs\CPRS-Chart\fNotes.pas]83 ModuleType=SourceModule84 FormState=085 FormOnTop=086 87 [C:\Program Files\Borland\Delphi7\Projects\ProjectGroup1.bpg]88 149 FormState=0 89 150 FormOnTop=0 … … 93 154 FormOnTop=0 94 155 156 [P:\vista\tmg-cprs\CPRS-Chart\fPage.pas] 157 FormState=0 158 FormOnTop=0 159 160 [P:\vista\tmg-cprs\CPRS-Chart\fAutoSz.pas] 161 FormState=0 162 FormOnTop=0 163 95 164 [P:\vista\tmg-cprs\CPRS-Chart\fHSplit.pas] 96 165 FormState=0 97 166 FormOnTop=0 98 167 99 [P:\vista\tmg-cprs\CPRS-Chart\fPage.pas]100 FormState=0101 FormOnTop=0102 103 168 [EditWindow0] 104 ViewCount= 12105 CurrentView= 1169 ViewCount=22 170 CurrentView=6 106 171 View0=0 107 172 View1=1 … … 116 181 View10=10 117 182 View11=11 183 View12=12 184 View13=13 185 View14=14 186 View15=15 187 View16=16 188 View17=17 189 View18=18 190 View19=19 191 View20=20 192 View21=21 118 193 CodeExplorer=CodeExplorer@EditWindow0 119 194 MessageView=MessageView@EditWindow0 … … 121 196 Visible=1 122 197 State=0 123 Left= 139124 Top= 111125 Width=8 48126 Height=6 98198 Left=80 199 Top=97 200 Width=816 201 Height=620 127 202 MaxLeft=-4 128 203 MaxTop=108 129 ClientWidth=8 40130 ClientHeight= 664204 ClientWidth=808 205 ClientHeight=586 131 206 LeftPanelSize=0 132 207 LeftPanelClients=CodeExplorer@EditWindow0 133 208 LeftPanelData=00000400010000000C000000436F64654578706C6F726572000000000000000000000000000000000001000000000000000000000000FFFFFFFF 134 209 RightPanelSize=0 135 BottomPanelSize= 221136 BottomPanelClients= DockSite1137 BottomPanelData=0000040000000000 480300000000000002DD000000000000000100000000770300000000000001000000004803000009000000446F636B5369746531FFFFFFFF210 BottomPanelSize=136 211 BottomPanelClients=WatchWindow,MessageView@EditWindow0 212 BottomPanelData=0000040000000000280300000000000002880000000000000001000000007703000000000000010000000128030000000000000200000000870000000B000000576174636857696E646F770200000000880000000B0000004D65737361676556696577FFFFFFFF 138 213 139 214 [View0] 140 215 Module=P:\vista\tmg-cprs\CPRS-Chart\fNotes.pas 141 CursorX= 59142 CursorY= 3483143 TopLine= 3478216 CursorX=44 217 CursorY=2072 218 TopLine=2061 144 219 LeftCol=1 145 220 146 221 [View1] 147 Module=P:\vista\tmg-cprs\CPRS-Chart\ fFrame.pas148 CursorX= 42149 CursorY= 829150 TopLine= 817222 Module=P:\vista\tmg-cprs\CPRS-Chart\TMG_Extra\fImagePickExisting.pas 223 CursorX=21 224 CursorY=16 225 TopLine=9 151 226 LeftCol=1 152 227 153 228 [View2] 154 Module=c:\program files\borland\delphi7\source\vcl\ Controls.pas155 CursorX=1 156 CursorY= 5991157 TopLine= 5981229 Module=c:\program files\borland\delphi7\source\vcl\Menus.pas 230 CursorX=1 231 CursorY=1822 232 TopLine=1811 158 233 LeftCol=1 159 234 160 235 [View3] 161 Module=P:\vista\tmg-cprs\CPRS-Chart\ fLabs.pas162 CursorX= 33163 CursorY= 2170164 TopLine= 2164236 Module=P:\vista\tmg-cprs\CPRS-Chart\rCore.pas 237 CursorX=1 238 CursorY=364 239 TopLine=357 165 240 LeftCol=1 166 241 167 242 [View4] 168 Module= c:\program files\borland\delphi7\source\vcl\Forms.pas169 CursorX= 1170 CursorY=6 956171 TopLine= 6941243 Module=P:\vista\tmg-cprs\CPRS-Chart\fNoteDR.pas 244 CursorX=50 245 CursorY=67 246 TopLine=56 172 247 LeftCol=1 173 248 174 249 [View5] 175 Module=P:\vista\tmg-cprs\CPRS-Chart\ CPRSChart.dpr176 CursorX=1 177 CursorY= 385178 TopLine= 375250 Module=P:\vista\tmg-cprs\CPRS-Chart\UploadImages.pas 251 CursorX=17 252 CursorY=417 253 TopLine=409 179 254 LeftCol=1 180 255 181 256 [View6] 182 Module= C:\PROGRA~1\VISTA\BDK32\Source\wsockc.pas183 CursorX=1 184 CursorY= 433185 TopLine= 418257 Module=P:\vista\tmg-cprs\CPRS-Chart\fImages.pas 258 CursorX=1 259 CursorY=1543 260 TopLine=1426 186 261 LeftCol=1 187 262 188 263 [View7] 189 Module= C:\PROGRA~1\VISTA\BDK32\Source\ccowrpcbroker.pas190 CursorX=1 191 CursorY= 363192 TopLine= 353264 Module=P:\vista\tmg-cprs\CPRS-Chart\TMG_Extra\HTMLEdit\TMGHTML2.pas 265 CursorX=1 266 CursorY=984 267 TopLine=972 193 268 LeftCol=1 194 269 … … 196 271 Module=c:\program files\borland\delphi7\source\rtl\Sys\system.pas 197 272 CursorX=1 198 CursorY= 9976199 TopLine= 9963273 CursorY=10058 274 TopLine=10060 200 275 LeftCol=1 201 276 202 277 [View9] 203 Module= P:\vista\tmg-cprs\CPRS-Lib\ORNet.pas204 CursorX=1 205 CursorY= 346206 TopLine= 335278 Module=c:\program files\borland\delphi7\source\vcl\ExtCtrls.pas 279 CursorX=1 280 CursorY=1639 281 TopLine=1622 207 282 LeftCol=1 208 283 209 284 [View10] 210 Module=P:\Vista\tmg-cprs\ dklang-package-3.01\DKLang.pas211 CursorX= 31212 CursorY=2 251213 TopLine=2 244285 Module=P:\Vista\tmg-cprs\CPRS-Lib\ORCtrls.pas 286 CursorX=1 287 CursorY=2657 288 TopLine=2642 214 289 LeftCol=1 215 290 216 291 [View11] 292 Module=c:\program files\borland\delphi7\source\vcl\StdCtrls.pas 293 CursorX=1 294 CursorY=4114 295 TopLine=4098 296 LeftCol=1 297 298 [View12] 299 Module=c:\program files\borland\delphi7\source\vcl\Forms.pas 300 CursorX=1 301 CursorY=4849 302 TopLine=4832 303 LeftCol=1 304 305 [View13] 306 Module=c:\program files\borland\delphi7\source\vcl\Controls.pas 307 CursorX=1 308 CursorY=6245 309 TopLine=6228 310 LeftCol=1 311 312 [View14] 313 Module=c:\program files\borland\delphi7\source\rtl\common\classes.pas 314 CursorX=1 315 CursorY=10968 316 TopLine=10956 317 LeftCol=1 318 319 [View15] 320 Module=P:\Vista\tmg-cprs\CPRS-Lib\ORNet.pas 321 CursorX=20 322 CursorY=77 323 TopLine=56 324 LeftCol=1 325 326 [View16] 327 Module=P:\vista\tmg-cprs\CPRS-Chart\rTIU.pas 328 CursorX=10 329 CursorY=646 330 TopLine=640 331 LeftCol=1 332 333 [View17] 334 Module=P:\vista\tmg-cprs\CPRS-Chart\fPtSel.pas 335 CursorX=1 336 CursorY=748 337 TopLine=740 338 LeftCol=1 339 340 [View18] 341 Module=P:\vista\tmg-cprs\CPRS-Chart\fFrame.pas 342 CursorX=1 343 CursorY=827 344 TopLine=816 345 LeftCol=1 346 347 [View19] 348 Module=P:\vista\tmg-cprs\CPRS-Chart\rHTMLTools.pas 349 CursorX=1 350 CursorY=251 351 TopLine=240 352 LeftCol=1 353 354 [View20] 355 Module=c:\program files\borland\delphi7\source\vcl\ComCtrls.pas 356 CursorX=1 357 CursorY=4143 358 TopLine=4130 359 LeftCol=1 360 361 [View21] 217 362 Module=P:\vista\tmg-cprs\CPRS-Chart\fSplash.pas 218 363 CursorX=1 … … 236 381 237 382 [Watches] 238 Count= 1383 Count=2 239 384 Watch0='Count',256,0,18,1,1,'Watches' 385 Watch1='DeleteSts.Success',256,0,18,1,1,'Watches' 240 386 241 387 [WatchWindow] … … 245 391 Visible=1 246 392 State=0 247 Left= 0393 Left=12 248 394 Top=0 249 Width= 820250 Height=1 92251 MaxLeft=-1 252 MaxTop=-1 253 ClientWidth= 820254 ClientHeight=1 92255 TBDockHeight=1 03395 Width=796 396 Height=131 397 MaxLeft=-1 398 MaxTop=-1 399 ClientWidth=796 400 ClientHeight=131 401 TBDockHeight=131 256 402 LRDockWidth=421 257 403 Dockable=1 258 404 259 405 [Breakpoints] 260 Count= 52406 Count=47 261 407 Breakpoint0='P:\vista\tmg-cprs\CPRS-Chart\TMG_Extra\fPtDemoEdit.pas',1714,'',0,1,'',1,0,0,'',1,'','','' 262 408 Breakpoint1='P:\vista\tmg-cprs\CPRS-Chart\TMG_Extra\fPtDemoEdit.pas',1791,'',0,1,'',1,0,0,'',1,'','','' 263 409 Breakpoint2='P:\vista\tmg-cprs\CPRS-Chart\fDrawers.pas',1068,'',0,1,'',1,0,0,'',1,'','','' 264 Breakpoint3='P:\vista\tmg-cprs\CPRS-Chart\fNotes.pas',32 89,'',0,1,'',1,0,0,'',1,'','',''265 Breakpoint4='P:\vista\tmg-cprs\CPRS-Chart\fNotes.pas',329 5,'',0,1,'',1,0,0,'',1,'','',''266 Breakpoint5='P:\vista\tmg-cprs\CPRS-Chart\fNotes.pas',43 89,'',0,1,'',1,0,0,'',1,'','',''267 Breakpoint6='P:\vista\tmg-cprs\CPRS-Chart\fNotes.pas',483 0,'',0,1,'',1,0,0,'',1,'','',''268 Breakpoint7='P:\vista\tmg-cprs\CPRS-Chart\fNotes.pas',485 0,'',0,1,'',1,0,0,'',1,'','',''410 Breakpoint3='P:\vista\tmg-cprs\CPRS-Chart\fNotes.pas',3293,'',0,1,'',1,0,0,'',1,'','','' 411 Breakpoint4='P:\vista\tmg-cprs\CPRS-Chart\fNotes.pas',3299,'',0,1,'',1,0,0,'',1,'','','' 412 Breakpoint5='P:\vista\tmg-cprs\CPRS-Chart\fNotes.pas',4393,'',0,1,'',1,0,0,'',1,'','','' 413 Breakpoint6='P:\vista\tmg-cprs\CPRS-Chart\fNotes.pas',4834,'',0,1,'',1,0,0,'',1,'','','' 414 Breakpoint7='P:\vista\tmg-cprs\CPRS-Chart\fNotes.pas',4854,'',0,1,'',1,0,0,'',1,'','','' 269 415 Breakpoint8='P:\vista\tmg-cprs\CPRS-Chart\fLabs.pas',2419,'',0,1,'',1,0,0,'',1,'','','' 270 416 Breakpoint9='P:\vista\tmg-cprs\CPRS-Chart\fReports.pas',2966,'',0,1,'',1,0,0,'',1,'','','' … … 298 444 Breakpoint37='P:\vista\tmg-cprs\CPRS-Chart\rHTMLTools.pas',254,'',0,1,'',1,0,0,'',1,'','','' 299 445 Breakpoint38='P:\vista\tmg-cprs\CPRS-Chart\TMG_Extra\fPtQuery.pas',130,'',0,1,'',1,0,0,'',1,'','','' 300 Breakpoint39='P:\vista\tmg-cprs\CPRS-Chart\UploadImages.pas',527,'',0,1,'',1,0,0,'',1,'','','' 301 Breakpoint40='P:\vista\tmg-cprs\CPRS-Chart\fFrame.pas',1774,'',0,1,'',1,0,0,'',1,'','','' 302 Breakpoint41='P:\vista\tmg-cprs\CPRS-Chart\fFrame.pas',1821,'',0,1,'',1,0,0,'',1,'','','' 303 Breakpoint42='P:\vista\tmg-cprs\CPRS-Chart\fFrame.pas',1894,'',0,1,'',1,0,0,'',1,'','','' 304 Breakpoint43='P:\vista\tmg-cprs\CPRS-Chart\fFrame.pas',3718,'',0,1,'',1,0,0,'',1,'','','' 305 Breakpoint44='P:\vista\tmg-cprs\CPRS-Chart\fFrame.pas',4900,'',0,1,'',1,0,0,'',1,'','','' 306 Breakpoint45='P:\vista\tmg-cprs\CPRS-Chart\fFrame.pas',5167,'',0,1,'',1,0,0,'',1,'','','' 307 Breakpoint46='P:\vista\tmg-cprs\CPRS-Chart\fPtSel.pas',724,'',0,1,'',1,0,0,'',1,'','','' 308 Breakpoint47='P:\vista\tmg-cprs\CPRS-Chart\fPtSel.pas',748,'',0,1,'',1,0,0,'',1,'','','' 309 Breakpoint48='P:\vista\tmg-cprs\CPRS-Chart\fFrame.pas',2025,'',0,1,'',1,0,0,'',1,'','','' 310 Breakpoint49='P:\vista\tmg-cprs\CPRS-Chart\rTIU.pas',388,'',0,1,'',1,0,0,'',1,'','','' 311 Breakpoint50='P:\vista\tmg-cprs\CPRS-Chart\fFrame.pas',840,'',0,1,'',1,0,0,'',1,'','','' 312 Breakpoint51='P:\vista\tmg-cprs\CPRS-Chart\fFrame.pas',827,'',0,1,'',1,0,0,'',1,'','','' 446 Breakpoint39='P:\vista\tmg-cprs\CPRS-Chart\fFrame.pas',1821,'',0,1,'',1,0,0,'',1,'','','' 447 Breakpoint40='P:\vista\tmg-cprs\CPRS-Chart\fFrame.pas',1894,'',0,1,'',1,0,0,'',1,'','','' 448 Breakpoint41='P:\vista\tmg-cprs\CPRS-Chart\fFrame.pas',3718,'',0,1,'',1,0,0,'',1,'','','' 449 Breakpoint42='P:\vista\tmg-cprs\CPRS-Chart\fFrame.pas',4900,'',0,1,'',1,0,0,'',1,'','','' 450 Breakpoint43='P:\vista\tmg-cprs\CPRS-Chart\fFrame.pas',5167,'',0,1,'',1,0,0,'',1,'','','' 451 Breakpoint44='P:\vista\tmg-cprs\CPRS-Chart\rTIU.pas',388,'',0,1,'',1,0,0,'',1,'','','' 452 Breakpoint45='P:\vista\tmg-cprs\CPRS-Chart\fFrame.pas',827,'',0,1,'',1,0,0,'',1,'','','' 453 Breakpoint46='P:\vista\tmg-cprs\CPRS-Chart\fImages.pas',1550,'',0,1,'',1,0,0,'',1,'','','' 313 454 314 455 [AddressBreakpoints] … … 397 538 Top=0 398 539 Width=238 399 Height= 499540 Height=536 400 541 MaxLeft=-1 401 542 MaxTop=-1 402 543 ClientWidth=238 403 ClientHeight= 499544 ClientHeight=536 404 545 TBDockHeight=492 405 546 LRDockWidth=246 … … 407 548 SplitPos=114 408 549 ArrangeBy=Name 409 SelectedItem= Name550 SelectedItem=Images 410 551 ExpandedItems=Anchors,CalColors,Constraints,EdgeBorders,Font,Images,Options,PopupMenu 411 552 HiddenCategories=Legacy … … 437 578 Visible=1 438 579 State=0 439 Left= 6440 Top=1 83580 Left=16 581 Top=179 441 582 Width=321 442 583 Height=521 … … 471 612 [ObjectTree] 472 613 Create=1 473 Visible= 0614 Visible=1 474 615 State=0 475 616 Left=0 476 617 Top=0 477 618 Width=238 478 Height= 499619 Height=536 479 620 MaxLeft=-1 480 621 MaxTop=-1 481 622 ClientWidth=238 482 ClientHeight= 499623 ClientHeight=536 483 624 TBDockHeight=175 484 625 LRDockWidth=246 … … 613 754 Visible=1 614 755 State=0 615 Left= 0616 Top= 0617 Width= 820618 Height=1 92619 MaxLeft=-1 620 MaxTop=-1 621 ClientWidth= 820622 ClientHeight=1 92623 TBDockHeight= 215756 Left=12 757 Top=135 758 Width=796 759 Height=1 760 MaxLeft=-1 761 MaxTop=-1 762 ClientWidth=779 763 ClientHeight=1 764 TBDockHeight=1 624 765 LRDockWidth=443 625 766 Dockable=1 626 767 627 768 [DockHosts] 628 DockHostCount= 2769 DockHostCount=1 629 770 630 771 [DockSite0] … … 633 774 Visible=1 634 775 State=0 635 Left= 21636 Top=1 25776 Left=45 777 Top=132 637 778 Width=254 638 Height=5 54779 Height=591 639 780 MaxLeft=-1 640 781 MaxTop=-1 641 782 ClientWidth=246 642 ClientHeight=5 28783 ClientHeight=565 643 784 TBDockHeight=554 644 785 LRDockWidth=254 … … 648 789 TabDockClients=PropertyInspector,ObjectTree 649 790 650 [DockSite1]651 DockSiteType=1652 Create=1653 Visible=1654 State=0655 Left=12656 Top=0657 Width=828658 Height=221659 MaxLeft=-1660 MaxTop=-1661 ClientWidth=828662 ClientHeight=221663 TBDockHeight=221664 LRDockWidth=283665 Dockable=1666 TabPosition=0667 ActiveTab=Messages668 TabDockClients=MessageView@EditWindow0,WatchWindow669 -
cprs/branches/tmg-cprs/CPRS-Chart/CPRSChart_TLB.pas
r819 r877 13 13 14 14 // PASTLWTR : 1.2 15 // File generated on 7/ 2/2010 7:47:03PM from Type Library described below.15 // File generated on 7/7/2010 12:05:45 PM from Type Library described below. 16 16 17 17 // ************************************************************************ // -
cprs/branches/tmg-cprs/CPRS-Chart/fImages.dfm
r793 r877 1 1 inherited frmImages: TfrmImages 2 Left = 1 183 Top = 352 Left = 157 3 Top = 102 4 4 Width = 848 5 5 Height = 666 … … 342 342 OnChange = TabControlChange 343 343 OnGetImageIndex = TabControlGetImageIndex 344 OnMouseUp = TabControlMouseUp 344 345 OnResize = TabControlResize 345 346 end … … 362 363 LangData = { 363 364 090066726D496D61676573010200000001000000070043617074696F6E020000 364 00080048656C7046696C65012 50000000D0073687050616765426F74746F6D00365 00080048656C7046696C6501280000000D0073687050616765426F74746F6D00 365 366 000D00486F72697A53706C697474657200000600706E6C546F7000000B004275 366 367 74746F6E50616E656C0000120055706C6F6164496D61676573427574746F6E01 … … 369 370 000F0043757272656E744E6F74654D656D6F00000900706E6C426F74746F6D00 370 371 000A00546162436F6E74726F6C00000A0057656242726F77736572000008006D 371 6E754E6F746573000007006D6E75566965770101000000040000000700436170 372 74696F6E000C006D6E7556696577436861727401010000000500000007004361 373 7074696F6E000D006D6E754368617274436F7665720101000000060000000700 374 43617074696F6E000D006D6E75436861727450726F6273010100000007000000 375 070043617074696F6E000C006D6E7543686172744D6564730101000000080000 376 00070043617074696F6E000E006D6E7543686172744F72646572730101000000 377 09000000070043617074696F6E000D006D6E7543686172744E6F746573010100 378 00000A000000070043617074696F6E000D006D6E75436861727443736C747301 379 010000000B000000070043617074696F6E000F006D6E75436861727453757267 380 65727901010000000C000000070043617074696F6E000E006D6E754368617274 381 444353756D6D01010000000D000000070043617074696F6E000C006D6E754368 382 6172744C61627301010000000E000000070043617074696F6E000F006D6E7543 383 686172745265706F72747301010000000F000000070043617074696F6E000200 384 5A3300000D006D6E7549636F6E4C6567656E6401010000001000000007004361 385 7074696F6E0006006D6E75416374010100000011000000070043617074696F6E 386 00150055706C6F6164496D616765734D6E75416374696F6E0101000000120000 387 00070043617074696F6E000A006D6E754F7074696F6E73010100000013000000 388 070043617074696F6E0002004E3300000D0074696D4C6F6164496D6167657300 389 000F005468756D6273496D6167654C697374000011004F70656E506963747572 390 654469616C6F670001050000000C005069637475726550616E656C00000C0050 391 6963747572654C6162656C00000D0050726576696577427574746F6E01010000 392 0014000000040048696E74000A005061696E7450616E656C000008005061696E 393 74426F7800000E004175746F5363616E55706C6F616401010000001500000007 394 0043617074696F6E000E005069636B5363616E466F6C64657201010000001600 395 0000070043617074696F6E000A004F70656E4469616C6F670000} 372 6E754E6F74657300010100000002004E31000007006D6E755669657701010000 373 0004000000070043617074696F6E000C006D6E75566965774368617274010100 374 000005000000070043617074696F6E000D006D6E754368617274436F76657201 375 0100000006000000070043617074696F6E000D006D6E75436861727450726F62 376 73010100000007000000070043617074696F6E000C006D6E7543686172744D65 377 6473010100000008000000070043617074696F6E000E006D6E7543686172744F 378 7264657273010100000009000000070043617074696F6E000D006D6E75436861 379 72744E6F74657301010000000A000000070043617074696F6E000D006D6E7543 380 6861727443736C747301010000000B000000070043617074696F6E000F006D6E 381 7543686172745375726765727901010000000C000000070043617074696F6E00 382 0E006D6E754368617274444353756D6D01010000000D00000007004361707469 383 6F6E000C006D6E7543686172744C61627301010000000E000000070043617074 384 696F6E000F006D6E7543686172745265706F72747301010000000F0000000700 385 43617074696F6E0002005A3300000D006D6E7549636F6E4C6567656E64010100 386 000010000000070043617074696F6E0006006D6E754163740101000000110000 387 00070043617074696F6E00150055706C6F6164496D616765734D6E7541637469 388 6F6E010100000012000000070043617074696F6E000A006D6E754F7074696F6E 389 73010100000013000000070043617074696F6E0002004E3300000D0074696D4C 390 6F6164496D6167657300000F005468756D6273496D6167654C69737400001100 391 4F70656E506963747572654469616C6F670001050000000C0050696374757265 392 50616E656C00000C00506963747572654C6162656C00000D0050726576696577 393 427574746F6E010100000014000000040048696E74000A005061696E7450616E 394 656C000008005061696E74426F7800000E004175746F5363616E55706C6F6164 395 010100000015000000070043617074696F6E000E005069636B5363616E466F6C 396 646572010100000016000000070043617074696F6E000A004F70656E4469616C 397 6F67000008006D6E75506F707570000011006D6E75506F7044656C657465496D 398 616765010100000017000000070043617074696F6E000E006D6E7544656C6574 399 65496D616765010100000018000000070043617074696F6E00} 396 400 end 397 401 object mnuNotes: TMainMenu … … 478 482 Caption = '&Upload Images' 479 483 OnClick = UploadImagesButtonClick 484 end 485 object mnuDeleteImage: TMenuItem 486 Caption = '&Delete Image' 487 OnClick = mnuDeleteImageClick 480 488 end 481 489 end … … 6864 6872 Top = 16 6865 6873 end 6874 object mnuPopup: TPopupMenu 6875 OnPopup = mnuPopupPopup 6876 Left = 384 6877 Top = 24 6878 object mnuPopDeleteImage: TMenuItem 6879 Caption = 'DeleteImage' 6880 OnClick = mnuPopDeleteImageClick 6881 end 6882 end 6866 6883 end -
cprs/branches/tmg-cprs/CPRS-Chart/fImages.pas
r809 r877 12 12 13 13 type 14 TImgDelMode = (idmNone,idmDelete,idmRetract); //NOTE: DO NOT change order 14 15 TImageInfo = class 15 16 private … … 81 82 PickScanFolder: TMenuItem; 82 83 OpenDialog: TOpenDialog; 84 mnuPopup: TPopupMenu; 85 mnuPopDeleteImage: TMenuItem; 86 mnuDeleteImage: TMenuItem; 83 87 procedure mnuChartTabClick(Sender: TObject); 84 88 procedure mnuActNewClick(Sender: TObject); … … 96 100 procedure EnableAutoScanUploadClick(Sender: TObject); 97 101 procedure PickScanFolderClick(Sender: TObject); 102 procedure TabControlMouseUp(Sender: TObject; Button: TMouseButton; 103 Shift: TShiftState; X, Y: Integer); 104 procedure mnuPopupPopup(Sender: TObject); 105 procedure mnuPopDeleteImageClick(Sender: TObject); 106 procedure mnuDeleteImageClick(Sender: TObject); 98 107 private 99 108 ImageInfoList : TList; 100 109 LastDisplayedTIUIEN : AnsiString; 101 110 ImageIndexLastDownloaded : integer; 111 FDeleteImageIndex : integer; 112 FEditIsActive : boolean; 113 FImageDeleteMode : TImgDelMode; 102 114 procedure EnsureImageListLoaded(); 103 115 procedure ClearImageList(); … … 112 124 function GetImageInfo(Index : integer) : TImageInfo; 113 125 procedure SetupTimer; 126 function CanDeleteImages : boolean; 127 procedure DeleteImageIndex(ImageIndex : integer; DeleteMode : TImgDelMode; boolPromptUser: boolean); 128 procedure DeleteImage(var DeleteSts: TActionRec; ImageFileName: string; ImageIEN, DocIEN: Integer; 129 DeleteMode : TImgDelMode; const Reason: string); 114 130 public 115 131 CacheDir : AnsiString; … … 134 150 procedure EnsureImagesDownloaded(ImagesList : TStringList); 135 151 procedure EnsureALLImagesDownloaded; 152 procedure DeleteAll(DeleteMode: TImgDelMode); 136 153 property ImagesCount : integer read GetImagesCount; 137 154 property ImageInfo[index : integer] : TImageInfo read GetImageInfo; … … 169 186 FIconLegend, fPCEEdit, fNoteIDParents, rSurgery, uSurgery, uTemplates, 170 187 uAccessibleTreeView, uAccessibleTreeNode, fTemplateDialog, DateUtils, 171 StrUtils {//KT added 1-1-05}, 172 mshtml, {//kt added 5-2-05} 173 UploadImages, {//kt added 9/25/05} 174 //ImageTransferForm, {//kt 10-1-05} 188 StrUtils, mshtml, UploadImages, 175 189 uTMGOptions, //kt 3/10/10 176 rHTMLTools, fNotes, frmImageTransferProgress; {//kt added 5-27-05 for IsHTMLDocument} 190 rHTMLTools, fNotes, frmImageTransferProgress, fImagePickExisting; {//kt added 5-27-05 for IsHTMLDocument} 191 192 193 procedure TfrmImages.FormCreate(Sender: TObject); 194 //var i : integer; 195 begin 196 inherited; 197 LastDisplayedTIUIEN := '0'; 198 FDeleteImageIndex := -1; 199 ImageInfoList := TList.Create; 200 ClearImageList(); //sets up other needed variables. 201 DownloadImagesInBackground := true; 202 CacheDir := ExtractFilePath(ParamStr(0))+ 'Cache'; 203 NullImageName := 'about:blank'; 204 if not DirectoryExists(CacheDir) then ForceDirectories(CacheDir); 205 206 TransferMethod := TImgTransferMethod(uTMGOptions.ReadInteger('ImageTransferMethod',2)); 207 DropBoxDir := uTMGOptions.ReadString('Dropbox directory','??'); 208 if DropBoxDir='??' then begin //just on first run. 209 uTMGOptions.WriteBool('Use dropbox directory for transfers',false); 210 uTMGOptions.WriteString('Dropbox directory',''); 211 end; 212 AutoScanUpload.Checked := uTMGOptions.ReadBool('Scan Enabled',false); 213 end; 214 215 procedure TfrmImages.FormDestroy(Sender: TObject); 216 begin 217 inherited; 218 ClearImageList; 219 ImageInfoList.Free; 220 EmptyCache; 221 end; 222 223 procedure TfrmImages.FormShow(Sender: TObject); 224 var TIUIEN : AnsiString; 225 begin 226 inherited; 227 mnuDeleteImage.Enabled := CanDeleteImages; 228 TIUIEN := IntToStr(frmNotes.lstNotes.ItemID); 229 DownloadImagesInBackground := false; 230 SetupTimer; 231 if LastDisplayedTIUIEN <> TIUIEN then begin 232 UpdateNoteInfoMemo(); 233 LastDisplayedTIUIEN := TIUIEN; 234 end; 235 end; 177 236 178 237 … … 266 325 begin 267 326 inherited; 268 end;269 270 procedure TfrmImages.FormCreate(Sender: TObject);271 //var i : integer;272 begin273 inherited;274 LastDisplayedTIUIEN := '0';275 ImageInfoList := TList.Create;276 ClearImageList(); //sets up other needed variables.277 DownloadImagesInBackground := true;278 CacheDir := ExtractFilePath(ParamStr(0))+ 'Cache';279 //NullImageName := ExtractFilePath(ParamStr(0)) + 'images\blank.htm';280 NullImageName := 'about:blank';281 if not DirectoryExists(CacheDir) then ForceDirectories(CacheDir);282 283 TransferMethod := TImgTransferMethod(uTMGOptions.ReadInteger('ImageTransferMethod',2));284 {if uTMGOptions.ReadInteger('ImageTransferMethod',0) = 0 then begin285 UseDropBox := True;286 end else begin287 UseDropBox := False;288 end;}289 DropBoxDir := uTMGOptions.ReadString('Dropbox directory','??');290 if DropBoxDir='??' then begin //just on first run.291 uTMGOptions.WriteBool('Use dropbox directory for transfers',false);292 uTMGOptions.WriteString('Dropbox directory','');293 end;294 AutoScanUpload.Checked := uTMGOptions.ReadBool('Scan Enabled',false);295 end;296 297 procedure TfrmImages.FormDestroy(Sender: TObject);298 begin299 inherited;300 ClearImageList;301 ImageInfoList.Free;302 EmptyCache;303 end;304 305 procedure TfrmImages.FormShow(Sender: TObject);306 var TIUIEN : AnsiString;307 begin308 inherited;309 TIUIEN := IntToStr(frmNotes.lstNotes.ItemID);310 DownloadImagesInBackground := false;311 SetupTimer;312 if LastDisplayedTIUIEN <> TIUIEN then begin313 UpdateNoteInfoMemo();314 LastDisplayedTIUIEN := TIUIEN;315 end;316 327 end; 317 328 … … 475 486 procedure TfrmImages.ClearImageList(); 476 487 //Note: !! This should also clear any visible images/thumbnails etc. 488 //Note: Need to remove thumbnail image from image list. 477 489 var i : integer; 478 490 begin … … 637 649 end; 638 650 639 // CallV('TMG UPLOAD FILE DROPBOX', ...); 651 CallV('TMG UPLOAD FILE DROPBOX', [FPath,FName]); //Move file into dropbox. 652 { 640 653 RPCBrokerV.ClearParameters := true; 641 654 RPCBrokerV.remoteprocedure := 'TMG UPLOAD FILE DROPBOX'; … … 647 660 RPCBrokerV.Param[2].Value := '1'; //see comments in UploadFile re '1' hardcoding 648 661 649 //RPCBrokerV.Call;//Move file into dropbox.650 CallBroker;662 CallBroker; //Move file into dropbox. 663 } 651 664 if RPCBrokerV.Results.Count>0 then begin 652 665 Result := (Piece(RPCBrokerV.Results[0],'^',1)='1'); //1=success, 0=failure … … 700 713 Application.ProcessMessages; 701 714 715 RPCBrokerV.remoteprocedure := 'TMG UPLOAD FILE'; 702 716 RPCBrokerV.ClearParameters := true; 703 717 RPCBrokerV.Param[0].PType := literal; … … 706 720 RPCBrokerV.Param[1].Value := FName; 707 721 RPCBrokerV.Param[2].PType := literal; 708 RPCBrokerV.Param[2].Value := '1'; 709 //Note: the '1' in the line above is hard-coding in to use 710 //IEN=1 in file 2005.2 (NETWORK LOCATION). This file will 711 //instruct the server which relative path to store the file into 712 //If I want to have more than one NETWORK LOCATION, then I would 713 //need to create another RPC call that would determine which IEN 714 //to use. 715 //(This would be the same as the IEN stored in fields# 2, 2.1, 2.2 716 // of file 2005 (IMAGE). This in turn is originally obtained from 717 //file IMAGING SITE PARAMETERS 722 RPCBrokerV.Param[2].Value := ''; //kt 7/11/10 723 //RPCBrokerV.Param[2].Value := '1'; //Specifying a NETWORK LOCATION is now depreciated. 718 724 719 725 RPCBrokerV.Param[3].PType := list; 720 721 726 ParamIndex := 0; 722 727 RefreshCountdown := RefreshInterval; … … 738 743 RefreshCountdown := RefreshInterval; 739 744 end; 740 741 745 end; 742 746 until (ReadCount < BlockSize); 743 744 RPCBrokerV.remoteprocedure := 'TMG UPLOAD FILE';745 747 746 748 SavedCursor := Screen.Cursor; … … 750 752 751 753 CallBroker; 754 752 755 Screen.Cursor := SavedCursor; 753 756 if RPCBrokerV.Results.Count > 0 then begin … … 772 775 ErrMsg : string; 773 776 begin 774 // CallV('TMG DOWNLOAD FILE DROPBOX', ...);775 777 CallV('TMG DOWNLOAD FILE DROPBOX', [FPath,FName]); //Move file into dropbox. 778 {RPCBrokerV.ClearParameters := true; 776 779 RPCBrokerV.remoteprocedure := 'TMG DOWNLOAD FILE DROPBOX'; 777 780 RPCBrokerV.param[0].PType := literal; … … 781 784 RPCBrokerV.Param[2].PType := literal; 782 785 RPCBrokerV.Param[2].Value := '1'; //see comments in UploadFile re '1' hardcoding 783 784 //RPCBrokerV.Call; //Move file into dropbox. 785 CallBroker; 786 CallBroker; } 786 787 if RPCBrokerV.Results.Count > 0 then begin 787 788 Result := (Piece(RPCBrokerV.Results[0],'^',1)='1'); //1=success, 0=failure … … 835 836 DeleteFile(LocalSaveFNamePath); 836 837 end; 837 //if UseDropBox then begin838 838 if TransferMethod = itmDropbox then begin 839 839 Result := DownloadFileViaDropBox(FPath,FName,LocalSaveFNamePath,CurrentImage,TotalImages); … … 843 843 Result := true; //default to success; 844 844 StatusText('Retrieving full image...'); 845 //Note: the '1' in the line below is hard-coding in to use 846 //IEN=1 in file 2005.2 (NETWORK LOCATION). This file will 847 //instruct the server which relative path to store the file into 848 //If I want to have more than one NETWORK LOCATION, then I would 849 //need to create another RPC call that would determine which IEN 850 //to use. 851 //(This would be the same as the IEN stored in fields# 2, 2.1, 2.2 852 // of file 2005 (IMAGE). This in turn is originally obtained from 853 //file IMAGING SITE PARAMETERS 854 CallV('TMG DOWNLOAD FILE', [FPath,FName,'1']); 845 //kt CallV('TMG DOWNLOAD FILE', [FPath,FName,'1']); //kt 7/10/10 Specifying a NETWORK LOCATION is depreciated. 846 CallV('TMG DOWNLOAD FILE', [FPath,FName]); 855 847 Application.ProcessMessages; 856 848 RefreshCountdown := RefreshInterval; … … 965 957 966 958 var 967 //Result : AnsiString; // 968 i : integer; 969 PlainTrio : longword; //RGZ3 970 j : integer; 959 //Result : AnsiString; //RGZ1 //'Result' is implicitly declared by Pascal 960 i : integer; //RGZ2 961 PlainTrio : longword; //RGZ3 //unsigned 32-bit 962 j : integer; //RGZ4 971 963 EncodedChar : char; 972 964 PlainInt : integer; … … 1027 1019 //If user selects images tab, then load will occur without delay. 1028 1020 //Note: OnTimer calls timLoadImagesTimer() 1021 FEditIsActive := EditIsActive; 1029 1022 UploadImagesButton.Enabled := EditIsActive; 1030 1023 UploadImagesMnuAction.Enabled := EditIsActive; … … 1347 1340 1348 1341 1342 procedure TfrmImages.TabControlMouseUp(Sender: TObject; Button: TMouseButton; 1343 Shift: TShiftState; X, Y: Integer); 1344 //kt add 7/6/10 1345 var TabIndex : integer; 1346 P : TPoint; 1347 begin 1348 inherited; 1349 if Button <> mbRight then exit; 1350 TabIndex := TabControl.IndexOfTabAt(X,Y); 1351 if TabIndex < 0 then exit; 1352 FDeleteImageIndex := TabIndex; 1353 P.X := X; P.Y := Y; 1354 P := TabControl.ClientToScreen(P); 1355 TabControl.PopupMenu := mnuPopup; 1356 mnuPopup.Popup(P.X, P.Y); 1357 TabControl.PopupMenu := nil; 1358 end; 1359 1360 procedure TfrmImages.mnuPopupPopup(Sender: TObject); 1361 //Determine here if delete option should be enabled. 1362 begin 1363 inherited; 1364 mnuPopDeleteImage.Enabled := CanDeleteImages; 1365 end; 1366 1367 function TfrmImages.CanDeleteImages : boolean; 1368 //Determine here if image can be deleted. 1369 var 1370 ActionSts: TActionRec; 1371 const 1372 ATTACHED_IMAGES_SERVER_REPLY = 'You must "delete" the Images using the Imaging package before proceeding.'; 1373 begin 1374 FImageDeleteMode := idmNone; 1375 Result := false; //default action 1376 if FEditIsActive then begin 1377 Result := true; 1378 FImageDeleteMode := idmDelete; 1379 exit; 1380 end; 1381 //Will use same user class managment rules for images as for notes. 1382 //So if user can delete a note, then they can also delete images. 1383 ActOnDocument(ActionSts, frmNotes.lstNotes.ItemIEN, 'DELETE RECORD'); 1384 if (ActionSts.Success = false) then begin 1385 if Pos(ATTACHED_IMAGES_SERVER_REPLY, ActionSts.Reason) > 0 then ActionSts.Success := true; 1386 end; 1387 Result := ActionSts.Success; 1388 if Result then begin 1389 if AuthorSignedDocument(frmNotes.lstNotes.ItemIEN) then FImageDeleteMode := idmRetract 1390 else FImageDeleteMode := idmDelete; 1391 end; 1392 end; 1393 1394 procedure TfrmImages.mnuPopDeleteImageClick(Sender: TObject); 1395 begin 1396 inherited; 1397 DeleteImageIndex(FDeleteImageIndex, FImageDeleteMode, True); 1398 end; 1399 1400 procedure TfrmImages.DeleteAll(DeleteMode: TImgDelMode); 1401 begin 1402 EnsureALLImagesDownloaded; 1403 while TabControl.Tabs.Count > 0 do begin 1404 DeleteImageIndex(0,DeleteMode,False); 1405 NewNoteSelected(False); 1406 EnsureALLImagesDownloaded; 1407 frmImages.Formshow(self); 1408 end; 1409 end; 1410 1411 1412 procedure TfrmImages.DeleteImageIndex(ImageIndex : integer; DeleteMode : TImgDelMode; boolPromptUser: boolean); 1413 //Note: permissions must be checked before running this function 1414 var 1415 ImageInfo : TImageInfo; 1416 ReasonForDelete : string; 1417 DeleteSts : TActionRec; 1418 1419 CONST 1420 TMG_PRIVACY = 'FOR PRIVACY'; //Server message (don't translate) 1421 TMG_ADMIN = 'ADMINISTRATIVE'; //Server message (don't translate) 1422 1423 begin 1424 if (ImageIndex<0) or (ImageIndex>=ImagesCount) then begin 1425 MessageDlg('Invalid image index to delete: '+IntToStr(ImageIndex), mtError,[mbOK],0); 1426 exit; 1427 end; 1428 ImageInfo := Self.ImageInfo[ImageIndex]; 1429 if boolPromptUser then begin 1430 ReasonForDelete := SelectDeleteReason(frmNotes.lstNotes.ItemIEN); 1431 if ReasonForDelete = DR_CANCEL then Exit; 1432 if ReasonForDelete = DR_PRIVACY then begin 1433 ReasonForDelete := TMG_PRIVACY; 1434 end else if ReasonForDelete = DR_ADMIN then begin 1435 ReasonForDelete := TMG_ADMIN; 1436 end; 1437 end else begin 1438 ReasonForDelete := 'DeleteAll'; 1439 end; 1440 1441 DeleteImage(DeleteSts, ImageInfo.ServerFName, ImageInfo.IEN, frmNotes.lstNotes.ItemIEN, DeleteMode, ReasonForDelete); 1442 end; 1443 1444 procedure TfrmImages.DeleteImage(var DeleteSts: TActionRec; 1445 ImageFileName: String; 1446 ImageIEN, DocIEN: Integer; 1447 DeleteMode : TImgDelMode; 1448 const Reason: string); //Reason should be 10-60 chars; 1449 1450 function ServerImageDelete(ImageIEN:integer; DeleteMode:tImgDelMode; Reason:String) : boolean; 1451 //Returns success 1452 var RPCResult,IEN,Mode : string; 1453 begin 1454 IEN := IntToStr(ImageIEN); 1455 Mode := IntToStr(Ord(DeleteMode)); 1456 RPCResult := sCallV('TMG IMAGE DELETE', [IEN,Mode,Reason]); 1457 Result := Piece(RPCResult,'^',1)= '1'; 1458 if Result = false then begin 1459 MessageDlg(Piece(RPCResult,'^',2),mtError,[mbOK],0); 1460 end; 1461 end; 1462 1463 procedure NoteImageDelete(DocIEN:integer; FileName: string; DeleteMode:tImgDelMode; Reason:String); 1464 var 1465 NoteText, tempString: string; 1466 Beginning, Ending: integer; 1467 boolFound: boolean; 1468 // <!-- Retracted By: UserName on Date ...;.. --> 1469 // FEditIsActive 1470 begin 1471 if FEditIsActive then begin 1472 Ending := 1; 1473 Beginning := 1; 1474 boolFound := False; 1475 While (boolFound = False) AND (Beginning > 0) Do Begin 1476 NoteText := frmNotes.HtmlEditor.HTMLText; 1477 Beginning := PosEx('<IMG',NoteText, Ending); 1478 Ending := PosEx('>', NoteText, Beginning) + 1; 1479 tempString := MidStr(NoteText, Beginning, Ending-Beginning); 1480 if pos(FileName,tempString) > 0 then boolFound := True; 1481 end; 1482 if boolFound = false then begin 1483 Ending := 1; 1484 Beginning := 1; 1485 boolFound := False; 1486 While (boolFound = False) AND (Beginning > 0) Do Begin 1487 NoteText := frmNotes.HtmlEditor.HTMLText; 1488 Beginning := PosEx('<embed',NoteText, Ending); 1489 Ending := PosEx('>', NoteText, Beginning) + 1; 1490 tempString := MidStr(NoteText, Beginning, Ending-Beginning); 1491 if pos(FileName,tempString) > 0 then boolFound := True; 1492 end; 1493 end; 1494 if boolFound = False then exit; 1495 if DeleteMode = idmDelete then begin 1496 frmnotes.HtmlEditor.HTMLText := AnsiReplaceStr(frmNotes.HtmlEditor.HTMLText, tempString, ''); 1497 end else if DeleteMode = idmRetract then begin 1498 frmnotes.HtmlEditor.HTMLText := AnsiReplaceStr(frmNotes.HtmlEditor.HTMLText, tempString, ' <!-- ' + tempString + ' Retracted By: ' + User.Name + ' on ' + DateToStr(Now)); 1499 end; 1500 //ClearImageList; 1501 //EmptyCache; 1502 //frmImages.FormHide(self); 1503 //LastDisplayedTIUIEN := '0'; 1504 //frmImages.Formshow(self); 1505 NewNoteSelected(True); 1506 frmImages.Formshow(self); 1507 end else begin 1508 //NewNoteSelected(True); 1509 //frmImages.Formshow(self); 1510 end; 1511 end; 1512 1513 begin 1514 //'Permanently delete attached image or file?' 1515 //Create dialog that gives option to export before deleting? 1516 //"You are about to permanently delete this image. Would you like to export before deletion? Yes/No/Cancel 1517 //Yes = export dialog then delete (if export is later cancelled assume cancel was pressed here), No=Only Delete, Cancel = No deletion 1518 if Reason <> 'DeleteAll' then begin 1519 if MessageDlg(DKLangConstW('fImages_ConfirmDelete'),mtConfirmation,mbOKCancel,0) <> mrOK then exit; 1520 end; 1521 if ServerImageDelete(ImageIEN,DeleteMode,Reason) = false then exit; 1522 NoteImageDelete(DocIEN,ImageFileName,DeleteMode,Reason); 1523 if DeleteMode = idmRetract then begin 1524 InfoBox(DKLangConstW('fImages_Retract_1')+CRLF + // 'This image or file will now be RETRACTED. As such, it has been' 1525 DKLangConstW('fImages_Retract_2')+CRLF + // 'removed from public view, and from typical Releases of Information,' 1526 DKLangConstW('fImages_Retract_2'), // ' but will remain indefinitely discoverable to HIMS.' +CRLF +CRLF; 1527 DKLangConstW('fImages_Retraction_Notice'),MB_OK); 1528 end; 1529 end; 1530 1531 1532 procedure TfrmImages.mnuDeleteImageClick(Sender: TObject); 1533 var 1534 SelectedImageTab,i : integer; 1535 ImageInfo : TImageInfo; 1536 begin 1537 inherited; 1538 If TabControl.Tabs.Count < 1 then exit; 1539 frmImagePickExisting := TfrmImagePickExisting.Create(Self); 1540 if frmImagePickExisting.ShowModal = mrOK then begin 1541 //ImageFName := frmImagePickExisting.SelectedImageFName; 1542 if not assigned(frmImagePickExisting.SelectedImageInfo) then exit; 1543 for i := 0 to TabControl.Tabs.Count - 1 do begin 1544 ImageInfo := Self.ImageInfo[i]; 1545 if frmImagePickExisting.SelectedImageInfo.ServerFName = ImageInfo.ServerFName then begin 1546 SelectedImageTab := i; 1547 end; 1548 end; 1549 if frmNotes.HTMLEditor.Active then begin 1550 FEditIsActive := true; 1551 DeleteImageIndex(SelectedImageTab,idmDelete,True); 1552 end else begin 1553 FEditIsActive := false; 1554 DeleteImageIndex(SelectedImageTab,idmRetract,True); 1555 end; 1556 NewNoteSelected(False); 1557 EnsureALLImagesDownloaded; 1558 frmImages.Formshow(self); 1559 end; 1560 FreeAndNil(frmImagePickExisting); 1561 end; 1562 1349 1563 initialization 1350 1564 //put init code here -
cprs/branches/tmg-cprs/CPRS-Chart/fNoteProps.pas
r453 r877 291 291 frmNoteProperties: TfrmNoteProperties; 292 292 begin 293 SetupVars; //kt added 8/26/2007 to replace constants with vars.294 SetupVars; //kt added 8/26/2007 to replace constants with vars.295 293 SetupVars; //kt added 8/26/2007 to replace constants with vars. 296 294 frmNoteProperties := TfrmNoteProperties.Create(Application); -
cprs/branches/tmg-cprs/CPRS-Chart/fNotes.dfm
r819 r877 1 1 inherited frmNotes: TfrmNotes 2 Left = 2723 Top = 1 054 Width = 4905 Height = 3 582 Left = 358 3 Top = 124 4 Width = 593 5 Height = 398 6 6 HelpContext = 5000 7 7 Caption = 'Progress Notes Page' … … 16 16 TextHeight = 13 17 17 inherited shpPageBottom: TShape 18 Top = 29919 Width = 48218 Top = 339 19 Width = 585 20 20 end 21 21 inherited sptHorz: TSplitter 22 22 Left = 64 23 Height = 29923 Height = 339 24 24 OnCanResize = sptHorzCanResize 25 25 end 26 26 inherited pnlLeft: TPanel 27 27 Width = 64 28 Height = 29928 Height = 339 29 29 object lblNotes: TOROffsetLabel 30 30 Left = 0 … … 43 43 object lblSpace1: TLabel 44 44 Left = 0 45 Top = 2 5445 Top = 294 46 46 Width = 64 47 47 Height = 3 … … 52 52 object cmdNewNote: TORAlignButton 53 53 Left = 0 54 Top = 2 5754 Top = 297 55 55 Width = 64 56 56 Height = 21 … … 64 64 object cmdPCE: TORAlignButton 65 65 Left = 0 66 Top = 27866 Top = 318 67 67 Width = 64 68 68 Height = 21 … … 79 79 Top = 19 80 80 Width = 64 81 Height = 2 3581 Height = 275 82 82 Align = alClient 83 83 BevelOuter = bvNone … … 85 85 object splDrawers: TSplitter 86 86 Left = 0 87 Top = 2 3287 Top = 272 88 88 Width = 64 89 89 Height = 3 … … 115 115 Top = 0 116 116 Width = 64 117 Height = 2 32117 Height = 272 118 118 Align = alClient 119 119 Constraints.MinWidth = 30 … … 142 142 inherited pnlRight: TPanel 143 143 Left = 68 144 Width = 414145 Height = 299144 Width = 517 145 Height = 339 146 146 object sptVert: TSplitter 147 147 Left = 0 148 Top = 2 50149 Width = 414148 Top = 290 149 Width = 517 150 150 Height = 4 151 151 Cursor = crVSplit … … 154 154 object memPCEShow: TRichEdit 155 155 Left = 0 156 Top = 2 54157 Width = 414156 Top = 294 157 Width = 517 158 158 Height = 45 159 159 Align = alBottom … … 170 170 Left = 0 171 171 Top = 0 172 Width = 414173 Height = 2 50172 Width = 517 173 Height = 290 174 174 Align = alClient 175 175 BevelOuter = bvNone … … 180 180 Left = 0 181 181 Top = 0 182 Width = 414182 Width = 517 183 183 Height = 67 184 184 Align = alTop … … 187 187 OnResize = pnlFieldsResize 188 188 DesignSize = ( 189 414189 517 190 190 67) 191 191 object bvlNewTitle: TBevel … … 209 209 end 210 210 object lblAuthor: TStaticText 211 Left = 196211 Left = 299 212 212 Top = 6 213 213 Width = 152 … … 232 232 end 233 233 object lblCosigner: TStaticText 234 Left = 101234 Left = 204 235 235 Top = 21 236 236 Width = 243 … … 275 275 end 276 276 object cmdChange: TButton 277 Left = 350277 Left = 453 278 278 Top = 6 279 279 Width = 58 … … 288 288 Left = 48 289 289 Top = 40 290 Width = 360290 Width = 463 291 291 Height = 21 292 292 Hint = 'Subject is limited to a maximum of 80 characters.' … … 303 303 Left = 0 304 304 Top = 67 305 Width = 414306 Height = 183305 Width = 517 306 Height = 223 307 307 Align = alClient 308 308 BevelOuter = bvNone … … 312 312 Left = 0 313 313 Top = 0 314 Width = 414315 Height = 183314 Width = 517 315 Height = 223 316 316 Align = alClient 317 317 Font.Charset = DEFAULT_CHARSET … … 335 335 Left = 0 336 336 Top = 67 337 Width = 414338 Height = 183337 Width = 517 338 Height = 223 339 339 Align = alClient 340 340 BevelOuter = bvNone … … 345 345 Left = 0 346 346 Top = 25 347 Width = 414348 Height = 1 58347 Width = 517 348 Height = 198 349 349 Align = alClient 350 350 BevelOuter = bvNone … … 354 354 Left = 0 355 355 Top = 0 356 Width = 414356 Width = 517 357 357 Height = 25 358 358 AutoSize = True … … 814 814 Left = 0 815 815 Top = 0 816 Width = 414817 Height = 2 50816 Width = 517 817 Height = 290 818 818 Align = alClient 819 819 BevelOuter = bvNone … … 823 823 Left = 0 824 824 Top = 0 825 Width = 414825 Width = 517 826 826 Height = 19 827 827 Align = alTop … … 835 835 Left = 0 836 836 Top = 113 837 Width = 414837 Width = 517 838 838 Height = 3 839 839 Cursor = crVSplit … … 843 843 Left = 0 844 844 Top = 116 845 Width = 414846 Height = 1 34845 Width = 517 846 Height = 174 847 847 TabStop = False 848 848 Align = alClient 849 849 TabOrder = 2 850 850 ControlData = { 851 4C000000 CA2A0000D90D00000000000000000000000000000000000000000000851 4C0000006F350000FC1100000000000000000000000000000000000000000000 852 852 000000004C000000000000000000000001000000E0D057007335CF11AE690800 853 853 2B2E126208000000000000004C0000000114020000000000C000000000000046 … … 858 858 Left = 0 859 859 Top = 116 860 Width = 414861 Height = 1 34860 Width = 517 861 Height = 174 862 862 Align = alClient 863 863 Color = clCream … … 885 885 Left = 0 886 886 Top = 19 887 Width = 414887 Width = 517 888 888 Height = 94 889 889 Align = alTop … … 934 934 Left = 0 935 935 Top = 116 936 Width = 414937 Height = 1 34936 Width = 517 937 Height = 174 938 938 Align = alClient 939 939 BevelOuter = bvNone -
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.