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

📄 frm_ryxs.frm

📁 房地产管理系统 对房地产的销售做日常的管理维护等
💻 FRM
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
Begin VB.Form frm_RYXS 
   BorderStyle     =   5  'Sizable ToolWindow
   Caption         =   "操作员选择"
   ClientHeight    =   4065
   ClientLeft      =   3210
   ClientTop       =   2385
   ClientWidth     =   5655
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   4065
   ScaleWidth      =   5655
   ShowInTaskbar   =   0   'False
   Begin MSAdodcLib.Adodc Adodc1 
      Height          =   375
      Left            =   1800
      Top             =   3600
      Visible         =   0   'False
      Width           =   1920
      _ExtentX        =   3387
      _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_YHDL"
      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.TextBox Text1 
      DataField       =   "用户名"
      DataSource      =   "Adodc1"
      Height          =   375
      Left            =   120
      TabIndex        =   3
      Text            =   "Text1"
      Top             =   3600
      Visible         =   0   'False
      Width           =   1215
   End
   Begin MSComctlLib.ImageList ImageList1 
      Left            =   1320
      Top             =   3480
      _ExtentX        =   1005
      _ExtentY        =   1005
      BackColor       =   -2147483643
      ImageWidth      =   32
      ImageHeight     =   32
      MaskColor       =   12632256
      _Version        =   393216
      BeginProperty Images {2C247F25-8591-11D1-B16A-00C0F0283628} 
         NumListImages   =   1
         BeginProperty ListImage1 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "frm_RYXS.frx":0000
            Key             =   ""
         EndProperty
      EndProperty
   End
   Begin VB.CommandButton Command2 
      Caption         =   "取消"
      Height          =   375
      Left            =   4680
      TabIndex        =   2
      Top             =   3600
      Width           =   855
   End
   Begin VB.CommandButton Command1 
      Caption         =   "确定"
      Height          =   375
      Left            =   3720
      TabIndex        =   1
      Top             =   3600
      Width           =   855
   End
   Begin MSComctlLib.ListView ListView1 
      Height          =   3495
      Left            =   0
      TabIndex        =   0
      Top             =   0
      Width           =   5655
      _ExtentX        =   9975
      _ExtentY        =   6165
      LabelWrap       =   -1  'True
      HideSelection   =   -1  'True
      _Version        =   393217
      Icons           =   "ImageList1"
      SmallIcons      =   "ImageList1"
      ColHdrIcons     =   "ImageList1"
      ForeColor       =   -2147483640
      BackColor       =   -2147483643
      BorderStyle     =   1
      Appearance      =   1
      NumItems        =   0
   End
End
Attribute VB_Name = "frm_RYXS"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim itmX As ListItem     '定义一个ListItem对象
Dim a
Dim key  As String     '定义字符串变量


Private Sub Command1_Click()
If frm_RYXS.Caption = "操作员选择" Then
frm_XTDL.Text2.Text = ListView1.SelectedItem
Unload Me
'frm_RYXS.Hide
frm_XTDL.Show
frm_XTDL.Text1.SetFocus
ElseIf frm_RYXS.Caption = "用户删除" Then
frm_YHGL.Text4.Text = ListView1.SelectedItem
Unload Me
'frm_RYXS.Hide
frm_YHGL.Show
End If
End Sub

Private Sub Command2_Click()
If Caption = "操作员选择" Then
frm_RYXS.Hide
frm_XTDL.Show
ElseIf Caption = "用户删除" Then
frm_RYXS.Hide
frm_YHGL.Show
Else
End If
End Sub

Private Sub Form_Load()
Adodc1.RecordSource = "select * from Table_YHDL"
Adodc1.Refresh
   If Adodc1.Recordset.RecordCount > 0 Then
      ListView1.ListItems.Clear
      ListView1.Enabled = True
      Adodc1.Recordset.MoveFirst
          Do While Adodc1.Recordset.EOF = False
              key = Text1.Text
              Set itmX = ListView1.ListItems.Add(, , key, 1)
              Adodc1.Recordset.MoveNext
          Loop
   Else
      ListView1.Enabled = False
      Command1.Enabled = False
   End If
End Sub

Private Sub ListView1_DblClick()
If frm_RYXS.Caption = "操作员选择" Then
frm_XTDL.Text2.Text = ListView1.SelectedItem
Unload Me
frm_XTDL.Show
frm_XTDL.Text1.SetFocus
ElseIf frm_RYXS.Caption = "用户删除" Then
frm_YHGL.Text4.Text = ListView1.SelectedItem
Unload Me
frm_YHGL.Show
End If
End Sub

⌨️ 快捷键说明

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