Ignore:
Timestamp:
Jul 7, 2010, 4:51:54 PM (14 years ago)
Author:
Kevin Toppenberg
Message:

Upgrading to version 27

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cprs/trunk/CPRS-Chart/uGraphs.pas

    r456 r830  
    1010  public
    1111    ClearBackground: boolean;
     12    DateRangeInpatient: string;
     13    DateRangeOutpatient: string;
    1214    Dates: boolean;
    1315    FixedDateRange: boolean;
     
    3436    Sources: TStrings;
    3537    StayOnTop: boolean;
     38    Turbo: boolean;
    3639    Values: boolean;
    3740    VerticalZoom: boolean;
    3841    View3D: boolean;
     42  end;
     43
     44  TGraphActivity = class
     45  public
     46    CurrentSetting: string;
     47    DefaultInpatientDate: string;
     48    DefaultOutpatientDate: string;
     49    OldDFN: string;
     50    PublicSetting: string;
     51    PersonalSetting: string;
     52    PublicEditor: boolean;
     53    Status: string;
     54    TurboOn: boolean;
     55    Cache: boolean;
    3956  end;
    4057
     
    5370  GRAPH_FLOAT = 'F';
    5471  GRAPH_REPORT = 'R';
     72  POINT_PADDING = 0.03;              // assume a point height of 3%
     73  LLS_FRONT  = '^____[';
     74  LLS_BACK  = ']___________________________________________________________________________________________________________';
     75
    5576
    5677    // settings use single character
     
    6889  SETTING_VZOOM = 'L';
    6990  SETTING_FIXED = 'M';
     91  SETTING_TURBO = 'N';
    7092
    7193  // keypress flags
     
    82104
    83105  // text messages
     106  TXT_COMMENTS = '** comments';
     107  TXT_COPY_DISCLAIMER = 'Note: Graphs display limited data, view details for more information.';
    84108  TXT_DISCLAIMER = 'Due to number of items and size restrictions on your display, '
    85109    + 'all items may not be visible.';
    86   TXT_COPY_DISCLAIMER = 'Note: Graphs display limited data, view details for more information.';
     110  TXT_INFO = 'Select multiple items using Ctrl-click or Shift-click.';
     111  TXT_NONNUMERICS = 'free-text values:';
     112  TXT_NOGRAPHING = 'CPRS is not configured for graphing.';
     113  TXT_PRINTING = 'Graphs are being printed';
    87114  TXT_REPORT_DISCLAIMER = 'Note: Listing displays limited data, view details for more information.';
    88   TXT_INFO = 'Select multiple items using Ctrl-click or Shift-click.';
    89   TXT_PRINTING = 'Graphs are being printed';
     115  TXT_VIEW_DEFINITION = 'View Definition';
    90116  TXT_WARNING = 'Warning: You are using graph settings with a Special Function.';
    91117  TXT_WARNING_SAME_TIME = 'Warning: Items have multiple occurrences at the same time.';
    92118  TXT_ZOOMED = 'Zoomed Date Range: ';
     119
     120  // views
     121  VIEW_CURRENT = '-999';
     122  VIEW_LABS = '-3';
     123  VIEW_PERSONAL = '-1';
     124  VIEW_PUBLIC = '-2';
     125  VIEW_TEMPORARY = '-888';
    93126
    94127  COLOR_INFO = clCream;
     
    111144                + #13 + 'Click a type and then select individual items'
    112145                + #13 + 'Double-click a type to select all items of this type  - <any>';
     146  HINT_OTHER_SOURCE   = 'These are Views and Lab Groups of other users.'
     147                + #13 + 'Use these for defining items to be displayed/saved as Views.'
     148                + #13 + 'Note: Select a Person to display their views and lab groups.';
     149  HINT_OTHERS         = 'Select other users to see their views or lab groups.'
     150                + #13 + 'Use these for defining items to be displayed/saved as Views.';
     151  HINT_BTN_DEFINITION = 'Click to display the definitions of all selections.'
     152                + #13 + 'Definitions show the items that make up a view or lab group.'
     153                + #13 + 'This includes views and lab groups of another user you have selected.';
    113154  HINT_SELECTION      = 'Select specific items and move them to the right.'
    114155                + #13 + 'Use the arrow buttons or double click.'
     
    133174                + #13 + 'You should save any view definitions before closing this form.';
    134175
    135 
    136 
    137176  // hint messages for settings
    138177  SHINT_SOURCES     = 'This is a list of all the types of data that can be graphed.'
     
    154193  SHINT_MAX_ITEMS   = 'Enter the maximum number of items that can be graphed at one time.'
    155194              + #13 + 'This setting prevents you from mistakenly selecting a large number of items.';
     195  SHINT_OUTPT       = 'Select the default date range when initially opening graphs.'
     196              + #13 + 'This setting is used if the patient is currently an outpatient.';
     197  SHINT_INPT        = 'Select the default date range when initially opening graphs.'
     198              + #13 + 'This setting is used if the patient is currently an inpatient.';
    156199  SHINT_FUNCTIONS   = 'These functions are restricted to editors for evaluation.';
    157200  SHINT_BTN_SHOW    = 'Click these buttons to display default settings.';
     
    171214
    172215function GraphSettingsInit(settings: string): TGraphSetting;
    173 
    174216
    175217implementation
     
    207249    FMStopDate := FM_STOP_DATE;
    208250    if SortByType then SortColumn := 1 else SortColumn := 0;
     251    DateRangeOutpatient := Piece(settings, '|', 9);
     252    if DateRangeOutpatient = '' then DateRangeOutpatient := '8';
     253    DateRangeInpatient := Piece(settings, '|', 10);
     254    if DateRangeInpatient = '' then DateRangeInpatient := '8';
     255    Turbo := Pos(SETTING_TURBO, OptionSettings) > 0;
     256    if Piece(settings, '|', 6) = '0' then Turbo := false;  // a 0 in 6th piece shuts down turbo for everyone   
    209257  end;
    210258  Result := FGraphSetting;
Note: See TracChangeset for help on using the changeset viewer.