📄 frmdoctorschedule.frm
字号:
Begin VB.Label lblLabels
BackColor = &H00FF8080&
Caption = "Time In:"
ForeColor = &H00FFFFFF&
Height = 285
Index = 2
Left = 240
TabIndex = 23
Top = 1545
Width = 1815
End
Begin VB.Label lblLabels
BackColor = &H00FF8080&
Caption = "Time Out:"
ForeColor = &H00FFFFFF&
Height = 285
Index = 3
Left = 240
TabIndex = 22
Top = 2160
Width = 1815
End
Begin VB.Label lblLabels
BackColor = &H00FF8080&
Caption = "Available Days:"
ForeColor = &H00FFFFFF&
Height = 285
Index = 4
Left = 240
TabIndex = 21
Top = 2760
Width = 1815
End
Begin VB.Label lblLabels
BackColor = &H00FF8080&
Caption = "Schedule Notes:"
ForeColor = &H00FFFFFF&
Height = 285
Index = 5
Left = 240
TabIndex = 20
Top = 3360
Width = 1815
End
End
Begin VB.Frame frameDays
BackColor = &H00FF8080&
Caption = "Available Days"
ForeColor = &H00FFFFFF&
Height = 4335
Left = 7440
TabIndex = 1
Top = 1560
Width = 1935
Begin VB.CheckBox chkDay
BackColor = &H00FF8080&
Caption = "Wednesday"
ForeColor = &H00FFFFFF&
Height = 495
Index = 3
Left = 360
TabIndex = 8
Top = 1800
Width = 1335
End
Begin VB.CheckBox chkDay
BackColor = &H00FF8080&
Caption = "Saturday"
ForeColor = &H00FFFFFF&
Height = 495
Index = 6
Left = 360
TabIndex = 7
Top = 3240
Width = 1215
End
Begin VB.CheckBox chkDay
BackColor = &H00FF8080&
Caption = "Friday"
ForeColor = &H00FFFFFF&
Height = 495
Index = 5
Left = 360
TabIndex = 6
Top = 2760
Width = 1215
End
Begin VB.CheckBox chkDay
BackColor = &H00FF8080&
Caption = "Thursday"
ForeColor = &H00FFFFFF&
Height = 495
Index = 4
Left = 360
TabIndex = 5
Top = 2280
Width = 1215
End
Begin VB.CheckBox chkDay
BackColor = &H00FF8080&
Caption = "Tuesday"
ForeColor = &H00FFFFFF&
Height = 495
Index = 2
Left = 360
TabIndex = 4
Top = 1320
Width = 1215
End
Begin VB.CheckBox chkDay
BackColor = &H00FF8080&
Caption = "Monday"
ForeColor = &H00FFFFFF&
Height = 495
Index = 1
Left = 360
TabIndex = 3
Top = 840
Width = 1215
End
Begin VB.CheckBox chkDay
BackColor = &H00FF8080&
Caption = "Sunday"
ForeColor = &H00FFFFFF&
Height = 495
Index = 0
Left = 360
TabIndex = 2
Top = 360
Width = 1215
End
End
Begin MSDataGridLib.DataGrid grdDataGrid
Height = 1305
Left = 480
TabIndex = 0
Top = 6360
Width = 9120
_ExtentX = 16087
_ExtentY = 2302
_Version = 393216
AllowUpdate = 0 'False
Enabled = -1 'True
HeadLines = 1
RowHeight = 15
BeginProperty HeadFont {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "Verdana"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
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
ColumnCount = 2
BeginProperty Column00
DataField = ""
Caption = ""
BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
Type = 0
Format = ""
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 1033
SubFormatType = 0
EndProperty
EndProperty
BeginProperty Column01
DataField = ""
Caption = ""
BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
Type = 0
Format = ""
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 1033
SubFormatType = 0
EndProperty
EndProperty
SplitCount = 1
BeginProperty Split0
BeginProperty Column00
EndProperty
BeginProperty Column01
EndProperty
EndProperty
End
Begin ActiveResizeCtl.ActiveResize ActiveResize1
Left = 0
Top = 0
_ExtentX = 847
_ExtentY = 847
Resolution = 4
ScreenHeight = 1024
ScreenWidth = 1280
ScreenHeightDT = 1024
ScreenWidthDT = 1280
FormHeightDT = 11370
FormWidthDT = 10140
FormScaleHeightDT= 10860
FormScaleWidthDT= 10020
ResizeFormBackground= -1 'True
ResizePictureBoxContents= -1 'True
End
Begin VB.Label lblLabels
AutoSize = -1 'True
BackColor = &H00FF8080&
Caption = "DOCTOR APPOINTMENT SCHEDULING"
BeginProperty Font
Name = "Verdana"
Size = 18
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FFFFFF&
Height = 435
Index = 6
Left = 1080
TabIndex = 9
Top = 480
Width = 7545
End
End
Attribute VB_Name = "frmDoctorSchedule"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim WithEvents adoPrimaryRS As Recordset
Attribute adoPrimaryRS.VB_VarHelpID = -1
Dim mbChangedByCode As Boolean
Dim mvBookMark As Variant
Dim mbEditFlag As Boolean
Dim mbAddNewFlag As Boolean
Dim mbDataChanged As Boolean
Dim strDays As String
Private Sub chkDay_Click(Index As Integer)
Select Case (Index)
Case 0
If chkDay(0).Value = 1 Then
strDays = strDays & "Sun,"
'txtFields(4) = strDays
txtDay = strDays
ElseIf chkDay(0).Value = 0 Then
strDays = Replace(strDays, "Sun,", "")
'txtFields(4).Text = strDays
txtDay = strDays
End If
Case 1
If chkDay(1).Value = 1 Then
strDays = strDays & "Mon,"
'txtFields(4) = strDays
txtDay = strDays
ElseIf chkDay(1).Value = 0 Then
strDays = Replace(strDays, "Mon,", "")
'txtFields(4).Text = strDays
txtDay = strDays
End If
Case 2
If chkDay(2).Value = 1 Then
strDays = strDays & "Tue,"
'txtFields(4) = strDays
txtDay = strDays
ElseIf chkDay(2).Value = 0 Then
strDays = Replace(strDays, "Tue,", "")
'txtFields(4).Text = strDays
txtDay = strDays
End If
Case 3
If chkDay(3).Value = 1 Then
strDays = strDays & "Wed,"
'txtFields(4) = strDays
txtDay = strDays
ElseIf chkDay(3).Value = 0 Then
strDays = Replace(strDays, "Wed,", "")
'txtFields(4).Text = strDays
txtDay = strDays
End If
Case 4
If chkDay(4).Value = 1 Then
strDays = strDays & "Thu,"
'txtFields(4) = strDays
txtDay = strDays
ElseIf chkDay(4).Value = 0 Then
strDays = Replace(strDays, "Thu,", "")
'txtFields(4).Text = strDays
txtDay = strDays
End If
Case 5
If chkDay(5).Value = 1 Then
strDays = strDays & "Fri,"
'txtFields(4) = strDays
txtDay = strDays
ElseIf chkDay(5).Value = 0 Then
strDays = Replace(strDays, "Fri,", "")
'txtFields(4).Text = strDays
txtDay = strDays
End If
Case 6
If chkDay(6).Value = 1 Then
strDays = strDays & "Sat,"
'txtFields(4) = strDays
txtDay = strDays
ElseIf chkDay(6).Value = 0 Then
strDays = Replace(strDays, "Sat,", "")
'txtFields(4).Text = strDays
txtDay = strDays
End If
Case Else
End Select
End Sub
Private Sub cmbDoctorID_Click()
txtTempDocID = cmbDoctorID.Text
End Sub
Private Sub cmdShowAll_Click()
frmDoctorDetails.Show
End Sub
Private Sub Form_Activate()
'cmbDoctorID = PvtDocID
End Sub
Private Sub Form_Load()
Call Functions.DisableMenu
Set adoPrimaryRS = New Recordset
adoPrimaryRS.Open "SHAPE {select Schedule_ID,Doctor_ID,Doctor_In,Doctor_Out,Doctor_AvaiDate,Schedule_Notes from Doctor_Schedule_Details} AS ParentCMD APPEND ({select Schedule_ID,Doctor_ID,Doctor_In,Doctor_Out,Doctor_AvaiDate,Schedule_Notes from Doctor_Schedule_Details Order by Schedule_ID } AS ChildCMD RELATE Doctor_ID TO Doctor_ID) AS ChildCMD", cnPatients, adOpenDynamic, adLockPessimistic
Dim oText As TextBox
Dim oChk As CheckBox
'Bind the text boxes to the data provider
For Each oText In Me.txtFields
Set oText.DataSource = adoPrimaryRS
oText.Locked = True
Next
cmbDoctorID.Visible = False
frameDays.Visible = False
Set grdDataGrid.DataSource = adoPrimaryRS("ChildCMD").UnderlyingValue
mbDataChanged = False
End Sub
Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
If mbEditFlag Or mbAddNewFlag Then Exit Sub
Select Case KeyCode
Case vbKeyEscape
cmdClose_Click
Case vbKeyEnd
cmdLast_Click
Case vbKeyHome
cmdFirst_Click
Case vbKeyUp, vbKeyPageUp
If Shift = vbCtrlMask Then
cmdFirst_Click
Else
cmdPrevious_Click
End If
Case vbKeyDown, vbKeyPageDown
If Shift = vbCtrlMask Then
cmdLast_Click
Else
cmdNext_Click
End If
End Select
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -