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

    r456 r829  
    55uses
    66  Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
    7   fAutoSz, StdCtrls, ORFn, ORCtrls, ExtCtrls, UBACore, UBAGlobals;
     7  fAutoSz, StdCtrls, ORFn, ORCtrls, ExtCtrls, UBACore, UBAGlobals,
     8  VA508AccessibilityManager;
    89
    910type
     
    4243
    4344uses Hash, rCore, rOrders, uConst, fSignItem, fOrdersPrint, uCore, uOrders, fRptBox,
    44   fFrame, fClinicWardMeds;
     45  fFrame, fClinicWardMeds, rODLab;
    4546
    4647const
     
    6061  OrderText: string;
    6162  AnOrder: TOrder;
     63  AList: TStringList;
    6264
    6365  function FindOrderText(const AnID: string): string;
     
    131133          begin
    132134            OrderText := FindOrderText(Piece(SignList[i], U, 1));
    133             InfoBox(TX_SAVERR1 + Piece(SignList[i], U, 4) + TX_SAVERR2 + OrderText, TC_SAVERR, MB_OK);
     135                if Piece(SignList[i],U,4) = 'Invalid Pharmacy order number' then
     136                InfoBox(TX_SAVERR1 + Piece(SignList[i], U, 4) + TX_SAVERR2 + OrderText + CRLF + CRLF +
     137                        'The changes to this order have not been saved.  You must contact Pharmacy to complete any action on this order.',
     138                        TC_SAVERR, MB_OK)
     139                else
     140                InfoBox(TX_SAVERR1 + Piece(SignList[i], U, 4) + TX_SAVERR2 + OrderText,
     141                        TC_SAVERR, MB_OK);
    134142          end;
    135143          if Pos('R', Piece(SignList[i], U, 2)) > 0 then
     
    137145        end;
    138146        StatusText('');
     147          //  CQ 10226, PSI-05-048 - advise of auto-change from LC to WC on lab orders
     148        AList := TStringList.Create;
     149        try
     150          CheckForChangeFromLCtoWCOnRelease(AList, Encounter.Location, SignList);
     151          if AList.Text <> '' then
     152            ReportBox(AList, 'Changed Orders', TRUE);
     153        finally
     154          AList.Free;
     155        end;
    139156        PrintOrdersOnSignRelease(SignList, frmReleaseOrders.FNature, PrintLoc);
    140157//        SetupOrdersPrint(SignList, DeviceInfo, frmReleaseOrders.FNature, False, PrintIt); //*KCM*
     
    244261    ARect.Left := ARect.Left + 2;
    245262    Canvas.FillRect(ARect);
    246     Canvas.Pen.Color := clSilver;
     263    Canvas.Pen.Color := Get508CompliantColor(clSilver);
    247264    SaveColor := Canvas.Brush.Color;
    248265    Canvas.MoveTo(ARect.Left, ARect.Bottom - 1);
     
    271288    x := FilteredString(Items[Index]);
    272289    AHeight := WrappedTextHeightByFont(Canvas, Font, x, ARect);
    273     //if AHeight > 255 then AHeight := 255;
    274290    if AHeight <  13 then AHeight := 15;
    275291  end;
Note: See TracChangeset for help on using the changeset viewer.