📄 frmserviceschedule.frm
字号:
ForeColor = &H00FFFFFF&
Height = 1215
Left = 2160
TabIndex = 9
Top = 8040
Width = 6975
Begin VB.CommandButton cmdCancel
BackColor = &H00FFFFFF&
Caption = "&Cancel"
BeginProperty Font
Name = "Verdana"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 780
Left = 1560
Picture = "frmServiceSchedule.frx":6B4D
Style = 1 'Graphical
TabIndex = 16
Top = 240
Visible = 0 'False
Width = 1095
End
Begin VB.CommandButton cmdClose
BackColor = &H00FFFFFF&
Caption = "&Close"
BeginProperty Font
Name = "Verdana"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 780
Left = 5520
Picture = "frmServiceSchedule.frx":7051
Style = 1 'Graphical
TabIndex = 14
Top = 240
Width = 1095
End
Begin VB.CommandButton cmdRefresh
BackColor = &H00FFFFFF&
Caption = "&Refresh"
BeginProperty Font
Name = "Verdana"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 780
Left = 4200
Picture = "frmServiceSchedule.frx":755D
Style = 1 'Graphical
TabIndex = 13
Top = 240
Width = 1095
End
Begin VB.CommandButton cmdDelete
BackColor = &H00FFFFFF&
Caption = "&Delete"
BeginProperty Font
Name = "Verdana"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 780
Left = 2880
Picture = "frmServiceSchedule.frx":7A03
Style = 1 'Graphical
TabIndex = 12
Top = 240
Width = 1095
End
Begin VB.CommandButton cmdEdit
BackColor = &H00FFFFFF&
Caption = "&Edit"
Height = 780
Left = 1560
Picture = "frmServiceSchedule.frx":7EBC
Style = 1 'Graphical
TabIndex = 11
Top = 240
Width = 1095
End
Begin VB.CommandButton cmdAdd
BackColor = &H00FFFFFF&
Caption = "&Add"
Height = 780
Left = 240
Picture = "frmServiceSchedule.frx":8361
Style = 1 'Graphical
TabIndex = 10
Top = 240
Width = 1095
End
Begin VB.CommandButton cmdUpdate
BackColor = &H00FFFFFF&
Caption = "&Update"
BeginProperty Font
Name = "Verdana"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 780
Left = 240
Picture = "frmServiceSchedule.frx":8810
Style = 1 'Graphical
TabIndex = 15
Top = 240
Visible = 0 'False
Width = 1095
End
End
Begin VB.Frame frameDays
BackColor = &H00FF8080&
Caption = "Available Days"
BeginProperty Font
Name = "Verdana"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FFFFFF&
Height = 3855
Left = 7680
TabIndex = 1
Top = 1200
Visible = 0 'False
Width = 1935
Begin VB.CheckBox chkDay
BackColor = &H00FF8080&
Caption = "Wednesday"
BeginProperty Font
Name = "Verdana"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FFFFFF&
Height = 495
Index = 3
Left = 240
TabIndex = 8
Top = 1800
Width = 1455
End
Begin VB.CheckBox chkDay
BackColor = &H00FF8080&
Caption = "Saturday"
BeginProperty Font
Name = "Verdana"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FFFFFF&
Height = 495
Index = 6
Left = 240
TabIndex = 7
Top = 3240
Width = 1335
End
Begin VB.CheckBox chkDay
BackColor = &H00FF8080&
Caption = "Friday"
BeginProperty Font
Name = "Verdana"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FFFFFF&
Height = 495
Index = 5
Left = 240
TabIndex = 6
Top = 2760
Width = 1335
End
Begin VB.CheckBox chkDay
BackColor = &H00FF8080&
Caption = "Thursday"
BeginProperty Font
Name = "Verdana"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FFFFFF&
Height = 495
Index = 4
Left = 240
TabIndex = 5
Top = 2280
Width = 1335
End
Begin VB.CheckBox chkDay
BackColor = &H00FF8080&
Caption = "Tuesday"
BeginProperty Font
Name = "Verdana"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FFFFFF&
Height = 495
Index = 2
Left = 240
TabIndex = 4
Top = 1320
Width = 1335
End
Begin VB.CheckBox chkDay
BackColor = &H00FF8080&
Caption = "Monday"
BeginProperty Font
Name = "Verdana"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FFFFFF&
Height = 495
Index = 1
Left = 240
TabIndex = 3
Top = 840
Width = 1335
End
Begin VB.CheckBox chkDay
BackColor = &H00FF8080&
Caption = "Sunday"
BeginProperty Font
Name = "Verdana"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FFFFFF&
Height = 495
Index = 0
Left = 240
TabIndex = 2
Top = 360
Width = 1335
End
End
Begin MSDataGridLib.DataGrid grdDataGrid
Height = 1305
Left = 120
TabIndex = 0
Top = 5280
Width = 10560
_ExtentX = 18627
_ExtentY = 2302
_Version = 393216
AllowUpdate = 0 'False
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 = 11070
FormWidthDT = 10995
FormScaleHeightDT= 10560
FormScaleWidthDT= 10875
ResizeFormBackground= -1 'True
ResizePictureBoxContents= -1 'True
End
Begin VB.Label Label1
AutoSize = -1 'True
BackColor = &H00FF8080&
Caption = "HOSPITAL SERVICES DETAILS"
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 = 2520
TabIndex = 39
Top = 360
Width = 6045
End
End
Attribute VB_Name = "frmServiceSchedule"
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
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -