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

📄 frm_wxcx.frm

📁 小区物业管理系统,(vb6+SQLServer2000+使用说明)
💻 FRM
📖 第 1 页 / 共 2 页
字号:
               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     =   794.835
            EndProperty
            BeginProperty Column01 
               ColumnWidth     =   840.189
            EndProperty
            BeginProperty Column02 
               ColumnWidth     =   780.095
            EndProperty
            BeginProperty Column03 
               ColumnWidth     =   780.095
            EndProperty
            BeginProperty Column04 
               ColumnWidth     =   599.811
            EndProperty
            BeginProperty Column05 
               ColumnWidth     =   824.882
            EndProperty
            BeginProperty Column06 
               ColumnWidth     =   780.095
            EndProperty
            BeginProperty Column07 
               ColumnWidth     =   824.882
            EndProperty
            BeginProperty Column08 
               ColumnWidth     =   780.095
            EndProperty
            BeginProperty Column09 
               ColumnWidth     =   840.189
            EndProperty
            BeginProperty Column10 
               ColumnWidth     =   840.189
            EndProperty
            BeginProperty Column11 
               ColumnWidth     =   810.142
            EndProperty
            BeginProperty Column12 
               ColumnWidth     =   840.189
            EndProperty
            BeginProperty Column13 
               ColumnWidth     =   720
            EndProperty
         EndProperty
      End
   End
   Begin VB.Frame Frame1 
      Height          =   855
      Left            =   75
      TabIndex        =   0
      Top             =   45
      Width           =   7620
      Begin VB.Frame Frame2 
         Height          =   645
         Left            =   5895
         TabIndex        =   10
         Top             =   120
         Width           =   1635
         Begin VB.CommandButton Command2 
            Caption         =   "退出"
            Height          =   345
            Left            =   810
            TabIndex        =   12
            Top             =   195
            Width           =   735
         End
         Begin VB.CommandButton Command1 
            Caption         =   "查询"
            Height          =   345
            Left            =   75
            TabIndex        =   11
            Top             =   195
            Width           =   735
         End
      End
      Begin VB.TextBox Text1 
         Height          =   300
         Left            =   4515
         TabIndex        =   9
         Top             =   375
         Width           =   1215
      End
      Begin VB.ComboBox Combo2 
         Height          =   300
         ItemData        =   "Frm_wxcx.frx":1C7A
         Left            =   3210
         List            =   "Frm_wxcx.frx":1C8A
         Style           =   2  'Dropdown List
         TabIndex        =   8
         Top             =   375
         Width           =   1290
      End
      Begin VB.ComboBox Combo1 
         Height          =   300
         ItemData        =   "Frm_wxcx.frx":1C9D
         Left            =   1665
         List            =   "Frm_wxcx.frx":1CAD
         Style           =   2  'Dropdown List
         TabIndex        =   7
         Top             =   375
         Width           =   1530
      End
      Begin MSComCtl2.DTPicker DTPicker2 
         Height          =   345
         Left            =   4500
         TabIndex        =   6
         Top             =   990
         Width           =   1275
         _ExtentX        =   2249
         _ExtentY        =   609
         _Version        =   393216
         Format          =   81330177
         CurrentDate     =   39406
      End
      Begin MSComCtl2.DTPicker DTPicker1 
         Height          =   345
         Left            =   2460
         TabIndex        =   4
         Top             =   990
         Width           =   1275
         _ExtentX        =   2249
         _ExtentY        =   609
         _Version        =   393216
         Format          =   81330177
         CurrentDate     =   39406
      End
      Begin VB.OptionButton Option2 
         Caption         =   "按开工时间查询"
         Height          =   330
         Left            =   105
         TabIndex        =   2
         Top             =   1035
         Width           =   1575
      End
      Begin VB.OptionButton Option1 
         Caption         =   "请选择查询条件"
         Height          =   375
         Left            =   105
         TabIndex        =   1
         Top             =   330
         Width           =   1665
      End
      Begin VB.Label Label2 
         AutoSize        =   -1  'True
         Caption         =   "结束日期"
         Height          =   180
         Left            =   3750
         TabIndex        =   5
         Top             =   1080
         Width           =   720
      End
      Begin VB.Label Label1 
         AutoSize        =   -1  'True
         Caption         =   "起始日期"
         Height          =   180
         Left            =   1710
         TabIndex        =   3
         Top             =   1095
         Width           =   720
      End
   End
End
Attribute VB_Name = "Frm_wxcx"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Form_Load()
    DTPicker1.Value = Date
    DTPicker2.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_wxinfo"
    Adodc1.Refresh
    Set DataGrid1.DataSource = Adodc1
    'DataGrid控件显示并允许对Recordset对象中代表记录和字段的一系列行和列进行数据操纵。
End Sub

Private Sub Option1_Click()   '请选择查询条件
    Combo1.Enabled = True
    Combo2.Enabled = True
    Text1.Enabled = True
    DTPicker1.Enabled = False
    DTPicker2.Enabled = False
    'DateTimePicker控件使您可以提供格式化的日期字段,使得进行日期选择很容易。另外,用户还可以从类似于MonthView控件的下拉式日历界面中选择日期。
End Sub
Private Sub Option2_Click()   '按开工时间查询
    Combo1.Enabled = False
    Combo2.Enabled = False
    Text1.Enabled = False
    DTPicker1.Enabled = True
    DTPicker2.Enabled = True
End Sub
Private Sub Text1_KeyDown(KeyCode As Integer, Shift As Integer)
    If KeyCode = 13 Then Command1.SetFocus   '按回车键Command1获得焦点
End Sub
Private Sub Command1_Click()    '查询
    If Combo1.Enabled = True Then
        'ComboBox 控件将 TextBox 控件和 ListBox 控件的特性结合在一起-既可以在控件的文本框部分输入信息,也可以在控件的列表框部分选择一项。
        If Combo2.Text = "like" Then
            Adodc1.RecordSource = "select * from tab_wxinfo where " & Combo1.Text & " " & Combo2.Text & " '%" & Text1.Text & "%'"
            Adodc1.Refresh
        Else
            Adodc1.RecordSource = "select * from tab_wxinfo where " & Combo1.Text & " " & Combo2.Text & " '" & Text1.Text & "'"
            Adodc1.Refresh
        End If
    Else
        Adodc1.RecordSource = "select * from tab_wxinfo where 开工时间=" + Chr(35) + Str(DTPicker1.Value) + Chr(35) + "and 完工时间=" + Chr(35) + Str(DTPicker2.Value) + Chr(35) + ""
        'Str 函数返回代表一数值的 Variant (String)。
        Adodc1.Refresh
    End If
End Sub
Private Sub Command2_Click()   '退出
    Unload Me
End Sub

⌨️ 快捷键说明

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