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

📄 frm_xqtscx.frm

📁 小区物业管理系统,(vb6+SQLServer2000+使用说明)
💻 FRM
📖 第 1 页 / 共 2 页
字号:
               HaveTrueFalseNull=   0
               FirstDayOfWeek  =   0
               FirstWeekOfYear =   0
               LCID            =   2052
               SubFormatType   =   0
            EndProperty
         EndProperty
         BeginProperty Column11 
            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 Column12 
            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 Column13 
            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     =   810.142
            EndProperty
            BeginProperty Column01 
               ColumnWidth     =   794.835
            EndProperty
            BeginProperty Column02 
               ColumnWidth     =   615.118
            EndProperty
            BeginProperty Column03 
               ColumnWidth     =   480.189
            EndProperty
            BeginProperty Column04 
               ColumnWidth     =   929.764
            EndProperty
            BeginProperty Column05 
               ColumnWidth     =   840.189
            EndProperty
            BeginProperty Column06 
               ColumnWidth     =   824.882
            EndProperty
            BeginProperty Column07 
               ColumnWidth     =   884.976
            EndProperty
            BeginProperty Column08 
               ColumnWidth     =   900.284
            EndProperty
            BeginProperty Column09 
               ColumnWidth     =   900.284
            EndProperty
            BeginProperty Column10 
               ColumnWidth     =   824.882
            EndProperty
            BeginProperty Column11 
               ColumnWidth     =   900.284
            EndProperty
            BeginProperty Column12 
               ColumnWidth     =   824.882
            EndProperty
            BeginProperty Column13 
               ColumnWidth     =   824.882
            EndProperty
         EndProperty
      End
   End
   Begin VB.Frame Frame1 
      Height          =   975
      Left            =   105
      TabIndex        =   0
      Top             =   60
      Width           =   8100
      Begin VB.OptionButton Opt2 
         Caption         =   "按投诉时间查询"
         Height          =   225
         Left            =   135
         TabIndex        =   11
         Top             =   1245
         Width           =   1740
      End
      Begin VB.OptionButton Opt1 
         Caption         =   "请选择查询条件"
         Height          =   285
         Left            =   135
         TabIndex        =   10
         Top             =   420
         Width           =   1695
      End
      Begin VB.Frame Frame3 
         Height          =   660
         Left            =   6420
         TabIndex        =   7
         Top             =   180
         Width           =   1575
         Begin VB.CommandButton Command2 
            Caption         =   "退出"
            Height          =   390
            Left            =   810
            TabIndex        =   9
            Top             =   165
            Width           =   645
         End
         Begin VB.CommandButton Command1 
            Caption         =   "查询"
            Height          =   390
            Left            =   165
            TabIndex        =   8
            Top             =   165
            Width           =   645
         End
      End
      Begin MSComCtl2.DTPicker DTPicker1 
         Height          =   300
         Left            =   1920
         TabIndex        =   4
         Top             =   1230
         Width           =   2565
         _ExtentX        =   4524
         _ExtentY        =   529
         _Version        =   393216
         Format          =   81395713
         CurrentDate     =   39406
      End
      Begin VB.TextBox Text1 
         Height          =   300
         Left            =   4380
         TabIndex        =   3
         Top             =   405
         Width           =   1950
      End
      Begin VB.ComboBox Combo2 
         Height          =   300
         ItemData        =   "Frm_xqtscx.frx":1C7A
         Left            =   3195
         List            =   "Frm_xqtscx.frx":1C8A
         Style           =   2  'Dropdown List
         TabIndex        =   2
         Top             =   405
         Width           =   1170
      End
      Begin VB.ComboBox Combo1 
         Height          =   300
         ItemData        =   "Frm_xqtscx.frx":1C9D
         Left            =   1920
         List            =   "Frm_xqtscx.frx":1CA7
         Style           =   2  'Dropdown List
         TabIndex        =   1
         Top             =   390
         Width           =   1275
      End
   End
End
Attribute VB_Name = "Frm_xqtscx"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Form_Load()
    DTPicker1.Value = Date
    '自动识别路径
    Adodc1.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & App.Path & "\db_wygl.mdb;Persist Security Info=False"
    Adodc1.RecordSource = "select * from tab_tsinfo"    '连接数据表
    Adodc1.Refresh                                      '刷新记录
    Set DataGrid1.DataSource = Adodc1                   '显示记录
    DTPicker1.Enabled = False
    'DateTimePicker控件使您可以提供格式化的日期字段,使得进行日期选择很容易。另外,用户还可以从类似于MonthView控件的下拉式日历界面中选择日期。
    Combo1.Enabled = False
    Combo2.Enabled = False
    Text1.Enabled = False
End Sub
Private Sub Opt1_Click()            '请选择查询条件
    If Opt1.Value = True Then       '如果Opt1被选中则执行
        'OptionButton 控件显示一个可以打开或者关闭的选项。
        Combo1.Enabled = True       'Combo1下拉列表框可用
        Combo2.Enabled = True       'Combo2下拉列表框可用
        Text1.Enabled = True        'Text1文本框可用
    Else                            '如果Opt1没有被选中则执行
        Combo1.Enabled = False      'Combo1下拉列表框不可用
        Combo2.Enabled = False      'Combo2下拉列表框不可用
        Text1.Enabled = False       'Text1文本框不可用
    End If                          '判断结束
End Sub                             '结束过程
Private Sub Opt2_Click()            '按投诉时间查询
    If Opt2.Value = True Then       '如果Opt2被选中则执行
        DTPicker1.Enabled = True    'DTPicker1控件可用
    Else                            '如果Opt2没有被选中则执行
        DTPicker1.Enabled = False   'DTPicker1控件不可用
    End If                          '判断结束
End Sub
Private Sub Command1_Click()            '查询
    If Opt1.Value = True Then           '如果Opt1被选中则执行
        If Combo2.Text = "like" Then    '如果Combo2的信息等于like则执行
            Adodc1.RecordSource = "select * from tab_tsinfo where " & Combo1.Text & " " & Combo2.Text & " '%" & Text1.Text & "%'"                       '精确查询记录
            Adodc1.Refresh              '刷新记录
        Else                            'Combo2的信息不等于like则执行
            Adodc1.RecordSource = "select * from tab_tsinfo where " & Combo1.Text & " " & Combo2.Text & " '" & Text1.Text & "'"                         '模糊查询记录
            Adodc1.Refresh              '刷新记录
        End If                          '判断结束
    Else                                '如果Opt1没有被选中则执行
        Adodc1.RecordSource = "select * from tab_tsinfo where 投诉时间=" + Chr(35) + Str(DTPicker1.Value) + Chr(35) + ""                                '按投诉日间查询记录
        Adodc1.Refresh                  '刷新记录
    End If                              '判断结束
End Sub

Private Sub Command2_Click()   '退出
    Unload Me
End Sub
Private Sub Text1_KeyPress(KeyAscii As Integer)
    If KeyAscii = 13 Then Command1.SetFocus    '按回车键Command1获得焦点
End Sub

⌨️ 快捷键说明

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