📄 frmchildinput.frm
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Begin VB.Form frmChildInput
BorderStyle = 1 'Fixed Single
Caption = "用户档案"
ClientHeight = 4650
ClientLeft = 45
ClientTop = 330
ClientWidth = 6675
KeyPreview = -1 'True
LinkTopic = "Form1"
MDIChild = -1 'True
ScaleHeight = 4650
ScaleWidth = 6675
Begin VB.Frame Frame1
Caption = "价格设定"
Height = 1095
Left = 120
TabIndex = 17
Top = 2760
Width = 6375
Begin VB.ComboBox cmbPrice
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 360
Left = 1080
TabIndex = 19
Top = 360
Width = 1620
End
Begin VB.ComboBox cmbPrice1
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 360
Left = 4320
TabIndex = 18
Top = 360
Width = 1500
End
Begin VB.Label lblLabels
AutoSize = -1 'True
Caption = "电 价:"
Height = 180
Index = 18
Left = 120
TabIndex = 23
Top = 480
Width = 630
End
Begin VB.Label lblLabels
AutoSize = -1 'True
Caption = "水 价:"
Height = 180
Index = 21
Left = 3480
TabIndex = 22
Top = 480
Width = 630
End
Begin VB.Label lblLabels
AutoSize = -1 'True
Caption = "元"
Height = 180
Index = 13
Left = 2760
TabIndex = 21
Top = 480
Width = 180
End
Begin VB.Label lblLabels
AutoSize = -1 'True
Caption = "元"
Height = 180
Index = 20
Left = 6000
TabIndex = 20
Top = 480
Width = 180
End
End
Begin VB.Frame Frame2
Caption = "档案输入"
Height = 2415
Left = 120
TabIndex = 6
Top = 240
Width = 6375
Begin VB.TextBox txtFields
Appearance = 0 'Flat
DataField = "UserID"
DataSource = "datPrimaryRS"
Height = 285
Index = 0
Left = 3360
TabIndex = 24
Text = "0"
Top = 1440
Visible = 0 'False
Width = 1125
End
Begin VB.TextBox txtFields
Appearance = 0 'Flat
DataField = "Phone"
DataSource = "datPrimaryRS"
Height = 360
Index = 3
Left = 1080
TabIndex = 11
Top = 1080
Width = 1830
End
Begin VB.TextBox txtFields
Appearance = 0 'Flat
DataField = "BankNo"
DataSource = "datPrimaryRS"
Height = 360
Index = 4
Left = 1080
TabIndex = 10
Top = 1800
Width = 3525
End
Begin VB.TextBox txtFields
Appearance = 0 'Flat
BeginProperty DataFormat
Type = 1
Format = """#""##-###"
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 0
EndProperty
Height = 360
Index = 2
Left = 1080
TabIndex = 9
Top = 360
Width = 1845
End
Begin VB.TextBox txtFields
Appearance = 0 'Flat
DataField = "UserName"
DataSource = "datPrimaryRS"
Height = 360
Index = 1
Left = 4200
TabIndex = 8
Top = 360
Width = 1845
End
Begin VB.ComboBox cmbBank
Appearance = 0 'Flat
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 360
Left = 4200
TabIndex = 7
Top = 1080
Width = 1845
End
Begin VB.Label lblLabels
Caption = "联系电话:"
Height = 255
Index = 10
Left = 120
TabIndex = 16
Top = 1200
Width = 840
End
Begin VB.Label lblLabels
Caption = "账 号:"
Height = 255
Index = 9
Left = 120
TabIndex = 15
Top = 1920
Width = 840
End
Begin VB.Label lblLabels
Caption = "开户银行:"
Height = 255
Index = 8
Left = 3240
TabIndex = 14
Top = 1200
Width = 840
End
Begin VB.Label lblLabels
Caption = "用 户 名:"
Height = 255
Index = 1
Left = 3240
TabIndex = 13
Top = 480
Width = 840
End
Begin VB.Label lblLabels
AutoSize = -1 'True
Caption = "楼 号:"
Height = 180
Index = 19
Left = 120
TabIndex = 12
Top = 480
Width = 810
End
End
Begin VB.CommandButton cmdAdd
Caption = "增加"
Height = 364
Left = 120
TabIndex = 5
Top = 4140
Width = 949
End
Begin VB.CommandButton cmdDelete
Caption = "删除"
Height = 364
Left = 1185
TabIndex = 4
Top = 4140
Width = 949
End
Begin VB.CommandButton cmdModify
Caption = "修改"
Height = 364
Left = 2250
TabIndex = 3
Top = 4140
Width = 949
End
Begin VB.CommandButton cmdExit
Caption = "退出"
Height = 364
Left = 5445
TabIndex = 2
Top = 4140
Width = 949
End
Begin VB.CommandButton cmdSave
Caption = "保存"
Height = 364
Left = 3315
TabIndex = 1
Top = 4140
Width = 949
End
Begin VB.CommandButton cmdCancel
Caption = "取消"
Height = 364
Left = 4380
TabIndex = 0
Top = 4140
Width = 949
End
Begin MSAdodcLib.Adodc Adodc1
Height = 495
Left = 3960
Top = 3120
Width = 1815
_ExtentX = 3201
_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 = "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 = "frmChildInput"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim BOOL As Boolean
Dim nPictureID As Integer
Private Sub cmdAdd_Click()
cmdAdd.Enabled = False
cmdDelete.Enabled = False
cmdModify.Enabled = False
cmdSave.Enabled = True
cmdCancel.Enabled = True
'cmbElement.Enabled = True
cmbBank.Enabled = True
txtFields(0).Text = fiFindFreeID("user1")
For I = 1 To 4
txtFields(I) = ""
Next
cmbBank.ListIndex = 0
'mbMeterModel.ListIndex = 0
cmbPrice.ListIndex = 0
'
cmbPrice1.ListIndex = 0
End Sub
Private Sub cmdCancel_Click()
On Error GoTo ERRHAND:
Dim I As Integer
cmdAdd.Enabled = True
cmdModify.Enabled = True
cmdDelete.Enabled = True
cmdCancel.Enabled = False
cmdSave.Enabled = False
For I = 1 To 10
txtFields(I).Enabled = False
Next
cmbBank.Enabled = False
cmbPrice.Enabled = False
cmbPrice.Enabled = False
ERRHAND:
End Sub
Private Sub cmdDelete_Click()
Dim myset As New ADODB.Recordset
On Error GoTo DelRecErr
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -