-
Notifications
You must be signed in to change notification settings - Fork 0
/
frmMain.frm
223 lines (207 loc) · 5.58 KB
/
frmMain.frm
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
VERSION 5.00
Begin VB.Form frmMain
BorderStyle = 1 'Fixed Single
Caption = "Main Menu"
ClientHeight = 5985
ClientLeft = 150
ClientTop = 495
ClientWidth = 10140
HelpContextID = 10
Icon = "frmMain.frx":0000
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 5985
ScaleWidth = 10140
StartUpPosition = 2 'CenterScreen
Begin VB.Label lblRole
Alignment = 2 'Center
BeginProperty Font
Name = "Consolas"
Size = 27.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 1575
Left = 1080
TabIndex = 1
Top = 3000
Width = 7815
End
Begin VB.Label lblUser
Alignment = 2 'Center
BeginProperty Font
Name = "Consolas"
Size = 27.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 1575
Left = 1080
TabIndex = 0
Top = 1320
Width = 7815
End
Begin VB.Menu mnuFile
Caption = "File"
Begin VB.Menu mnuChangeUser
Caption = "Change User"
End
Begin VB.Menu mnuExit
Caption = "Exit"
End
End
Begin VB.Menu mnuManage
Caption = "Manage"
Begin VB.Menu mnuBrands
Caption = "Brands"
Begin VB.Menu mnuCreateBrand
Caption = "Create new"
End
Begin VB.Menu mnuDeleteBrand
Caption = "Delete"
End
End
Begin VB.Menu mnuVehicles
Caption = "Vehicles"
Begin VB.Menu mnuCreateVehicle
Caption = "Create new"
End
Begin VB.Menu mnuDeleteVehicle
Caption = "Delete"
End
End
Begin VB.Menu mnuStaff
Caption = "Staff"
Begin VB.Menu mnuCreateStaff
Caption = "Create new"
End
Begin VB.Menu mnuDeleteStaff
Caption = "Delete"
End
End
Begin VB.Menu mnuReceipts
Caption = "Receipts"
Begin VB.Menu menuCreateReceipts
Caption = "Create new"
End
End
End
Begin VB.Menu mnuConsults
Caption = "Consults"
Begin VB.Menu mnuShowBrands
Caption = "Brands"
End
Begin VB.Menu mnuShowVehicles
Caption = "Vehicles"
End
Begin VB.Menu mnuShowStaff
Caption = "Staff"
End
Begin VB.Menu mnuShowReceipts
Caption = "Receipts"
End
Begin VB.Menu mnuDetailedInformation
Caption = "Detailed Information"
End
End
Begin VB.Menu mnuHelp
Caption = "Help"
Begin VB.Menu mnuAbout
Caption = "About"
End
End
End
Attribute VB_Name = "frmMain"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Public CurrentUserRoleID As Integer
Private Sub Form_Load()
Dim f As frmLogin
Set f = New frmLogin
f.Show vbModal, Me
If lblUser.Caption = "" Then
If Not f.LoginSucceeded Then
Unload Me
End If
End If
End Sub
Private Sub menuCreateReceipts_Click()
Dim f As frmCreateNewReceipt
Set f = New frmCreateNewReceipt
f.Show vbModal, Me
End Sub
Private Sub mnuAbout_Click()
Dim f As frmAbout
Set f = New frmAbout
f.Show vbModal, Me
End Sub
Private Sub mnuChangeUser_Click()
Form_Load
End Sub
Private Sub mnuCreateBrand_Click()
Dim f As frmCreateNewBrand
Set f = New frmCreateNewBrand
f.Show vbModal, Me
End Sub
Private Sub mnuCreateStaff_Click()
Dim f As frmCreateNewStaff
Set f = New frmCreateNewStaff
f.Show vbModal, Me
End Sub
Private Sub mnuCreateVehicle_Click()
Dim f As frmCreateNewVehicle
Set f = New frmCreateNewVehicle
f.Show vbModal, Me
End Sub
Private Sub mnuDeleteBrand_Click()
Dim f As frmDeleteBrand
Set f = New frmDeleteBrand
f.Show vbModal, Me
End Sub
Private Sub mnuDeleteStaff_Click()
Dim f As frmDeleteStaff
Set f = New frmDeleteStaff
f.Show vbModal, Me
End Sub
Private Sub mnuDeleteVehicle_Click()
Dim f As frmDeleteVehicle
Set f = New frmDeleteVehicle
f.Show vbModal, Me
End Sub
Private Sub mnuDetailedInformation_Click()
Dim f As frmDetailedInformation
Set f = New frmDetailedInformation
f.Show vbModal, Me
End Sub
Private Sub mnuExit_Click()
Unload Me
End Sub
Private Sub mnuShowBrands_Click()
Dim f As frmViewBrands
Set f = New frmViewBrands
f.Show vbModal, Me
End Sub
Private Sub mnuShowReceipts_Click()
Dim f As frmViewReceipts
Set f = New frmViewReceipts
f.Show vbModal, Me
End Sub
Private Sub mnuShowStaff_Click()
Dim f As frmViewStaff
Set f = New frmViewStaff
f.Show vbModal, Me
End Sub
Private Sub mnuShowVehicles_Click()
Dim f As frmViewVehicles
Set f = New frmViewVehicles
f.Show vbModal, Me
End Sub