Ignore:
Timestamp:
Jul 6, 2008, 8:20:14 PM (16 years ago)
Author:
Kevin Toppenberg
Message:

Uploading from OR_30_258

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cprs/branches/foia-cprs/CPRS-Chart/Orders/fOrdersDC.pas

    r459 r460  
    3636{$R *.DFM}
    3737
    38 uses rOrders, uCore, uConst, fOrders, UBAGlobals;
    39 { TODO -oRich V. -cOutpatient Meals : Uncomment for processing of child orders treeview. }
    40 //, fOrderChildren;
     38uses rOrders, uCore, uConst, fOrders;
    4139
    4240function ExecuteDCOrders(SelectedList: TList; var DelEvt: boolean): Boolean;
     
    5250  OriginalID,APtEvtID,APtEvtName,AnEvtInfo,tmpPtEvt:  string;
    5351  PtEvtList: TStringList;
    54 { TODO -oRich V. -cOutpatient Meals : Uncomment for processing of child orders treeview. }
    55 (*  tmpList: TList;
    56   j: integer;
    57   AChildOrder: TOrder;*)
    5852begin
    5953  Result := False;
     
    6357  PtEvtList := TStringList.Create;
    6458  if SelectedList.Count = 0 then Exit;
    65 { TODO -oRich V. -cOutpatient Meals : Uncomment for processing of child orders treeview. }
    66 //  tmpList := TList.Create;
    6759  frmDCOrders := TfrmDCOrders.Create(Application);
    6860  try
     
    7264    begin
    7365      AnOrder    := TOrder(Items[i]);
    74 
    75       if BILLING_AWARE then  //CQ4589
    76         UBAGlobals.RemoveOrderFromDxList(AnOrder.ID);
    77 
    78 { TODO -oRich V. -cOutpatient Meals : Comment next 3 lines for processing of child orders treeview. }
    7966      frmDCOrders.lstOrders.Items.Add(AnOrder.Text);
    8067      if not ((AnOrder.Status = 11) and (AnOrder.Signature = 2)) then NeedReason := True;
    8168    end;
    82 { TODO -oRich V. -cOutpatient Meals : Uncomment for processing of child orders treeview. }
    83 //***********  begin OP meals changes **************
    84 (*      if Copy(AnOrder.Text, 1, 1) = '+' then
    85       begin
    86         ActOnChildOrders(tmpList, AnOrder.ID);
    87 { TODO -oRich V. -cOutpatient Meals : How/when to get selected items into SelectedList? }
    88         for j := tmpList.Count - 1 downto 0 do
    89         begin
    90           AChildOrder := TOrder(tmpList.Items[j]);
    91           frmDCOrders.lstOrders.Items.Add(AChildOrder.Text);
    92           if not ((AChildOrder.Status = 11) and (AChildOrder.Signature = 2)) then NeedReason := True;
    93         end;
    94       end else
    95       begin
    96         frmDCOrders.lstOrders.Items.Add(AnOrder.Text);
    97         if not ((AnOrder.Status = 11) and (AnOrder.Signature = 2)) then NeedReason := True;
    98       end;
    99     end;*)
    100 //*************  End OP meals changes ****************
    10169    if NeedReason then
    10270    begin
     
    12694                       end;
    12795        DCT_DELETION:  begin
    128                          if BILLING_AWARE then
    129                             UBAGlobals.BADeltedOrders.Add(OriginalID);
    13096                         Changes.Remove(CH_ORD, OriginalID);
    13197                         if (AnOrder.ID = '0') or (AnOrder.ID = '')
     
    174140    else with SelectedList do for i := 0 to Count - 1 do UnlockOrder(TOrder(Items[i]).ID);
    175141  finally
    176 { TODO -oRich V. -cOutpatient Meals : Uncomment for processing of child orders treeview. }
    177     //tmpList.Free;
    178142    frmDCOrders.Release;
    179143  end;
     
    202166begin
    203167  inherited;
    204   if not (lstReason.ItemIEN > 0) then
     168  if (lstReason.Visible) and (not (lstReason.ItemIEN > 0)) then
    205169  begin
    206170    InfoBox(TX_REASON_REQ, TC_REASON_REQ, MB_OK);
Note: See TracChangeset for help on using the changeset viewer.