- Timestamp:
- Jul 6, 2008, 8:20:14 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cprs/branches/foia-cprs/CPRS-Chart/Consults/fODConsult.pas
r459 r460 85 85 procedure btnDiagnosisClick(Sender: TObject); 86 86 procedure cmdQuitClick(Sender: TObject); 87 procedure FormClose(Sender: TObject; var Action: TCloseAction); 87 88 88 89 private … … 97 98 procedure SetupReasonForRequest(OrderAction: integer); 98 99 procedure GetProvDxandValidateCode(AResponses: TResponses); 99 function 100 function ShowPrerequisites: boolean; 100 101 procedure DoSetFontSize(FontSize: integer); 101 102 procedure SetUpQuickOrderDX; … … 106 107 procedure Validate(var AnErrMsg: string); override; 107 108 function DefaultReasonForRequest(Service: string; Resolve: Boolean): TStrings; 109 108 110 public 109 111 procedure SetupDialog(OrderAction: Integer; const ID: string); override; … … 123 125 uses 124 126 rODBase, rConsults, uCore, uConsults, rCore, fConsults, fPCELex, rPCE, fPreReq, 125 ORClasses, clipbrd, uTemplates ;127 ORClasses, clipbrd, uTemplates, fFrame, uODBase; 126 128 127 129 var … … 131 133 BADxUpdated: boolean; 132 134 quickCode: string; 133 135 134 136 135 137 … … 153 155 procedure TfrmODCslt.FormCreate(Sender: TObject); 154 156 begin 157 frmFrame.pnlVisit.Enabled := false; 155 158 AutoSizeDisabled := True; 156 159 inherited; … … 223 226 cboService.Enabled := True; 224 227 cboService.Font.Color := clWindowText; 228 cboService.Height := 25 + (7 * cboService.ItemHeight); 225 229 btnServiceTree.Enabled := True; 230 pnlServiceTreeButton.Enabled := True; 226 231 ActiveControl := cboService; 227 232 SetProvDiagPromptingMode; … … 271 276 cboService.Font.Color := clGrayText; 272 277 btnServiceTree.Enabled := False; 278 pnlServiceTreeButton.Enabled := False; 273 279 if (OrderAction in [ORDER_COPY, ORDER_QUICK]) and (not ShowPrerequisites) then 274 280 begin … … 286 292 begin 287 293 if QuickList.Count > 0 then BuildQuickTree(QuickList, '0', nil) ; 288 //SvcList.Assign(LoadServiceList(CN_SVC_LIST_ORD)) ;289 294 SvcList.Assign(LoadServiceListWithSynonyms(CN_SVC_LIST_ORD)); {RV} 290 295 AList.Assign(SvcList); … … 512 517 cboService.Font.Color := clGrayText; 513 518 btnServiceTree.Enabled := False; 519 pnlServiceTreeButton.Enabled := False; 514 520 Changing := False; 515 521 end; … … 645 651 begin 646 652 inherited; 647 648 //if NOT BILLING_AWARE then 649 if treService.Selected <> nil then 650 LastNode := treService.Selected.AbsoluteIndex; 653 if treService.Selected <> nil then 654 LastNode := treService.Selected.AbsoluteIndex; 651 655 652 656 if BILLING_AWARE and CIDCOkToSave then … … 657 661 begin 658 662 uBACore.CompleteConsultOrderRec(uBAGlobals.BAOrderID,UBAGlobals.BAConsultDxList); 659 // if ProvDx.Reqd = 'R' then UBAGlobals.BAConsultOrdersRequireDx.Add(uBAGlobals.BAOrderID); //allow special handling of non cidc consults that require dx .660 663 uBAGlobals.BAConsultDxList.Clear; 661 664 end; … … 743 746 Font.Color := clGrayText; 744 747 btnServiceTree.Enabled := False; 748 pnlServiceTreeButton.Enabled := False; 745 749 Changing := False; 746 750 with Responses do if QuickOrder > 0 then … … 945 949 with ProvDx do if (Reqd = '') or (PromptMode = '') then Exit; 946 950 if ProvDx.Reqd = 'R' then 947 lblProvDiag.Caption := TX_PROVDX_REQD 951 begin 952 lblProvDiag.Caption := TX_PROVDX_REQD; 953 if (BILLING_AWARE) and (ProvDx.PromptMode[1] = '') then btnDiagnosis.Enabled := True; 954 end 948 955 else 949 956 lblProvDiag.Caption := TX_PROVDX_OPT; … … 1066 1073 Result := False; 1067 1074 AbortOrder := True; 1068 //cmdQuitClick(Self); 1069 end 1075 end 1070 1076 else Result := True; 1071 1077 end; … … 1076 1082 end; 1077 1083 1078 ////////// NOTE THIS FUNCTION IS NO LONGER ASSIGNED TO OnExit EVENT1079 ///////// Calling this with enter making a selection had serious errors1080 ///////// No ill effect can be seen for not calling it.1081 1084 procedure TfrmODCslt.cboServiceExit(Sender: TObject); 1082 1085 begin … … 1086 1089 if cboService.ItemID = FLastServiceID then Exit; 1087 1090 cboServiceSelect(cboService); 1088 cboService.SetFocus; 1091 // CQ #7490, following line commented out v26.24 (RV) 1092 // CQ #9610 and 10074 - uncommented and "if" added v26.54 (RV) 1093 if cboService.Enabled then cboService.SetFocus; 1089 1094 PostMessage(Handle, WM_NEXTDLGCTL, 0, 0); 1090 1095 end; … … 1141 1146 TmpSL: TStringList; 1142 1147 DocInfo: string; 1143 1144 begin 1148 x: string; 1149 HasObjects: boolean; 1150 begin 1151 Resolve := FALSE ; // override value passed in - resolve on client - PSI-05-093 1145 1152 DocInfo := ''; 1146 1153 TmpSL := TStringList.Create; … … 1148 1155 Result := GetDefaultReasonForRequest(Service + CSLT_PTR, Resolve); 1149 1156 TmpSL.Assign(Result); 1157 x := TmpSL.Text; 1158 ExpandOrderObjects(x, HasObjects); 1159 TmpSL.Text := x; 1160 Responses.OrderContainsObjects := HasObjects; 1150 1161 ExecuteTemplateOrBoilerPlate(TmpSL, cboService.ItemIEN , ltConsult, nil, 'Reason for Request: ' + cboService.DisplayText[cboService.ItemIndex], DocInfo); 1162 if TmpSL.Text <> x then Responses.OrderContainsObjects := False; 1151 1163 Result.Assign(TmpSL); 1152 1164 finally … … 1284 1296 //Except when Enter or Space is pressed. VK_LBUTTON activates OnClick in TORComboBoxes 1285 1297 FcboServiceKeyDownStopClick := false; 1286 if (Key <> VK_RETURN) and (Key <> VK_SPACE) and (Key <> VK_LBUTTON) then1298 if (Key <> VK_RETURN) {and (Key <> VK_SPACE)} and (Key <> VK_LBUTTON) then //comment on this line is fix for CQ6789 1287 1299 FcboServiceKeyDownStopClick := True 1288 1300 else … … 1333 1345 end; 1334 1346 end; 1347 1335 1348 ProvDx.CodeInactive := False; 1336 1349 end; … … 1387 1400 end; 1388 1401 1402 procedure TfrmODCslt.FormClose(Sender: TObject; var Action: TCloseAction); 1403 begin 1404 inherited; 1405 frmFrame.pnlVisit.Enabled := true; 1406 end; 1407 1389 1408 end. 1390 1409
Note:
See TracChangeset
for help on using the changeset viewer.