- Timestamp:
- May 8, 2015, 7:52:55 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cprs/branches/HealthSevak-CPRS/CPRS-Chart/Orders/fOrders.pas
r829 r1693 163 163 Section: THeaderSection); 164 164 procedure sptHorzMoved(Sender: TObject); 165 procedure sptVertMoved(Sender: TObject); 165 166 private 166 167 { Private declarations } … … 225 226 function AllowContextChange(var WhyNot: string): Boolean; override; 226 227 function PlaceOrderForDefaultDialog(ADlgInfo: string; IsDefaultDialog: boolean; AEvent: TOrderDelayEvent): boolean; 227 function PtEvtCompleted(APtEvtID: integer; APtEvtName: string; FromMeds: boolean = False ): boolean;228 function PtEvtCompleted(APtEvtID: integer; APtEvtName: string; FromMeds: boolean = False; Signing: boolean = False): boolean; 228 229 procedure RefreshToFirstItem; 229 230 procedure ChangesUpdate(APtEvtID: string); … … 1176 1177 FCompress := False; 1177 1178 end; 1178 1179 //CQ 18660 Orders for events should be modal. Orders for non-event should not be modal 1180 if AnOrderView.EventDelay.EventIFN = 0 then NeedShowModal := False 1181 else NeedShowModal := True; 1179 1182 if (FCurrentView <> nil) and (AnOrderView.EventDelay.EventIFN <> FCurrentView.EventDelay.EventIFN) and (FCurrentView.EventDelay.EventIFN > 0 ) then 1180 1183 begin … … 1398 1401 begin 1399 1402 result := MixedCase(ProviderName); 1400 result := Piece(result, ',', 1) + ',' + Copy(Piece(result, ',', 2), 1, 1); 1403 // result := Piece(result, ',', 1) + ',' + Copy(Piece(result, ',', 2), 1, 1); 1404 // CQ#15915 1405 result := Piece(result, ',', 1) + ',' + Piece(result, ',', 2); 1401 1406 end; 1402 1407 5: result := VerNurse; … … 2350 2355 ALocation: Integer; 2351 2356 AName: string; 2352 begin 2353 inherited; 2357 Delayed: boolean; 2358 begin 2359 inherited; 2360 Delayed := False; 2354 2361 if NoneSelected(TX_NOSEL_SIGN) then Exit; 2355 2362 if not AuthorizedUser then Exit; … … 2375 2382 if not LockedForOrdering then Exit; 2376 2383 2377 if (FCurrentView.EventDelay.PtEventIFN>0) and (PtEvtCompleted(FCurrentView.EventDelay.PtEventIFN, FCurrentView.EventDelay.EventName)) then 2378 Exit; 2384 //CQ 18392 and CQ 18121 Made changes to this code, PtEVTComplete function and the finally statement at the end to support the fix for these CQs 2385 if (FCurrentView.EventDelay.PtEventIFN>0) then 2386 Delayed := (PtEvtCompleted(FCurrentView.EventDelay.PtEventIFN, FCurrentView.EventDelay.EventName, false, true)); 2387 //if (FCurrentView.EventDelay.PtEventIFN>0) and (PtEvtCompleted(FCurrentView.EventDelay.PtEventIFN, FCurrentView.EventDelay.EventName)) then 2388 // Exit; 2379 2389 2380 2390 SelectedList := TList.Create; … … 2413 2423 SelectedList.Free; 2414 2424 UnlockIfAble; 2425 //CQ #17491: Added UpdatePtInfoOnRefresh here to allow for the updating of the patient 2426 //status indicator in the header bar if the patient becomes admitted/discharged. 2427 frmFrame.UpdatePtInfoOnRefresh; 2428 if Delayed = True then 2429 begin 2430 InitOrderSheetsForEvtDelay; 2431 lstSheets.ItemIndex := 0; 2432 lstSheetsClick(self); 2433 RefreshOrderList(True); 2434 end; 2415 2435 end; 2416 2436 end; … … 3243 3263 end; 3244 3264 3245 function TfrmOrders.PtEvtCompleted(APtEvtID: integer; APtEvtName: string; FromMeds: boolean ): boolean;3265 function TfrmOrders.PtEvtCompleted(APtEvtID: integer; APtEvtName: string; FromMeds: boolean; Signing: boolean): boolean; 3246 3266 begin 3247 3267 Result := False; … … 3253 3273 InfoBox('The event "Delayed ' + APtEvtName + '" ' + TX_CMPTEVT, 'Warning', MB_OK or MB_ICONWARNING); 3254 3274 GroupChangesUpdate('Delayed ' + APtEvtName); 3275 if signing = true then 3276 begin 3277 Result := True; 3278 exit; 3279 end; 3255 3280 InitOrderSheetsForEvtDelay; 3256 3281 lstSheets.ItemIndex := 0; … … 3338 3363 hdrOrders.Sections[i].Width := origWidths[i]; 3339 3364 lstOrders.Invalidate; 3365 RefreshOrderList(false); 3340 3366 end; 3341 3367 end; … … 3474 3500 end; 3475 3501 3502 procedure TfrmOrders.sptVertMoved(Sender: TObject); 3503 begin 3504 inherited; 3505 if self.sptVert.Top < self.lstSheets.Constraints.MinHeight then 3506 self.sptVert.Top := self.lstSheets.Constraints.MinHeight + 1; 3507 3508 end; 3509 3476 3510 initialization 3477 3511 SpecifyFormIsNotADialog(TfrmOrders);
Note:
See TracChangeset
for help on using the changeset viewer.