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

📄 frmworcl.frm

📁 学院MIS管理系统,适合大部分毕业生,请大家支持
💻 FRM
📖 第 1 页 / 共 2 页
字号:
VERSION 5.00
Object = "{5E9E78A0-531B-11CF-91F6-C2863C385E30}#1.0#0"; "MSFLXGRD.OCX"
Begin VB.Form FrmWorcl 
   BackColor       =   &H8000000D&
   BorderStyle     =   1  'Fixed Single
   Caption         =   "查询教师工作量"
   ClientHeight    =   5280
   ClientLeft      =   4020
   ClientTop       =   4035
   ClientWidth     =   7380
   Icon            =   "FrmWorcl.frx":0000
   LinkTopic       =   "Form1"
   LockControls    =   -1  'True
   MaxButton       =   0   'False
   MDIChild        =   -1  'True
   ScaleHeight     =   5280
   ScaleWidth      =   7380
   Begin VB.CommandButton cmdInquire 
      Caption         =   "查询"
      Default         =   -1  'True
      Height          =   400
      Left            =   840
      TabIndex        =   13
      Top             =   4680
      Width           =   1200
   End
   Begin VB.CommandButton cmdExit 
      Caption         =   "退出查询"
      Height          =   400
      Left            =   5400
      TabIndex        =   12
      Top             =   4680
      Width           =   1200
   End
   Begin VB.CommandButton Command1 
      Caption         =   "统计报表"
      Height          =   400
      Left            =   3120
      TabIndex        =   11
      Top             =   4680
      Width           =   1200
   End
   Begin MSFlexGridLib.MSFlexGrid myFlexGrid 
      Height          =   2535
      Left            =   120
      TabIndex        =   6
      Top             =   480
      Width           =   7095
      _ExtentX        =   12515
      _ExtentY        =   4471
      _Version        =   393216
      Cols            =   8
      FixedCols       =   0
      RowHeightMin    =   330
      WordWrap        =   -1  'True
      AllowUserResizing=   3
   End
   Begin VB.Frame Frame1 
      BackColor       =   &H8000000D&
      Caption         =   "查询"
      ForeColor       =   &H0080FFFF&
      Height          =   1335
      Left            =   120
      TabIndex        =   0
      Top             =   3120
      Width           =   7080
      Begin VB.ComboBox Combo2 
         Height          =   300
         ItemData        =   "FrmWorcl.frx":1E72
         Left            =   5040
         List            =   "FrmWorcl.frx":1E7C
         TabIndex        =   10
         Top             =   840
         Width           =   1455
      End
      Begin VB.CheckBox Check3 
         BackColor       =   &H8000000D&
         Caption         =   "按学期:"
         ForeColor       =   &H0080FFFF&
         Height          =   255
         Left            =   3600
         TabIndex        =   9
         Top             =   840
         Width           =   1095
      End
      Begin VB.ComboBox Combo1 
         Height          =   300
         ItemData        =   "FrmWorcl.frx":1E90
         Left            =   1320
         List            =   "FrmWorcl.frx":1EBB
         TabIndex        =   8
         Top             =   840
         Width           =   1455
      End
      Begin VB.CheckBox Check2 
         BackColor       =   &H8000000D&
         Caption         =   "按学年:"
         ForeColor       =   &H0080FFFF&
         Height          =   255
         Left            =   240
         TabIndex        =   7
         Top             =   840
         Width           =   1095
      End
      Begin VB.ComboBox txtName 
         Height          =   300
         ItemData        =   "FrmWorcl.frx":1F0D
         Left            =   5040
         List            =   "FrmWorcl.frx":1F0F
         TabIndex        =   2
         Top             =   240
         Width           =   1455
      End
      Begin VB.ComboBox txtbh 
         Height          =   300
         Left            =   1320
         TabIndex        =   1
         Top             =   240
         Width           =   1455
      End
      Begin VB.CheckBox Check1 
         BackColor       =   &H8000000D&
         Caption         =   "按姓名:"
         ForeColor       =   &H0080FFFF&
         Height          =   255
         Index           =   1
         Left            =   3600
         TabIndex        =   4
         Top             =   240
         Width           =   1095
      End
      Begin VB.CheckBox Check1 
         BackColor       =   &H8000000D&
         Caption         =   "按编号:"
         ForeColor       =   &H0080FFFF&
         Height          =   255
         Index           =   0
         Left            =   240
         TabIndex        =   3
         Top             =   240
         Width           =   1095
      End
   End
   Begin VB.Label Label1 
      Alignment       =   2  'Center
      AutoSize        =   -1  'True
      BackColor       =   &H8000000D&
      BackStyle       =   0  'Transparent
      Caption         =   "查 询 教 师 工 作 量"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   12
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H0080FFFF&
      Height          =   240
      Left            =   2160
      TabIndex        =   5
      Top             =   120
      Width           =   2625
   End
End
Attribute VB_Name = "FrmWorcl"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub cmdExit_Click()
 Unload Me
End Sub

Private Sub cmdInquire_Click()
     Dim txtSQL As String
     Dim MsgText As String
     Dim dd(3) As Boolean
     Dim mrc As ADODB.Recordset
     Dim rwork As String
     Dim workf As ADODB.Recordset
     Call intform
    rwork = "select * from workfind"
    Set workf = ExecuteSQL(rwork, MsgText)
     '组合SQL语句
     txtSQL = "select * from gongzuoliang where"
     '判断是否选择编号查询方式
     If Check1(0).value Then
        If Trim(txtbh.Text) = "" Then
          sMeg = "人员编号不能为空!"
          MsgBox sMeg, vbOKOnly + vbExclamation, "警告"
          txtbh.SetFocus
          Exit Sub
        Else
          dd(0) = True
          '组合查询语句
          txtSQL = txtSQL & " Personnel_id ='" & Trim(txtbh.Text) & "'"
        End If
     End If
    '判断是否选择姓名查询方式
    If Check1(1).value Then
 
       If Trim(txtName.Text) = "" Then
         sMeg = "姓名不能为空!"
         MsgBox sMeg, vbOKOnly + vbExclamation, "警告"
        txtName.SetFocus
        Exit Sub
       Else
        dd(1) = True
        If dd(0) Then
        '组合查询语句
         txtSQL = txtSQL & " and name ='" & txtName.Text & "'"
        Else
         txtSQL = txtSQL & " name ='" & txtName.Text & "'"
        End If
       End If
    End If
    
    If Check2.value Then

       If Trim(Combo1.Text) = "" Then
         sMeg = "学年不能为空!"
         MsgBox sMeg, vbOKOnly + vbExclamation, "警告"
        Combo1.SetFocus
        Exit Sub
       Else
        dd(2) = True
        If (dd(0) Or dd(1)) Then
        '组合查询语句
         txtSQL = txtSQL & " and xuenian ='" & Combo1.Text & "'"
        Else
         txtSQL = txtSQL & " xuenian ='" & Combo1.Text & "'"
        End If
       End If
    End If
    
    If Check3.value Then

       If Trim(Combo2.Text) = "" Then
         sMeg = "学期不能为空!"
         MsgBox sMeg, vbOKOnly + vbExclamation, "警告"

⌨️ 快捷键说明

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