⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 frm_cxbj.frm

📁 房地产管理系统 对房地产的销售做日常的管理维护等
💻 FRM
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Begin VB.Form frm_CXBJ 
   BorderStyle     =   3  'Fixed Dialog
   Caption         =   "楼房房屋信息编辑"
   ClientHeight    =   1770
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   5370
   LinkTopic       =   "Form1"
   LockControls    =   -1  'True
   MaxButton       =   0   'False
   MDIChild        =   -1  'True
   MinButton       =   0   'False
   ScaleHeight     =   1770
   ScaleWidth      =   5370
   ShowInTaskbar   =   0   'False
   Begin MSAdodcLib.Adodc Adodc1 
      Height          =   330
      Left            =   720
      Top             =   1320
      Visible         =   0   'False
      Width           =   1815
      _ExtentX        =   3201
      _ExtentY        =   582
      ConnectMode     =   0
      CursorLocation  =   3
      IsolationLevel  =   -1
      ConnectionTimeout=   15
      CommandTimeout  =   30
      CursorType      =   3
      LockType        =   3
      CommandType     =   1
      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;Persist Security Info=False;User ID=sa;Data Source=ljm"
      OLEDBString     =   "Provider=MSDASQL.1;Persist Security Info=False;User ID=sa;Data Source=ljm"
      OLEDBFile       =   ""
      DataSourceName  =   ""
      OtherAttributes =   ""
      UserName        =   ""
      Password        =   ""
      RecordSource    =   "select * from Table_FWXX"
      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 Command3 
      Caption         =   "确定"
      Height          =   375
      Left            =   4320
      TabIndex        =   9
      Top             =   1320
      Width           =   855
   End
   Begin VB.CommandButton Command1 
      Caption         =   "确定"
      Height          =   375
      Left            =   4320
      TabIndex        =   8
      Top             =   1080
      Width           =   855
   End
   Begin VB.Frame Frame2 
      Caption         =   "楼盘房屋信息编辑条件"
      Height          =   1095
      Left            =   120
      TabIndex        =   1
      Top             =   120
      Width           =   5175
      Begin VB.ComboBox Combo4 
         Height          =   300
         Left            =   3600
         TabIndex        =   13
         Text            =   "Combo4"
         Top             =   600
         Width           =   1335
      End
      Begin VB.ComboBox Combo3 
         Height          =   300
         Left            =   1080
         TabIndex        =   12
         Text            =   "Combo3"
         Top             =   600
         Width           =   1455
      End
      Begin VB.ComboBox Combo2 
         Height          =   300
         Left            =   3600
         TabIndex        =   11
         Text            =   "Combo2"
         Top             =   240
         Width           =   1335
      End
      Begin VB.ComboBox Combo1 
         Height          =   300
         Left            =   1080
         TabIndex        =   10
         Text            =   "Combo1"
         Top             =   240
         Width           =   1455
      End
      Begin VB.Label Label6 
         Caption         =   "楼层"
         Height          =   300
         Left            =   240
         TabIndex        =   7
         Top             =   720
         Width           =   735
      End
      Begin VB.Label Label5 
         Caption         =   "房号"
         Height          =   255
         Left            =   2760
         TabIndex        =   6
         Top             =   720
         Width           =   615
      End
      Begin VB.Label Label4 
         Caption         =   "楼房名称"
         Height          =   375
         Left            =   2760
         TabIndex        =   5
         Top             =   360
         Width           =   855
      End
      Begin VB.Label Label3 
         Caption         =   "楼盘名称"
         Height          =   375
         Left            =   240
         TabIndex        =   4
         Top             =   360
         Width           =   1095
      End
   End
   Begin VB.Frame Frame1 
      Caption         =   "楼房信息编辑条件"
      Height          =   855
      Left            =   120
      TabIndex        =   0
      Top             =   120
      Width           =   5175
      Begin VB.ComboBox Combo6 
         Height          =   300
         Left            =   3600
         TabIndex        =   15
         Top             =   360
         Width           =   1455
      End
      Begin VB.ComboBox Combo5 
         Height          =   300
         Left            =   1080
         TabIndex        =   14
         Top             =   360
         Width           =   1575
      End
      Begin VB.Label Label2 
         Caption         =   "楼房名称"
         Height          =   255
         Left            =   2760
         TabIndex        =   3
         Top             =   420
         Width           =   1335
      End
      Begin VB.Label Label1 
         Caption         =   "楼盘名称"
         Height          =   255
         Left            =   240
         TabIndex        =   2
         Top             =   420
         Width           =   855
      End
   End
