This repository was archived by the owner on Sep 13, 2026. It is now read-only.
Repository navigation
Expand file tree
/
Copy pathModuleVariables.bas
More file actions
267 lines (220 loc) · 5.83 KB
/
Copy pathModuleVariables.bas
File metadata and controls
267 lines (220 loc) · 5.83 KB
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
Attribute VB_Name = "ModuleVariables"
Option Explicit
' API Variables
Public Declare Function GetActiveWindow Lib "user32" () As Long
'Clinical Variables
Public CurrentPatient As New clsPatient
Public CurrentVisit As New clsVisit
'Programing Variables
Public Type ReportFont
Name As String
Size As Long
Bold As Boolean
Italic As Boolean
Strikethrough As Boolean
Underline As Boolean
End Type
Public Enum ControlType
Textbox = 1
ComboBox = 2
ListBox = 3
DataCombo = 4
DataList = 5
Grid = 6
Button = 7
MenuItem = 8
CheckBox = 9
OptionButton = 10
DateTimePicker = 11
Label = 12
SSTab = 13
Unknown = 100
End Enum
' Pharmacy Variables
Public Type ItemStock
Stock As Double
MaxDOE As Date
MinDOE As Date
End Type
Public Type ItemBatch
ItemID As Long
BatchID As Long
DOM As Date
DOE As Date
Exists As Boolean
ItemBatch As String
Stock As Double
End Type
Public Enum ExpenceMethod
PharmacyPurchase = 1
OtherExpence = 2
End Enum
Public Enum IncomeMethod
PharmacyIncome = 1
PracticeIncome = 2
LaboratoryIncome = 3
InwardIncome = 4
OtherIncome = 5
End Enum
Public Enum UserAction
StockReset = 1
DrawerReset = 2
SalePriceAdjustment = 3
PurchasePriceAdjustment = 4
End Enum
Public DefaultFont As ReportFont
'Practice Preferances
Public UsualConsultationFee As Double
Public UsualConsultationCost As Double
Public AutoIssueIndoor As Boolean
Public AddMedicineChargesToFee As Boolean
Public AddIndoorMedicineChargesToFee As Boolean
'Program Preferances
Public AutoSecession As Boolean
Public SingleVisit As Boolean
Public MDIImageFile As String
Public Type ColourScheme
LabelForeColour As Long
LabelBackColour As Long
ButtonForeColour As Long
ButtonBackColour As Long
ButtonBorderColour As Long
GridLightBackColour As Long
GridDarkBackColour As Long
ComboBackColour As Long
ComboForeColour As Long
TextBackColour As Long
TextForeColour As Long
End Type
Public Energy As ColourScheme
Public Aqua As ColourScheme
Public Sunny As ColourScheme
Public DefaultColourScheme As ColourScheme
' database Variables
Public Database As String
Public cnnStores As New ADODB.Connection
Public cnnImport As New ADODB.Recordset
Public ImportDatabase As String
' User Variables
Public currentDoctorId As Long
Public UserName As String
Public UserID As Long
Public UserAuthority As Long
Public UserDepartmentID As Long
Public UserDepartment As String
Public NewPatientMessageUserID As Long
Public OutdoorDepartmentID As Long
Public IndoorDepartmentID As Long
Public InstitutionName As String
Public InstitutionAddress As String
Public InstitutionTelephone As String
Public TotalMessageCount As Long
' Printing Preferances
Public PrintingOnBlankPaper As Boolean
Public PrintingOnPrintedPaper As Boolean
Public PrescreptionPrinterName As String
Public PrescreptionPaperName As String
Public PrescreptionPaperHeight As Long
Public PrescreptionPaperWidth As Long
Public ReportPrinterName As String
Public ReportPaperName As String
Public ReportPaperWidth As Long
Public ReportPaperHeight As Long
Public DocumentPrinterName As String
Public DocumentPaperName As String
Public DocumentPaperWidth As Long
Public DocumentPaperHeight As Long
Public LongDateFormat As String
Public ShortDateFormat As String
Public PrintOK As Boolean
Public printPOS As Boolean
' Program Variable
Public DemoCopy As Boolean
Public ExpiaryDate As Date
Public DemoCount As Long
Public ExpiaryCount As Long
Public ExpiaryDays As Long
Public WillExpire As Boolean
Public HiddenDemo As Boolean
Public PCActivated As Boolean
Public DatabaseActivated As Boolean
Public UsedDays As Long
Public TodayStartedDate As Date
' Data transfer variables
Public StaffCommentIDTx As Long
Public GraphPathTx As String
'Authorizing Variables
Public Enum Authority
Viewer = 1
Analyzer = 2
OrdinaryUser = 3
PowerUser = 4
SuperUser = 5
Administrator = 6
NotIdentified = 7
End Enum
Public UserAuthorityLevel As Authority
' Graphic Variables
Public Type DrawingPoint
X As Long
Y As Long
End Type
Public Type DrawingRectangle
X1 As Long
Y1 As Long
X2 As Long
Y2 As Long
Width As Long
height As Long
CantrePoint As DrawingPoint
End Type
' Family History Variables
Public Enum FamilyRelationShip
Aunt
Brother
Brother_in_law
Child
Daughter
Daughter_in_law
Father
Father_in_law
Grandaunt
Grandfather
Grandmother
Grandnephew
Grandniece
Grandparent
Grandson
Granddaughter
Grandchild
Granduncle
Great_grandfather
Great_grandmother
Half_Brother
Half_Sister
Husband
Mother
Mother_in_law
MySelf
Nephew
Niece
Parent
Sibling
Sister
Sister_in_law
Son
Son_in_law
Spouse
Step_Brother
Step_Daughter
Step_Father
Step_Mother
Step_Relative
Step_Sister
Step_Son
Uncle
Wife
Other
End Enum
' Arithmatic Variables
Public mmtoinches As Double