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/fCover.pas

    r456 r830  
    55uses
    66  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}
    89
    910type
     
    121122
    122123uses 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;
    124126
    125127const
     
    280282          FCoverList.CVlst(i).Caption := aName;
    281283          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));
    283286          if Length(aPiece) > 0 then FCoverList.CVlst(i).Pieces := aPiece;
    284287          FCoverList.CVlst(i).Tag := StrToInt(aID);
     
    442445             if ItemID <> '' then
    443446               begin
    444                  frmFrame.VitalsDLLActive := True;
     447//                 frmFrame.DLLActive := True;
    445448                 SelectVitals(Piece(DisplayText[ItemIndex],Char(9),1)); //Char(9) = Tab Character
    446                  frmFrame.VitalsDLLActive := False;
     449//                 frmFrame.DLLActive := False;
    447450                 ClearPtData;
    448451                 DisplayPage;
     
    517520      ReminderSL.Add(RemUnchanged);
    518521      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);
    525528      // since this RPC is connected to a timer, clear the results each time to make sure that
    526529      // the results aren't passed to another RPC in the case that there is an error
     
    546549  begin
    547550    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);
    555558    // since this RPC is connected to a timer, clear the results each time to make sure that
    556559    // the results aren't passed to another RPC in the case that there is an error
     
    690693  FCoverList.Add(pnl_7, lbl_7, lst_7);
    691694  FCoverList.Add(pnl_8, lbl_8, lst_8);
    692   if ColorToRGB(clWindowText) <> ColorToRGB(clBlack) then
    693     lst_3.Font.Color := clWindowText;
    694695end;
    695696
     
    844845  // Assign properties to components
    845846  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));
    847849  if Length(aPiece) > 0 then (popMenuAllergies.PopupComponent as TORListBox).Pieces := aPiece;
    848850  (popMenuAllergies.PopupComponent as TORListBox).Tag := StrToInt(aID);
     
    869871  pnlFlag.Visible := HasFlag;
    870872  sptFlag.Visible := HasFlag;
    871   lstFlag.Items.Assign(FlagList);
     873  FastAssign(FlagList, lstFlag.Items);
    872874end;
    873875
     
    876878  if lstFlag.ItemIndex >= 0 then
    877879    ShowFlags(lstFlag.ItemID);
     880  lstFlag.ItemIndex := -1;
    878881end;
    879882
     
    893896//  PtIsVAA: boolean;
    894897//  PtIsMHV: boolean;
    895 
    896898begin
    897899//VAA & MHV
     
    904906  tCallV(VAAFlag, 'ORVAA VAA', [VAA_DFN]);
    905907  tCallV(MHVFlag, 'ORWMHV MHV', [VAA_DFN]);
    906 
    907908  if VAAFlag[0] <> '0' then
    908909     begin
     
    911912     with frmFrame do
    912913        begin
    913         laVAA2.Caption := Piece(VAAFlag[0], '^', 0);
     914        laVAA2.Caption := Piece(VAAFlag[0], '^', 1);
    914915        laVAA2.Hint := Piece(VAAFlag[0], '^', 2); //CQ7626 was piece '6'
    915916        end;
     
    983984           paVAA.Height := pnlPrimaryCare.Height-2;
    984985           laVAA2.Height := paVAA.ClientHeight - 1;
     986           laVAA2.Width := paVAA.Width - 1;
    985987           laVAA2.Visible := true;
    986988           laMHV.Visible := false;
     
    993995
    994996initialization
     997  SpecifyFormIsNotADialog(TfrmCover);
    995998
    996999finalization
Note: See TracChangeset for help on using the changeset viewer.