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

📄 frmhouseedit.frm

📁 图书管理系统,用VB做的,可以使用,用于课程设计
💻 FRM
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Object = "{F0D2F211-CCB0-11D0-A316-00AA00688B10}#1.0#0"; "MSDATLST.OCX"
Begin VB.Form FrmHouseEdit 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "编辑房屋信息"
   ClientHeight    =   3375
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   5775
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   3375
   ScaleWidth      =   5775
   StartUpPosition =   1  'CenterOwner
   Begin MSAdodcLib.Adodc Ado_Bld 
      Height          =   375
      Left            =   120
      Top             =   2640
      Visible         =   0   'False
      Width           =   1575
      _ExtentX        =   2778
      _ExtentY        =   661
      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         =   ""
      OLEDBString     =   ""
      OLEDBFile       =   ""
      DataSourceName  =   ""
      OtherAttributes =   ""
      UserName        =   ""
      Password        =   ""
      RecordSource    =   ""
      Caption         =   "Ado_Bld"
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "MS Sans Serif"
         Size            =   8.25
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      _Version        =   393216
   End
   Begin VB.Frame Frame1 
      Height          =   2415
      Left            =   240
      TabIndex        =   6
      Top             =   120
      Width           =   5295
      Begin MSDataListLib.DataCombo dco_Style 
         Height          =   315
         Left            =   1200
         TabIndex        =   14
         Top             =   583
         Width           =   1455
         _ExtentX        =   2566
         _ExtentY        =   556
         _Version        =   393216
         Style           =   2
         Text            =   ""
      End
      Begin MSDataListLib.DataCombo dco_Bld 
         Height          =   315
         Left            =   1200
         TabIndex        =   13
         Top             =   173
         Width           =   1455
         _ExtentX        =   2566
         _ExtentY        =   556
         _Version        =   393216
         Style           =   2
         Text            =   ""
      End
      Begin VB.TextBox txtRoom 
         Height          =   285
         Left            =   4080
         MaxLength       =   20
         TabIndex        =   1
         Top             =   598
         Width           =   975
      End
      Begin VB.TextBox txtOwner 
         Height          =   270
         Left            =   1200
         MaxLength       =   20
         TabIndex        =   2
         Top             =   1015
         Width           =   1455
      End
      Begin VB.TextBox txtDescribe 
         Height          =   735
         Left            =   1200
         MaxLength       =   100
         MultiLine       =   -1  'True
         ScrollBars      =   2  'Vertical
         TabIndex        =   3
         Top             =   1440
         Width           =   3855
      End
      Begin VB.TextBox txtUnit 
         Height          =   270
         Left            =   4080
         MaxLength       =   20
         TabIndex        =   0
         Top             =   195
         Width           =   975
      End
      Begin VB.Label Label5 
         AutoSize        =   -1  'True
         BackStyle       =   0  'Transparent
         Caption         =   "产权信息"
         Height          =   180
         Left            =   240
         TabIndex        =   12
         Top             =   1065
         Width           =   720
      End
      Begin VB.Label Label4 
         AutoSize        =   -1  'True
         BackStyle       =   0  'Transparent
         Caption         =   "房间号码"
         Height          =   180
         Left            =   3120
         TabIndex        =   11
         Top             =   650
         Width           =   720
      End
      Begin VB.Label Label2 
         AutoSize        =   -1  'True
         BackStyle       =   0  'Transparent
         Caption         =   "户型名称"
         Height          =   180
         Left            =   240
         TabIndex        =   10
         Top             =   650
         Width           =   720
      End
      Begin VB.Label Label7 
         AutoSize        =   -1  'True
         BackStyle       =   0  'Transparent
         Caption         =   "备注信息"
         Height          =   180
         Left            =   240
         TabIndex        =   9
         Top             =   1470
         Width           =   720
      End
      Begin VB.Label Label1 
         AutoSize        =   -1  'True
         BackStyle       =   0  'Transparent
         Caption         =   "楼房编号"
         Height          =   180
         Left            =   240
         TabIndex        =   8
         Top             =   240
         Width           =   720
      End
      Begin VB.Label Label6 
         AutoSize        =   -1  'True
         BackStyle       =   0  'Transparent
         Caption         =   "楼房单元"
         Height          =   180
         Left            =   3120
         TabIndex        =   7
         Top             =   240
         Width           =   720
      End
   End
   Begin VB.CommandButton Cmd_OK 
      Caption         =   "确 定"
      Height          =   400
      Left            =   1157
      MousePointer    =   99  'Custom
      Style           =   1  'Graphical
      TabIndex        =   4
      Top             =   2760
      Width           =   1300
   End
   Begin VB.CommandButton Cmd_Cancel 
      Cancel          =   -1  'True
      Caption         =   "取 消"
      Height          =   400
      Left            =   3317
      MousePointer    =   99  'Custom
      Style           =   1  'Graphical
      TabIndex        =   5
      Top             =   2760
      Width           =   1300
   End
   Begin MSAdodcLib.Adodc Ado_Style 
      Height          =   375
      Left            =   120
      Top             =   3000
      Visible         =   0   'False
      Width           =   1575
      _ExtentX        =   2778
      _ExtentY        =   661
      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         =   ""
      OLEDBString     =   ""
      OLEDBFile       =   ""
      DataSourceName  =   ""
      OtherAttributes =   ""
      UserName        =   ""
      Password        =   ""
      RecordSource    =   ""
      Caption         =   "Ado_Style"
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "MS Sans Serif"
         Size            =   8.25
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      _Version        =   393216
   End
End
Attribute VB_Name = "FrmHouseEdit"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Public Modify As Boolean
Public OriId As Long

Private Function Check() As Boolean
  If Trim(dco_Bld.Text) = "" Then
    MsgBox "请选择楼房编号"
    dco_Bld.SetFocus
    Check = False
    Exit Function
  End If
  If Trim(txtUnit.Text) = "" Then
    MsgBox "请选择楼房单元"
    txtUnit.SetFocus
    Check = False
    Exit Function
  End If
  If Trim(dco_Style.Text) = "" Then
    MsgBox "请选择户型"
    dco_Style.SetFocus
    Check = False
    Exit Function
  End If
  If Trim(txtRoom.Text) = "" Then
    MsgBox "请选择房间号"
    txtRoom.SetFocus
    Check = False
    Exit Function
  End If
  
  Check = True
End Function

Private Sub Cmd_OK_Click()
  If Check = False Then
    Exit Sub
  End If
  
  With MyHouse
  .BuildingNo = dco_Bld.BoundText()
  .HouseUnit = Trim(txtUnit)
  .StyleId = Val(dco_Style.BoundText())
  .RoomNo = Trim(txtRoom)
  .Ownership = Trim(txtOwner)
  .Memos = Trim(txtDescribe)
  
  If Modify = False Then
    .Insert
    MsgBox "添加成功"
  Else
    .Update (OriId)
    MsgBox "修改成功"
  End If
    
  End With
  Unload Me
End Sub

Private Sub Cmd_Cancel_Click()
  Unload Me
End Sub

Private Sub Form_Load()
End Sub

⌨️ 快捷键说明

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