Changeset 460 for cprs/branches/foia-cprs/CPRS-Chart/rCore.pas
- Timestamp:
- Jul 6, 2008, 8:20:14 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cprs/branches/foia-cprs/CPRS-Chart/rCore.pas
r459 r460 98 98 { General calls } 99 99 100 function GetProgramFilesPath: String; 100 101 function ExternalName(IEN: Int64; FileNumber: Double): string; 101 102 function PersonHasKey(APerson: Int64; const AKey: string): Boolean; … … 133 134 procedure RenewAlert(XQAID: string); 134 135 function GetSortMethod: string; 135 procedure SetSortMethod(Sort: string );136 procedure SetSortMethod(Sort: string; Direction: string); 136 137 137 138 { Patient List calls } … … 198 199 function HasRemoteData(const DFN: string; var ALocations: TStringList): Boolean; 199 200 function CheckHL7TCPLink: Boolean; 201 function UseVistaWeb: Boolean; 202 function GetVistaWebAddress(value: string): string; 203 procedure ChangeVistaWebParam(value: string); 200 204 201 205 implementation 202 206 203 uses Hash, uCore ;207 uses Hash, uCore, ShlObj, Windows; 204 208 205 209 var … … 303 307 304 308 { General calls } 309 310 function GetProgramFilesPath: String; 311 Const 312 CSIDL_PROGRAM_FILES = $0026; 313 var 314 Path: array[0..Max_Path] of Char; 315 begin 316 Path := ''; 317 SHGetSpecialFolderPath(0,Path,CSIDL_PROGRAM_FILES,false); 318 Result := Path; 319 end; 305 320 306 321 function ExternalName(IEN: Int64; FileNumber: Double): string; … … 507 522 end; 508 523 509 procedure SetSortMethod(Sort: string );524 procedure SetSortMethod(Sort: string; Direction: string); 510 525 // Sets alert sort method for user 511 526 begin 512 CallV('ORWORB SETSORT', [Sort ]);527 CallV('ORWORB SETSORT', [Sort, Direction]); 513 528 end; 514 529 … … 612 627 a pointer to RPCBrokerV.Results, so the data must be used BEFORE the next broker call!} 613 628 begin 614 CallV('ORWU NEWPERS', [StartFrom, Direction, '', '', True]); //TRUE = return all active and inactive users629 CallV('ORWU NEWPERS', [StartFrom, Direction, '', '', '', True]); //TRUE = return all active and inactive users 615 630 MixedCaseList(RPCBrokerV.Results); 616 631 Result := RPCBrokerV.Results; … … 1244 1259 end; 1245 1260 1261 function UseVistaWeb: Boolean; 1262 begin; 1263 CallV('ORWCIRN VISTAWEB',[nil]); 1264 result := RPCBrokerV.Results[0] = '1'; 1265 end; 1266 1267 function GetVistaWebAddress(value: string): string; 1268 begin 1269 CallV('ORWCIRN WEBADDR', [value]); 1270 result := RPCBrokerV.Results[0]; 1271 end; 1272 1273 procedure ChangeVistaWebParam(value: string); 1274 begin 1275 CallV('ORWCIRN WEBCH',[value]); 1276 end; 1277 1246 1278 function GetDefaultPrinter(DUZ: Int64; Location: integer): string; 1247 1279 begin
Note:
See TracChangeset
for help on using the changeset viewer.