Changeset 830 for cprs/trunk/CPRS-Chart/fCover.pas
- Timestamp:
- Jul 7, 2010, 4:51:54 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cprs/trunk/CPRS-Chart/fCover.pas
r456 r830 5 5 uses 6 6 Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, 7 fPage, StdCtrls, ORCtrls, ExtCtrls, rOrders, ORClasses, Menus, rCover, fAllgyBox; {REV} 7 fPage, StdCtrls, ORCtrls, ExtCtrls, rOrders, ORClasses, Menus, rCover, fAllgyBox, 8 VA508AccessibilityManager, fBase508Form; {REV} 8 9 9 10 type … … 121 122 122 123 uses ORNet, ORFn, fRptBox, fVitals, fvit, fFrame, uCore, TRPCB, uConst, uInit, 123 uReminders, rReminders, fARTAllgy, uOrPtf, fPatientFlagMulti, rODAllergy, rMisc; 124 uReminders, rReminders, fARTAllgy, uOrPtf, fPatientFlagMulti, rODAllergy, rMisc, 125 VA508AccessibilityRouter; 124 126 125 127 const … … 280 282 FCoverList.CVlst(i).Caption := aName; 281 283 if Length(aTabPos) > 0 then FCoverList.CVlst(i).TabPositions := aTabPos; 282 if Length(aTextColor) > 0 then FCoverList.CVlst(i).Font.Color := StringToColor(aTextColor); 284 if Length(aTextColor) > 0 then FCoverList.CVlst(i).Font.Color := 285 Get508CompliantColor(StringToColor(aTextColor)); 283 286 if Length(aPiece) > 0 then FCoverList.CVlst(i).Pieces := aPiece; 284 287 FCoverList.CVlst(i).Tag := StrToInt(aID); … … 442 445 if ItemID <> '' then 443 446 begin 444 frmFrame.VitalsDLLActive := True;447 // frmFrame.DLLActive := True; 445 448 SelectVitals(Piece(DisplayText[ItemIndex],Char(9),1)); //Char(9) = Tab Character 446 frmFrame.VitalsDLLActive := False;449 // frmFrame.DLLActive := False; 447 450 ClearPtData; 448 451 DisplayPage; … … 517 520 ReminderSL.Add(RemUnchanged); 518 521 ListAllBackGround(Done, ProbSL, PostSL, MedsSL, ReminderSL, LabsSL, VitSL, VisitSL, uIPAddress, frmFrame.Handle); 519 if (iProb > -1) and (ProbSL.Count > 0) then (Components[iProb] as TORListBox).Items.Assign(ProbSL);520 if (iPost > -1) and (PostSL.Count > 0) then (Components[iPost] as TORListBox).Items.Assign(PostSL);521 if (iMeds > -1) and (MedsSL.Count > 0) then (Components[iMeds] as TORListBox).Items.Assign(MedsSL);522 if (iLabs > -1) and (LabsSL.Count > 0) then (Components[iLabs] as TORListBox).Items.Assign(LabsSL);523 if (iVit > -1) and (VitSL.Count > 0) then (Components[iVit] as TORListBox).Items.Assign(VitSL);524 if (iVisit > -1) and (VisitSL.Count > 0) then (Components[iVisit] as TORListBox).Items.Assign(VisitSL);522 if (iProb > -1) and (ProbSL.Count > 0) then FastAssign(ProbSL, (Components[iProb] as TORListBox).Items); 523 if (iPost > -1) and (PostSL.Count > 0) then FastAssign(PostSL, (Components[iPost] as TORListBox).Items); 524 if (iMeds > -1) and (MedsSL.Count > 0) then FastAssign(MedsSL, (Components[iMeds] as TORListBox).Items); 525 if (iLabs > -1) and (LabsSL.Count > 0) then FastAssign(LabsSL, (Components[iLabs] as TORListBox).Items); 526 if (iVit > -1) and (VitSL.Count > 0) then FastAssign(VitSL, (Components[iVit] as TORListBox).Items); 527 if (iVisit > -1) and (VisitSL.Count > 0) then FastAssign(VisitSL, (Components[iVisit] as TORListBox).Items); 525 528 // since this RPC is connected to a timer, clear the results each time to make sure that 526 529 // the results aren't passed to another RPC in the case that there is an error … … 546 549 begin 547 550 ListAllBackGround(Done, ProbSL, PostSL, MedsSL, RemSL, LabsSL, VitSL, VisitSL, uIPAddress, frmFrame.Handle); 548 if (iProb > -1) and (ProbSL.Count > 0) then (Components[iProb] as TORListBox).Items.Assign(ProbSL);549 if (iPost > -1) and (PostSL.Count > 0) then (Components[iPost] as TORListBox).Items.Assign(PostSL);550 if (iMeds > -1) and (MedsSL.Count > 0) then (Components[iMeds] as TORListBox).Items.Assign(MedsSL);551 if (iRem > -1) and (RemSL.Count > 0) then (Components[iRem] as TORListBox).Items.Assign(RemSL);552 if (iLabs > -1) and (LabsSL.Count > 0) then (Components[iLabs] as TORListBox).Items.Assign(LabsSL);553 if (iVit > -1) and (VitSL.Count > 0) then (Components[iVit] as TORListBox).Items.Assign(VitSL);554 if (iVisit > -1) and (VisitSL.Count > 0) then (Components[iVisit] as TORListBox).Items.Assign(VisitSL);551 if (iProb > -1) and (ProbSL.Count > 0) then FastAssign(ProbSL, (Components[iProb] as TORListBox).Items); 552 if (iPost > -1) and (PostSL.Count > 0) then FastAssign(PostSL, (Components[iPost] as TORListBox).Items); 553 if (iMeds > -1) and (MedsSL.Count > 0) then FastAssign(MedsSL, (Components[iMeds] as TORListBox).Items); 554 if (iRem > -1) and (RemSL.Count > 0) then FastAssign(RemSL, (Components[iRem] as TORListBox).Items); 555 if (iLabs > -1) and (LabsSL.Count > 0) then FastAssign(LabsSL, (Components[iLabs] as TORListBox).Items); 556 if (iVit > -1) and (VitSL.Count > 0) then FastAssign(VitSL, (Components[iVit] as TORListBox).Items); 557 if (iVisit > -1) and (VisitSL.Count > 0) then FastAssign(VisitSL, (Components[iVisit] as TORListBox).Items); 555 558 // since this RPC is connected to a timer, clear the results each time to make sure that 556 559 // the results aren't passed to another RPC in the case that there is an error … … 690 693 FCoverList.Add(pnl_7, lbl_7, lst_7); 691 694 FCoverList.Add(pnl_8, lbl_8, lst_8); 692 if ColorToRGB(clWindowText) <> ColorToRGB(clBlack) then693 lst_3.Font.Color := clWindowText;694 695 end; 695 696 … … 844 845 // Assign properties to components 845 846 if Length(aTabPos) > 0 then (popMenuAllergies.PopupComponent as TORListBox).TabPositions := aTabPos; 846 if Length(aTextColor) > 0 then (popMenuAllergies.PopupComponent as TORListBox).Font.Color := StringToColor(aTextColor); 847 if Length(aTextColor) > 0 then (popMenuAllergies.PopupComponent as TORListBox).Font.Color := 848 Get508CompliantColor(StringToColor(aTextColor)); 847 849 if Length(aPiece) > 0 then (popMenuAllergies.PopupComponent as TORListBox).Pieces := aPiece; 848 850 (popMenuAllergies.PopupComponent as TORListBox).Tag := StrToInt(aID); … … 869 871 pnlFlag.Visible := HasFlag; 870 872 sptFlag.Visible := HasFlag; 871 lstFlag.Items.Assign(FlagList);873 FastAssign(FlagList, lstFlag.Items); 872 874 end; 873 875 … … 876 878 if lstFlag.ItemIndex >= 0 then 877 879 ShowFlags(lstFlag.ItemID); 880 lstFlag.ItemIndex := -1; 878 881 end; 879 882 … … 893 896 // PtIsVAA: boolean; 894 897 // PtIsMHV: boolean; 895 896 898 begin 897 899 //VAA & MHV … … 904 906 tCallV(VAAFlag, 'ORVAA VAA', [VAA_DFN]); 905 907 tCallV(MHVFlag, 'ORWMHV MHV', [VAA_DFN]); 906 907 908 if VAAFlag[0] <> '0' then 908 909 begin … … 911 912 with frmFrame do 912 913 begin 913 laVAA2.Caption := Piece(VAAFlag[0], '^', 0);914 laVAA2.Caption := Piece(VAAFlag[0], '^', 1); 914 915 laVAA2.Hint := Piece(VAAFlag[0], '^', 2); //CQ7626 was piece '6' 915 916 end; … … 983 984 paVAA.Height := pnlPrimaryCare.Height-2; 984 985 laVAA2.Height := paVAA.ClientHeight - 1; 986 laVAA2.Width := paVAA.Width - 1; 985 987 laVAA2.Visible := true; 986 988 laMHV.Visible := false; … … 993 995 994 996 initialization 997 SpecifyFormIsNotADialog(TfrmCover); 995 998 996 999 finalization
Note:
See TracChangeset
for help on using the changeset viewer.