Changeset 1679 for cprs/trunk/CPRS-Chart/fGraphData.pas
- Timestamp:
- May 7, 2015, 12:34:29 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cprs/trunk/CPRS-Chart/fGraphData.pas
r830 r1679 87 87 function GetATestGroup(testgroup: Integer; userx: int64): TStrings; 88 88 function GetCurrentSetting: string; 89 function GetDefaultInpatientDate: string;90 function GetDefaultOutpatientDate: string;91 89 function GetGraphProfiles(profiles, permission: string; ext: integer; userx: int64): TStrings; 92 90 function GetGraphStatus: string; … … 97 95 function GraphTurboOn: boolean; 98 96 procedure SetCurrentSetting(aString: string); 99 procedure SetDefaultInpatientDate(aString: string);100 procedure SetDefaultOutpatientDate(aString: string);101 97 procedure SetGraphStatus(aString: string); 102 98 procedure SetOldDFN(aString: string); … … 145 141 begin 146 142 CurrentSetting := ''; 147 DefaultInpatientDate := '';148 DefaultOutpatientDate := '';149 143 OldDFN := ''; 150 144 PublicSetting := ''; … … 185 179 FGraphActivity.PersonalSetting := FGraphActivity.PublicSetting; 186 180 FGraphActivity.CurrentSetting := FGraphActivity.PersonalSetting; 187 FGraphActivity.DefaultInpatientDate := Piece(FGraphActivity.PersonalSetting, '|', 10);188 FGraphActivity.DefaultOutpatientDate := Piece(FGraphActivity.PersonalSetting, '|', 9);189 181 FGraphActivity.PublicEditor := rpcPublicEdit; // use this as PublicEdit permission for user 190 182 end; … … 222 214 ClearMemos; 223 215 ClearGtsl; 216 pnlData.Hint := ''; 224 217 oldDFN := FGraphActivity.OldDFN; // cleanup any previous patient cache 225 218 FastAssign(rpcGetTypes(Patient.DFN, false), GtslTypes); … … 436 429 procedure TfrmGraphData.btnRefreshClick(Sender: TObject); 437 430 begin 431 frmGraphData.WindowState := wsMaximized; 438 432 ClearMemos; 439 433 FillMemos; … … 534 528 end; 535 529 536 function GetDefaultInpatientDate: string;537 begin538 Result := FGraphActivity.DefaultInpatientDate;539 end;540 541 function GetDefaultOutpatientDate: string;542 begin543 Result := FGraphActivity.DefaultOutpatientDate;544 end;545 546 530 function GetGraphProfiles(profiles, permission: string; ext: integer; userx: int64): TStrings; 547 531 var // temporary fix - converting definitions in GtslAllViews to rpc format … … 592 576 else 593 577 begin 578 if length(bigline) > 0 then 579 GtslScratchTemp.Add(bigline); 594 580 break; 595 581 end; … … 606 592 end; 607 593 end; 608 if length(bigline) > 0 then609 GtslScratchTemp.Add(bigline);610 594 if allviews or fulltext then 611 595 MixedCaseList(GtslScratchTemp); … … 687 671 end; 688 672 689 procedure SetDefaultInpatientDate(aString: string);690 begin691 FGraphActivity.DefaultInpatientDate := aString;692 end;693 694 procedure SetDefaultOutpatientDate(aString: string);695 begin696 FGraphActivity.DefaultOutpatientDate := aString;697 end;698 699 673 procedure SetGraphStatus(aString: string); 700 674 begin
Note:
See TracChangeset
for help on using the changeset viewer.