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

📄 frm_ygcx.frm

📁 房地产管理系统 对房地产的销售做日常的管理维护等
💻 FRM
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Object = "{CDE57A40-8B86-11D0-B3C6-00A0C90AEA82}#1.0#0"; "MSDATGRD.OCX"
Begin VB.Form frm_ygcx 
   BorderStyle     =   3  'Fixed Dialog
   Caption         =   "员工基本信息查询"
   ClientHeight    =   6750
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   10920
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MDIChild        =   -1  'True
   MinButton       =   0   'False
   ScaleHeight     =   6750
   ScaleWidth      =   10920
   ShowInTaskbar   =   0   'False
   Begin MSDataGridLib.DataGrid DataGrid1 
      Bindings        =   "frm_ygcx.frx":0000
      Height          =   5895
      Left            =   10
      TabIndex        =   1
      Top             =   840
      Width           =   10920
      _ExtentX        =   19262
      _ExtentY        =   10398
      _Version        =   393216
      AllowUpdate     =   0   'False
      HeadLines       =   1
      RowHeight       =   15
      FormatLocked    =   -1  'True
      BeginProperty HeadFont {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ColumnCount     =   8
      BeginProperty Column00 
         DataField       =   "员工编号"
         Caption         =   "员工编号"
         BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED} 
            Type            =   0
            Format          =   ""
            HaveTrueFalseNull=   0
            FirstDayOfWeek  =   0
            FirstWeekOfYear =   0
            LCID            =   2052
            SubFormatType   =   0
         EndProperty
      EndProperty
      BeginProperty Column01 
         DataField       =   "员工姓名"
         Caption         =   "员工姓名"
         BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED} 
            Type            =   0
            Format          =   ""
            HaveTrueFalseNull=   0
            FirstDayOfWeek  =   0
            FirstWeekOfYear =   0
            LCID            =   2052
            SubFormatType   =   0
         EndProperty
      EndProperty
      BeginProperty Column02 
         DataField       =   "身份证"
         Caption         =   "身份证"
         BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED} 
            Type            =   0
            Format          =   ""
            HaveTrueFalseNull=   0
            FirstDayOfWeek  =   0
            FirstWeekOfYear =   0
            LCID            =   2052
            SubFormatType   =   0
         EndProperty
      EndProperty
      BeginProperty Column03 
         DataField       =   "职务"
         Caption         =   "职务"
         BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED} 
            Type            =   0
            Format          =   ""
            HaveTrueFalseNull=   0
            FirstDayOfWeek  =   0
            FirstWeekOfYear =   0
            LCID            =   2052
            SubFormatType   =   0
         EndProperty
      EndProperty
      BeginProperty Column04 
         DataField       =   "联系电话"
         Caption         =   "联系电话"
         BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED} 
            Type            =   0
            Format          =   ""
            HaveTrueFalseNull=   0
            FirstDayOfWeek  =   0
            FirstWeekOfYear =   0
            LCID            =   2052
            SubFormatType   =   0
         EndProperty
      EndProperty
      BeginProperty Column05 
         DataField       =   "手机"
         Caption         =   "手机"
         BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED} 
            Type            =   0
            Format          =   ""
            HaveTrueFalseNull=   0
            FirstDayOfWeek  =   0
            FirstWeekOfYear =   0
            LCID            =   2052
            SubFormatType   =   0
         EndProperty
      EndProperty
      BeginProperty Column06 
         DataField       =   "工作状况"
         Caption         =   "工作状况"
         BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED} 
            Type            =   0
            Format          =   ""
            HaveTrueFalseNull=   0
            FirstDayOfWeek  =   0
            FirstWeekOfYear =   0
            LCID            =   2052
            SubFormatType   =   0
         EndProperty
      EndProperty
      BeginProperty Column07 
         DataField       =   "备注"
         Caption         =   "备注"
         BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED} 
            Type            =   0
            Format          =   ""
            HaveTrueFalseNull=   0
            FirstDayOfWeek  =   0
            FirstWeekOfYear =   0
            LCID            =   2052
            SubFormatType   =   0
         EndProperty
      EndProperty
      SplitCount      =   1
      BeginProperty Split0 
         BeginProperty Column00 
            ColumnWidth     =   2085.166
         EndProperty
         BeginProperty Column01 
            ColumnWidth     =   1365.165
         EndProperty
         BeginProperty Column02 
            ColumnWidth     =   2085.166
         EndProperty
         BeginProperty Column03 
            ColumnWidth     =   2085.166
         EndProperty
         BeginProperty Column04 
            ColumnWidth     =   2085.166
         EndProperty
         BeginProperty Column05 
            ColumnWidth     =   2085.166
         EndProperty
         BeginProperty Column06 
            ColumnWidth     =   2085.166
         EndProperty
         BeginProperty Column07 
            ColumnWidth     =   2085.166
         EndProperty
      EndProperty
   End
   Begin VB.Frame Frame1 
      Height          =   735
      Left            =   0
      TabIndex        =   0
      Top             =   0
      Width           =   10935
      Begin VB.CommandButton Command4 
         Caption         =   "关闭"
         Height          =   350
         Left            =   9720
         TabIndex        =   9
         Top             =   220
         Width           =   855
      End
      Begin VB.CommandButton Command3 
         Caption         =   "刷新"
         Height          =   350
         Left            =   8640
         TabIndex        =   8
         Top             =   220
         Width           =   975
      End
      Begin VB.CommandButton Command2 
         Caption         =   "取消"
         Height          =   350
         Left            =   7560
         TabIndex        =   7
         Top             =   220
         Width           =   975
      End
      Begin VB.CommandButton Command1 
         Caption         =   "确定"
         Height          =   350
         Left            =   6480
         TabIndex        =   6
         Top             =   220
         Width           =   975
      End
      Begin VB.TextBox Text1 
         Height          =   300
         Left            =   4320
         TabIndex        =   5
         Top             =   240
         Width           =   2055
      End
      Begin VB.ComboBox Combo2 
         Height          =   300
         ItemData        =   "frm_ygcx.frx":0015
         Left            =   3240
         List            =   "frm_ygcx.frx":001F
         TabIndex        =   4
         Text            =   " ="
         Top             =   240
         Width           =   855
      End
      Begin VB.ComboBox Combo1 
         Height          =   300
         ItemData        =   "frm_ygcx.frx":002E
         Left            =   1200
         List            =   "frm_ygcx.frx":0047
         TabIndex        =   3
         Text            =   "员工编号"
         Top             =   240
         Width           =   1935
      End
      Begin VB.Label Label1 
         Caption         =   "查询条件"
         Height          =   255
         Left            =   240
         TabIndex        =   2
         Top             =   320
         Width           =   855
      End
   End
   Begin MSAdodcLib.Adodc Adodc1 
      Height          =   375
      Left            =   240
      Top             =   6000
      Width           =   5415
      _ExtentX        =   9551
      _ExtentY        =   661
      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_YGXX"
      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_ygcx"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim B
