📄 frmspdj.frm
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "Msadodc.OCX"
Begin VB.Form FRMSPdj
BorderStyle = 3 'Fixed Dialog
Caption = "水票登记"
ClientHeight = 5505
ClientLeft = 45
ClientTop = 330
ClientWidth = 8175
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
Picture = "FRMSPdj.frx":0000
ScaleHeight = 5505
ScaleWidth = 8175
ShowInTaskbar = 0 'False
StartUpPosition = 2 '屏幕中心
Begin VB.CommandButton Command2
Caption = "保存"
Height = 495
Left = 1680
TabIndex = 15
Top = 4080
Width = 1095
End
Begin MSAdodcLib.Adodc Adodc1
Height = 495
Left = 7560
Top = 5520
Visible = 0 'False
Width = 1215
_ExtentX = 2143
_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 = "Provider=MSDASQL.1;Password=515515;Persist Security Info=True;User ID=sa;Data Source=login"
OLEDBString = "Provider=MSDASQL.1;Password=515515;Persist Security Info=True;User ID=sa;Data Source=login"
OLEDBFile = ""
DataSourceName = ""
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = "select * from waters"
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.CommandButton Command1
Caption = "添加"
Height = 495
Left = 1680
TabIndex = 14
Top = 4080
Width = 1095
End
Begin VB.CommandButton cmdExit
Caption = "返回 "
Height = 495
Left = 4080
TabIndex = 13
Top = 4080
Width = 1215
End
Begin VB.Frame Frame1
BackColor = &H00FF8080&
Caption = "水票信息"
Height = 3015
Left = 240
TabIndex = 3
Top = 480
Width = 7695
Begin VB.TextBox txtItem
DataField = "备注"
DataSource = "Adodc1"
Height = 1080
Index = 11
Left = 1320
MaxLength = 80
MultiLine = -1 'True
ScrollBars = 2 'Vertical
TabIndex = 12
Top = 1680
Width = 4692
End
Begin VB.TextBox txtItem
DataField = "水票终止号"
DataSource = "Adodc1"
Height = 270
Index = 6
Left = 4920
MaxLength = 10
TabIndex = 11
Top = 1080
Width = 2175
End
Begin VB.TextBox txtItem
DataField = "水票起始号"
DataSource = "Adodc1"
Height = 270
Index = 5
Left = 1320
MaxLength = 10
TabIndex = 10
Top = 1080
Width = 2175
End
Begin VB.TextBox txtItem
DataField = "编号"
DataSource = "Adodc1"
Height = 270
Index = 0
Left = 1320
MaxLength = 8
TabIndex = 0
Top = 360
Width = 2175
End
Begin VB.TextBox txtItem
DataField = "水票名称"
DataSource = "Adodc1"
Height = 270
Index = 1
Left = 1320
MaxLength = 20
TabIndex = 1
Top = 720
Width = 2175
End
Begin VB.TextBox txtItem
DataField = "登记日期"
DataSource = "Adodc1"
Height = 270
Index = 2
Left = 4920
MaxLength = 20
TabIndex = 2
Top = 360
Width = 2175
End
Begin VB.Label Label2
BackStyle = 0 'Transparent
Caption = "备注:"
Height = 255
Index = 6
Left = 360
TabIndex = 9
Top = 2040
Width = 975
End
Begin VB.Label Label2
BackStyle = 0 'Transparent
Caption = "水票终止号码:"
Height = 255
Index = 5
Left = 3600
TabIndex = 8
Top = 1080
Width = 1455
End
Begin VB.Label Label2
BackStyle = 0 'Transparent
Caption = "水票起始号码:"
Height = 255
Index = 4
Left = 120
TabIndex = 7
Top = 1080
Width = 1455
End
Begin VB.Label Label2
BackStyle = 0 'Transparent
Caption = "编号:"
Height = 255
Index = 0
Left = 480
TabIndex = 6
Top = 360
Width = 975
End
Begin VB.Label Label2
BackStyle = 0 'Transparent
Caption = "水票名称:"
Height = 255
Index = 1
Left = 240
TabIndex = 5
Top = 720
Width = 975
End
Begin VB.Label Label2
BackStyle = 0 'Transparent
Caption = "登记日期:"
Height = 255
Index = 16
Left = 3840
TabIndex = 4
Top = 360
Width = 975
End
End
End
Attribute VB_Name = "FRMSPdj"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub cmdExit_Click()
Me.Hide
End Sub
Private Sub Command1_Click()
On Error Resume Next
Adodc1.Recordset.AddNew
Adodc1.Recordset("编号") = ""
Adodc1.Recordset("登记日期") = Format(Date, "yy-mm-dd")
Adodc1.Recordset("水票名称") = ""
Adodc1.Recordset("水票起始号") = ""
Adodc1.Recordset("水票终止号") = ""
Adodc1.Recordset("单价") = ""
Adodc1.Recordset("备注") = ""
Adodc1.Recordset.MoveLast
Command1.Visible = False
Command2.Visible = True
End Sub
Private Sub Command2_Click()
Command2.Visible = False
Command1.Visible = True
End Sub
Private Sub Command3_Click()
End Sub
Private Sub Form_Load()
Command2.Visible = False
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -