Procedure

TfrmOrdersPrint.SetupPrompting

Module

fOrdersPrint

Last Modified

7/15/2014 3:26:42 PM

Comments

0 - no prompts - copy is automatically generated.
             checkbox checked   and disabled,   device defaulted and button disabled
         1 - prompt for copy and ask which printer should be used.
             checkbox unchecked and enabled,    device defaulted and button enabled
         2 - prompt for copy and automatically print to the
             printer defined in the XXXXX COPY PRINT DEVICE field.
             checkbox unchecked and enabled,    device defaulted and button disabled
         * - don't print.
             checkbox unchecked and disabled,   device empty     and button disabled

Visibility

Private

Owner

TfrmOrdersPrint

Declaration

procedure SetupPrompting(CheckBox: TCheckBox; DeviceList: TORListBox; ChangeButton: TORAlignButton;
          PromptParam: char; DeviceParam: string);

Called-By Hierarchy


                                          TfrmOrdersPrint.SetupPrompting
                                         TfrmOrdersPrint.SetupControls┘ 
                                                    SetupOrdersPrint┘   
                                          PrintOrdersOnSignRelease┤     
                                    PrintOrdersOnSignReleaseMult┤ │     
                                             ExecuteSignOrders┤ │ │     
                                  TfrmOrders.mnuActSignClick┘ │ │ │     
                                         TfrmReview.cmdOKClick┘ │ │     
                                               ReviewChanges┘   │ │     
                           TfrmFrame.AllowContextChangeAll┤     │ │     
                                TfrmFrame.FormCloseQuery┤ │     │ │     
                              TfrmFrame.mnuFileNextClick┤ │     │ │     
                            TfrmFrame.mnuFileOpenClick┤ │ │     │ │     
                                TfrmFrame.UMInitiate┤ │ │ │     │ │     
                       TfrmFrame.mnuFileNextClick...┤ │ │ │     │ │     
                       TfrmFrame.mnuFileRefreshClick┤ │ │ │     │ │     
                       TfrmOrders.CheckOrderStatus┤ │ │ │ │     │ │     
                   TfrmOrders.mnuActChgEvntClick┤ │ │ │ │ │     │ │     
                      TfrmOrders.mnuActHoldClick┤ │ │ │ │ │     │ │     
                    TfrmOrders.mnuActUnholdClick┤ │ │ │ │ │     │ │     
                     TfrmOrders.mnuActRenewClick┤ │ │ │ │ │     │ │     
                    TfrmOrders.mnuActChangeClick┤ │ │ │ │ │     │ │     
                      TfrmOrders.mnuActCopyClick┘ │ │ │ │ │     │ │     
                            TfrmMeds.mnuActDCClick┤ │ │ │ │     │ │     
                           TfrmMeds.CheckMedStatus┘ │ │ │ │     │ │     
                        TfrmMeds.mnuActHoldClick┤   │ │ │ │     │ │     
                       TfrmMeds.mnuActRenewClick┤   │ │ │ │     │ │     
                      TfrmMeds.mnuActUnholdClick┤   │ │ │ │     │ │     
                      TfrmMeds.mnuActChangeClick┤   │ │ │ │     │ │     
                        TfrmMeds.mnuActCopyClick┤   │ │ │ │     │ │     
                      TfrmMeds.mnuActRefillClick┘   │ │ │ │     │ │     
                                  TfrmFrame.ViewInfo┘ │ │ │     │ │     
                               TfrmDCSumm.ViewInfo┤   │ │ │     │ │     
                             TfrmConsults.ViewInfo┤   │ │ │     │ │     
                     TfrmFrame.pnlRemindersMouseUp┤   │ │ │     │ │     
                      TfrmFrame.RemindersChanged┘ │   │ │ │     │ │     
                          TfrmFrame.FormCreate┘   │   │ │ │     │ │     
                            TfrmFrame.pnlCIRNClick┤   │ │ │     │ │     
                      TfrmFrame.pnlVistaWebClick┤ │   │ │ │     │ │     
                           TfrmFrame.FormKeyDown┘ │   │ │ │     │ │     
                         TfrmFrame.pnlPatientClick┤   │ │ │     │ │     
                           TfrmFrame.pnlVisitClick┤   │ │ │     │ │     
                     TfrmFrame.pnlPrimaryCareClick┤   │ │ │     │ │     
                       TfrmFrame.pnlRemindersClick┤   │ │ │     │ │     
                        TfrmFrame.pnlPostingsClick┤   │ │ │     │ │     
                            TfrmFrame.pnlFlagClick┤   │ │ │     │ │     
                              TfrmFrame.laMHVClick┤   │ │ │     │ │     
                             TfrmFrame.laVAA2Click┤   │ │ │     │ │     
                               TfrmOrders.ViewInfo┤   │ │ │     │ │     
                                 TfrmMeds.ViewInfo┤   │ │ │     │ │     
                              TfrmSurgery.ViewInfo┤   │ │ │     │ │     
                                TfrmNotes.ViewInfo┤   │ │ │     │ │     
                             TfrmProblems.ViewInfo┘   │ │ │     │ │     
                     TfrmFrame.mnuFileNotifRemoveClick┤ │ │     │ │     
                             TfrmFrame.NextButtonClick┘ │ │     │ │     
                           TfrmFrame.SetUpNextButton┘   │ │     │ │     
                     TfrmFrame.mnuFileOpenClick...┤     │ │     │ │     
                              TfrmFrame.FormResize┘     │ │     │ │     
                            TfrmFrame.ChangeFont┘       │ │     │ │     
                    TfrmFrame.LoadSizesForUser┤         │ │     │ │     
               TfrmFrame.LoadUserPreferences┘ │         │ │     │ │     
                      TfrmFrame.UMInitiate┘   │         │ │     │ │     
                    TfrmFrame.mnuFontSizeClick┘         │ │     │ │     
                           TfrmFrame.mnuFileOpenClick...┤ │     │ │     
                           TfrmFrame.ctxContextorPending┤ │     │ │     
                          TfrmFrame.StartCCOWContextor┘ │ │     │ │     
                                TfrmFrame.FormCreate┘   │ │     │ │     
                         TfrmFrame.ctxContextorCommitted┤ │     │ │     
                       TfrmFrame.StartCCOWContextor...┘ │ │     │ │     
                  TfrmFrame.mnuFileResumeContextGetClick┤ │     │ │     
                  TfrmFrame.mnuFileResumeContextSetClick┘ │     │ │     
                                  TfrmFrame.FormCloseQuery┤     │ │     
                              TfrmFrame.mnuFileReviewClick┤     │ │     
                                           UpdateEncounter┘     │ │     
                         TfrmFrame.mnuFileEncounterClick┤       │ │     
                                 TfrmFrame.ViewInfo...┤ │       │ │     
                    TfrmODMedIV.SetValuesFromResponses┤ │       │ │     
                             TfrmODMedIV.SetupDialog┤ │ │       │ │     
                   TfrmODMedIV.cboSolutionMouseClick┘ │ │       │ │     
                       TfrmODMedIV.cboSolutionExit┘   │ │       │ │     
                  TfrmODMedIV.cboSolutionMouseClick...┤ │       │ │     
                     TfrmODMedIV.cboAdditiveMouseClick┤ │       │ │     
                         TfrmODMedIV.cboAdditiveExit┘ │ │       │ │     
                                TfrmODAuto.SetupDialog┤ │       │ │     
                                   ActivateOrderDialog┤ │       │ │     
                           TfrmRemDlg.btnFinishClick┤ │ │       │ │     
           TfrmConsults.mnuActNewConsultRequestClick┤ │ │       │ │     
                   TfrmConsults.cmdNewConsultClick┘ │ │ │       │ │     
                TfrmConsults.mnuActNewProcedureClick┤ │ │       │ │     
                      TfrmConsults.cmdNewProcClick┘ │ │ │       │ │     
                                        ChangeOrders┤ │ │       │ │     
                      TfrmOrders.mnuActChangeClick┤ │ │ │       │ │     
                        TfrmMeds.mnuActChangeClick┘ │ │ │       │ │     
                                     ChangeOrdersEvt┤ │ │       │ │     
                                          CopyOrders┤ │ │       │ │     
                        TfrmOrders.mnuActCopyClick┤ │ │ │       │ │     
                          TfrmMeds.mnuActCopyClick┤ │ │ │       │ │     
                           TfrmODActive.btnOKClick┘ │ │ │       │ │     
                                      TransferOrders┤ │ │       │ │     
                        TfrmOrders.mnuActCopyClick┤ │ │ │       │ │     
                          TfrmMeds.mnuActCopyClick┤ │ │ │       │ │     
                           TfrmODActive.btnOKClick┘ │ │ │       │ │     
                            TfrmOrders.lstWriteClick┤ │ │       │ │     
               TfrmOrders.PlaceOrderForDefaultDialog┤ │ │       │ │     
                  TfrmOrders.DisplayDefaultDlgList┤ │ │ │       │ │     
                       TfrmOrders.ResetOrderPage┘ │ │ │ │       │ │     
               TfrmOrders.btnDelayedOrderClick┘   │ │ │ │       │ │     
                                 DisplayEvntDialog┤ │ │ │       │ │     
                             SetDelayEventForMed┘ │ │ │ │       │ │     
                      TfrmMeds.mnuActCopyClick┘   │ │ │ │       │ │     
                                 DisplayEvntDialog┤ │ │ │       │ │     
                                  SetViewForCopy┘ │ │ │ │       │ │     
                    TfrmOrders.mnuActCopyClick┘   │ │ │ │       │ │     
                                 DisplayEvntDialog┘ │ │ │       │ │     
                                ExecuteChangeEvt┘   │ │ │       │ │     
                 TfrmOrders.mnuActChgEvntClick┘     │ │ │       │ │     
                             TfrmMeds.mnuActNewClick┤ │ │       │ │     
                           TfrmOMNavA.ActivateDialog┤ │ │       │ │     
                         TfrmOMNavA.grdMenuKeyDown┤ │ │ │       │ │     
                         TfrmOMNavA.grdMenuMouseUp┘ │ │ │       │ │     
                                TfrmOMSet.DoNextItem┘ │ │       │ │     
                              TfrmOMSet.InsertList┤   │ │       │ │     
                               ActivateOrderList┘ │   │ │       │ │     
                     TfrmRemDlg.btnFinishClick┤   │   │ │       │ │     
                             ActivateOrderHTML┤   │   │ │       │ │     
                    TfrmOrders.lstWriteClick┤ │   │   │ │       │ │     
    TfrmOrders.PlaceOrderForDefaultDialog...┘ │   │   │ │       │ │     
                              ActivateOrderSet┤   │   │ │       │ │     
                   TfrmRemDlg.btnFinishClick┤ │   │   │ │       │ │     
TfrmConsults.mnuActNewConsultRequestClick...┤ │   │   │ │       │ │     
     TfrmConsults.mnuActNewProcedureClick...┤ │   │   │ │       │ │     
                    TfrmOrders.lstWriteClick┤ │   │   │ │       │ │     
    TfrmOrders.PlaceOrderForDefaultDialog...┤ │   │   │ │       │ │     
                     TfrmMeds.mnuActNewClick┤ │   │   │ │       │ │     
                TfrmOMNavA.ActivateDialog...┤ │   │   │ │       │ │     
                     TfrmOMSet.DoNextItem...┘ │   │   │ │       │ │     
                       TfrmOMNavA.DoSelectList┘   │   │ │       │ │     
                     TfrmOMNavA.grdMenuKeyUp┤     │   │ │       │ │     
                   TfrmOMNavA.grdMenuMouseUp┘     │   │ │       │ │     
                                        SkipToNext┤   │ │       │ │     
                         TfrmOMSet.DoNextItem...┘ │   │ │       │ │     
                            TfrmOMSet.UMDelayEvent┘   │ │       │ │     
                               TfrmOMSet.InsertList...┤ │       │ │     
                                TfrmODMeds.SetupDialog┤ │       │ │     
                             TfrmODMeds.btnSelectClick┤ │       │ │     
                             TfrmODMeds.UMDelayClick┘ │ │       │ │     
                                    ExecuteRenewOrders┘ │       │ │     
                         TfrmOrders.mnuActRenewClick┤   │       │ │     
                           TfrmMeds.mnuActRenewClick┘   │       │ │     
                                        EncounterPresent┤       │ │     
                                      ReadyForNewOrder┤ │       │ │     
                           TfrmRemDlg.btnFinishClick┤ │ │       │ │     
        TfrmConsults.mnuActNewConsultRequestClick...┤ │ │       │ │     
             TfrmConsults.mnuActNewProcedureClick...┤ │ │       │ │     
                                     ChangeOrders...┤ │ │       │ │     
                                     ChangeOrdersEvt┤ │ │       │ │     
                                       CopyOrders...┤ │ │       │ │     
                                   TransferOrders...┤ │ │       │ │     
                            TfrmOrders.lstWriteClick┤ │ │       │ │     
                             TfrmMeds.mnuActNewClick┘ │ │       │ │     
                                     ReadyForNewOrder1┤ │       │ │     
            TfrmOrders.PlaceOrderForDefaultDialog...┘ │ │       │ │     
                              TfrmOrders.mnuActDCClick┤ │       │ │     
                             TfrmOrders.mnuActRelClick┤ │       │ │     
                            TfrmOrders.mnuActHoldClick┤ │       │ │     
                          TfrmOrders.mnuActUnholdClick┤ │       │ │     
                           TfrmOrders.mnuActRenewClick┤ │       │ │     
                         TfrmOrders.mnuActReleaseClick┤ │       │ │     
                         TfrmOrders.mnuActOnChartClick┤ │       │ │     
                            TfrmOrders.mnuActSignClick┤ │       │ │     
                                TfrmMeds.mnuActDCClick┤ │       │ │     
                              TfrmMeds.mnuActHoldClick┤ │       │ │     
                             TfrmMeds.mnuActRenewClick┤ │       │ │     
                            TfrmMeds.mnuActUnholdClick┤ │       │ │     
                              TfrmMeds.mnuActCopyClick┤ │       │ │     
                            TfrmMeds.mnuActRefillClick┘ │       │ │     
                                     EncounterPresentEDO┤       │ │     
                                   ReadyForNewOrder...┤ │       │ │     
                         TfrmOrders.mnuActChgEvntClick┤ │       │ │     
                          TfrmOrders.mnuActChangeClick┤ │       │ │     
                            TfrmOrders.mnuActCopyClick┤ │       │ │     
                       TfrmOrders.btnDelayedOrderClick┤ │       │ │     
                            TfrmMeds.mnuActChangeClick┤ │       │ │     
                              TfrmMeds.mnuActCopyClick┘ │       │ │     
                                             UpdateVisit┤       │ │     
                                           EditPCEData┤ │       │ │     
                             TfrmSurgery.cmdPCEClick┤ │ │       │ │     
                                 UpdateEncounterInfo┘ │ │       │ │     
                             TfrmNotes.cmdPCEClick┘   │ │       │ │     
                        TfrmVitals.btnEnterVitalsClick┘ │       │ │     
                                             UpdateVisit┤       │ │     
                                        EncounterPresent┘       │ │     
                         TfrmProblems.lstProbActsClick┘         │ │     
                     TfrmProblems.wgProbDataDblClick┤           │ │     
                           TfrmProblems.lstViewClick┘           │ │     
                   TfrmProblems.HighlightDuplicate┘             │ │     
                         TfrmProblems.AddProblem┤               │ │     
              TfrmProblems.lstProbActsClick...┤ │               │ │     
                 TfrmProblems.lstProbPickClick┤ │               │ │     
              TfrmProblems.lstProbPickDblClick┤ │               │ │     
              TfrmProblems.edProbEntKeyPress┘ │ │               │ │     
                      TfrmProblems.UMPLLexicon┘ │               │ │     
                   TfrmdlgProb.bbChangeProbClick┘               │ │     
                                            ExecuteReleaseOrders┤ │     
                                 TfrmOrders.mnuActReleaseClick┘ │ │     
                                            ExecuteOnChartOrders┤ │     
                                 TfrmOrders.mnuActOnChartClick┘ │ │     
                                       ExecuteReleaseEventOrders┤ │     
                                     TfrmOrders.mnuActRelClick┘ │ │     
                                            ExecuteSignOrders...┤ │     
                                        TfrmReview.cmdOKClick...┘ │     
                                           TfrmOrders.RequestPrint┘     
                                     TfrmFrame.mnuFilePrintClick┘       

Called-By

Name Declaration Comments
TfrmOrdersPrint.SetupControls procedure SetupControls(PrintParams: TPrintParams); -


Source

121   procedure TfrmOrdersPrint.SetupPrompting(CheckBox: TCheckBox; DeviceList: TORListBox; ChangeButton: TORAlignButton;
122                                            PromptParam: char; DeviceParam: string);
123   {        0 - no prompts - copy is automatically generated.
124                checkbox checked   and disabled,   device defaulted and button disabled
125            1 - prompt for copy and ask which printer should be used.
126                checkbox unchecked and enabled,    device defaulted and button enabled
127            2 - prompt for copy and automatically print to the
128                printer defined in the XXXXX COPY PRINT DEVICE field.
129                checkbox unchecked and enabled,    device defaulted and button disabled
130            * - don't print.
131                checkbox unchecked and disabled,   device empty     and button disabled
132   }
133   begin
134       case PromptParam of
135         '0', #0: begin
136                    CheckBox.Checked := DeviceParam <> '';
137                    CheckBox.Enabled := False;
138                    DeviceList.Clear;
139                    if DeviceParam <> '' then
140                      begin
141                        DeviceList.Items.Add(DeviceParam);
142                        DeviceList.Font.Color := clGrayText;
143                        DeviceList.ItemIndex := 0;
144                        CheckBox.Font.Style := CheckBox.Font.Style + [fsBold];
145                        CheckBox.Font.Color := clInfoText;
146                        CheckBox.Color := clInfoBk;
147                      end
148                    else
149                      begin
150                        CheckBox.State   := cbUnchecked;
151                        CheckBox.Enabled := False;
152                      end;
153                    ChangeButton.Enabled := False;
154                  end;
155         '1': begin
156                CheckBox.State   := cbUnchecked;
157                CheckBox.Enabled := True;
158                DeviceList.Clear;
159                if DeviceParam <> '' then DeviceList.Items.Add(DeviceParam);
160                ChangeButton.Enabled := False;
161              end;
162         '2': begin
163                CheckBox.State   := cbUnchecked;
164                CheckBox.Enabled := True;
165                DeviceList.Clear;
166                if DeviceParam <> '' then
167                  DeviceList.Items.Add(DeviceParam)
168                else
169                  begin
170                    CheckBox.State   := cbUnchecked;
171                    CheckBox.Enabled := False;
172                  end;
173                ChangeButton.Enabled := False;
174              end;
175         '*': begin
176                CheckBox.State   := cbUnchecked;
177                CheckBox.Enabled := False;
178                DeviceList.Clear;
179                ChangeButton.Enabled := False;
180              end;
181       end;
182   end;