Private Sub Combo2_Click()
If Combo2.Text = " =" Then
B = 0
ElseIf Combo2.Text = " Like" Then
B = 1
Else
End If
End Sub

Private Sub Command1_Click()
If B = 0 Then
If Text1.Text <> "" Then
Adodc1.RecordSource = "select * from Table_YGXX where " + Combo1 + "='" + Text1.Text + "'"
Adodc1.Refresh
Else
MsgBox "请您输入所要查询的内容", , "房地产销售管理系统"
Text1.SetFocus
End If
ElseIf B = 1 Then
If Text1.Text <> "" Then
Adodc1.RecordSource = "select * from Table_YGXX where " + Combo1 + " like '%" + Text1.Text + "%'"
Adodc1.Refresh
Else
MsgBox "请您输入所要查询的内容", , "房地产销售管理系统"
Text1.SetFocus
End If
Else
End If
End Sub

Private Sub Command2_Click()
Combo1.SetFocus
Text1.Text = ""
End Sub

Private Sub Command3_Click()
Adodc1.RecordSource = "select * from Table_YGXX "
Adodc1.Refresh
End Sub

Private Sub Command4_Click()
Unload Me
frm_YGXX.Show
End Sub

Private Sub Text1_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = 13 Then
If B = 0 Then
If Text1.Text <> "" Then
Adodc1.RecordSource = "select * from Table_YGXX where " + Combo1 + "='" + Text1.Text + "'"
Adodc1.Refresh
Else
MsgBox "请您输入所要查询的内容", , "房地产销售管理系统"
Text1.SetFocus
End If
ElseIf B = 1 Then
If Text1.Text <> "" Then
Adodc1.RecordSource = "select * from Table_YGXX where " + Combo1 + " like '%" + Text1.Text + "%'"
Adodc1.Refresh
Else
MsgBox "请您输入所要查询的内容", , "房地产销售管理系统"
Text1.SetFocus
End If
Else
End If
Else
End If
End Sub

⌨️ 快捷键说明

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