End
Attribute VB_Name = "frm_CXBJ"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Combo1_Click()
Combo2.SetFocus
End Sub

Private Sub Combo2_Click()
Combo3.SetFocus
End Sub

Private Sub Combo3_Click()
Combo4.SetFocus
End Sub

Private Sub Combo4_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = 13 Then
 If frm_FXXX.Toolbar1.Buttons(1).Enabled = False Then
  frm_FXXX.Adodc3.RecordSource = "select * from Table_FWXX where 楼盘名称='" + Combo1.Text + "'and 楼房名称='" + Combo2.Text + "'and 楼层='" + Combo3.Text + "'and 房号='" + Combo4.Text + "'"
  frm_FXXX.Adodc3.Refresh
 If frm_FXXX.Adodc3.Recordset.RecordCount > 0 Then
 frm_FXXX.Frame9.Visible = True
 frm_FXXX.Frame10.Visible = True
 frm_FXXX.Frame4.Visible = False
 frm_FXXX.Frame5.Visible = False
 frm_FXXX.Command1(1).Enabled = True
 frm_FXXX.Command2(1).Enabled = True
 frm_FXXX.Command3.Enabled = True
 frm_CXBJ.Hide
Else
MsgBox "没有符合条件的编辑信息", 48, "房地产销售管理系统"
End If
Else
End If
Else
End If
End Sub

Private Sub Combo5_Click()
Combo6.SetFocus
End Sub

Private Sub Combo6_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = 13 Then
 If frm_FXXX.Toolbar1.Buttons(1).Enabled = False Then
 frm_FXXX.Adodc2.RecordSource = "select * from Table_LFXX where 楼盘名称='" + Combo5.Text + "'and 楼房名称='" + Combo6.Text + "'"
 frm_FXXX.Adodc2.Refresh
 If frm_FXXX.Adodc2.Recordset.RecordCount > 0 Then
frm_FXXX.Frame7.Visible = True
frm_FXXX.Frame8.Visible = True
frm_FXXX.Frame2(0).Visible = False
frm_FXXX.Frame3.Visible = False
frm_FXXX.Command5(0).Enabled = True
frm_FXXX.Command6(0).Enabled = True
frm_FXXX.Command7(0).Enabled = True
frm_FXXX.Command8(0).Enabled = True
frm_FXXX.Command9(0).Enabled = True
frm_CXBJ.Hide
Else
MsgBox "没有符合条件的编辑信息", 48, "房地产销售管理系统"
End If
Else
End If
Else
End If
End Sub

Private Sub Command1_Click()
 If frm_FXXX.Toolbar1.Buttons(1).Enabled = False Then
 frm_FXXX.Adodc2.RecordSource = "select * from Table_LFXX where 楼盘名称='" + Combo5.Text + "'and 楼房名称='" + Combo6.Text + "'"
 frm_FXXX.Adodc2.Refresh
 If frm_FXXX.Adodc2.Recordset.RecordCount > 0 Then
frm_FXXX.Frame7.Visible = True
frm_FXXX.Frame8.Visible = True
frm_FXXX.Frame2(0).Visible = False
frm_FXXX.Frame3.Visible = False
frm_FXXX.Command5(0).Enabled = True
frm_FXXX.Command6(0).Enabled = True
frm_FXXX.Command7(0).Enabled = True
frm_FXXX.Command8(0).Enabled = True
frm_FXXX.Command9(0).Enabled = True
Unload Me
Else
MsgBox "没有符合条件的编辑信息", 48, "房地产销售管理系统"
End If
Else
End If
End Sub


Private Sub Command3_Click()
 If frm_FXXX.Toolbar1.Buttons(1).Enabled = False Then
  frm_FXXX.Adodc3.RecordSource = "select * from Table_FWXX where 楼盘名称='" + Combo1.Text + "'and 楼房名称='" + Combo2.Text + "'and 楼层='" + Combo3.Text + "'and 房号='" + Combo4.Text + "'"
  frm_FXXX.Adodc3.Refresh
 If frm_FXXX.Adodc3.Recordset.RecordCount > 0 Then
 frm_FXXX.Frame9.Visible = True
 frm_FXXX.Frame10.Visible = True
 frm_FXXX.Frame4.Visible = False
 frm_FXXX.Frame5.Visible = False
 frm_FXXX.Command1(1).Enabled = True
 frm_FXXX.Command2(1).Enabled = True
 frm_FXXX.Command3.Enabled = True
 frm_FXXX.Toolbar1.Buttons(3).Enabled = True
Unload Me
Else
MsgBox "没有符合条件的编辑信息", 48, "房地产销售管理系统"
End If
Else
End If

End Sub

Private Sub Form_Activate()
Dim tep1, tep2
Combo5.Clear
Adodc1.RecordSource = "select * from Table_LFXX order by 楼盘名称 "
Adodc1.Refresh
Do While Adodc1.Recordset.EOF = False
tep1 = Adodc1.Recordset.Fields("楼盘名称").Value
If tep1 <> tep2 Then
Combo5.AddItem (tep1)
tep2 = tep1
Adodc1.Recordset.MoveNext
ElseIf tep1 = tep2 Then
Adodc1.Recordset.MoveNext
End If
Loop
Combo6.Clear
Adodc1.RecordSource = "select * from Table_LFXX order by 楼房名称 "
Adodc1.Refresh
Do While Adodc1.Recordset.EOF = False
tep1 = Adodc1.Recordset.Fields("楼房名称").Value
If tep1 <> tep2 Then
Combo6.AddItem (tep1)
tep2 = tep1
Adodc1.Recordset.MoveNext
ElseIf tep1 = tep2 Then
Adodc1.Recordset.MoveNext
End If
Loop
Combo1.Clear
Adodc1.RecordSource = "select * from Table_FWXX order by 楼盘名称 "
Adodc1.Refresh
Do While Adodc1.Recordset.EOF = False
tep1 = Adodc1.Recordset.Fields("楼盘名称").Value
If tep1 <> tep2 Then
Combo1.AddItem (tep1)
tep2 = tep1
Adodc1.Recordset.MoveNext
ElseIf tep1 = tep2 Then
Adodc1.Recordset.MoveNext
End If
Loop
Combo2.Clear
Adodc1.RecordSource = "select * from Table_FWXX order by 楼房名称 "
Adodc1.Refresh
Do While Adodc1.Recordset.EOF = False
tep1 = Adodc1.Recordset.Fields("楼房名称").Value
If tep1 <> tep2 Then
Combo2.AddItem (tep1)
tep2 = tep1
Adodc1.Recordset.MoveNext
ElseIf tep1 = tep2 Then
Adodc1.Recordset.MoveNext
End If
Loop
Combo3.Clear
Adodc1.RecordSource = "select * from Table_FWXX order by 楼层 "
Adodc1.Refresh
Do While Adodc1.Recordset.EOF = False
tep1 = Adodc1.Recordset.Fields("楼层").Value
If tep1 <> tep2 Then
Combo3.AddItem (tep1)
tep2 = tep1
Adodc1.Recordset.MoveNext
ElseIf tep1 = tep2 Then
Adodc1.Recordset.MoveNext
End If
Loop
Combo4.Clear
Adodc1.RecordSource = "select * from Table_FWXX order by 房号 "
Adodc1.Refresh
Do While Adodc1.Recordset.EOF = False
tep1 = Adodc1.Recordset.Fields("房号").Value
If tep1 <> tep2 Then
Combo4.AddItem (tep1)
tep2 = tep1
Adodc1.Recordset.MoveNext
ElseIf tep1 = tep2 Then
Adodc1.Recordset.MoveNext
End If
Loop
End Sub

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -