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

    r456 r829  
    55uses
    66  Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
    7   StdCtrls, ExtCtrls, ORFn, CheckLst, ORCtrls, fAutoSz;
     7  StdCtrls, ExtCtrls, ORFn, CheckLst, ORCtrls, fAutoSz, fBase508Form,
     8  VA508AccessibilityManager;
    89
    910type
    10   TfrmOrdersReleaseEvent = class(TForm)
     11  TfrmOrdersReleaseEvent = class(TfrmBase508Form)
    1112    pnlMiddle: TPanel;
    1213    pnlBottom: TPanel;
     
    4445{$R *.DFM}
    4546
    46 uses rCore, rOrders, uConst, fOrdersPrint, uCore, uOrders, fOrders;
     47uses rCore, rOrders, uConst, fOrdersPrint, uCore, uOrders, fOrders, rODLab, fRptBox,
     48  VAUtils;
     49
    4750const
    4851  TX_SAVERR1 = 'The error, ';
     
    6063  OrderText, LastCheckedPtEvt, SpeCap: string;
    6164  frmOrdersReleaseEvent: TfrmOrdersReleaseEvent;
     65  AList: TStringList;
    6266
    6367  function FindOrderText(const AnID: string): string;
     
    119123        begin
    120124          OrderText := FindOrderText(Piece(OrdersLst[i], U, 1));
    121           InfoBox(TX_SAVERR1 + Piece(OrdersLst[i], U, 4) + TX_SAVERR2 + OrderText,TC_SAVERR, MB_OK);
     125          if Piece(OrdersLst[i],U,4) = 'Invalid Pharmacy order number' then
     126          InfoBox(TX_SAVERR1 + Piece(OrdersLst[i], U, 4) + TX_SAVERR2 + OrderText + CRLF + CRLF +
     127                  'The changes to this order have not been saved.  You must contact Pharmacy to complete any action on this order.',
     128                  TC_SAVERR, MB_OK)
     129          else
     130          InfoBox(TX_SAVERR1 + Piece(OrdersLst[i], U, 4) + TX_SAVERR2 + OrderText,
     131                  TC_SAVERR, MB_OK);
    122132        end;
     133      end;
     134      //  CQ 10226, PSI-05-048 - advise of auto-change from LC to WC on lab orders
     135      AList := TStringList.Create;
     136      try
     137        CheckForChangeFromLCtoWCOnRelease(AList, Encounter.Location, OrdersLst);
     138        if AList.Text <> '' then
     139          ReportBox(AList, 'Changed Orders', TRUE);
     140      finally
     141        AList.Free;
    123142      end;
    124143      PrintOrdersOnSignRelease(OrdersLst, NO_PROVIDER);
     
    194213  if not beSelected then
    195214  begin
    196     ShowMessage('You have to select at least one order!');
     215    ShowMsg('You have to select at least one order!');
    197216    Exit;
    198217  end;
     
    238257  begin
    239258    Canvas.FillRect(ARect);
    240     Canvas.Pen.Color := clSilver;
     259    Canvas.Pen.Color := Get508CompliantColor(clSilver);
    241260    Canvas.MoveTo(0, ARect.Bottom - 1);
    242261    Canvas.LineTo(ARect.Right, ARect.Bottom - 1);
Note: See TracChangeset for help on using the changeset viewer.