?? frmbizstatuslist.frm
字號:
VERSION 5.00
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
Object = "{86CF1D34-0C5F-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCT2.OCX"
Begin VB.Form frmBizStatusList
Caption = "營業廳營業狀況列表"
ClientHeight = 6015
ClientLeft = 60
ClientTop = 345
ClientWidth = 8415
Icon = "frmBizStatusList.frx":0000
LinkTopic = "Form1"
LockControls = -1 'True
MDIChild = -1 'True
ScaleHeight = 6015
ScaleWidth = 8415
WindowState = 2 'Maximized
Begin VB.CommandButton cmdPrint
Caption = "打印(&P)"
Height = 375
Left = 1080
TabIndex = 8
Top = 5520
Width = 975
End
Begin VB.CommandButton cmdQuit
Caption = "關閉(&C)"
Height = 375
Left = 7200
TabIndex = 6
Top = 5520
Width = 1095
End
Begin VB.Frame fra2
Caption = "統計時段"
BeginProperty Font
Name = "宋體"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 615
Index = 2
Left = 2520
TabIndex = 12
Top = 120
Width = 2415
Begin VB.OptionButton opt1
Caption = "一小時"
Height = 255
Index = 1
Left = 1320
TabIndex = 2
Top = 240
Width = 975
End
Begin VB.OptionButton opt1
Caption = "半小時"
Height = 255
Index = 0
Left = 240
TabIndex = 1
Top = 240
Value = -1 'True
Width = 1095
End
End
Begin VB.Frame fra2
Caption = "服務類型"
BeginProperty Font
Name = "宋體"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 615
Index = 1
Left = 5040
TabIndex = 11
Top = 120
Width = 3255
Begin VB.ComboBox cboService
Height = 300
Left = 120
Style = 2 'Dropdown List
TabIndex = 3
Top = 240
Width = 3015
End
End
Begin VB.Frame fra2
Caption = "服務時間"
BeginProperty Font
Name = "宋體"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 615
Index = 0
Left = 120
TabIndex = 10
Top = 120
Width = 2295
Begin MSComCtl2.DTPicker dtpService
Height = 300
Left = 120
TabIndex = 0
Top = 240
Width = 2055
_ExtentX = 3625
_ExtentY = 529
_Version = 393216
Format = 23724033
CurrentDate = 37580
End
End
Begin VB.Frame fra1
Caption = "員工工作狀況"
BeginProperty Font
Name = "宋體"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 4575
Left = 120
TabIndex = 9
Top = 840
Width = 8175
Begin MSComctlLib.ListView lsvService
Height = 4215
Left = 120
TabIndex = 4
Top = 240
Width = 7935
_ExtentX = 13996
_ExtentY = 7435
View = 3
LabelEdit = 1
LabelWrap = 0 'False
HideSelection = 0 'False
GridLines = -1 'True
_Version = 393217
ForeColor = -2147483640
BackColor = -2147483643
Appearance = 1
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋體"
Size = 9.75
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
NumItems = 9
BeginProperty ColumnHeader(1) {BDD1F052-858B-11D1-B16A-00C0F0283628}
Text = "統計時間"
Object.Width = 3316
EndProperty
BeginProperty ColumnHeader(2) {BDD1F052-858B-11D1-B16A-00C0F0283628}
Alignment = 2
SubItemIndex = 1
Text = "取號人數"
Object.Width = 1764
EndProperty
BeginProperty ColumnHeader(3) {BDD1F052-858B-11D1-B16A-00C0F0283628}
SubItemIndex = 2
Text = "服務人數"
Object.Width = 1764
EndProperty
BeginProperty ColumnHeader(4) {BDD1F052-858B-11D1-B16A-00C0F0283628}
Alignment = 2
SubItemIndex = 3
Text = "等待人數"
Object.Width = 1764
EndProperty
BeginProperty ColumnHeader(5) {BDD1F052-858B-11D1-B16A-00C0F0283628}
Alignment = 2
SubItemIndex = 4
Text = "平均等待時間"
Object.Width = 2540
EndProperty
BeginProperty ColumnHeader(6) {BDD1F052-858B-11D1-B16A-00C0F0283628}
Alignment = 2
SubItemIndex = 5
Text = "最長等待時間"
Object.Width = 2540
EndProperty
BeginProperty ColumnHeader(7) {BDD1F052-858B-11D1-B16A-00C0F0283628}
Alignment = 2
SubItemIndex = 6
Text = "平均服務時間"
Object.Width = 2540
EndProperty
BeginProperty ColumnHeader(8) {BDD1F052-858B-11D1-B16A-00C0F0283628}
Alignment = 2
SubItemIndex = 7
Text = "最長服務時間"
Object.Width = 2540
EndProperty
BeginProperty ColumnHeader(9) {BDD1F052-858B-11D1-B16A-00C0F0283628}
SubItemIndex = 8
Text = "棄號人數"
Object.Width = 1764
EndProperty
End
End
Begin VB.CommandButton cmdRefresh
Caption = "刷新(&R)"
Height = 375
Left = 6120
TabIndex = 5
Top = 5520
Width = 1095
End
Begin VB.CommandButton cmdPreview
Caption = "預覽(&V)"
Height = 375
Left = 120
TabIndex = 7
Top = 5520
Width = 975
End
End
Attribute VB_Name = "frmBizStatusList"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Dim m_tagErrInfo As TYPE_ERRORINFO
'時間管理設置
Private Type Time_Set
'是否啟動時間管理
time_use As Boolean
'開始服務時間
time_start As String
'結束服務時間
time_end As String
End Type
Dim my_time_set As Time_Set
Dim m_iDateLen As Integer
Dim m_sDate As String
Dim m_sService As String
Private Sub cmdQuit_Click()
On Error Resume Next
Unload Me
End Sub
Private Sub cmdRefresh_Click()
On Error Resume Next
If cboService.ListIndex < 0 Then
MsgBox "請選擇需要統計的服務類型。", vbOKOnly, "系統提示"
Exit Sub
End If
m_sService = CStr(cboService.ItemData(cboService.ListIndex))
m_sDate = dtpService.Value
InitListInfo
End Sub
Private Sub Form_Load()
On Error GoTo ERROR_EXIT
Dim sDate As String
Dim rs As New ADODB.Recordset, cmd As New ADODB.Command
Dim strSQL As String, i As Integer
m_iDateLen = 0
sDate = DateAdd("d", -1, Date)
dtpService.MaxDate = sDate
dtpService.Value = sDate
m_sDate = dtpService.Value
cboService.Clear
m_sService = ""
'連接數據庫
cmd.ActiveConnection = dbMyDB
cmd.CommandType = adCmdText
'查詢數據庫
strSQL = "SELECT * FROM Style WHERE st_type = 1 AND nouse_yesno = 0"
cmd.CommandText = strSQL
rs.CursorLocation = adUseClient
rs.Open cmd, , adOpenStatic, adLockReadOnly
If Not rs.EOF And rs.RecordCount > 0 Then
rs.MoveFirst
For i = 1 To rs.RecordCount
cboService.AddItem rs!st_name
cboService.ItemData(i - 1) = rs!st_id
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -