-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbaseform.vb
283 lines (241 loc) · 10.9 KB
/
baseform.vb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
Imports System.Data.SqlClient
Imports System.Configuration
Imports System.IO
Imports System.Xml
Imports System.Text
Public Class baseform
Public frmTitle As String
Public frmCalling As String = ""
'**************************************************************************
'This form establishes the action of the menu choices
'Reports|Account Expenses=AccountExpensesToolStripMenuItem_Click
'Tools|Utilities|Add/Edit business = ManageBusinessToolStripMenuItem_Click
'Post = PostToolStripMenuItem_Click
'Tools|Utilities|Add/Edit Accounts=ManageAccountToolStripMenuItem_Click
'Tools|Transactions=TransactionsToolStripMenuItem_Click
'Import|Import Bank Data = ImportBankDataToolStripMenuItem_Click
'Import:Get Bank Data = GoToBankToolStripMenuItem_Click
'Reports|Business Expenses= BusinessesDataToolStripMenuItem_Click
'***************************************************************************
Private Sub baseform_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
'frmTitle = "Dublin RISING Accounts"
lblTitle.Text = frmTitle
'lblModule.Text = "baseform"
End Sub
'Private Sub AccountExpensesToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BasicToolStripMenuItem.Click
' '**************Account Expenses*************
' Dim myForm As rptAccountExpense
' myForm = New rptAccountExpense
' Me.Hide()
' myForm.Show()
'End Sub
Private Sub ManageBusinessToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles AddBusinessToolStripMenuItem.Click
'*****************Add a Business ******************
Dim myForm As AddBusiness
myForm = New AddBusiness
myForm.frmCalling = "baseAddBusiness"
Me.Hide()
myForm.Show()
End Sub
Private Sub PostToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PostToolStripMenuItem.Click
'*************Post Transaction from input table to journal*****************
Dim myForm As PostBankToJournal
myForm = New PostBankToJournal
Me.Hide()
myForm.Show()
End Sub
Private Sub ManageAccountToolStripMenuItem_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles ManageAccountToolStripMenuItem.Click
'************Manage Accounts
Dim myForm As ManageAccount
myForm = New ManageAccount
frmCalling = "baseManageAccount"
Me.Hide()
myForm.Show()
End Sub
Private Sub ImportBankDataToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ImportBankDataToolStripMenuItem.Click
'*********Import Morris Data*****************
Dim myForm As ImportMorrisData
myForm = New ImportMorrisData
'Me.Hide()
myForm.Show()
End Sub
Private Sub GoToBankToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles GoToBankToolStripMenuItem.Click
'*********Connect to Bank*****************
Dim p As System.Diagnostics.Process = New System.Diagnostics.Process()
Dim DialogBox As New GetMorris
DialogBox.Left = 500
If DialogBox.ShowDialog = Windows.Forms.DialogResult.OK Then
p.StartInfo.FileName = "iexplore.exe"
p.StartInfo.Arguments = "http://www.wellsfargo.com"
p.Start()
End If
End Sub
Private Sub BusinessesDataToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BusinessesToolStripMenuItem.Click
'************Business Expenses*************
Dim myForm As rptBusiness
myForm = New rptBusiness
Me.Hide()
myForm.Show()
End Sub
Private Sub btnExit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnExit.Click
'**********Exit Morris Bank **********************
Application.Exit()
End Sub
Private Sub EditJournalToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles EditJournalToolStripMenuItem.Click
'*******Edit Journal**********
Dim myForm As EditJournal
myForm = New EditJournal
Me.Hide()
myForm.Show()
End Sub
Private Sub ViewTransactionsToolStripMenuItem1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ViewTransactionsToolStripMenuItem1.Click
'**********View Transactions**************
Dim myForm As rptTransactions
myForm = New rptTransactions
Me.Hide()
myForm.Show()
End Sub
'Private Sub GraphicsToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles GraphicsToolStripMenuItem.Click
' Dim myForm As frmVisualStatus
' myForm = New frmVisualStatus
' 'Me.Hide()
' myForm.Show()
'End Sub
'Private Sub MonthlyToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MonthlyToolStripMenuItem.Click
' '************ Monthly *****************
' Dim myForm As rptFinancialA
' myForm = New rptFinancialA
' Me.Hide()
' myForm.Show()
'End Sub
Private Sub SplitCashToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles SplitCashToolStripMenuItem.Click
'Split Transaction
'Dim myForm As AllocateEntry
'myForm = New AllocateEntry
'Me.Hide()
'myForm.Show()
'Dim myForm As Distribute
'myForm = New Distribute
'Me.Hide()
'myForm.Show()
'Dim myForm As AllocateCash
'myForm = New AllocateCash
'Me.Hide()
'myForm.Show()
Dim myForm As AllocateCash
myForm = New AllocateCash
Me.Hide()
myForm.Show()
End Sub
Private Sub AddEditActivityToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles AddEditActivityToolStripMenuItem.Click
'***********Add/Edit Activity
Dim myForm As AddActivity
myForm = New AddActivity
Me.Hide()
myForm.Show()
End Sub
Private Sub NonProfitsToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles NonProfitsToolStripMenuItem.Click
Dim myForm As rptNonProfit
myForm = New rptNonProfit
Me.Hide()
myForm.Show()
End Sub
Private Sub TransactionsToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TransactionsToolStripMenuItem.Click
'Enter Journal Transaction
Dim myForm As EnterJournalTransaction
myForm = New EnterJournalTransaction
Me.Hide()
myForm.Show()
End Sub
Private Sub menuViewBankTransactions_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
'View Bank Transaction
Dim myForm As rptBankTransactions
myForm = New rptBankTransactions
'Dim myForm As rptTransactions
'myForm = New rptTransactions
Me.Hide()
myForm.Show()
End Sub
Private Sub menuViewBankTest_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles menuViewBankTest.Click
'View Bank Test
'Dim myForm As rptBankTransactions
'myForm = New rptBankTransactions
Dim myForm As Form1
myForm = New Form1
myForm.Show()
End Sub
Private Sub RentalStatusToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
'View Rental Status
Dim myForm As rptRentalStatus
myForm = New rptRentalStatus
myForm.Show()
End Sub
Private Sub IncomeExpenseToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles IncomeExpenseToolStripMenuItem.Click
'View FIniancial Statmens Inc & Exp
Dim myForm As rptIncExp
myForm = New rptIncExp
'Dim myForm As rptBasic
'myForm = New rptBasic
myForm.Show()
End Sub
Private Sub BalanceSheetToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BalanceSheetToolStripMenuItem.Click
'View FIniancial Statmens balance Sheet
Dim myForm As rptBalSheet
myForm = New rptBalSheet
myForm.Show()
End Sub
Private Sub ExitToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ExitToolStripMenuItem.Click
Application.Exit()
End Sub
'Private Sub GRIDTESTToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles GRIDTESTToolStripMenuItem.Click
' 'View FIniancial Statmens balance Sheet
' Dim myForm As GRIDTEST
' myForm = New GRIDTEST
' myForm.Show()
'End Sub
Private Sub StraightJournalToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles StraightJournalToolStripMenuItem.Click
'View Journal straight out
Dim myForm As rptJournal
myForm = New rptJournal
myForm.Show()
End Sub
Private Sub MonthlyBalanceToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MonthlyBalanceToolStripMenuItem.Click
'View Journal straight out
Dim myForm As rptAcctBalTrans
myForm = New rptAcctBalTrans
myForm.Show()
End Sub
Private Sub SplitDepositToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles SplitDepositToolStripMenuItem.Click
Dim myForm As AllocDep
myForm = New AllocDep
myForm.Show()
End Sub
Private Sub RentalTransactionsToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RentalTransactionsToolStripMenuItem.Click
'**********View Rental Transactions**************
Dim myForm As rptRentals
myForm = New rptRentals
Me.Hide()
myForm.Show()
End Sub
Private Sub AddChecksToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles AddChecksToolStripMenuItem.Click
'**********View Rental Transactions**************
Dim myForm As AddChecks
myForm = New AddChecks
Me.Hide()
myForm.Show()
End Sub
Private Sub BasicToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BasicToolStripMenuItem.Click
Dim myForm As rptBasic
myForm = New rptBasic
Me.Hide()
myForm.Show()
End Sub
Private Sub ShareDataToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ShareDataToolStripMenuItem.Click
ShareData.ShowDialog()
'Dim myForm As ShareData
'myForm = New ShareData
'myForm.ShowDialog()
'Me.Hide()
'Me.Close()
End Sub
End Class