📄 frm_yzinfodj.frm
字号:
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 = 1035
Left = 135
TabIndex = 0
Top = 255
Width = 2760
Begin VB.ComboBox Combo1
Height = 300
Left = 1035
TabIndex = 19
Top = 330
Width = 1470
End
Begin VB.Label Label1
Caption = "小区名称:"
Height = 525
Left = 165
TabIndex = 1
Top = 390
Width = 1230
End
End
Begin MSAdodcLib.Adodc Adodc2
Height = 330
Left = 255
Top = 2010
Width = 1785
_ExtentX = 3149
_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_dlinfo"
Caption = "C"
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 MSAdodcLib.Adodc Adodc1
Height = 330
Left = 315
Top = 480
Width = 1380
_ExtentX = 2434
_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 MSAdodcLib.Adodc Adodc4
Height = 390
Left = 5115
Top = 915
Width = 1785
_ExtentX = 3149
_ExtentY = 688
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=D:\工程与实践\物业管理系统\program\db_wygl.mdb;Persist Security Info=False"
OLEDBString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\工程与实践\物业管理系统\program\db_wygl.mdb;Persist Security Info=False"
OLEDBFile = ""
DataSourceName = ""
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = "select * from tab_yzinfo"
Caption = "Adodc4"
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 Label4
Caption = "Label4"
DataField = "房间编号"
DataSource = "Adodc3"
Height = 255
Left = 3045
TabIndex = 21
Top = 6210
Width = 1005
End
Begin VB.Label Label3
Caption = "Label3"
DataField = "大楼名称"
DataSource = "Adodc2"
Height = 360
Left = 855
TabIndex = 20
Top = 6120
Width = 1005
End
Begin VB.Label Label2
Caption = "Label2"
DataField = "小区名称"
DataSource = "Adodc1"
Height = 180
Left = 1875
TabIndex = 18
Top = 1050
Width = 780
End
End
Attribute VB_Name = "Frm_yzinfodj"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Dim i As Integer
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
End Sub
Private Sub DataGrid1_Click()
Adodc3.RecordSource = "select * from tab_fwinfo where 大楼名称 = '" + Label3 + "'"
Adodc3.Refresh
End Sub
Private Sub OptAll_Click()
Adodc4.RecordSource = "select * from tab_yzinfo"
Adodc4.Refresh
End Sub
Private Sub OptT_Click()
Adodc4.RecordSource = "select * from tab_yzinfo where 是否进住 like '" + "已进住" + "%'"
Adodc4.Refresh
End Sub
Private Sub OptF_Click()
Adodc4.RecordSource = "select * from tab_yzinfo where 是否进住 like '" + "未进住" + "%'"
Adodc4.Refresh
End Sub
Private Sub Combo1_Click()
Adodc2.RecordSource = "select * from tab_dlinfo where 大楼编号 like '" + Combo1.Text + "%'"
Adodc2.Refresh
End Sub
Private Sub CmdView_Click()
frm_fwxxinfo.Adodc1.RecordSource = "select * from tab_fwinfo where mid(房间编号,3,3) like '" + Label3 + "%'"
frm_fwxxinfo.Adodc1.Refresh
If frm_fwxxinfo.Adodc1.Recordset.RecordCount > 0 Then
End If
frm_fwxxinfo.Show
End Sub
Private Sub CmdAdd_Click()
If Combo1.Text = "" Or Label3.Caption = "" Or Label4.Caption = "" Then
MsgBox "请选择小区名称,大楼名称,房间编号", 48, "提示"
Exit Sub
ElseIf Text1.Text <> "" Then
MsgBox "此房已被住请另选其他房", 48, "提示"
Exit Sub
End If
Frm_yzinfo.Text1 = Combo1.Text
Frm_yzinfo.Text2 = Label3.Caption
Frm_yzinfo.Text3 = Right(Label4.Caption, 4)
Frm_yzinfo.Text4 = Label4.Caption
Frm_yzinfo.Text5 = Label4.Caption
Frm_yzinfo.Show
Unload Me
End Sub
Private Sub CmdModify_Click()
For i = 0 To 16
Frm_yzmd.Text1(i).Text = DataGrid3.Columns(i).Text
Next i
Frm_yzmd.Show
End Sub
Private Sub CmdDelete_Click()
Adodc4.RecordSource = "select * from tab_rkinfo"
If Adodc4.Recordset.RecordCount > 0 Then
Adodc4.Recordset.Delete
Adodc4.Recordset.Update
End If
End Sub
Private Sub CmdEnd_Click()
Frm_main.Show
Unload Me
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -