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

📄 frm_bsinfo.frm

📁 我大学时候用vb做的物业管理系统
💻 FRM
字号:
VERSION 5.00
Object = "{86CF1D34-0C5F-11D2-A9FC-0000F8754DA1}#2.0#0"; "mscomct2.ocx"
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Begin VB.Form Frm_bsinfo 
   Caption         =   "别墅信息登记"
   ClientHeight    =   4140
   ClientLeft      =   60
   ClientTop       =   450
   ClientWidth     =   7200
   Icon            =   "Frm_bsinfo.frx":0000
   LinkTopic       =   "Form1"
   ScaleHeight     =   4140
   ScaleWidth      =   7200
   StartUpPosition =   1  '所有者中心
   Begin VB.CommandButton Command3 
      Caption         =   "保 存"
      Height          =   450
      Left            =   3165
      TabIndex        =   13
      Top             =   3510
      Width           =   1200
   End
   Begin VB.Frame Frame1 
      Caption         =   "别墅信息栏"
      Height          =   3180
      Left            =   105
      TabIndex        =   15
      Top             =   210
      Width           =   6960
      Begin MSComCtl2.DTPicker DTPicker1 
         Height          =   285
         Left            =   5520
         TabIndex        =   29
         Top             =   1860
         Width           =   1365
         _ExtentX        =   2408
         _ExtentY        =   503
         _Version        =   393216
         Format          =   198705153
         CurrentDate     =   38896
      End
      Begin VB.TextBox Text1 
         DataField       =   "别墅编号"
         DataSource      =   "Adodc1"
         Height          =   300
         Left            =   1260
         TabIndex        =   0
         Top             =   375
         Width           =   1200
      End
      Begin VB.TextBox Text10 
         DataField       =   "朝向"
         DataSource      =   "Adodc1"
         Height          =   300
         Left            =   1260
         TabIndex        =   9
         Top             =   1830
         Width           =   1200
      End
      Begin VB.TextBox Text9 
         DataField       =   "规格"
         DataSource      =   "Adodc1"
         Height          =   300
         Left            =   5520
         TabIndex        =   8
         Top             =   1365
         Width           =   1305
      End
      Begin VB.TextBox Text8 
         DataField       =   "销售价格"
         DataSource      =   "Adodc1"
         Height          =   300
         Left            =   3360
         TabIndex        =   7
         Top             =   1365
         Width           =   1200
      End
      Begin VB.TextBox Text7 
         DataField       =   "装修标准"
         DataSource      =   "Adodc1"
         Height          =   300
         Left            =   1260
         TabIndex        =   6
         Top             =   1365
         Width           =   1200
      End
      Begin VB.TextBox Text3 
         DataField       =   "住户名称"
         DataSource      =   "Adodc1"
         Height          =   300
         Left            =   5505
         TabIndex        =   2
         Top             =   420
         Width           =   1305
      End
      Begin VB.TextBox Text5 
         DataField       =   "使用面积"
         DataSource      =   "Adodc1"
         Height          =   300
         Left            =   3360
         TabIndex        =   4
         Top             =   892
         Width           =   1200
      End
      Begin VB.TextBox Text6 
         DataField       =   "别墅用途"
         DataSource      =   "Adodc1"
         Height          =   285
         Left            =   5505
         TabIndex        =   5
         Top             =   900
         Width           =   1305
      End
      Begin VB.ComboBox Combo1 
         DataField       =   "别墅状态"
         DataSource      =   "Adodc1"
         Height          =   300
         ItemData        =   "Frm_bsinfo.frx":1CCA
         Left            =   3360
         List            =   "Frm_bsinfo.frx":1CDD
         TabIndex        =   10
         Top             =   1830
         Width           =   1245
      End
      Begin VB.TextBox Text2 
         DataField       =   "业主名称"
         DataSource      =   "Adodc1"
         Height          =   300
         Left            =   3360
         TabIndex        =   1
         Top             =   375
         Width           =   1200
      End
      Begin VB.TextBox Text4 
         DataField       =   "建筑面积"
         DataSource      =   "Adodc1"
         Height          =   300
         Left            =   1260
         TabIndex        =   3
         Top             =   892
         Width           =   1200
      End
      Begin VB.TextBox Text11 
         DataField       =   "备注"
         DataSource      =   "Adodc1"
         Height          =   630
         Left            =   1200
         MultiLine       =   -1  'True
         ScrollBars      =   2  'Vertical
         TabIndex        =   11
         Top             =   2325
         Width           =   5565
      End
      Begin VB.Label Label10 
         AutoSize        =   -1  'True
         Caption         =   "规   格 :"
         Height          =   180
         Left            =   4620
         TabIndex        =   28
         Top             =   1425
         Width           =   900
      End
      Begin VB.Label Label8 
         AutoSize        =   -1  'True
         Caption         =   "销售价格:"
         Height          =   180
         Left            =   2460
         TabIndex        =   27
         Top             =   1425
         Width           =   900
      End
      Begin VB.Label Label6 
         AutoSize        =   -1  'True
         Caption         =   "装修标准:"
         Height          =   180
         Left            =   315
         TabIndex        =   26
         Top             =   1425
         Width           =   900
      End
      Begin VB.Label Label5 
         AutoSize        =   -1  'True
         Caption         =   "朝   向 :"
         Height          =   180
         Left            =   300
         TabIndex        =   25
         Top             =   1890
         Width           =   900
      End
      Begin VB.Label Label2 
         AutoSize        =   -1  'True
         Caption         =   "入住时间:"
         Height          =   180
         Left            =   4620
         TabIndex        =   24
         Top             =   1890
         Width           =   900
      End
      Begin VB.Label Label3 
         AutoSize        =   -1  'True
         Caption         =   "别墅用途:"
         Height          =   180
         Left            =   4620
         TabIndex        =   23
         Top             =   952
         Width           =   900
      End
      Begin VB.Label Label4 
         AutoSize        =   -1  'True
         Caption         =   "业主姓名:"
         Height          =   180
         Left            =   2460
         TabIndex        =   22
         Top             =   435
         Width           =   900
      End
      Begin VB.Label Label17 
         AutoSize        =   -1  'True
         Caption         =   "别墅状态:"
         Height          =   180
         Left            =   2460
         TabIndex        =   21
         Top             =   1890
         Width           =   900
      End
      Begin VB.Label Label16 
         AutoSize        =   -1  'True
         Caption         =   "使用面积:"
         Height          =   180
         Left            =   2460
         TabIndex        =   20
         Top             =   952
         Width           =   900
      End
      Begin VB.Label Label15 
         AutoSize        =   -1  'True
         Caption         =   "建筑面积:"
         Height          =   180
         Left            =   300
         TabIndex        =   19
         Top             =   952
         Width           =   900
      End
      Begin VB.Label Label9 
         AutoSize        =   -1  'True
         Caption         =   "住户姓名:"
         Height          =   180
         Left            =   4620
         TabIndex        =   18
         Top             =   480
         Width           =   900
      End
      Begin VB.Label Label1 
         AutoSize        =   -1  'True
         Caption         =   "别墅编号:"
         Height          =   180
         Left            =   300
         TabIndex        =   17
         Top             =   435
         Width           =   900
      End
      Begin VB.Label Label7 
         AutoSize        =   -1  'True
         Caption         =   "备    注:"
         Height          =   180
         Left            =   300
         TabIndex        =   16
         Top             =   2550
         Width           =   900
      End
   End
   Begin VB.CommandButton Command1 
      Caption         =   "取 消"
      Height          =   450
      Left            =   1575
      TabIndex        =   12
      Top             =   3510
      Width           =   1200
   End
   Begin VB.CommandButton Command2 
      Caption         =   "退 出"
      Height          =   450
      Left            =   4725
      TabIndex        =   14
      Top             =   3510
      Width           =   1200
   End
   Begin MSAdodcLib.Adodc Adodc1 
      Height          =   330
      Left            =   1260
      Top             =   4305
      Width           =   4845
      _ExtentX        =   8546
      _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=Microsoft.Jet.OLEDB.4.0;Data Source=E:\毕业设计\TIZIANO.mdb;Persist Security Info=False"
      OLEDBString     =   "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=E:\毕业设计\TIZIANO.mdb;Persist Security Info=False"
      OLEDBFile       =   ""
      DataSourceName  =   ""
      OtherAttributes =   ""
      UserName        =   ""
      Password        =   ""
      RecordSource    =   "select * from tab_别墅信息"
      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
End
Attribute VB_Name = "Frm_bsinfo"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Call bsinfo_clear

End Sub

Private Sub Command2_Click()
Unload Me

End Sub

Private Sub Command3_Click()

If Text1 = "" Or Text2 = "" Or Text3 = "" Then
 MsgBox "各项基本信息不能为空"
 Text1.SetFocus
Else
Adodc1.Recordset.Fields("别墅编号") = Trim(Text1.Text)
Adodc1.Recordset.Fields("业主名称") = Trim(Text2.Text)
Adodc1.Recordset.Fields("住户名称") = Trim(Text3.Text)
Adodc1.Recordset.Fields("建筑面积") = Trim(Text4.Text)
Adodc1.Recordset.Fields("使用面积") = Trim(Text5.Text)
Adodc1.Recordset.Fields("别墅用途") = Trim(Text6.Text)
Adodc1.Recordset.Fields("装修标准") = Trim(Text7.Text)
Adodc1.Recordset.Fields("销售价格") = Trim(Text8.Text)
Adodc1.Recordset.Fields("规格") = Trim(Text9.Text)
Adodc1.Recordset.Fields("朝向") = Trim(Text10.Text)
Adodc1.Recordset.Fields("备注") = Trim(Text11.Text)
Adodc1.Recordset.Fields("别墅状态") = Trim(Combo1.Text)
Adodc1.Recordset.Fields("入住时间") = DTPicker1.Value
Adodc1.Recordset.Update
MsgBox "信息添加成功"

End If
Unload Frm_bsinfo

End Sub

Private Sub Form_Unload(Cancel As Integer)
Frm_bsinfocu.Command1.SetFocus
End Sub

⌨️ 快捷键说明

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