Repository navigation
Expand file tree
/
Copy pathOutPatientConsulationForm.frm
More file actions
364 lines (359 loc) · 11.1 KB
/
Copy pathOutPatientConsulationForm.frm
File metadata and controls
364 lines (359 loc) · 11.1 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
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
VERSION 5.00
Object = "{F0D2F211-CCB0-11D0-A316-00AA00688B10}#1.0#0"; "MSDATLST.OCX"
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Begin VB.Form OutPatientConsulationForm
BackColor = &H00FFFFC0&
Caption = "OutPatientConsulationForm"
ClientHeight = 3090
ClientLeft = 60
ClientTop = 450
ClientWidth = 4680
BeginProperty Font
Name = "Verdana"
Size = 9.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
LinkTopic = "Form1"
MDIChild = -1 'True
ScaleHeight = 11010
ScaleWidth = 20370
WindowState = 2 'Maximized
Begin VB.TextBox Text4
DataField = "Problem"
DataSource = "Adodc1"
Height = 375
Left = 2280
TabIndex = 15
Top = 3360
Width = 3135
End
Begin VB.TextBox Text3
DataField = "Charge"
DataSource = "Adodc1"
Height = 375
Left = 2280
TabIndex = 13
Text = "200"
Top = 2760
Width = 1335
End
Begin MSDataListLib.DataCombo DataCombo1
Bindings = "OutPatientConsulationForm.frx":0000
DataField = "pCode"
DataSource = "Adodc1"
Height = 360
Left = 2280
TabIndex = 10
Top = 1560
Width = 3135
_ExtentX = 5530
_ExtentY = 635
_Version = 393216
ListField = "pCode"
BoundColumn = "pCode"
Text = ""
End
Begin VB.TextBox Text1
DataField = "ConsNo"
DataSource = "Adodc1"
DragMode = 1 'Automatic
Height = 375
Left = 2280
TabIndex = 6
Top = 360
Visible = 0 'False
Width = 3135
End
Begin VB.CommandButton ButNew
Caption = "&New"
Height = 495
Left = 120
TabIndex = 5
Top = 7920
Width = 1455
End
Begin VB.CommandButton Butclose
Caption = "&Close"
Height = 495
Left = 7920
TabIndex = 4
Top = 7920
Width = 1455
End
Begin VB.CommandButton butDelete
Caption = "&Delete"
Height = 495
Left = 4800
TabIndex = 3
Top = 7920
Width = 1455
End
Begin VB.CommandButton butModify
Caption = "&Update"
Height = 495
Left = 3240
TabIndex = 2
Top = 7920
Width = 1455
End
Begin VB.CommandButton butSave
Caption = "&Save"
Height = 495
Left = 1680
TabIndex = 1
Top = 7920
Width = 1455
End
Begin VB.TextBox Text2
DataField = "ConsDate"
DataSource = "Adodc1"
Height = 375
Left = 2280
TabIndex = 0
Top = 960
Width = 3135
End
Begin MSAdodcLib.Adodc Adodc1
Height = 495
Left = 120
Top = 7080
Width = 6135
_ExtentX = 10821
_ExtentY = 873
ConnectMode = 0
CursorLocation = 3
IsolationLevel = -1
ConnectionTimeout= 15
CommandTimeout = 30
CursorType = 3
LockType = 3
CommandType = 2
CursorOptions = 0
CacheSize = 50
MaxRecords = 0
BOFAction = 0
EOFAction = 0
ConnectStringType= 1
Appearance = 1
BackColor = -2147483643
ForeColor = -2147483640
Orientation = 0
Enabled = -1
Connect = $"OutPatientConsulationForm.frx":0015
OLEDBString = $"OutPatientConsulationForm.frx":00A2
OLEDBFile = ""
DataSourceName = ""
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = "OutConsTab"
Caption = "Adodc1"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "Verdana"
Size = 9.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
_Version = 393216
End
Begin MSAdodcLib.Adodc Adodc2
Height = 495
Left = 12120
Top = 120
Width = 2175
_ExtentX = 3836
_ExtentY = 873
ConnectMode = 0
CursorLocation = 3
IsolationLevel = -1
ConnectionTimeout= 15
CommandTimeout = 30
CursorType = 3
LockType = 3
CommandType = 2
CursorOptions = 0
CacheSize = 50
MaxRecords = 0
BOFAction = 0
EOFAction = 0
ConnectStringType= 1
Appearance = 1
BackColor = -2147483643
ForeColor = -2147483640
Orientation = 0
Enabled = -1
Connect = $"OutPatientConsulationForm.frx":012F
OLEDBString = $"OutPatientConsulationForm.frx":01BC
OLEDBFile = ""
DataSourceName = ""
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = "OutPatientTab"
Caption = "Adodc2"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "Verdana"
Size = 9.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
_Version = 393216
End
Begin MSDataListLib.DataCombo DataCombo2
Bindings = "OutPatientConsulationForm.frx":0249
DataField = "DeptName"
DataSource = "Adodc1"
Height = 360
Left = 2280
TabIndex = 11
Top = 2160
Width = 3135
_ExtentX = 5530
_ExtentY = 635
_Version = 393216
ListField = "DeptName"
BoundColumn = "DeptName"
Text = ""
End
Begin MSAdodcLib.Adodc Adodc3
Height = 495
Left = 12120
Top = 960
Width = 2175
_ExtentX = 3836
_ExtentY = 873
ConnectMode = 0
CursorLocation = 3
IsolationLevel = -1
ConnectionTimeout= 15
CommandTimeout = 30
CursorType = 3
LockType = 3
CommandType = 2
CursorOptions = 0
CacheSize = 50
MaxRecords = 0
BOFAction = 0
EOFAction = 0
ConnectStringType= 1
Appearance = 1
BackColor = -2147483643
ForeColor = -2147483640
Orientation = 0
Enabled = -1
Connect = $"OutPatientConsulationForm.frx":025E
OLEDBString = $"OutPatientConsulationForm.frx":02EB
OLEDBFile = ""
DataSourceName = ""
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = "DeptNameTab"
Caption = "Adodc3"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "Verdana"
Size = 9.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
_Version = 393216
End
Begin VB.Label Label4
BackStyle = 0 'Transparent
Caption = "Problem"
Height = 255
Left = 360
TabIndex = 16
Top = 3480
Width = 1695
End
Begin VB.Label Label3
BackStyle = 0 'Transparent
Caption = "Charge"
Height = 255
Left = 360
TabIndex = 14
Top = 2880
Width = 1695
End
Begin VB.Label Label2
BackStyle = 0 'Transparent
Caption = "Consult Date"
Height = 255
Left = 360
TabIndex = 12
Top = 1080
Width = 1695
End
Begin VB.Label Label6
BackStyle = 0 'Transparent
Caption = "Patient Code"
Height = 255
Left = 360
TabIndex = 9
Top = 1680
Width = 2175
End
Begin VB.Label Label1
BackStyle = 0 'Transparent
Caption = "Consult No"
Height = 255
Left = 360
TabIndex = 8
Top = 480
Visible = 0 'False
Width = 2175
End
Begin VB.Label Label5
BackStyle = 0 'Transparent
Caption = "Dept Name"
Height = 255
Left = 360
TabIndex = 7
Top = 2280
Width = 1815
End
End
Attribute VB_Name = "OutPatientConsulationForm"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Butclose_Click()
Unload Me
End Sub
Private Sub butDelete_Click()
Adodc1.Recordset.Delete
End Sub
Private Sub butModify_Click()
Adodc1.Recordset.Update
End Sub
Private Sub ButNew_Click()
Adodc1.Recordset.AddNew
Text2 = DateFormat(Date)
Text3 = "200"
End Sub
Private Sub butSave_Click()
If DataCombo1.Text = "" Then
MsgBox "Please enter all the details"
Exit Sub
End If
If DataCombo2.Text = "" Then
MsgBox "Please enter all the details"
Exit Sub
End If
Adodc1.Recordset.Save
End Sub