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

Upgrade to version 27

File:
1 edited

Legend:

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

    r456 r829  
    55uses
    66  Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
    7   fAutoSz, StdCtrls, ORFn, ORCtrls, ExtCtrls;
     7  fAutoSz, StdCtrls, ORFn, ORCtrls, ExtCtrls, VA508AccessibilityManager;
    88
    99type
     
    3434
    3535uses rCore, rOrders, uConst, fOrdersPrint, uOrders, fFrame, UCore,
    36   fClinicWardMeds;
     36  fClinicWardMeds, rODLab, fRptBox;
    3737
    3838const
     
    4747  SignList: TStringList;
    4848  OrderText: string;
     49  AList: TStringList;
    4950
    5051  function FindOrderText(const AnID: string): string;
     
    9798              begin
    9899                OrderText := FindOrderText(Piece(SignList[i], U, 1));
     100                if Piece(SignList[i],U,4) = 'Invalid Pharmacy order number' then
     101                InfoBox(TX_SAVERR1 + Piece(SignList[i], U, 4) + TX_SAVERR2 + OrderText + CRLF + CRLF +
     102                        'The changes to this order have not been saved.  You must contact Pharmacy to complete any action on this order.',
     103                        TC_SAVERR, MB_OK)
     104                else
    99105                InfoBox(TX_SAVERR1 + Piece(SignList[i], U, 4) + TX_SAVERR2 + OrderText,
    100106                        TC_SAVERR, MB_OK);
     
    102108          end;
    103109        StatusText('');
     110          //  CQ 10226, PSI-05-048 - advise of auto-change from LC to WC on lab orders
     111        AList := TStringList.Create;
     112        try
     113          CheckForChangeFromLCtoWCOnRelease(AList, Encounter.Location, SignList);
     114          if AList.Text <> '' then
     115            ReportBox(AList, 'Changed Orders', TRUE);
     116        finally
     117          AList.Free;
     118        end;
    104119        PrintOrdersOnSignRelease(SignList, NO_WRITTEN, PrintLoc);
    105120//        SetupOrdersPrint(SignList, DeviceInfo, NO_WRITTEN, False, PrintIt);  //*KCM*
     
    147162    x := FilteredString(Items[Index]);
    148163    AHeight := WrappedTextHeightByFont(Canvas, Font, x, ARect);
    149     //if AHeight > 255 then AHeight := 255;
    150164    if AHeight <  13 then AHeight := 15;
    151165  end;
     
    165179    ARect.Left := ARect.Left + 2;
    166180    Canvas.FillRect(ARect);
    167     Canvas.Pen.Color := clSilver;
     181    Canvas.Pen.Color := Get508CompliantColor(clSilver);
    168182    SaveColor := Canvas.Brush.Color;
    169183    Canvas.MoveTo(ARect.Left, ARect.Bottom - 1);
Note: See TracChangeset for help on using the changeset viewer.