📄 lhbfrm.frm
字号:
VERSION 5.00
Begin VB.Form lhbfrm
BorderStyle = 3 'Fixed Dialog
Caption = "轮换电度表"
ClientHeight = 6285
ClientLeft = 45
ClientTop = 330
ClientWidth = 2880
Icon = "lhbfrm.frx":0000
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 6285
ScaleWidth = 2880
ShowInTaskbar = 0 'False
StartUpPosition = 1 'CenterOwner
Begin VB.TextBox xbchm
Alignment = 2 'Center
Height = 375
Left = 1200
TabIndex = 1
Top = 3600
Width = 1215
End
Begin VB.TextBox xbblm
Alignment = 2 'Center
Height = 375
Left = 1200
TabIndex = 2
Text = "1"
Top = 4080
Width = 1215
End
Begin VB.TextBox bl
Alignment = 2 'Center
Enabled = 0 'False
Height = 375
Left = 1200
TabIndex = 20
Top = 2160
Width = 1215
End
Begin VB.TextBox sybm
Alignment = 2 'Center
Enabled = 0 'False
Height = 375
Left = 1200
TabIndex = 17
Top = 2640
Width = 1215
End
Begin VB.TextBox bzmm
Alignment = 2 'Center
Height = 375
Left = 1200
TabIndex = 0
Text = "0"
Top = 3120
Width = 1215
End
Begin VB.TextBox bybmm
Alignment = 2 'Center
Height = 375
Left = 1200
TabIndex = 4
Text = "0"
Top = 5040
Width = 1215
End
Begin VB.TextBox bqmm
Alignment = 2 'Center
Height = 375
Left = 1200
TabIndex = 3
Text = "0"
Top = 4560
Width = 1215
End
Begin VB.TextBox ch
Alignment = 2 'Center
Enabled = 0 'False
Height = 375
Left = 1200
TabIndex = 13
Top = 1680
Width = 1215
End
Begin VB.TextBox Text3
Alignment = 2 'Center
Enabled = 0 'False
Height = 375
Left = 1200
TabIndex = 11
Top = 1200
Width = 1215
End
Begin VB.TextBox Text2
Alignment = 2 'Center
Enabled = 0 'False
Height = 375
Left = 1200
TabIndex = 9
Top = 720
Width = 1215
End
Begin VB.TextBox Text1
Alignment = 2 'Center
Enabled = 0 'False
Height = 375
Left = 1200
TabIndex = 7
Top = 240
Width = 1215
End
Begin VB.CommandButton Command2
Cancel = -1 'True
Caption = "取 消"
Height = 375
Left = 1680
TabIndex = 6
Top = 5760
Width = 735
End
Begin VB.CommandButton Command1
Caption = "保 存"
Default = -1 'True
Height = 375
Left = 360
TabIndex = 5
Top = 5760
Width = 735
End
Begin VB.Label Label11
Caption = "新表厂号"
ForeColor = &H000000FF&
Height = 375
Left = 360
TabIndex = 23
Top = 3720
Width = 735
End
Begin VB.Label Label10
Caption = "新表倍率"
ForeColor = &H000000FF&
Height = 375
Left = 360
TabIndex = 22
Top = 4200
Width = 735
End
Begin VB.Label Label9
Caption = "旧表倍率"
ForeColor = &H00FF0000&
Height = 375
Left = 360
TabIndex = 21
Top = 2280
Width = 735
End
Begin VB.Label Label8
Caption = "旧表起码"
ForeColor = &H00FF0000&
Height = 375
Left = 360
TabIndex = 19
Top = 2760
Width = 735
End
Begin VB.Label Label7
Caption = "旧表止码"
ForeColor = &H00FF0000&
Height = 375
Left = 360
TabIndex = 18
Top = 3240
Width = 735
End
Begin VB.Label Label6
Caption = "新表止码"
ForeColor = &H000000FF&
Height = 375
Left = 360
TabIndex = 16
Top = 5160
Width = 735
End
Begin VB.Label Label5
Caption = "新表起码"
ForeColor = &H000000FF&
Height = 375
Left = 360
TabIndex = 15
Top = 4680
Width = 735
End
Begin VB.Label Label4
Caption = "旧表厂号"
ForeColor = &H00FF0000&
Height = 375
Left = 360
TabIndex = 14
Top = 1800
Width = 735
End
Begin VB.Label Label3
Caption = "户 号"
Height = 375
Left = 360
TabIndex = 12
Top = 1320
Width = 735
End
Begin VB.Label Label2
Caption = "村 名"
Height = 375
Left = 360
TabIndex = 10
Top = 840
Width = 735
End
Begin VB.Label Label1
Caption = "变压器号"
Height = 375
Left = 360
TabIndex = 8
Top = 360
Width = 735
End
End
Attribute VB_Name = "lhbfrm"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Public sj As Database
Public tmpsql As Recordset
Private Sub bqmm_Change()
bybmm.Text = bqmm
End Sub
Private Sub Command1_Click()
If xbchm <> "" Or string1(6) <> "" Then
ab = "update bk set xbch='" + xbchm + "',xbbl=" + xbblm + ",bqm=" + bqmm + ",bybm=" + bybmm + ",bzm=" + bzmm + " where byqh='" + Text1 + "' and hh='" + Text3 + "';"
sj.Execute ab
sj.Close
'Erase string1
string1(1) = bzmm
string1(2) = xbchm
string1(3) = xbblm
string1(4) = bqmm
string1(5) = bzmm
string1(6) = bybmm
boolean1(1) = True
Unload Me
Else
ab = MsgBox(" 无新表厂号无法轮换 ", vbOKOnly + 16, "提示:")
End If
End Sub
Private Sub Command2_Click()
boolean1(1) = False
sj.Close
Unload Me
End Sub
Private Sub Form_Load()
Text1 = string1(1)
Text2 = string1(2)
Text3 = string1(3)
ch.Text = string1(4)
sybm.Text = string1(5)
bzmm = string1(7)
bqmm = string1(8)
bybmm = string1(9)
If string1(6) <> "" Then
xbchm = string1(6)
Else
xbchm = ""
End If
bl.Text = "1"
tmp = App.Path + "\data\cjsj.mdb"
Set sj = OpenDatabase(tmp, False, False, ";pwd=sunlm")
'set tmpsql=sj.OpenRecordset("select xbch
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -