📄 rkcx.frm
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Object = "{CDE57A40-8B86-11D0-B3C6-00A0C90AEA82}#1.0#0"; "MSDATGRD.OCX"
Begin VB.Form rkcx
BorderStyle = 3 'Fixed Dialog
Caption = "物资入库信息查询"
ClientHeight = 7305
ClientLeft = 45
ClientTop = 435
ClientWidth = 10230
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 7305
ScaleWidth = 10230
ShowInTaskbar = 0 'False
StartUpPosition = 3 '窗口缺省
Begin VB.TextBox Text5
DataField = "物资金额"
DataSource = "Adodc1"
Height = 330
Left = 9960
TabIndex = 13
Top = 2520
Visible = 0 'False
Width = 1200
End
Begin VB.TextBox Text4
DataField = "入库数量"
DataSource = "Adodc1"
Height = 330
Left = 9960
TabIndex = 12
Top = 2160
Visible = 0 'False
Width = 1200
End
Begin VB.TextBox Text3
DataField = "物资编号"
DataSource = "Adodc1"
Height = 330
Left = 9960
TabIndex = 11
Top = 1800
Visible = 0 'False
Width = 1200
End
Begin VB.OptionButton Option2
Caption = "Option2"
Height = 375
Left = 5280
TabIndex = 2
Top = 300
Width = 255
End
Begin VB.OptionButton Option1
Caption = "Option1"
Height = 375
Left = 960
TabIndex = 0
Top = 240
Width = 255
End
Begin VB.CommandButton Command4
Caption = "返回(&X)"
Height = 435
Left = 8760
TabIndex = 6
Top = 6600
Width = 1125
End
Begin VB.CommandButton Command3
Caption = "删除(&D)"
Height = 375
Left = 8160
TabIndex = 10
Top = 840
Visible = 0 'False
Width = 1215
End
Begin MSAdodcLib.Adodc Adodc1
Height = 330
Left = 9960
Top = 1320
Visible = 0 'False
Width = 1200
_ExtentX = 2117
_ExtentY = 582
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 = "Provider=SQLOLEDB.1;Persist Security Info=False;User ID=sa;Initial Catalog=emil;Data Source=EMIL"
OLEDBString = "Provider=SQLOLEDB.1;Persist Security Info=False;User ID=sa;Initial Catalog=emil;Data Source=EMIL"
OLEDBFile = ""
DataSourceName = ""
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = $"rkcx.frx":0000
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 MSDataGridLib.DataGrid DataGrid1
Bindings = "rkcx.frx":00EA
Height = 5055
Left = 360
TabIndex = 9
Top = 1320
Width = 9495
_ExtentX = 16748
_ExtentY = 8916
_Version = 393216
AllowUpdate = 0 'False
HeadLines = 1
RowHeight = 15
BeginProperty HeadFont {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ColumnCount = 2
BeginProperty Column00
DataField = ""
Caption = ""
BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
Type = 0
Format = ""
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 0
EndProperty
EndProperty
BeginProperty Column01
DataField = ""
Caption = ""
BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
Type = 0
Format = ""
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 0
EndProperty
EndProperty
SplitCount = 1
BeginProperty Split0
BeginProperty Column00
EndProperty
BeginProperty Column01
EndProperty
EndProperty
End
Begin VB.CommandButton Command2
Caption = "取消(&X)"
Height = 375
Left = 5520
TabIndex = 5
Top = 840
Width = 1215
End
Begin VB.CommandButton Command1
Caption = "确定(&O)"
Default = -1 'True
Height = 375
Left = 2400
TabIndex = 4
Top = 840
Width = 1215
End
Begin VB.TextBox Text2
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 6720
TabIndex = 3
Top = 300
Width = 2295
End
Begin VB.TextBox Text1
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 2400
TabIndex = 1
Top = 240
Width = 2295
End
Begin VB.Label Label2
Caption = "规格型号:"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Left = 5640
TabIndex = 8
Top = 360
Width = 1095
End
Begin VB.Label Label1
Caption = "物资名称:"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Left = 1320
TabIndex = 7
Top = 300
Width = 1095
End
End
Attribute VB_Name = "rkcx"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Adodc1.Recordset.MoveFirst
If Option1.Value = True Then
With Adodc1.Recordset
.Find "物资名称 LIKE '*" & Text1.Text & "*'", 1, adSearchForward, .Bookmark
If .EOF Then .MoveFirst
End With
Text1.Text = ""
Text1.SetFocus
End If
If Option2.Value = True Then
With Adodc1.Recordset
.Find "物资型号 LIKE '*" & Text2.Text & "*'", 1, adSearchForward, .Bookmark
If .EOF Then .MoveFirst
End With
Text2.Text = ""
Text2.SetFocus
End If
End Sub
Private Sub Command2_Click()
Unload Me
End Sub
Private Sub Command3_Click()
If MsgBox("确定要删除此信息吗?", vbYesNo + vbDefaultButton2, "请确认删除!") = vbYes Then
yexi.Adodc1.Recordset.MoveFirst
With yexi.Adodc1.Recordset
.Find "物资编号 LIKE '*" & Text3.Text & "*'", 1, adSearchForward, .Bookmark
If .EOF Then .MoveFirst
End With
yexi.Text10.Text = Text4.Text
yexi.Text11.Text = Text5.Text
With Adodc1.Recordset
.Delete
.MoveNext
If .EOF Then .MoveLast
End With
End If
yexi.Text6.Text = Val(Val(yexi.Text6.Text) - Val(yexi.Text10.Text))
yexi.Text7.Text = Val(Val(yexi.Text7.Text) - Val(yexi.Text11.Text))
yexi.Command2 = True
End Sub
Private Sub Command4_Click()
Unload Me
system.Show
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -