📄 frm_fwinfosc.frm
字号:
EndProperty
BeginProperty Column08
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 Column09
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 Column10
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 Column11
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 Column12
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 Column13
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 Column14
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
Object.Visible = 0 'False
ColumnWidth = 2085.166
EndProperty
BeginProperty Column01
ColumnWidth = 2085.166
EndProperty
BeginProperty Column02
Object.Visible = 0 'False
ColumnWidth = 2085.166
EndProperty
BeginProperty Column03
Object.Visible = 0 'False
ColumnWidth = 2085.166
EndProperty
BeginProperty Column04
Object.Visible = 0 'False
ColumnWidth = 1094.74
EndProperty
BeginProperty Column05
Object.Visible = 0 'False
ColumnWidth = 1094.74
EndProperty
BeginProperty Column06
Object.Visible = 0 'False
ColumnWidth = 2085.166
EndProperty
BeginProperty Column07
Object.Visible = 0 'False
ColumnWidth = 2085.166
EndProperty
BeginProperty Column08
Object.Visible = 0 'False
ColumnWidth = 2085.166
EndProperty
BeginProperty Column09
Object.Visible = 0 'False
ColumnWidth = 1094.74
EndProperty
BeginProperty Column10
Object.Visible = 0 'False
ColumnWidth = 2085.166
EndProperty
BeginProperty Column11
Object.Visible = 0 'False
ColumnWidth = 2085.166
EndProperty
BeginProperty Column12
Object.Visible = 0 'False
ColumnWidth = 2085.166
EndProperty
BeginProperty Column13
Object.Visible = 0 'False
ColumnWidth = 2085.166
EndProperty
BeginProperty Column14
Object.Visible = 0 'False
ColumnWidth = 1094.74
EndProperty
EndProperty
End
End
Begin VB.Frame Frame1
Caption = "选择小区"
Height = 780
Left = 195
TabIndex = 0
Top = 120
Width = 2505
Begin VB.ComboBox Combo1
Height = 300
Left = 1155
Style = 2 'Dropdown List
TabIndex = 1
Top = 285
Width = 1245
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "小区名称:"
Height = 180
Left = 150
TabIndex = 2
Top = 360
Width = 900
End
End
Begin MSAdodcLib.Adodc Adodc6
Height = 330
Left = -240
Top = 795
Visible = 0 'False
Width = 1485
_ExtentX = 2619
_ExtentY = 582
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=Microsoft.Jet.OLEDB.4.0;Data Source=db_wygl.mdb;Persist Security Info=False"
OLEDBString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=db_wygl.mdb;Persist Security Info=False"
OLEDBFile = ""
DataSourceName = ""
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = "select * from tab_xqinfo"
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.Label Label17
Caption = "Label17"
DataField = "房间结构"
DataSource = "Adodc5"
Height = 300
Left = 4005
TabIndex = 37
Top = 4740
Width = 1440
End
Begin VB.Label Label16
Caption = "Label16"
DataField = "权属类型"
DataSource = "Adodc4"
Height = 315
Left = 4035
TabIndex = 36
Top = 4770
Width = 1065
End
Begin VB.Label Label14
Caption = "Label14"
Height = 255
Left = 4080
TabIndex = 23
Top = 4935
Width = 1155
End
Begin VB.Label Label13
AutoSize = -1 'True
Caption = "Label13"
DataField = "大楼名称"
DataSource = "Adodc2"
Height = 180
Left = 4140
TabIndex = 21
Top = 4920
Width = 630
End
End
Attribute VB_Name = "Frm_fwinfosc"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Sub Form_Load()
Adodc1.RecordSource = "select * from tab_xqinfo"
Adodc1.Refresh
If Adodc1.Recordset.RecordCount > 0 Then
Adodc1.Recordset.MoveFirst
Do While Adodc1.Recordset.EOF = False
Combo1.AddItem Adodc1.Recordset.Fields("小区名称")
Adodc1.Recordset.MoveNext
Loop
End If
Adodc3.RecordSource = "select * from tab_frontage"
Adodc3.Refresh
If Adodc3.Recordset.RecordCount > 0 Then
Adodc3.Recordset.MoveFirst
Do While Adodc3.Recordset.EOF = False
Combo2.AddItem Adodc3.Recordset.Fields("房屋朝向")
Adodc3.Recordset.MoveNext
Loop
End If
Adodc5.RecordSource = "select * from tab_fjstructure"
Adodc5.Refresh
If Adodc5.Recordset.RecordCount > 0 Then
Adodc5.Recordset.MoveFirst
Do While Adodc5.Recordset.EOF = False
Combo4.AddItem Adodc5.Recordset.Fields("房间结构")
Adodc5.Recordset.MoveNext
Loop
End If
End Sub
Private Sub Combo1_Click()
Text6.Text = Combo1.Text
Adodc2.RecordSource = "select * from tab_dlinfo where 大楼编号 like '" + Combo1.Text + "%'"
Adodc2.Refresh
End Sub
Private Sub Command1_Click()
Dim m As String
Dim a, b, c, d, e, f As Integer
b = Val(Text2.Text)
c = Val(Text3.Text)
d = Val(Text4.Text)
For a = Val(Text1) To b
For e = 1 To c
For f = 1 To d
Text5.Text = Combo1.Text + Label13.Caption + Trim(Str(a)) + Trim(Str(e)) + Trim(Str(f))
Adodc6.RecordSource = "select * from tab_fwinfo"
Adodc6.Refresh
If Adodc6.Recordset.RecordCount > 0 Then
Adodc6.Recordset.MoveFirst
Do While Adodc6.Recordset.EOF = False
If Adodc6.Recordset.Fields("房间编号") = Trim(Text5) Then
GoTo l:
Else
Adodc6.Recordset.MoveNext
End If
Loop
Set adors = cn.Execute("insert into tab_fwinfo (房间编号,小区名称,大楼名称,单元,楼层,权属类型,房间结构,配备设施,房间类别,朝向) values('" & Trim(Text5) & "','" & Trim(Text6) & "','" & Trim(Label13) & "','" & Trim(Str(a)) & "','" & Trim(Str(e)) & "','" & Trim(Combo3.Text) & "','" & Trim(Combo4.Text) & "','" & Trim(Combo5.Text) & "','" & Trim(Combo6.Text) & "','" & Trim(Combo2.Text) & "')")
Else
Set adors = cn.Execute("insert into tab_fwinfo (房间编号,小区名称,大楼名称,单元,楼层,权属类型,房间结构,配备设施,房间类别,朝向) values('" & Trim(Text5) & "','" & Trim(Text6) & "','" & Trim(Label13) & "','" & Trim(Str(a)) & "','" & Trim(Str(e)) & "','" & Trim(Combo3.Text) & "','" & Trim(Combo4.Text) & "','" & Trim(Combo5.Text) & "','" & Trim(Combo6.Text) & "','" & Trim(Combo2.Text) & "')")
End If
l:
Next f
Next e
Next a
MsgBox "数据保存成功", 32, "管理信息系统"
Adodc6.Refresh
End Sub
Private Sub Command2_Click()
Unload Me
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -