frmhouse.frm

来自「本程序用VB+SQL 2000实现,可以实现小区的住户资料,仪表资料,住户投宿,」· FRM 代码 · 共 937 行 · 第 1/2 页

FRM
937
字号
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Begin VB.Form frmHouse 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "房产资源"
   ClientHeight    =   6330
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   9735
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MDIChild        =   -1  'True
   MinButton       =   0   'False
   ScaleHeight     =   6330
   ScaleWidth      =   9735
   Begin VB.CommandButton Command1 
      Caption         =   "报表"
      Height          =   495
      Left            =   8400
      TabIndex        =   43
      Top             =   5280
      Width           =   975
   End
   Begin MSAdodcLib.Adodc Adodc1 
      Height          =   495
      Left            =   5280
      Top             =   5880
      Visible         =   0   'False
      Width           =   1575
      _ExtentX        =   2778
      _ExtentY        =   873
      ConnectMode     =   0
      CursorLocation  =   3
      IsolationLevel  =   -1
      ConnectionTimeout=   15
      CommandTimeout  =   30
      CursorType      =   3
      LockType        =   3
      CommandType     =   2
      CursorOptions   =   0
      CacheSize       =   50
      MaxRecords      =   0
      BOFAction       =   0
      EOFAction       =   0
      ConnectStringType=   3
      Appearance      =   1
      BackColor       =   -2147483643
      ForeColor       =   -2147483640
      Orientation     =   0
      Enabled         =   -1
      Connect         =   "DSN=XiaoQu"
      OLEDBString     =   ""
      OLEDBFile       =   ""
      DataSourceName  =   "XiaoQu"
      OtherAttributes =   ""
      UserName        =   ""
      Password        =   ""
      RecordSource    =   "House"
      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.Frame Frame3 
      Caption         =   "功能键"
      Height          =   1695
      Left            =   480
      TabIndex        =   32
      Top             =   4080
      Width           =   6375
      Begin VB.CommandButton cmdAdd 
         Caption         =   "添加"
         Height          =   495
         Left            =   360
         TabIndex        =   42
         Top             =   240
         Width           =   975
      End
      Begin VB.CommandButton cmdEdit 
         Caption         =   "修改"
         Height          =   495
         Left            =   1440
         TabIndex        =   41
         Top             =   240
         Width           =   975
      End
      Begin VB.CommandButton cmdDel 
         Caption         =   "删除"
         Height          =   495
         Left            =   2640
         TabIndex        =   40
         Top             =   240
         Width           =   975
      End
      Begin VB.CommandButton cmdSave 
         Caption         =   "保存"
         Height          =   495
         Left            =   3840
         TabIndex        =   39
         Top             =   240
         Width           =   975
      End
      Begin VB.CommandButton cmdFirst 
         Caption         =   "第一条"
         Height          =   495
         Left            =   360
         TabIndex        =   38
         Top             =   960
         Width           =   975
      End
      Begin VB.CommandButton cmdPrev 
         Caption         =   "前一条"
         Height          =   495
         Left            =   1440
         TabIndex        =   37
         Top             =   960
         Width           =   975
      End
      Begin VB.CommandButton cmdNext 
         Caption         =   "后一条"
         Height          =   495
         Left            =   2640
         TabIndex        =   36
         Top             =   960
         Width           =   975
      End
      Begin VB.CommandButton cmdLast 
         Caption         =   "最后一条"
         Height          =   495
         Left            =   3840
         TabIndex        =   35
         Top             =   960
         Width           =   975
      End
      Begin VB.CommandButton cmdQuery 
         Caption         =   "查找"
         Height          =   495
         Left            =   5040
         TabIndex        =   34
         Top             =   960
         Width           =   975
      End
      Begin VB.CommandButton cmdCancel 
         Caption         =   "取消"
         Height          =   495
         Left            =   5040
         TabIndex        =   33
         Top             =   240
         Width           =   975
      End
   End
   Begin VB.Frame Frame1 
      Height          =   735
      Index           =   1
      Left            =   7080
      TabIndex        =   28
      Top             =   4080
      Width           =   2295
      Begin VB.TextBox Text2 
         Height          =   375
         Left            =   840
         TabIndex        =   29
         Top             =   240
         Width           =   615
      End
      Begin VB.Label Label3 
         Caption         =   "共有:"
         Height          =   255
         Index           =   1
         Left            =   240
         TabIndex        =   31
         Top             =   360
         Width           =   615
      End
      Begin VB.Label Label4 
         Caption         =   "条记录"
         Height          =   255
         Index           =   1
         Left            =   1560
         TabIndex        =   30
         Top             =   360
         Width           =   615
      End
   End
   Begin VB.CommandButton cmdTable 
      Caption         =   "以表格显示"
      Height          =   495
      Left            =   7200
      TabIndex        =   27
      Top             =   5280
      Width           =   1095
   End
   Begin VB.Frame Frame1 
      Height          =   3735
      Index           =   0
      Left            =   480
      TabIndex        =   0
      Top             =   0
      Width           =   8295
      Begin VB.TextBox Text1 
         DataField       =   "备注"
         DataSource      =   "Adodc1"
         Height          =   375
         Index           =   10
         Left            =   1080
         TabIndex        =   26
         Top             =   2880
         Width           =   6255
      End
      Begin VB.TextBox Text1 
         DataField       =   "买主姓名"
         DataSource      =   "Adodc1"
         Height          =   375
         Index           =   9
         Left            =   6000
         TabIndex        =   24
         Top             =   2160
         Width           =   1335
      End
      Begin VB.TextBox Text1 
         DataField       =   "买主编号"
         DataSource      =   "Adodc1"
         Height          =   375
         Index           =   8
         Left            =   3480
         TabIndex        =   22
         Top             =   2160
         Width           =   1335
      End
      Begin VB.ComboBox Combo1 
         DataField       =   "是否已出售"
         DataSource      =   "Adodc1"
         Height          =   300
         ItemData        =   "frmHouse.frx":0000
         Left            =   1320
         List            =   "frmHouse.frx":000A
         TabIndex        =   20
         Text            =   "Combo1"
         Top             =   2160
         Width           =   735
      End
      Begin VB.TextBox Text1 
         DataField       =   "总价"
         DataSource      =   "Adodc1"
         Height          =   375
         Index           =   7
         Left            =   6000
         TabIndex        =   17
         Top             =   1560
         Width           =   1335
      End
      Begin VB.TextBox Text1 
         DataField       =   "单价"
         DataSource      =   "Adodc1"
         Height          =   375
         Index           =   6
         Left            =   3480
         TabIndex        =   14
         Top             =   1560
         Width           =   1335
      End
      Begin VB.TextBox Text1 
         DataField       =   "装修情况"
         DataSource      =   "Adodc1"
         Height          =   375
         Index           =   5
         Left            =   1080
         TabIndex        =   12
         Top             =   1560
         Width           =   1335
      End
      Begin VB.TextBox Text1 
         DataField       =   "房型"
         DataSource      =   "Adodc1"
         Height          =   375
         Index           =   4
         Left            =   6000
         TabIndex        =   10
         Top             =   960
         Width           =   1335
      End
      Begin VB.TextBox Text1 
         DataField       =   "使用面积"
         DataSource      =   "Adodc1"
         Height          =   375
         Index           =   3
         Left            =   3480
         TabIndex        =   8
         Top             =   960
         Width           =   1335
      End
      Begin VB.TextBox Text1 
         DataField       =   "建筑面积"
         DataSource      =   "Adodc1"
         Height          =   375
         Index           =   2
         Left            =   1080
         TabIndex        =   6
         Top             =   960
         Width           =   1335
      End
      Begin VB.TextBox Text1 
         DataField       =   "物业地址"
         DataSource      =   "Adodc1"
         Height          =   375
         Index           =   1
         Left            =   3480
         TabIndex        =   4
         Top             =   360
         Width           =   3855
      End
      Begin VB.TextBox Text1 
         DataField       =   "房间编号"
         DataSource      =   "Adodc1"
         Height          =   375
         Index           =   0
         Left            =   1080
         TabIndex        =   2
         Top             =   360
         Width           =   1335
      End
      Begin VB.Label Label1 
         Caption         =   "备   注"
         Height          =   255
         Index           =   10
         Left            =   240
         TabIndex        =   25
         Top             =   3000
         Width           =   855
      End
      Begin VB.Label Label1 
         Caption         =   "买主姓名"
         Height          =   255
         Index           =   9
         Left            =   5040
         TabIndex        =   23
         Top             =   2160
         Width           =   855
      End
      Begin VB.Label Label1 
         Caption         =   "买主编号"
         Height          =   255
         Index           =   8
         Left            =   2520
         TabIndex        =   21
         Top             =   2160
         Width           =   855
      End
      Begin VB.Label Label5 
         Caption         =   "是否已出售"
         Height          =   375
         Left            =   240
         TabIndex        =   19
         Top             =   2280
         Width           =   975
      End
      Begin VB.Label Label4 
         Caption         =   "元"
         Height          =   255
         Index           =   0
         Left            =   7440
         TabIndex        =   18
         Top             =   1680
         Width           =   375
      End
      Begin VB.Label Label1 
         Caption         =   "总价"
         Height          =   255
         Index           =   7
         Left            =   5280
         TabIndex        =   16
         Top             =   1680
         Width           =   495
      End
      Begin VB.Label Label3 
         Caption         =   "元"
         Height          =   255
         Index           =   0
         Left            =   4920
         TabIndex        =   15
         Top             =   1680
         Width           =   255
      End
      Begin VB.Label Label1 
         Caption         =   "单价"
         Height          =   255
         Index           =   6
         Left            =   2760
         TabIndex        =   13
         Top             =   1680
         Width           =   495
      End
      Begin VB.Label Label1 
         Caption         =   "装修情况"
         Height          =   255
         Index           =   5
         Left            =   240
         TabIndex        =   11
         Top             =   1680
         Width           =   855
      End
      Begin VB.Label Label1 
         Caption         =   "房型"
         Height          =   255
         Index           =   4
         Left            =   5280
         TabIndex        =   9
         Top             =   1080
         Width           =   615
      End
      Begin VB.Label Label1 
         Caption         =   "使用面积"
         Height          =   255
         Index           =   3
         Left            =   2640
         TabIndex        =   7
         Top             =   1080
         Width           =   855
      End
      Begin VB.Label Label1 
         Caption         =   "建筑面积"
         Height          =   255
         Index           =   2
         Left            =   240
         TabIndex        =   5
         Top             =   1080
         Width           =   855
      End
      Begin VB.Label Label2 
         Caption         =   "物业地址"
         Height          =   255
         Left            =   2640
         TabIndex        =   3
         Top             =   480
         Width           =   735
      End
      Begin VB.Label Label1 
         Caption         =   "房间编号"
         Height          =   255
         Index           =   0
         Left            =   240
         TabIndex        =   1
         Top             =   480
         Width           =   855
      End
   End
End
Attribute VB_Name = "frmHouse"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim rs_house As New ADODB.Recordset
Dim rs_count As New ADODB.Recordset
'设置一个add变量用于保存时判断是从添加还是修改后保存
Dim add

Private Sub cmdAdd_Click()
   
   '设置除保存和取消按钮外的其他按钮不可用
   cmdAdd.Enabled = False
   cmdEdit.Enabled = False

⌨️ 快捷键说明

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