📄 sys_ylmc.frm
字号:
Width = 7560
End
Begin MSAdodcLib.Adodc Ado_body
Height = 525
Left = 2760
Top = 1110
Width = 2610
_ExtentX = 4604
_ExtentY = 926
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 = "Ado_body"
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 Ado_gysCX
Height = 555
Left = 840
Top = 3450
Width = 2280
_ExtentX = 4022
_ExtentY = 979
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 = "Ado_gysCX"
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 Label
Caption = "物料名称:"
BeginProperty Font
Name = "宋体"
Size = 11.25
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H8000000D&
Height = 255
Index = 10
Left = 3600
TabIndex = 9
Top = 300
Width = 1215
End
Begin VB.Label Label
Caption = "物料类别:"
BeginProperty Font
Name = "宋体"
Size = 11.25
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H8000000D&
Height = 255
Index = 11
Left = 60
TabIndex = 8
Top = 300
Width = 1335
End
Begin VB.Label Label
Caption = "备 注:"
BeginProperty Font
Name = "宋体"
Size = 11.25
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H8000000D&
Height = 225
Index = 1
Left = 60
TabIndex = 7
Top = 720
Width = 1065
End
End
Begin ResizeLibCtl.ReSize ReSize1
Left = 960
Top = 3945
_Version = 196608
_ExtentX = 741
_ExtentY = 741
_StockProps = 64
Enabled = -1 'True
Enabled = -1 'True
FormMinWidth = 0
FormMinHeight = 0
FormDesignHeight= 6900
FormDesignWidth = 10590
End
Begin MSAdodcLib.Adodc Adoprimaryrs
Height = 615
Left = 3150
Top = 5160
Width = 4815
_ExtentX = 8493
_ExtentY = 1085
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 = "Adoprimaryrs"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "PMingLiU"
Size = 9
Charset = 136
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
_Version = 393216
End
Begin MSAdodcLib.Adodc Ado_CaiZh
Height = 465
Left = 3150
Top = 2190
Width = 2520
_ExtentX = 4445
_ExtentY = 820
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 = "Ado_CaiZh"
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 Ado_Dw
Height = 495
Left = 3120
Top = 2850
Width = 2625
_ExtentX = 4630
_ExtentY = 873
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 = "Ado_Dw"
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.TextBox Text
BackColor = &H00FFFFC0&
DataField = "cpbh"
DataSource = "Adoprimaryrs"
Enabled = 0 'False
BeginProperty Font
Name = "宋体"
Size = 11.25
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 345
Index = 0
Left = 6510
Locked = -1 'True
TabIndex = 25
Top = 210
Width = 2700
End
Begin VB.Label Label
Caption = "物料查询"
BeginProperty Font
Name = "宋体"
Size = 11.25
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 285
Index = 22
Left = 45
TabIndex = 26
Top = 90
Width = 1065
End
End
Attribute VB_Name = "sYs_YlMC"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim combo_Gwcp As Recordset
Dim TjBz As Boolean
Dim Data_Cx As Recordset
Dim a(6) As String
Dim LC As Boolean
Dim rs As Recordset
Dim XG_BJ As Boolean
Private Sub CMd_LC_Click()
If Cmdadd.Enabled = True Then
LC = True
TjBz = True
a(1) = Trim(Combo(0).Text)
a(3) = Trim(Text(1).Text)
a(4) = Trim(Text(2).Text)
If Ado_body.Recordset.RecordCount > 0 Then
Ado_body.Recordset.MoveFirst
For i = 1 To Ado_body.Recordset.RecordCount
Ado_body.Recordset.ActiveConnection.Execute "insert into SyS_YlMc_B(cpbh,gg,gys_bizh,gys_dj,jmdj,jkdj) values('','" & Ado_body.Recordset.Fields("gg").Value & "','" & Ado_body.Recordset.Fields("gys_bizh").Value & "','" & Ado_body.Recordset.Fields("gys_dj").Value & "','" & Ado_body.Recordset.Fields("jmdj").Value & "','" & Ado_body.Recordset.Fields("jkdj").Value & "')"
Ado_body.Recordset.MoveNext
Next i
End If
Call Cmdadd_Click
Combo(0).Text = a(1)
Text(1).Text = a(3)
Text(2).Text = a(4)
End If
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -