Changeset 829 for cprs/trunk/CPRS-Chart/Orders/fODReleaseEvent.pas
- Timestamp:
- Jul 7, 2010, 4:31:10 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cprs/trunk/CPRS-Chart/Orders/fODReleaseEvent.pas
r456 r829 5 5 uses 6 6 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; 8 9 9 10 type 10 TfrmOrdersReleaseEvent = class(T Form)11 TfrmOrdersReleaseEvent = class(TfrmBase508Form) 11 12 pnlMiddle: TPanel; 12 13 pnlBottom: TPanel; … … 44 45 {$R *.DFM} 45 46 46 uses rCore, rOrders, uConst, fOrdersPrint, uCore, uOrders, fOrders; 47 uses rCore, rOrders, uConst, fOrdersPrint, uCore, uOrders, fOrders, rODLab, fRptBox, 48 VAUtils; 49 47 50 const 48 51 TX_SAVERR1 = 'The error, '; … … 60 63 OrderText, LastCheckedPtEvt, SpeCap: string; 61 64 frmOrdersReleaseEvent: TfrmOrdersReleaseEvent; 65 AList: TStringList; 62 66 63 67 function FindOrderText(const AnID: string): string; … … 119 123 begin 120 124 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); 122 132 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; 123 142 end; 124 143 PrintOrdersOnSignRelease(OrdersLst, NO_PROVIDER); … … 194 213 if not beSelected then 195 214 begin 196 ShowM essage('You have to select at least one order!');215 ShowMsg('You have to select at least one order!'); 197 216 Exit; 198 217 end; … … 238 257 begin 239 258 Canvas.FillRect(ARect); 240 Canvas.Pen.Color := clSilver;259 Canvas.Pen.Color := Get508CompliantColor(clSilver); 241 260 Canvas.MoveTo(0, ARect.Bottom - 1); 242 261 Canvas.LineTo(ARect.Right, ARect.Bottom - 1);
Note:
See TracChangeset
for help on using the changeset viewer.