📄 main_kcgl_jggl.frm
字号:
Left = 6405
TabIndex = 9
Top = 315
Width = 900
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "商品批号:"
Height = 180
Index = 2
Left = 2625
TabIndex = 8
Top = 315
Width = 900
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "商品名称:"
Height = 180
Index = 1
Left = 135
TabIndex = 7
Top = 705
Width = 900
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "商品编号:"
Height = 180
Index = 0
Left = 135
TabIndex = 6
Top = 315
Width = 900
End
End
Begin MSAdodcLib.Adodc Adodc1
Height = 345
Left = 2490
Top = 5895
Visible = 0 'False
Width = 1995
_ExtentX = 3519
_ExtentY = 609
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= 1
Appearance = 1
BackColor = -2147483643
ForeColor = -2147483640
Orientation = 0
Enabled = -1
Connect = $"main_kcgl_jggl.frx":038A
OLEDBString = $"main_kcgl_jggl.frx":0421
OLEDBFile = ""
DataSourceName = ""
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = "select * from tb_kc"
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 MSComctlLib.Toolbar Toolbar1
Align = 1 'Align Top
Height = 555
Left = 0
TabIndex = 12
Top = 0
Width = 10680
_ExtentX = 18838
_ExtentY = 979
ButtonWidth = 1455
ButtonHeight = 926
Appearance = 1
Style = 1
ImageList = "ImageList1"
_Version = 393216
BeginProperty Buttons {66833FE8-8583-11D1-B16A-00C0F0283628}
NumButtons = 5
BeginProperty Button1 {66833FEA-8583-11D1-B16A-00C0F0283628}
Caption = "查询"
Key = "cx"
ImageIndex = 1
Object.Width = 900
EndProperty
BeginProperty Button2 {66833FEA-8583-11D1-B16A-00C0F0283628}
Caption = "修改进价"
Key = "xgjj"
ImageIndex = 5
EndProperty
BeginProperty Button3 {66833FEA-8583-11D1-B16A-00C0F0283628}
Caption = "批量处理"
Key = "plcl"
Object.ToolTipText = "清空盘点数据"
ImageIndex = 6
EndProperty
BeginProperty Button4 {66833FEA-8583-11D1-B16A-00C0F0283628}
Style = 4
Object.Width = 7000
EndProperty
BeginProperty Button5 {66833FEA-8583-11D1-B16A-00C0F0283628}
Caption = "退出"
Key = "exit"
ImageIndex = 7
EndProperty
EndProperty
BorderStyle = 1
End
Begin MSComctlLib.ImageList ImageList1
Left = 975
Top = 5640
_ExtentX = 1005
_ExtentY = 1005
BackColor = -2147483643
ImageWidth = 16
ImageHeight = 16
MaskColor = 12632256
_Version = 393216
BeginProperty Images {2C247F25-8591-11D1-B16A-00C0F0283628}
NumListImages = 7
BeginProperty ListImage1 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "main_kcgl_jggl.frx":04B8
Key = ""
EndProperty
BeginProperty ListImage2 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "main_kcgl_jggl.frx":0D92
Key = ""
EndProperty
BeginProperty ListImage3 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "main_kcgl_jggl.frx":166C
Key = ""
EndProperty
BeginProperty ListImage4 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "main_kcgl_jggl.frx":1F46
Key = ""
EndProperty
BeginProperty ListImage5 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "main_kcgl_jggl.frx":2820
Key = ""
EndProperty
BeginProperty ListImage6 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "main_kcgl_jggl.frx":2B74
Key = ""
EndProperty
BeginProperty ListImage7 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "main_kcgl_jggl.frx":2EC8
Key = ""
EndProperty
EndProperty
End
End
Attribute VB_Name = "main_kcgl_jggl"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'*************************************************************************
'**模 块 名:main_kcgl_jggl
'**版权说明:吉林省明日科技有限公司享有本软件的所有版权,如果本软件用于商
'** 业用途,必须经过吉林省明日科技有限公司授权。如果提供网上免费
'** 下载,必须经过吉林省明日科技有限公司授权,并保证程序的完整,
'** 不得修改代码、注释和相关内容,否则,我公司将追究其法律责任
'**网 址:www.mingrisoft.com 价值无限,服务无限
'**电 话:(0431)84978981,84978982
'**创 建 人:明日科技
'**日 期:2007-10-31
'**修 改 人:MRLBB
'**日 期:2007-10-31
'**描 述:
'*************************************************************************
Public selectsql As String
Private Sub Form_Load()
Adodc1.ConnectionString = "Provider=SQLOLEDB.1;Persist Security Info=False;User ID=sa;Initial Catalog=db_JXC;Data Source=."
Set DataGrid1.DataSource = Adodc1
Dim i As Integer
For i = 0 To 8
DataGrid1.Columns(i).Locked = True
Next i
End Sub
Private Sub Toolbar1_ButtonClick(ByVal Button As MSComctlLib.Button)
Select Case Button.Key
Case "cx"
selectsql = ""
If Text1(0) <> "" Then
If selectsql <> "" Then
selectsql = "商品编号 like +'" + Text1(0) + "'+'%'and " & selectsql
Else
selectsql = "商品编号 like +'" + Text1(0) + "'+'%'"
End If
End If
If Text1(1) <> "" Then
If selectsql <> "" Then
selectsql = "批号 like+ '" + Text1(1) + "'+'%'and " & selectsql
Else
selectsql = "批号 like + '" + Text1(1) + "'+'%'"
End If
End If
If Text1(2) <> "" Then
If selectsql <> "" Then
selectsql = "规格 like+ '" + Text1(2) + "'+'%'and " & selectsql
Else
selectsql = "规格 like+ '" + Text1(2) + "'+'%'"
End If
End If
If Text1(3) <> "" Then
If selectsql <> "" Then
selectsql = "商品名称 like +'" + Text1(3) + "'+'%'and " & selectsql
Else
selectsql = "商品名称 like + '" + Text1(3) + "'+'%'"
End If
End If
If Text1(4) <> "" Then
If selectsql <> "" Then
selectsql = "产地 like+ '" + Text1(4) + "'+'%'and " & selectsql
Else
selectsql = "产地 like +'" + Text1(4) + "'+'%'"
End If
End If
If selectsql <> "" Then
Adodc1.RecordSource = "select * from tb_kc where " & selectsql
Adodc1.Refresh
Else
Adodc1.RecordSource = "select * from tb_kc"
Adodc1.Refresh
End If
Case "xgjj"
DataGrid1.Columns(7).Locked = False
Case "plcl"
Dim myval As String
myval = InputBox("请输入加价或减价的数据。加价如“+1”,减价如“-1”", "输入")
On Error Resume Next
If selectsql <> "" Then
Cnn.Execute ("update tb_kc set 进价=进价" & myval & " where " & selectsql)
Else
Cnn.Execute ("update tb_kc set 进价=进价" & myval)
End If
Adodc1.Refresh
RegInfo Me
Case "exit"
Unload Me
End Select
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -