Changeset 830 for cprs/trunk/CPRS-Chart/uGraphs.pas
- Timestamp:
- Jul 7, 2010, 4:51:54 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cprs/trunk/CPRS-Chart/uGraphs.pas
r456 r830 10 10 public 11 11 ClearBackground: boolean; 12 DateRangeInpatient: string; 13 DateRangeOutpatient: string; 12 14 Dates: boolean; 13 15 FixedDateRange: boolean; … … 34 36 Sources: TStrings; 35 37 StayOnTop: boolean; 38 Turbo: boolean; 36 39 Values: boolean; 37 40 VerticalZoom: boolean; 38 41 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; 39 56 end; 40 57 … … 53 70 GRAPH_FLOAT = 'F'; 54 71 GRAPH_REPORT = 'R'; 72 POINT_PADDING = 0.03; // assume a point height of 3% 73 LLS_FRONT = '^____['; 74 LLS_BACK = ']___________________________________________________________________________________________________________'; 75 55 76 56 77 // settings use single character … … 68 89 SETTING_VZOOM = 'L'; 69 90 SETTING_FIXED = 'M'; 91 SETTING_TURBO = 'N'; 70 92 71 93 // keypress flags … … 82 104 83 105 // text messages 106 TXT_COMMENTS = '** comments'; 107 TXT_COPY_DISCLAIMER = 'Note: Graphs display limited data, view details for more information.'; 84 108 TXT_DISCLAIMER = 'Due to number of items and size restrictions on your display, ' 85 109 + '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'; 87 114 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'; 90 116 TXT_WARNING = 'Warning: You are using graph settings with a Special Function.'; 91 117 TXT_WARNING_SAME_TIME = 'Warning: Items have multiple occurrences at the same time.'; 92 118 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'; 93 126 94 127 COLOR_INFO = clCream; … … 111 144 + #13 + 'Click a type and then select individual items' 112 145 + #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.'; 113 154 HINT_SELECTION = 'Select specific items and move them to the right.' 114 155 + #13 + 'Use the arrow buttons or double click.' … … 133 174 + #13 + 'You should save any view definitions before closing this form.'; 134 175 135 136 137 176 // hint messages for settings 138 177 SHINT_SOURCES = 'This is a list of all the types of data that can be graphed.' … … 154 193 SHINT_MAX_ITEMS = 'Enter the maximum number of items that can be graphed at one time.' 155 194 + #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.'; 156 199 SHINT_FUNCTIONS = 'These functions are restricted to editors for evaluation.'; 157 200 SHINT_BTN_SHOW = 'Click these buttons to display default settings.'; … … 171 214 172 215 function GraphSettingsInit(settings: string): TGraphSetting; 173 174 216 175 217 implementation … … 207 249 FMStopDate := FM_STOP_DATE; 208 250 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 209 257 end; 210 258 Result := FGraphSetting;
Note:
See TracChangeset
for help on using the changeset viewer.