📄 dialogjcfind.frm
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Object = "{F0D2F211-CCB0-11D0-A316-00AA00688B10}#1.0#0"; "MSDATLST.OCX"
Begin VB.Form Dialogjcfind
BorderStyle = 3 'Fixed Dialog
Caption = "查询"
ClientHeight = 2580
ClientLeft = 2760
ClientTop = 3750
ClientWidth = 6030
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 2580
ScaleWidth = 6030
ShowInTaskbar = 0 'False
Begin MSAdodcLib.Adodc Adcbm
Height = 330
Left = 2520
Top = 2280
Visible = 0 'False
Width = 1815
_ExtentX = 3201
_ExtentY = 582
ConnectMode = 0
CursorLocation = 3
IsolationLevel = -1
ConnectionTimeout= 15
CommandTimeout = 30
CursorType = 3
LockType = 3
CommandType = 2
CursorOptions = 0
CacheSize = 50
MaxRecords = 0
BOFAction = 0
EOFAction = 0
ConnectStringType= 1
Appearance = 1
BackColor = -2147483643
ForeColor = -2147483640
Orientation = 0
Enabled = -1
Connect = "Provider=SQLOLEDB.1;Persist Security Info=False;User ID=sa;Initial Catalog=hgrs;Data Source=SERVER"
OLEDBString = "Provider=SQLOLEDB.1;Persist Security Info=False;User ID=sa;Initial Catalog=hgrs;Data Source=SERVER"
OLEDBFile = ""
DataSourceName = ""
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = "tbm"
Caption = "Adcbm"
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 MSDataListLib.DataCombo DCombo1
Bindings = "Dialogjcfind.frx":0000
DataField = "bmname"
DataSource = "Adcbm"
Height = 330
Left = 1440
TabIndex = 12
Top = 720
Width = 1335
_ExtentX = 2355
_ExtentY = 582
_Version = 393216
ListField = "bmname"
Text = "DataCombo1"
End
Begin VB.CommandButton OKButton
Caption = "确定"
Height = 375
Left = 4440
TabIndex = 11
Top = 0
Width = 855
End
Begin VB.CommandButton CancelButton
Caption = "返回"
Height = 375
Left = 4440
TabIndex = 10
Top = 480
Width = 855
End
Begin VB.TextBox Textzgid
Height = 270
Left = 1440
TabIndex = 4
Top = 120
Width = 1335
End
Begin VB.TextBox Textzgname
Height = 270
Left = 1440
TabIndex = 3
Top = 360
Width = 1335
End
Begin VB.TextBox Textdate1
Height = 270
Left = 1440
TabIndex = 2
Top = 1080
Width = 1335
End
Begin VB.TextBox Textdate2
Height = 270
Left = 1440
TabIndex = 1
Top = 1440
Width = 1335
End
Begin VB.TextBox Textbmid
Height = 270
Left = 3000
TabIndex = 0
Top = 720
Visible = 0 'False
Width = 975
End
Begin MSAdodcLib.Adodc Adodc1
Height = 330
Left = 2280
Top = 2040
Visible = 0 'False
Width = 2055
_ExtentX = 3625
_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 = "Provider=SQLOLEDB.1;Persist Security Info=False;User ID=sa;Initial Catalog=hgrs;Data Source=SERVER"
OLEDBString = "Provider=SQLOLEDB.1;Persist Security Info=False;User ID=sa;Initial Catalog=hgrs;Data Source=SERVER"
OLEDBFile = ""
DataSourceName = ""
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = "tbm"
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 MSAdodcLib.Adodc Adczg
Height = 330
Left = 240
Top = 2040
Visible = 0 'False
Width = 2055
_ExtentX = 3625
_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 = "Provider=SQLOLEDB.1;Persist Security Info=False;User ID=sa;Initial Catalog=hgrs;Data Source=SERVER"
OLEDBString = "Provider=SQLOLEDB.1;Persist Security Info=False;User ID=sa;Initial Catalog=hgrs;Data Source=SERVER"
OLEDBFile = ""
DataSourceName = ""
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = "tzg"
Caption = "Adczg"
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.Label Label1
Caption = "请输入查询工号"
Height = 255
Left = 0
TabIndex = 9
Top = 120
Width = 1335
End
Begin VB.Label Label2
Caption = "姓名"
Height = 255
Left = 840
TabIndex = 8
Top = 360
Width = 375
End
Begin VB.Label Label3
Caption = "部门"
Height = 255
Left = 840
TabIndex = 7
Top = 720
Width = 375
End
Begin VB.Label Label4
Caption = "开始日期"
Height = 255
Left = 600
TabIndex = 6
Top = 1080
Width = 735
End
Begin VB.Label Label5
Caption = "结束日期"
Height = 255
Left = 600
TabIndex = 5
Top = 1440
Width = 735
End
End
Attribute VB_Name = "Dialogjcfind"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Sub CancelButton_Click()
Unload Me
End Sub
Private Sub Combo1_Change()
End Sub
Private Sub DataCombo1_Click(Area As Integer)
Textbmid.Text = Adcbm.Recordset.Fields("bmid").Value
End Sub
Private Sub OKButton_Click()
Dim vzgid, vzgname, vbmid, vdate1, vdate2
vzgid = Textzgid.Text
vzgname = Textzgname.Text
vbmid = Textbmid.Text
vdate1 = Textdate1.Text
vdate2 = Textdate1.Text
Formjc.Adcjc.RecordSource = "select * from jc where zgid= '" & vzgid & "'or zgname='" & vzgname & "'or bmid='" & vbmid & "'or (sdate>='" & vdate1 & "' and sdate<='" & vdate2 & "') "
Formjc.Adcjc.Refresh
End Sub
Private Sub Textdate1_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
Textdate2.SetFocus
End If
End Sub
Private Sub Textzgid_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
Textzgname.SetFocus
End If
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -