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

📄 frm_showdata.frm

📁 企业生产管理系统 提供对企业的日常生产管理
💻 FRM
字号:
VERSION 5.00
Begin VB.Form frm_showData 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "Form1"
   ClientHeight    =   2010
   ClientLeft      =   45
   ClientTop       =   435
   ClientWidth     =   4785
   Icon            =   "frm_showData.frx":0000
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   2010
   ScaleWidth      =   4785
   StartUpPosition =   2  '屏幕中心
   Begin VB.TextBox Text3 
      BackColor       =   &H80000009&
      Enabled         =   0   'False
      Height          =   270
      Left            =   990
      TabIndex        =   4
      Top             =   1080
      Width           =   1215
   End
   Begin VB.CommandButton Command2 
      Caption         =   "退    出(&E)"
      Height          =   315
      Left            =   3465
      TabIndex        =   12
      Top             =   1620
      Width           =   1215
   End
   Begin VB.CommandButton CmdPrint 
      Caption         =   "打印预览(&P)"
      Height          =   315
      Left            =   2265
      TabIndex        =   11
      Top             =   1620
      Width           =   1215
   End
   Begin VB.TextBox Text4 
      BackColor       =   &H80000009&
      Enabled         =   0   'False
      Height          =   270
      Left            =   3480
      TabIndex        =   5
      Top             =   435
      Width           =   1215
   End
   Begin VB.TextBox Text2 
      BackColor       =   &H80000009&
      Enabled         =   0   'False
      Height          =   270
      Left            =   990
      TabIndex        =   3
      Top             =   750
      Width           =   1215
   End
   Begin VB.TextBox Text1 
      BackColor       =   &H80000009&
      Enabled         =   0   'False
      ForeColor       =   &H00FF0000&
      Height          =   270
      Left            =   990
      TabIndex        =   2
      Top             =   435
      Width           =   1215
   End
   Begin VB.TextBox Text5 
      BackColor       =   &H80000009&
      Enabled         =   0   'False
      Height          =   270
      Left            =   3480
      TabIndex        =   1
      Top             =   750
      Width           =   1215
   End
   Begin VB.TextBox Text6 
      BackColor       =   &H80000009&
      Enabled         =   0   'False
      Height          =   270
      Left            =   3480
      TabIndex        =   0
      Top             =   1080
      Width           =   1215
   End
   Begin VB.Label Label1 
      Caption         =   "工号:"
      Height          =   255
      Left            =   120
      TabIndex        =   14
      Top             =   480
      Width           =   615
   End
   Begin VB.Label Label4 
      Caption         =   "性别:"
      Height          =   255
      Left            =   2520
      TabIndex        =   13
      Top             =   480
      Width           =   735
   End
   Begin VB.Label Label7 
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   14.25
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H80000001&
      Height          =   375
      Left            =   735
      TabIndex        =   10
      Top             =   60
      Width           =   3510
   End
   Begin VB.Label Label5 
      Caption         =   "人员分类:"
      Height          =   255
      Left            =   2520
      TabIndex        =   9
      Top             =   765
      Width           =   960
   End
   Begin VB.Label Label3 
      Caption         =   "部门编号:"
      Height          =   255
      Left            =   120
      TabIndex        =   8
      Top             =   1080
      Width           =   975
   End
   Begin VB.Label Label2 
      Caption         =   "姓名:"
      Height          =   255
      Left            =   120
      TabIndex        =   7
      Top             =   765
      Width           =   615
   End
   Begin VB.Label Label6 
      Caption         =   "分组编号:"
      Height          =   255
      Left            =   2520
      TabIndex        =   6
      Top             =   1080
      Width           =   930
   End
End
Attribute VB_Name = "frm_showData"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False

Private Sub cmdPrint_Click()
  If Text1.Text = "" Then
     MsgBox "对不起,没有数据你无法打印!", , "系统提示"
     Unload Me
  Else
     DataE1.rsCommand1.Open "select * from 员工信息表 where 工号 ='" & Text1.Text & "'"
     DataReport1.Show
  End If
End Sub

Private Sub Command2_Click()
  Unload Me
End Sub

Private Sub Form_Load()
  On Error Resume Next
  Text1.Text = frm_ygjbxx.AdoAdd.Recordset.Fields(0).Value
  Text2.Text = frm_ygjbxx.AdoAdd.Recordset.Fields(1).Value
  Text3.Text = frm_ygjbxx.AdoAdd.Recordset.Fields(2).Value
  Text4.Text = frm_ygjbxx.AdoAdd.Recordset.Fields(3).Value
  Text5.Text = frm_ygjbxx.AdoAdd.Recordset.Fields(4).Value
  Text6.Text = frm_ygjbxx.AdoAdd.Recordset.Fields(5).Value
  Label7.Caption = "员工【 " & frm_ygjbxx.AdoAdd.Recordset.Fields(1).Value & " 】的资料"
  frm_showData.Caption = frm_ygjbxx.AdoAdd.Recordset.Fields(1).Value
End Sub

⌨️ 快捷键说明

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