?? 復(fù)件 frm_kaoqihesuan.frm
字號(hào):
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"
Object = "{A5308B2E-ECEB-11D6-8E68-000110551BFC}#1.0#0"; "GButton.ocx"
Begin VB.Form frm_KaoQiHesuan
BorderStyle = 1 'Fixed Single
Caption = "考勤核算 "
ClientHeight = 5640
ClientLeft = 45
ClientTop = 330
ClientWidth = 7830
Icon = "frm_KaoQiHesuan.frx":0000
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 10670.99
ScaleMode = 0 'User
ScaleWidth = 16011.35
StartUpPosition = 3 '窗口缺省
Begin MSComctlLib.ProgressBar ProgressBar1
Height = 165
Left = 0
TabIndex = 8
Top = 5160
Width = 7815
_ExtentX = 13785
_ExtentY = 291
_Version = 393216
Appearance = 1
End
Begin MSComctlLib.StatusBar StatusBar1
Align = 2 'Align Bottom
Height = 255
Left = 0
TabIndex = 5
Top = 5385
Width = 7830
_ExtentX = 13811
_ExtentY = 450
_Version = 393216
BeginProperty Panels {8E3867A5-8586-11D1-B16A-00C0F0283628}
NumPanels = 5
BeginProperty Panel1 {8E3867AB-8586-11D1-B16A-00C0F0283628}
Text = "員工姓名"
TextSave = "員工姓名"
EndProperty
BeginProperty Panel2 {8E3867AB-8586-11D1-B16A-00C0F0283628}
EndProperty
BeginProperty Panel3 {8E3867AB-8586-11D1-B16A-00C0F0283628}
Text = "工號(hào)"
TextSave = "工號(hào)"
EndProperty
BeginProperty Panel4 {8E3867AB-8586-11D1-B16A-00C0F0283628}
EndProperty
BeginProperty Panel5 {8E3867AB-8586-11D1-B16A-00C0F0283628}
EndProperty
EndProperty
End
Begin VB.ListBox List2
BackColor = &H00C0DCC0&
Height = 4200
ItemData = "frm_KaoQiHesuan.frx":08CA
Left = 120
List = "frm_KaoQiHesuan.frx":08CC
MultiSelect = 2 'Extended
TabIndex = 2
Top = 600
Width = 2415
End
Begin VB.ListBox List1
BackColor = &H00C0DCC0&
Height = 4200
ItemData = "frm_KaoQiHesuan.frx":08CE
Left = 3240
List = "frm_KaoQiHesuan.frx":08D0
MultiSelect = 2 'Extended
TabIndex = 0
Top = 600
Width = 2415
End
Begin GButton.GurhanButton GurhanButton1
Height = 855
Index = 0
Left = 6240
TabIndex = 1
Top = 2520
Width = 1335
_ExtentX = 2355
_ExtentY = 1508
Caption = "開(kāi)始核算 "
OriginalPicSizeW= 0
OriginalPicSizeH= 0
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋體"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
MouseIcon = "frm_KaoQiHesuan.frx":08D2
MousePointer = 99
XPStyle = -1 'True
End
Begin GButton.GurhanButton cmdright
Height = 1935
Left = 2520
TabIndex = 3
Top = 600
Width = 780
_ExtentX = 1376
_ExtentY = 3413
Caption = ""
Picture = "frm_KaoQiHesuan.frx":0BEC
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋體"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
MouseIcon = "frm_KaoQiHesuan.frx":103E
MousePointer = 99
End
Begin GButton.GurhanButton cmdleft
Height = 2295
Left = 2520
TabIndex = 4
Top = 2520
Width = 780
_ExtentX = 1376
_ExtentY = 4048
Caption = ""
Picture = "frm_KaoQiHesuan.frx":1358
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋體"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
MouseIcon = "frm_KaoQiHesuan.frx":17AA
MousePointer = 99
End
Begin MSComCtl2.DTPicker DTPicker1
DataField = "ch_date"
DataSource = "datPrimaryRS"
Height = 375
Index = 0
Left = 6000
TabIndex = 6
Top = 840
Width = 1575
_ExtentX = 2778
_ExtentY = 661
_Version = 393216
CheckBox = -1 'True
Format = 23789569
CurrentDate = 37235
End
Begin MSComCtl2.DTPicker DTPicker1
DataField = "ch_date"
DataSource = "datPrimaryRS"
Height = 375
Index = 1
Left = 6000
TabIndex = 7
Top = 1560
Width = 1575
_ExtentX = 2778
_ExtentY = 661
_Version = 393216
CheckBox = -1 'True
Format = 23789569
CurrentDate = 37235
End
End
Attribute VB_Name = "frm_KaoQiHesuan"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Dim mDB As New mDB
'Dim strConn As String
'Dim strConn0 As String
Dim strSQL As String
Dim WithEvents adoprimaryRS As ADODB.Recordset
Attribute adoprimaryRS.VB_VarHelpID = -1
Dim strSQL2 As String
Dim WithEvents adoPrimaryRS2 As ADODB.Recordset
Attribute adoPrimaryRS2.VB_VarHelpID = -1
Dim strSQL3 As String
Dim WithEvents adoPrimaryRS3 As ADODB.Recordset
Attribute adoPrimaryRS3.VB_VarHelpID = -1
Dim strSQL4 As String
Dim WithEvents adoprimaryRS4 As ADODB.Recordset
Attribute adoprimaryRS4.VB_VarHelpID = -1
Dim strSQL5 As String
Dim WithEvents adoPrimaryRS5 As ADODB.Recordset
Attribute adoPrimaryRS5.VB_VarHelpID = -1
Dim mvList() As String
Dim db As ADODB.Connection
Private Sub Database_Refresh(xMode As Integer)
On Error Resume Next
Set db = New ADODB.Connection
db.CursorLocation = adUseClient
db.ConnectionString = strconnDR
db.Open '連接數(shù)據(jù)庫(kù)
If xMode = 0 Then
Set adoprimaryRS = New ADODB.Recordset
adoprimaryRS.Open strSQL, db, adOpenStatic, adLockOptimistic
ElseIf xMode = 1 Then
Set adoPrimaryRS2 = New ADODB.Recordset
ElseIf xMode = 2 Then
Set adoPrimaryRS3 = New ADODB.Recordset
adoPrimaryRS3.Open strSQL3, db, adOpenStatic, adLockOptimistic
ElseIf xMode = 3 Then
Set adoprimaryRS4 = New ADODB.Recordset
adoprimaryRS4.Open strSQL4, db, adOpenStatic, adLockOptimistic
End If
End Sub
Private Sub cmdleft_Click()
Dim i As Integer
On Error Resume Next
Dim stmp As String
Dim nCount As Integer
nCount = List1.ListCount - 1
Dim sList() As String
ReDim sList(nCount)
For i = 0 To List1.ListCount - 1
' Debug.Print List1.List(i)
sList(i) = List1.List(i)
If List1.Selected(i) = True Then
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -