Changeset 830 for cprs/trunk/CPRS-Chart/fNoteProps.pas
- Timestamp:
- Jul 7, 2010, 4:51:54 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cprs/trunk/CPRS-Chart/fNoteProps.pas
r456 r830 6 6 Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, 7 7 StdCtrls, ORDtTm, ORCtrls, ExtCtrls, rTIU, uConst, uTIU, ORFn, ORNet, 8 ComCtrls, Buttons ;8 ComCtrls, Buttons, fBase508Form, VA508AccessibilityManager; 9 9 10 10 type … … 28 28 end; 29 29 30 TfrmNoteProperties = class(T Form)30 TfrmNoteProperties = class(TfrmBase508Form) 31 31 lblNewTitle: TLabel; 32 32 cboNewTitle: TORComboBox; … … 92 92 procedure lstRequestsChange(Sender: TObject); 93 93 private 94 FIsNewNote : Boolean; // Is set at the begining of the function: ExecuteNoteProperties 94 95 FCosignIEN: Int64; // store cosigner that was passed in 95 96 FCosignName: string; // store cosigner that was passed in … … 141 142 {$R *.DFM} 142 143 143 uses uCore, rCore, rConsults, uConsults, rSurgery, uAccessibleListBox,fRptBox;144 uses uCore, rCore, rConsults, uConsults, rSurgery, fRptBox; 144 145 145 146 { Initial values in ANote … … 212 213 begin 213 214 frmNoteProperties := TfrmNoteProperties.Create(Application); 215 frmNoteProperties.FIsNewNote := ANote.IsNewNote; 214 216 uConsultsList := TStringList.Create; 215 217 try … … 337 339 FormatRequestList; 338 340 end ; 339 TAccessibleListBox.WrapControl(cboNewTitle); 340 try 341 Result := ShowModal = idOK; // display the form 342 finally 343 TAccessibleListBox.UnwrapControl(cboNewTitle); 344 end; 341 Result := ShowModal = idOK; // display the form 345 342 if Result then with ANote do 346 343 begin … … 399 396 PkgRef := IntToStr(PkgIEN) + ';' + PkgPtr; 400 397 end 401 else if pnlPRF.Visiblethen //PRF398 else if (pnlPRF.Visible) and (lvPRF.ItemIndex >= 0) then //PRF 402 399 begin 403 400 PRF_IEN := FPRFActions.GetPRF_IEN(lvPRF.ItemIndex); 404 401 ActionIEN := FPRFActions.GetActionIEN(lvPRF.ItemIndex); 402 end 403 else 404 begin 405 PkgIEN := 0; 406 PkgPtr := ''; 407 PkgRef := ''; 405 408 end; 406 409 end; … … 440 443 if FDocType = TYP_ADDENDUM then 441 444 begin 442 lblCosigner.Visible := AskCosignerForDocument(FAddend, cboAuthor.ItemIEN )445 lblCosigner.Visible := AskCosignerForDocument(FAddend, cboAuthor.ItemIEN, calNote.FMDateTime) 443 446 end else 444 447 begin … … 498 501 begin 499 502 lblConsult2.Caption := ALL_CONSULTS; 500 lstRequests.Items.Assign(uConsultsList);503 FastAssign(uConsultsList, lstRequests.Items); 501 504 end; 502 505 lblConsult1.Visible := (cboNewTitle.ItemIndex > -1); … … 696 699 else if (pnlPRF.Visible) then 697 700 begin 698 if (lvPRF.ItemIndex < 0) then699 ErrMsg := ErrMsg + TX_REQ_PRF_ACTION 700 else if FPRFActions.SelActionHasNote(lvPRF.ItemIndex) then701 if (lvPRF.ItemIndex < 0) and (FIsNewNote) then 702 ErrMsg := ErrMsg + TX_REQ_PRF_ACTION; 703 if (lvPRF.ItemIndex >= 0) and (FPRFActions.SelActionHasNote(lvPRF.ItemIndex)) then 701 704 ErrMsg := ErrMsg + TX_REQ_PRF_NOTE; 702 705 end; … … 869 872 begin 870 873 CallV('TIU GET PRF ACTIONS', [TitleIEN,DFN]); 871 F PRFActionList.Assign(RPCBrokerV.Results);874 FastAssign(RPCBrokerV.Results, FPRFActionList); 872 875 end; 873 876
Note:
See TracChangeset
for help on using the changeset viewer.