📄 frmappoinments.frm
字号:
VERSION 5.00
Object = "{5E9E78A0-531B-11CF-91F6-C2863C385E30}#1.0#0"; "MSFLXGRD.OCX"
Object = "{86CF1D34-0C5F-11D2-A9FC-0000F8754DA1}#2.0#0"; "mscomct2.ocx"
Object = "{935C9182-411B-4FFB-9512-97C8745743BC}#2.4#0"; "AResize.ocx"
Begin VB.Form frmAppoinments
BackColor = &H00FF8080&
Caption = "Out Patient Appointments"
ClientHeight = 10740
ClientLeft = 1410
ClientTop = 2340
ClientWidth = 12525
BeginProperty Font
Name = "Verdana"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Icon = "frmAppoinments.frx":0000
LinkTopic = "Form1"
MDIChild = -1 'True
ScaleHeight = 10740
ScaleWidth = 12525
WindowState = 2 'Maximized
Begin MSFlexGridLib.MSFlexGrid MSHFlexGrid1
Height = 6975
Left = 480
TabIndex = 9
Top = 1560
Width = 8295
_ExtentX = 14631
_ExtentY = 12303
_Version = 393216
Cols = 8
FixedCols = 0
BackColorBkg = 16744576
HighLight = 2
AllowUserResizing= 3
FormatString = "Appointment ID | Patien ID | Doctor / Service ID | Patient First Name | Patient Last Name | Contact Number | Date | Time"
End
Begin VB.Frame Frame3
BackColor = &H00FF8080&
Caption = "Appointments"
BeginProperty Font
Name = "Verdana"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FFFFFF&
Height = 1215
Left = 480
TabIndex = 7
Top = 8760
Width = 11895
Begin VB.CommandButton Command1
BackColor = &H00FFFFFF&
Caption = "&Close"
Height = 855
Left = 5880
Picture = "frmAppoinments.frx":57E2
Style = 1 'Graphical
TabIndex = 10
Top = 240
Width = 1335
End
Begin VB.CommandButton Command2
BackColor = &H00FFFFFF&
Caption = "Add Appointment"
Height = 855
Left = 4320
Picture = "frmAppoinments.frx":5CE6
Style = 1 'Graphical
TabIndex = 8
Top = 240
Width = 1335
End
End
Begin VB.Frame Frame2
BackColor = &H00FF8080&
Caption = "View Appointments"
BeginProperty Font
Name = "Verdana"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FFFFFF&
Height = 3975
Left = 9000
TabIndex = 3
Top = 1440
Width = 3375
Begin VB.OptionButton optApppointment
BackColor = &H00FF8080&
Caption = "Service Appointments"
ForeColor = &H00FFFFFF&
Height = 255
Index = 1
Left = 480
TabIndex = 6
Top = 3600
Width = 2295
End
Begin VB.OptionButton optApppointment
BackColor = &H00FF8080&
Caption = "Doctor Appointments"
ForeColor = &H00FFFFFF&
Height = 255
Index = 0
Left = 480
TabIndex = 5
Top = 3120
Value = -1 'True
Width = 2415
End
Begin MSComCtl2.MonthView MonthView1
Height = 2310
Left = 360
TabIndex = 4
Top = 480
Width = 2880
_ExtentX = 5080
_ExtentY = 4075
_Version = 393216
ForeColor = -2147483630
BackColor = 14677179
BorderStyle = 1
Appearance = 0
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "Verdana"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
OLEDropMode = 1
MonthBackColor = -2147483648
StartOfWeek = 61538305
CurrentDate = 38328
End
End
Begin VB.Frame Frame1
BackColor = &H00FF8080&
Caption = "View All Appointments"
BeginProperty Font
Name = "Verdana"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FFFFFF&
Height = 2895
Left = 9000
TabIndex = 0
Top = 5640
Width = 3375
Begin VB.CommandButton cmdServiceAppointment
BackColor = &H00FFFFFF&
Caption = "Service Appointments"
Height = 975
Left = 1200
Picture = "frmAppoinments.frx":6181
Style = 1 'Graphical
TabIndex = 2
Top = 1680
Width = 1335
End
Begin VB.CommandButton cmdDoctorAppointment
BackColor = &H00FFFFFF&
Caption = "Doctor Appointments"
Height = 975
Left = 1200
Picture = "frmAppoinments.frx":66F9
Style = 1 'Graphical
TabIndex = 1
Top = 480
Width = 1335
End
End
Begin ActiveResizeCtl.ActiveResize ActiveResize1
Left = 480
Top = 360
_ExtentX = 847
_ExtentY = 847
Resolution = 4
ScreenHeight = 1024
ScreenWidth = 1280
ScreenHeightDT = 1024
ScreenWidthDT = 1280
FormHeightDT = 11250
FormWidthDT = 12645
FormScaleHeightDT= 10740
FormScaleWidthDT= 12525
ResizeFormBackground= -1 'True
ResizePictureBoxContents= -1 'True
End
Begin VB.Label Label1
AutoSize = -1 'True
BackColor = &H00FF8080&
Caption = "OUT PATIENT APPOINTMENTS "
BeginProperty Font
Name = "Verdana"
Size = 18
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FFFFFF&
Height = 435
Left = 3600
TabIndex = 11
Top = 480
Width = 6195
End
End
Attribute VB_Name = "frmAppoinments"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private AppointmentSelect As Integer
Private rsAppointment As ADODB.Recordset 'Appointment table
Private Sub cmdDoctorAppointment_Click()
Dim SQL As String
Dim icol As Integer
Set rsAppointment = New ADODB.Recordset
'create sql statement
SQL = "SELECT * FROM Doctor_Appointment ORDER BY Appointment_Date, Appointment_Time "
Set rsAppointment.ActiveConnection = cnPatients
rsAppointment.Open SQL
With MSHFlexGrid1
.clear
.Rows = 1
.Cols = rsAppointment.Fields.Count
While Not rsAppointment.EOF
.Rows = .Rows + 1
.Row = .Rows - 1
For icol = 0 To rsAppointment.Fields.Count - 1
.Col = icol
.Text = rsAppointment(icol) & ""
Next
rsAppointment.MoveNext
Wend
.TextMatrix(0, 0) = "Appointment ID"
.TextMatrix(0, 1) = "Patient ID"
.TextMatrix(0, 2) = "Doctor ID"
.TextMatrix(0, 3) = "Appointment Date"
.TextMatrix(0, 4) = "Appointment Time"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -