📄 main_kcgl_kcpd.frm
字号:
Format = ""
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 0
EndProperty
EndProperty
SplitCount = 1
BeginProperty Split0
MarqueeStyle = 4
BeginProperty Column00
ColumnWidth = 780.095
EndProperty
BeginProperty Column01
ColumnWidth = 1980.284
EndProperty
BeginProperty Column02
ColumnWidth = 854.929
EndProperty
BeginProperty Column03
ColumnWidth = 750.047
EndProperty
BeginProperty Column04
ColumnWidth = 675.213
EndProperty
BeginProperty Column05
ColumnWidth = 480.189
EndProperty
BeginProperty Column06
ColumnWidth = 450.142
EndProperty
BeginProperty Column07
ColumnWidth = 750.047
EndProperty
BeginProperty Column08
ColumnWidth = 840.189
EndProperty
BeginProperty Column09
ColumnWidth = 1094.74
EndProperty
BeginProperty Column10
ColumnWidth = 1154.835
EndProperty
EndProperty
End
Begin VB.Frame Frame1
Caption = "查询条件"
Height = 1065
Left = 15
TabIndex = 0
Top = 660
Width = 10620
Begin VB.TextBox text1
BackColor = &H80000018&
Height = 285
Index = 2
Left = 7380
TabIndex = 5
Top = 240
Width = 3105
End
Begin VB.TextBox text1
BackColor = &H80000018&
Height = 285
Index = 1
Left = 3585
TabIndex = 4
Top = 240
Width = 2655
End
Begin VB.TextBox text1
BackColor = &H80000018&
Height = 285
Index = 4
Left = 7380
TabIndex = 2
Top = 660
Width = 3105
End
Begin VB.TextBox text1
BackColor = &H80000018&
Height = 285
Index = 0
Left = 1050
TabIndex = 1
Top = 240
Width = 1485
End
Begin VB.TextBox text1
BackColor = &H80000018&
Height = 285
Index = 3
Left = 1050
TabIndex = 3
Top = 660
Width = 5190
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "商品产地:"
Height = 180
Index = 4
Left = 6420
TabIndex = 10
Top = 705
Width = 900
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "商品规格:"
Height = 180
Index = 3
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 = 1020
Top = 2625
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_kcpd.frx":42A2
OLEDBString = $"main_kcgl_kcpd.frx":4339
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
End
Attribute VB_Name = "main_kcgl_kcpd"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'*************************************************************************
'**模 块 名:main_kcgl_kcpd
'**版权说明:吉林省明日科技有限公司享有本软件的所有版权,如果本软件用于商
'** 业用途,必须经过吉林省明日科技有限公司授权。如果提供网上免费
'** 下载,必须经过吉林省明日科技有限公司授权,并保证程序的完整,
'** 不得修改代码、注释和相关内容,否则,我公司将追究其法律责任
'**网 址:www.mingrisoft.com 价值无限,服务无限
'**电 话:(0431)84978981,84978982
'**创 建 人:明日科技
'**日 期:2007-10-31
'**修 改 人:MRLBB
'**日 期:2007-10-31
'**描 述:
'*************************************************************************
Public selectsql As String
Public oldBookmark1
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
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 "pdsl"
Dim myval As String
myval = InputBox("请输入盘点数量", "输入")
Cnn.Execute ("update tb_kc set 盘点数量=" & Val(myval) & " where 商品编号='" + DataGrid1.Columns(0) + "'")
Cnn.Execute ("update tb_kc set 盘点盈亏数量=盘点数量-库存 where 商品编号='" + DataGrid1.Columns(0) + "'")
oldBookmark1 = DataGrid1.Bookmark
Adodc1.Refresh
DataGrid1.Bookmark = oldBookmark1
RegInfo Me
Case "qk"
Cnn.Execute ("update tb_kc set 盘点盈亏数量=0,盘点数量=0")
Adodc1.Refresh
Case "exit"
Unload Me
End Select
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -