📄
字号:
EndProperty
EndProperty
End
Begin MSAdodcLib.Adodc Adodc1
Height = 375
Left = 840
Top = 240
Visible = 0 'False
Width = 1935
_ExtentX = 3413
_ExtentY = 661
ConnectMode = 0
CursorLocation = 3
IsolationLevel = -1
ConnectionTimeout= 15
CommandTimeout = 30
CursorType = 3
LockType = 3
CommandType = 1
CursorOptions = 0
CacheSize = 50
MaxRecords = 0
BOFAction = 0
EOFAction = 0
ConnectStringType= 3
Appearance = 1
BackColor = -2147483643
ForeColor = -2147483640
Orientation = 0
Enabled = -1
Connect = "DSN=样品检测项目系统"
OLEDBString = ""
OLEDBFile = ""
DataSourceName = "样品检测项目系统"
OtherAttributes = ""
UserName = "sa"
Password = ""
RecordSource = "select * from 样品信息表 "
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.Label Lab_ls
Caption = "Lab_ls"
Height = 255
Left = -65160
TabIndex = 37
Top = 5160
Width = 855
End
Begin VB.Label Label7
Caption = "检验历史:"
Height = 255
Left = -66000
TabIndex = 36
Top = 5160
Width = 1215
End
Begin VB.Label Lab_select
Caption = "XM_select"
Height = 255
Left = -67440
TabIndex = 35
Top = 5160
Width = 1335
End
Begin VB.Label Label6
Caption = "已选项目:"
Height = 255
Left = -68280
TabIndex = 34
Top = 5160
Width = 1095
End
Begin VB.Label Lab_all
Caption = "XM_number"
Height = 255
Left = -73560
TabIndex = 33
Top = 5160
Width = 1575
End
Begin VB.Label Label5
Caption = "项目总和:"
Height = 255
Left = -74400
TabIndex = 32
Top = 5160
Width = 1095
End
End
Begin VB.Frame Frame_sort
Caption = "排序"
Height = 2055
Left = 4440
TabIndex = 27
Top = 120
Width = 1455
Begin VB.ComboBox Combosort
Height = 300
ItemData = "样品信息表.frx":0969
Left = 120
List = "样品信息表.frx":0976
TabIndex = 11
Text = "样品名称"
Top = 360
Width = 1215
End
Begin VB.CommandButton cmdsort
Caption = "开始排序"
Height = 375
Left = 120
TabIndex = 12
Top = 1320
Width = 1215
End
End
Begin MSComctlLib.StatusBar StatusBar1
Align = 2 'Align Bottom
Height = 375
Left = 0
TabIndex = 26
Top = 7785
Width = 11430
_ExtentX = 20161
_ExtentY = 661
_Version = 393216
BeginProperty Panels {8E3867A5-8586-11D1-B16A-00C0F0283628}
NumPanels = 3
BeginProperty Panel1 {8E3867AB-8586-11D1-B16A-00C0F0283628}
EndProperty
BeginProperty Panel2 {8E3867AB-8586-11D1-B16A-00C0F0283628}
EndProperty
BeginProperty Panel3 {8E3867AB-8586-11D1-B16A-00C0F0283628}
EndProperty
EndProperty
End
Begin VB.CommandButton cmdexitedit
Appearance = 0 'Flat
Caption = "退出编辑"
Enabled = 0 'False
Height = 375
Left = 8640
MaskColor = &H0000FF00&
Style = 1 'Graphical
TabIndex = 4
Top = 1800
Width = 855
End
Begin VB.CommandButton cmdedit
Appearance = 0 'Flat
Caption = "编辑"
Height = 375
Left = 7800
MaskColor = &H00FFFFFF&
Style = 1 'Graphical
TabIndex = 3
Top = 1800
Width = 855
End
Begin VB.CommandButton cmdcancel
Appearance = 0 'Flat
Caption = "取消"
Enabled = 0 'False
Height = 375
Left = 6960
MaskColor = &H00FFFFFF&
Style = 1 'Graphical
TabIndex = 2
Top = 1800
Width = 855
End
Begin VB.CommandButton cmddelete
Appearance = 0 'Flat
Caption = "删除"
Height = 375
Left = 10320
MaskColor = &H00FFFFFF&
Style = 1 'Graphical
TabIndex = 6
Top = 1800
Width = 855
End
Begin VB.CommandButton cmdadd
Appearance = 0 'Flat
Caption = "添加"
Height = 375
Left = 6120
MaskColor = &H00FFFFFF&
Style = 1 'Graphical
TabIndex = 1
Top = 1800
Width = 855
End
Begin VB.Frame FrmYPXXB
Caption = "样品信息表"
Height = 2055
Left = 120
TabIndex = 0
Top = 120
Width = 4215
Begin VB.TextBox TxtYPMC
DataField = "样品名称"
DataSource = "Adodc1"
Height = 270
Left = 1200
Locked = -1 'True
TabIndex = 7
Text = "TxtYPMC"
Top = 360
Width = 2895
End
Begin VB.TextBox TxtJYXM
DataField = "检验项目"
DataSource = "Adodc1"
Height = 270
Left = 1200
Locked = -1 'True
TabIndex = 8
Text = "TxtJYXM"
ToolTipText = "请在下面选择检验项目"
Top = 720
Width = 2895
End
Begin VB.TextBox TxtJYLS
DataField = "检验历史"
DataSource = "Adodc1"
Height = 270
Left = 1200
Locked = -1 'True
TabIndex = 9
Text = "TxtJYLS"
Top = 1080
Width = 2895
End
Begin VB.TextBox TxtBZ
DataField = "备注"
DataSource = "Adodc1"
Height = 270
Left = 1200
Locked = -1 'True
TabIndex = 10
Text = "TxtBZ"
Top = 1440
Width = 2895
End
Begin VB.Label Label4
AutoSize = -1 'True
Caption = "备注"
Height = 180
Left = 240
TabIndex = 25
Top = 1440
Width = 360
End
Begin VB.Label Label3
AutoSize = -1 'True
Caption = "检验历史"
Height = 180
Left = 240
TabIndex = 24
Top = 1080
Width = 720
End
Begin VB.Label Label2
AutoSize = -1 'True
Caption = "检验项目"
Height = 180
Left = 240
TabIndex = 23
Top = 720
Width = 720
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "样品名称"
Height = 180
Left = 240
TabIndex = 22
Top = 360
Width = 720
End
End
End
Attribute VB_Name = "样品信息表"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Adodc1_FieldChangeComplete(ByVal cFields As Long, Fields As Variant, ByVal pError As ADODB.Error, adStatus As ADODB.EventStatusEnum, ByVal pRecordset As ADODB.Recordset)
StatusBar1.Panels(1).Text = "记录总数:" + CStr(Adodc1.Recordset.RecordCount)
StatusBar1.Panels(2).Text = "当前记录号:" + CStr(Adodc1.Recordset.AbsolutePosition)
End Sub
Private Sub Adodc1_MoveComplete(ByVal adReason As ADODB.EventReasonEnum, ByVal pError As ADODB.Error, adStatus As ADODB.EventStatusEnum, ByVal pRecordset As ADODB.Recordset)
StatusBar1.Panels(1).Text = "记录总数:" + CStr(Adodc1.Recordset.RecordCount)
StatusBar1.Panels(2).Text = "当前记录号:" + CStr(Adodc1.Recordset.AbsolutePosition)
End Sub
Private Sub cmdadd_Click()
TxtYPMC.Locked = False
TxtJYXM.Locked = False
TxtJYLS.Locked = False
TxtBZ.Locked = False
Adodc1.Recordset.AddNew
cmdcancel.Enabled = True
cmdsave.Enabled = True
cmdadd.Enabled = False
cmddelete.Enabled = False
cmdedit.Enabled = False
Cmdselect.Enabled = True
Cmddel.Enabled = True
Cmdok.Enabled = True
End Sub
Private Sub cmdcancel_Click()
Adodc1.Recordset.CancelBatch
Adodc1.RecordSource = "select * from 样品信息表 " 'order by 上传时间 desc"
Adodc1.Refresh
cmdcancel.Enabled = False
cmdsave.Enabled = False
cmdadd.Enabled = True
cmddelete.Enabled = True
cmdedit.Enabled = True
TxtYPMC.Locked = True
TxtJYXM.Locked = True
TxtJYLS.Locked = True
TxtBZ.Locked = True
Cmdselect.Enabled = False
Cmddel.Enabled = False
Cmdok.Enabled = False
End Sub
Private Sub Cmddel_Click()
Listselect.RemoveItem Listselect.ListIndex
Lab_all.Caption = Listall.ListCount
Lab_select.Caption = Listselect.ListCount
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -