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

📄 frmexamine.frm

📁 本文档是基于UML的客户订购管理系统的设计
💻 FRM
字号:
VERSION 5.00
Object = "{E95A2510-F3D1-416D-823B-4F840FE98091}#3.0#0"; "COMMAND.OCX"
Object = "{CDE57A40-8B86-11D0-B3C6-00A0C90AEA82}#1.0#0"; "MSDATGRD.OCX"
Begin VB.Form frmExamine 
   Caption         =   "frmExamine-订单审阅"
   ClientHeight    =   3825
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   4815
   Icon            =   "frmExamine.frx":0000
   LinkTopic       =   "Form1"
   MDIChild        =   -1  'True
   Picture         =   "frmExamine.frx":030A
   ScaleHeight     =   3825
   ScaleWidth      =   4815
   Begin VB.TextBox Text1 
      Enabled         =   0   'False
      Height          =   270
      Left            =   1560
      TabIndex        =   9
      Top             =   2640
      Width           =   855
   End
   Begin MSDataGridLib.DataGrid dgExamin 
      Height          =   1935
      Left            =   720
      TabIndex        =   0
      Top             =   600
      Width           =   3375
      _ExtentX        =   5953
      _ExtentY        =   3413
      _Version        =   393216
      HeadLines       =   1
      RowHeight       =   15
      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     =   2
      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
      SplitCount      =   1
      BeginProperty Split0 
         BeginProperty Column00 
         EndProperty
         BeginProperty Column01 
         EndProperty
      EndProperty
   End
   Begin CSCommand.Command cmdAdd 
      Height          =   375
      Left            =   480
      TabIndex        =   2
      Top             =   3240
      Width           =   615
      _ExtentX        =   1085
      _ExtentY        =   661
      IconAlign       =   0
      Icon            =   "frmExamine.frx":7C11F
      Caption         =   "&批准"
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Appearance      =   2
      BackStyle       =   0
   End
   Begin CSCommand.Command cmdLast 
      Height          =   375
      Left            =   3960
      TabIndex        =   3
      Top             =   2760
      Width           =   375
      _ExtentX        =   661
      _ExtentY        =   661
      IconAlign       =   0
      Icon            =   "frmExamine.frx":7C13B
      Caption         =   ">|"
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      FontColor       =   255
   End
   Begin CSCommand.Command cmdNext 
      Height          =   375
      Left            =   3600
      TabIndex        =   4
      Top             =   2760
      Width           =   375
      _ExtentX        =   661
      _ExtentY        =   661
      IconAlign       =   0
      Icon            =   "frmExamine.frx":7C157
      Caption         =   ">"
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      FontColor       =   255
   End
   Begin CSCommand.Command cmdPriv 
      Height          =   375
      Left            =   3240
      TabIndex        =   5
      Top             =   2760
      Width           =   375
      _ExtentX        =   661
      _ExtentY        =   661
      IconAlign       =   0
      Icon            =   "frmExamine.frx":7C173
      Caption         =   "<"
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      FontColor       =   255
   End
   Begin CSCommand.Command cmdFrist 
      Height          =   375
      Left            =   2880
      TabIndex        =   6
      Top             =   2760
      Width           =   375
      _ExtentX        =   661
      _ExtentY        =   661
      IconAlign       =   0
      Icon            =   "frmExamine.frx":7C18F
      Caption         =   "|<"
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      FontColor       =   255
   End
   Begin CSCommand.Command cmdSet 
      Height          =   375
      Left            =   2040
      TabIndex        =   7
      Top             =   3240
      Width           =   615
      _ExtentX        =   1085
      _ExtentY        =   661
      IconAlign       =   0
      Icon            =   "frmExamine.frx":7C1AB
      Caption         =   "&不批准"
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Appearance      =   2
      BackStyle       =   0
   End
   Begin CSCommand.Command cmdExit 
      Height          =   375
      Left            =   3720
      TabIndex        =   8
      Top             =   3240
      Width           =   615
      _ExtentX        =   1085
      _ExtentY        =   661
      IconAlign       =   0
      Icon            =   "frmExamine.frx":7CE85
      Caption         =   "&退出"
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Appearance      =   2
      BackStyle       =   0
   End
   Begin VB.Label Label2 
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      Caption         =   "审批结论:"
      ForeColor       =   &H00008080&
      Height          =   180
      Left            =   720
      TabIndex        =   10
      Top             =   2640
      Width           =   810
   End
   Begin VB.Label Label1 
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      Caption         =   "订 单 审 批"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   15.75
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   -1  'True
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H00008080&
      Height          =   315
      Left            =   1320
      TabIndex        =   1
      Top             =   120
      Width           =   1875
   End
End
Attribute VB_Name = "frmExamine"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
    Option Explicit
    Dim Exam As ADODB.Recordset
    Dim Ex As String
    
Private Sub cmdAdd_Click()
    FillExam
End Sub

Private Sub cmdExit_Click()
    If MsgBox("确实退出吗?", vbYesNo + vbQuestion, "审批退出") = vbYes Then
        Unload Me
    Else
        Exit Sub
    End If
End Sub

Private Sub cmdFrist_Click()
    If Exam.RecordCount <= 0 Then Exit Sub
    
    Exam.MoveFirst
End Sub

Private Sub cmdLast_Click()
    If Exam.RecordCount <= 0 Then Exit Sub
    
    Exam.MoveLast
End Sub

Private Sub cmdNext_Click()
    If Exam.RecordCount <= 0 Then Exit Sub
    
    Exam.MoveNext
    If Exam.EOF Then
        MsgBox "记录已到尾记录!", vbOKOnly + vbExclamation, "浏览记录"
        Exam.MoveLast
    End If
End Sub

Private Sub cmdPriv_Click()
    If Exam.RecordCount <= 0 Then Exit Sub
    
    Exam.MovePrevious
    If Exam.BOF Then
        MsgBox "记录已到首记录!", vbOKOnly + vbExclamation, "浏览记录"
        Exam.MoveFirst
    End If
End Sub

Private Sub cmdSet_Click()
    FillExamin
End Sub

Private Sub dgExamin_RowColChange(LastRow As Variant, ByVal LastCol As Integer)
    If Exam.RecordCount <= 0 Then Exit Sub
    
    If Exam.BOF Then
        MsgBox "记录已到首记录!", vbOKOnly + vbExclamation, "浏览记录"
        Exam.MoveFirst
    End If
    If Exam.EOF Then
        MsgBox "记录已到尾记录!", vbOKOnly + vbExclamation, "浏览记录"
        Exam.MoveLast
    End If
    
    Text1.Text = Exam(6)
End Sub

Private Sub Form_Load()
    Set Exam = New Recordset
    
    Ex = "Select * From OrderMsg"
    Exam.Open Ex, cnStr, adOpenKeyset, adLockOptimistic, adCmdText
    
    Set dgExamin.DataSource = Exam
    dgExamin.Refresh
    
    frmExamine.Width = 4935
    frmExamine.Height = 4230
    
    Text1.Text = Exam(6)
End Sub

Private Sub FillExam()
    If Exam.RecordCount <= 0 Then Exit Sub
    Text1.Text = "批准"
    Exam(6) = Text1.Text
    Exam.UpdateBatch
    Exam.MoveFirst
    dgExamin.Refresh
    frmExamine.Refresh
    Set dgExamin.DataSource = Exam
End Sub

Private Sub FillExamin()
    If Exam.RecordCount <= 0 Then Exit Sub
    Text1.Text = "不批准"
    Exam(6) = Text1.Text
    Exam.UpdateBatch
    Exam.MoveFirst
    dgExamin.Refresh
    frmExamine.Refresh
    Set dgExamin.DataSource = Exam
End Sub

⌨️ 快捷键说明

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