Ignore:
Timestamp:
Jul 6, 2008, 8:20:14 PM (16 years ago)
Author:
Kevin Toppenberg
Message:

Uploading from OR_30_258

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cprs/branches/foia-cprs/CPRS-Chart/rCore.pas

    r459 r460  
    9898{ General calls }
    9999
     100function GetProgramFilesPath: String;
    100101function ExternalName(IEN: Int64; FileNumber: Double): string;
    101102function PersonHasKey(APerson: Int64; const AKey: string): Boolean;
     
    133134procedure RenewAlert(XQAID: string);
    134135function GetSortMethod: string;
    135 procedure SetSortMethod(Sort: string);
     136procedure SetSortMethod(Sort: string; Direction: string);
    136137
    137138{ Patient List calls }
     
    198199function HasRemoteData(const DFN: string; var ALocations: TStringList): Boolean;
    199200function CheckHL7TCPLink: Boolean;
     201function UseVistaWeb: Boolean;
     202function GetVistaWebAddress(value: string): string;
     203procedure ChangeVistaWebParam(value: string);
    200204
    201205implementation
    202206
    203 uses Hash, uCore;
     207uses Hash, uCore, ShlObj, Windows;
    204208
    205209var
     
    303307
    304308{ General calls }
     309
     310function GetProgramFilesPath: String;
     311Const
     312  CSIDL_PROGRAM_FILES = $0026;
     313var
     314  Path: array[0..Max_Path] of Char;
     315begin
     316  Path := '';
     317  SHGetSpecialFolderPath(0,Path,CSIDL_PROGRAM_FILES,false);
     318  Result := Path;
     319end;
    305320
    306321function ExternalName(IEN: Int64; FileNumber: Double): string;
     
    507522end;
    508523
    509 procedure SetSortMethod(Sort: string);
     524procedure SetSortMethod(Sort: string; Direction: string);
    510525// Sets alert sort method for user
    511526begin
    512    CallV('ORWORB SETSORT', [Sort]);
     527   CallV('ORWORB SETSORT', [Sort, Direction]);
    513528end;
    514529
     
    612627  a pointer to RPCBrokerV.Results, so the data must be used BEFORE the next broker call!}
    613628begin
    614   CallV('ORWU NEWPERS', [StartFrom, Direction, '', '', True]);  //TRUE = return all active and inactive users
     629  CallV('ORWU NEWPERS', [StartFrom, Direction, '', '', '', True]);  //TRUE = return all active and inactive users
    615630  MixedCaseList(RPCBrokerV.Results);
    616631  Result := RPCBrokerV.Results;
     
    12441259 end;
    12451260
     1261function UseVistaWeb: Boolean;
     1262 begin;
     1263   CallV('ORWCIRN VISTAWEB',[nil]);
     1264   result := RPCBrokerV.Results[0] = '1';
     1265 end;
     1266
     1267function GetVistaWebAddress(value: string): string;
     1268begin
     1269  CallV('ORWCIRN WEBADDR', [value]);
     1270  result := RPCBrokerV.Results[0];
     1271end;
     1272
     1273procedure ChangeVistaWebParam(value: string);
     1274  begin
     1275    CallV('ORWCIRN WEBCH',[value]);
     1276  end;
     1277
    12461278function GetDefaultPrinter(DUZ: Int64; Location: integer): string;
    12471279begin
Note: See TracChangeset for help on using the changeset viewer.