/[projects]/dao/DelphiScanner/Components/tpsystools_4.04/examples/CBuilder/FinCalu.h
ViewVC logotype

Contents of /dao/DelphiScanner/Components/tpsystools_4.04/examples/CBuilder/FinCalu.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2671 - (show annotations) (download)
Tue Aug 25 18:15:15 2015 UTC (8 years, 9 months ago) by torben
File MIME type: text/plain
File size: 5388 byte(s)
Added tpsystools component
1 // ***** BEGIN LICENSE BLOCK *****
2 // * Version: MPL 1.1
3 // *
4 // * The contents of this file are subject to the Mozilla Public License Version
5 // * 1.1 (the "License"); you may not use this file except in compliance with
6 // * the License. You may obtain a copy of the License at
7 // * http://www.mozilla.org/MPL/
8 // *
9 // * Software distributed under the License is distributed on an "AS IS" basis,
10 // * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
11 // * for the specific language governing rights and limitations under the
12 // * License.
13 // *
14 // * The Original Code is TurboPower SysTools
15 // *
16 // * The Initial Developer of the Original Code is
17 // * TurboPower Software
18 // *
19 // * Portions created by the Initial Developer are Copyright (C) 1996-2002
20 // * the Initial Developer. All Rights Reserved.
21 // *
22 // * Contributor(s):
23 // *
24 // * ***** END LICENSE BLOCK *****
25 //---------------------------------------------------------------------------
26 #ifndef FinCaluH
27 #define FinCaluH
28 //---------------------------------------------------------------------------
29 #include <vcl\Classes.hpp>
30 #include <vcl\Controls.hpp>
31 #include <vcl\StdCtrls.hpp>
32 #include <vcl\Forms.hpp>
33 #include <vcl\ExtCtrls.hpp>
34 #include <vcl\Buttons.hpp>
35 #include "StFin.hpp"
36 #include "StDate.hpp"
37 #include "StDateSt.hpp"
38 #include "Grids.hpp"
39 //---------------------------------------------------------------------------
40 class TFinCalForm : public TForm
41 {
42 __published: // IDE-managed Components
43 TRadioGroup *Functions;
44 TGroupBox *GroupBox1;
45 TLabel *Label2;
46 TLabel *Label4;
47 TLabel *Label5;
48 TLabel *Label6;
49 TLabel *Label7;
50 TLabel *Label3;
51 TLabel *Label1;
52 TLabel *Label20;
53 TLabel *Label10;
54 TLabel *Label13;
55 TEdit *StrEdit;
56 TEdit *E1Edit;
57 TEdit *E2Edit;
58 TEdit *E3Edit;
59 TEdit *E4Edit;
60 TEdit *I1Edit;
61 TEdit *I2Edit;
62 TEdit *I3Edit;
63 TEdit *I4Edit;
64 TEdit *D1Edit;
65 TEdit *D2Edit;
66 TEdit *D3Edit;
67 TEdit *D4Edit;
68 TComboBox *FreqEdit;
69 TComboBox *BasEdit;
70 TComboBox *TimEdit;
71 TEdit *E5Edit;
72 TEdit *I5Edit;
73 TEdit *D5Edit;
74 TCheckBox *BoolEdit;
75 TGroupBox *Arrays;
76 TLabel *Label8;
77 TLabel *Label9;
78 TStringGrid *VAEdit;
79 TStringGrid *DAEdit;
80 TPanel *Panel1;
81 TButton *GoBtn;
82 TEdit *SResult;
83 TBitBtn *BitBtn1;
84 TEdit *FResult;
85
86 void __fastcall GoBtnClick(TObject *Sender);
87 void __fastcall FunctionsClick(TObject *Sender);
88 void __fastcall ExtEditExit(TObject *Sender);
89 void __fastcall IntEditExit(TObject *Sender);
90 void __fastcall DateEditExit(TObject *Sender);
91 void __fastcall StrEditExit(TObject *Sender);
92 void __fastcall DAEditExit(TObject *Sender);
93 void __fastcall DAEditEnter(TObject *Sender);
94 void __fastcall VAEditEnter(TObject *Sender);
95 void __fastcall VAEditExit(TObject *Sender);
96 void __fastcall FreqEditExit(TObject *Sender);
97 void __fastcall BasEditExit(TObject *Sender);
98 void __fastcall TimEditExit(TObject *Sender);
99 void __fastcall BoolEditExit(TObject *Sender);
100 void __fastcall FormCreate(TObject *Sender);
101 void __fastcall BitBtn1Click(TObject *Sender);
102 private: // User declarations
103 long double ExtVar[5];
104 int IntVar[5];
105 TStDate DateVar[5];
106 TStFrequency FreqVar;
107 TStBasis BasVar;
108 TStPaymentTime TimVar;
109 String StrVar;
110 bool BoolVar;
111 TStDate DateArray[30];
112 double ValArray[30];
113 void __fastcall FT(TWinControl* F, short T, String S);
114 void __fastcall SetupAccruedInterestPeriodic();
115 void __fastcall SetupAccruedInterestMaturity();
116 void __fastcall SetupCumulativeInterest();
117 void __fastcall SetupCumulativePrincipal();
118 void __fastcall SetupDiscountRate();
119 void __fastcall SetupEffectiveInterestRate();
120 void __fastcall SetupNominalInterestRate();
121 void __fastcall SetupInterestRate();
122 void __fastcall SetupReceivedAtMaturity();
123 void __fastcall SetupYieldPeriodic();
124 void __fastcall SetupYieldDiscounted();
125 void __fastcall SetupYieldMaturity();
126 void __fastcall SetupTBillEquivYield();
127 void __fastcall SetupTBillPrice();
128 void __fastcall SetupTBillYield();
129 void __fastcall SetupBondDuration();
130 void __fastcall SetupModifiedDuration();
131 void __fastcall SetupFutureValueSchedule();
132 void __fastcall SetupModifiedIRR();
133 void __fastcall SetupNonperiodicIRR();
134 void __fastcall SetupNonperiodicNPV();
135 void __fastcall SetupDecliningBalance();
136 void __fastcall SetupVariableDecliningBalance();
137 void __fastcall SetupDollarToDecimal();
138 void __fastcall SetupDollarToFraction();
139 void __fastcall SetupDollarToDecimalText();
140 void __fastcall SetupDollarToFractionStr();
141 void __fastcall SetupRoundToDecimal();
142 void __fastcall SetupIsCardValid();
143 void __fastcall SetupNetPresentValue();
144 void __fastcall SetupFutureValue();
145 void __fastcall SetupPresentValue();
146 void __fastcall SetupBondPrice();
147 void __fastcall SetupPayment();
148 void __fastcall SetupInternalRateOfReturn();
149 void __fastcall DisableFields();
150 public: // User declarations
151 __fastcall TFinCalForm(TComponent* Owner);
152 };
153 //---------------------------------------------------------------------------
154 extern TFinCalForm *FinCalForm;
155 //---------------------------------------------------------------------------
156 #endif

  ViewVC Help
Powered by ViewVC 1.1.20