📄 jbdj.frm
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Object = "{D07CD9D2-ECE9-493F-86F2-186659945889}#1.0#0"; "Xpbutton.ocx"
Object = "{625E61B9-D59C-4612-89FC-D10614DC5873}#1.0#0"; "CoolBoySkin1.2(修正版).ocx"
Begin VB.Form jbdjs
BackColor = &H0080FFFF&
BorderStyle = 0 'None
Caption = "交班登记"
ClientHeight = 1755
ClientLeft = 0
ClientTop = 0
ClientWidth = 8415
LinkTopic = "Form1"
ScaleHeight = 1755
ScaleWidth = 8415
ShowInTaskbar = 0 'False
StartUpPosition = 3 '窗口缺省
Begin 工程1.xpcmdbutton xpcmdbutton1
Height = 375
Left = 7275
TabIndex = 8
Top = 855
Width = 720
_ExtentX = 1270
_ExtentY = 661
Caption = "取消"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
End
Begin MSAdodcLib.Adodc Adodc1
Height = 330
Left = 960
Top = 75
Visible = 0 'False
Width = 1200
_ExtentX = 2117
_ExtentY = 582
ConnectMode = 0
CursorLocation = 3
IsolationLevel = -1
ConnectionTimeout= 15
CommandTimeout = 30
CursorType = 3
LockType = 3
CommandType = 8
CursorOptions = 0
CacheSize = 50
MaxRecords = 0
BOFAction = 0
EOFAction = 0
ConnectStringType= 1
Appearance = 1
BackColor = -2147483643
ForeColor = -2147483640
Orientation = 0
Enabled = -1
Connect = ""
OLEDBString = ""
OLEDBFile = ""
DataSourceName = ""
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = ""
Caption = "Adodc1"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
_Version = 393216
End
Begin VB.ComboBox Combo1
Height = 300
Left = 4815
TabIndex = 7
Top = 885
Width = 1500
End
Begin VB.Timer Timer1
Interval = 1000
Left = 4110
Top = 405
End
Begin VB.TextBox Text1
Height = 255
Left = 2040
TabIndex = 2
Top = 915
Width = 2520
End
Begin 工程1.xpcmdbutton xpcmdbutton2
Height = 375
Left = 6465
TabIndex = 0
Top = 840
Width = 735
_ExtentX = 1296
_ExtentY = 661
Caption = "交班"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
End
Begin CoolBoySkinForVB6.CoolBoySkin CoolBoySkin1
Height = 1845
Left = 1470
TabIndex = 1
Top = 240
Width = 3405
_ExtentX = 6006
_ExtentY = 3254
Caption = "交班登记"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "Arial"
Size = 9.75
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
MenuBackColor = 16777215
End
Begin VB.Label Label4
BackStyle = 0 'Transparent
Caption = "接班人:"
BeginProperty Font
Name = "宋体"
Size = 9
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FF0000&
Height = 225
Left = 4830
TabIndex = 6
Top = 630
Width = 945
End
Begin VB.Label Label3
Alignment = 2 'Center
BorderStyle = 1 'Fixed Single
Caption = "姓名"
Height = 285
Left = 225
TabIndex = 5
Top = 900
Width = 1740
End
Begin VB.Label Label2
BackStyle = 0 'Transparent
Caption = "交班人:"
BeginProperty Font
Name = "宋体"
Size = 9
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FF0000&
Height = 285
Left = 210
TabIndex = 4
Top = 600
Width = 1365
End
Begin VB.Label Label1
BackStyle = 0 'Transparent
Caption = "现在时间:"
BeginProperty Font
Name = "宋体"
Size = 9
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FF0000&
Height = 225
Left = 2085
TabIndex = 3
Top = 630
Width = 1305
End
End
Attribute VB_Name = "jbdjs"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Form_Load()
Label3.Caption = username
Adodc1.ConnectionString = connstr
Adodc1.CommandType = adCmdText
Adodc1.CommandTimeout = 20
Combo1.Clear
Adodc1.RecordSource = "select username from [user] where DWS='" & gsname & "' and username not in ('admin','管理员','" & username & "')"
Adodc1.Refresh
Do While Not Adodc1.Recordset.EOF
Combo1.AddItem Trim(Adodc1.Recordset.Fields("username"))
Adodc1.Recordset.MoveNext
Loop
Text1.Text = Format(Now, "dddddd hh:mm:ss")
Me.Top = mme.Top + mme.Height
Me.Left = Screen.Width - Me.Width - 100
End Sub
Private Sub Timer1_Timer()
Text1.Text = Format(Now, "dddddd hh:mm:ss")
End Sub
Private Sub xpcmdbutton1_Click()
Unload Me
End Sub
Private Sub xpcmdbutton2_Click()
If Combo1.Text = "" Then
MsgBox "接班人没有明确!请在交班时,当面清点数据!", vbOKOnly + vbInformation, "提示"
Exit Sub
End If
jkws.newdh = Format(Now, "yyyymmddhhmmss") & "-" & userid
jkws.newusername = Combo1.Text
jkws.Show
Unload jbdjs
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -