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

📄 frmaddsell.frm

📁 房地产管理系统 my sql,visual basic
💻 FRM
字号:
VERSION 5.00
Begin VB.Form frmAddSell 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "添加销售信息"
   ClientHeight    =   4560
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   8325
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MDIChild        =   -1  'True
   MinButton       =   0   'False
   ScaleHeight     =   4560
   ScaleWidth      =   8325
   Begin VB.CommandButton updateCommand 
      Caption         =   "保存记录"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   9
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   492
      Left            =   2040
      TabIndex        =   25
      Top             =   3840
      Width           =   1095
   End
   Begin VB.CommandButton cancelCommand 
      Caption         =   "关闭退出"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   9
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   492
      Left            =   6000
      TabIndex        =   24
      Top             =   3840
      Width           =   1215
   End
   Begin VB.TextBox txtfields 
      Height          =   375
      Index           =   11
      Left            =   5520
      TabIndex        =   23
      Top             =   3240
      Width           =   2535
   End
   Begin VB.TextBox txtfields 
      Height          =   375
      Index           =   10
      Left            =   1560
      TabIndex        =   21
      Top             =   3240
      Width           =   2415
   End
   Begin VB.TextBox txtfields 
      Height          =   375
      Index           =   9
      Left            =   5520
      TabIndex        =   19
      Top             =   2688
      Width           =   2535
   End
   Begin VB.TextBox txtfields 
      Height          =   375
      Index           =   8
      Left            =   1560
      TabIndex        =   17
      Top             =   2664
      Width           =   2415
   End
   Begin VB.TextBox txtfields 
      Height          =   375
      Index           =   7
      Left            =   5520
      TabIndex        =   15
      Top             =   2136
      Width           =   2535
   End
   Begin VB.TextBox txtfields 
      Height          =   375
      Index           =   6
      Left            =   1560
      TabIndex        =   13
      Top             =   2088
      Width           =   2415
   End
   Begin VB.TextBox txtfields 
      Height          =   375
      Index           =   5
      Left            =   5520
      TabIndex        =   11
      Top             =   1584
      Width           =   2535
   End
   Begin VB.TextBox txtfields 
      Height          =   375
      Index           =   4
      Left            =   1560
      TabIndex        =   9
      Top             =   1512
      Width           =   2415
   End
   Begin VB.TextBox txtfields 
      Height          =   375
      Index           =   3
      Left            =   5520
      TabIndex        =   7
      Top             =   1032
      Width           =   2535
   End
   Begin VB.TextBox txtfields 
      Height          =   375
      Index           =   2
      Left            =   1560
      TabIndex        =   5
      Top             =   936
      Width           =   2415
   End
   Begin VB.TextBox txtfields 
      Height          =   375
      Index           =   1
      Left            =   5520
      TabIndex        =   3
      Top             =   480
      Width           =   2535
   End
   Begin VB.TextBox txtfields 
      Height          =   375
      Index           =   0
      Left            =   1560
      TabIndex        =   1
      Top             =   360
      Width           =   2415
   End
   Begin VB.Label Label1 
      AutoSize        =   -1  'True
      Caption         =   "房型名称:"
      Height          =   180
      Index           =   11
      Left            =   360
      TabIndex        =   22
      Top             =   936
      Width           =   900
   End
   Begin VB.Label Label1 
      AutoSize        =   -1  'True
      Caption         =   "备注:"
      Height          =   180
      Index           =   10
      Left            =   4320
      TabIndex        =   20
      Top             =   3240
      Width           =   540
   End
   Begin VB.Label Label1 
      AutoSize        =   -1  'True
      Caption         =   "已付金额:"
      Height          =   180
      Index           =   9
      Left            =   360
      TabIndex        =   18
      Top             =   3240
      Width           =   900
   End
   Begin VB.Label Label1 
      AutoSize        =   -1  'True
      Caption         =   "总价:"
      Height          =   180
      Index           =   8
      Left            =   4320
      TabIndex        =   16
      Top             =   2688
      Width           =   540
   End
   Begin VB.Label Label1 
      AutoSize        =   -1  'True
      Caption         =   "单价:"
      Height          =   180
      Index           =   7
      Left            =   360
      TabIndex        =   14
      Top             =   2664
      Width           =   540
   End
   Begin VB.Label Label1 
      AutoSize        =   -1  'True
      Caption         =   "销售面积:"
      Height          =   180
      Index           =   6
      Left            =   4320
      TabIndex        =   12
      Top             =   2136
      Width           =   900
   End
   Begin VB.Label Label1 
      AutoSize        =   -1  'True
      Caption         =   "房屋朝向:"
      Height          =   180
      Index           =   5
      Left            =   360
      TabIndex        =   10
      Top             =   2088
      Width           =   900
   End
   Begin VB.Label Label1 
      AutoSize        =   -1  'True
      Caption         =   "房间号:"
      Height          =   180
      Index           =   4
      Left            =   4320
      TabIndex        =   8
      Top             =   1584
      Width           =   720
   End
   Begin VB.Label Label1 
      AutoSize        =   -1  'True
      Caption         =   "单元号:"
      Height          =   180
      Index           =   3
      Left            =   360
      TabIndex        =   6
      Top             =   1512
      Width           =   720
   End
   Begin VB.Label Label1 
      AutoSize        =   -1  'True
      Caption         =   "楼层:"
      Height          =   180
      Index           =   2
      Left            =   4320
      TabIndex        =   4
      Top             =   1032
      Width           =   540
   End
   Begin VB.Label Label1 
      AutoSize        =   -1  'True
      Caption         =   "客户编号:"
      Height          =   180
      Index           =   1
      Left            =   4320
      TabIndex        =   2
      Top             =   480
      Width           =   900
   End
   Begin VB.Label Label1 
      AutoSize        =   -1  'True
      Caption         =   "楼盘名称:"
      Height          =   180
      Index           =   0
      Left            =   360
      TabIndex        =   0
      Top             =   360
      Width           =   900
   End
End
Attribute VB_Name = "frmAddSell"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit

Private Sub cancelCommand_Click()
Unload Me
End Sub





Private Sub txtfields_LostFocus(Index As Integer)
Dim pTitle As String
pTitle = "信息框"

If Not IsNumeric(txtfields(3).Text) And (txtfields(3).Text <> "") Then
    MsgBox "请在“楼层”中输入数字", vbExclamation + vbOKOnly, pTitle
     txtfields(3).SetFocus
     txtfields(3).SelLength = Len(txtfields(3))
     txtfields(3).SelStart = 0
End If
If Not IsNumeric(txtfields(4).Text) And (txtfields(4).Text <> "") Then
    MsgBox "请在“单元号”中输入数字", vbExclamation + vbOKOnly, pTitle
     txtfields(4).SetFocus
     txtfields(4).SelLength = Len(txtfields(4))
     txtfields(4).SelStart = 0
End If
If Not IsNumeric(txtfields(5).Text) And (txtfields(5).Text <> "") Then
    MsgBox "请在“房间号”中输入数字", vbExclamation + vbOKOnly, pTitle
     txtfields(5).SetFocus
     txtfields(5).SelLength = Len(txtfields(5))
     txtfields(5).SelStart = 0
End If


If Not IsNumeric(txtfields(7).Text) And (txtfields(7).Text <> "") Then
    MsgBox "请在“销售面积”中输入数字", vbExclamation + vbOKOnly, pTitle
     txtfields(7).SetFocus
     txtfields(7).SelLength = Len(txtfields(7))
     txtfields(7).SelStart = 0
End If
If Not IsNumeric(txtfields(8).Text) And (txtfields(8).Text <> "") Then
    MsgBox "请在“单价”中输入数字", vbExclamation + vbOKOnly, pTitle
     txtfields(8).SetFocus
     txtfields(8).SelLength = Len(txtfields(8))
     txtfields(8).SelStart = 0
End If
If Not IsNumeric(txtfields(9).Text) And (txtfields(9).Text <> "") Then
    MsgBox "请在“总价”中输入数字", vbExclamation + vbOKOnly, pTitle
     txtfields(9).SetFocus
     txtfields(9).SelLength = Len(txtfields(9))
     txtfields(9).SelStart = 0
End If
If Not IsNumeric(txtfields(10).Text) And (txtfields(10).Text <> "") Then
    MsgBox "请在“已付金额”中输入数字", vbExclamation + vbOKOnly, pTitle
     txtfields(10).SetFocus
     txtfields(10).SelLength = Len(txtfields(10))
     txtfields(10).SelStart = 0
End If
End Sub

Private Sub updateCommand_Click()
    If Not Testtxt(txtfields(0).Text) Then
        MsgBox "请输入楼盘名称!", vbOKOnly + vbExclamation, "警告"
        txtfields(0).SetFocus
        Exit Sub
    End If
   If Not Testtxt(txtfields(1).Text) Then
        MsgBox "请输入客户编号!", vbOKOnly + vbExclamation, "警告"
        txtfields(1).SetFocus
        Exit Sub
    End If
     If Not Testtxt(txtfields(2).Text) Then
        MsgBox "请输入房型名称!", vbOKOnly + vbExclamation, "警告"
        txtfields(2).SetFocus
        Exit Sub
    End If
     If Not Testtxt(txtfields(5).Text) Then
        MsgBox "请输入房间号!", vbOKOnly + vbExclamation, "警告"
        txtfields(5).SetFocus
        Exit Sub
    End If
   
     If Not Testtxt(txtfields(8).Text) Then
        MsgBox "请输入单价!", vbOKOnly + vbExclamation, "警告"
        txtfields(8).SetFocus
        Exit Sub
    End If
      If Not Testtxt(txtfields(9).Text) Then
        MsgBox "请输入总价!", vbOKOnly + vbExclamation, "警告"
        txtfields(9).SetFocus
        Exit Sub
    End If
      If Not Testtxt(txtfields(10).Text) Then
        MsgBox "请输入已付金额!", vbOKOnly + vbExclamation, "警告"
        txtfields(10).SetFocus
        Exit Sub
    End If
    Dim tempString(11) As String
    Dim i As Integer
    For i = 0 To 11
        tempString(i) = txtfields(i).Text
    Next i
    Dim objSell As clsSell
    Set objSell = New clsSell
    objSell.AddNew tempString
End Sub


⌨️ 快捷键说明

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