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

📄 frmworkshop.frm

📁 采用面向负荷控制技术
💻 FRM
📖 第 1 页 / 共 5 页
字号:
         TabIndex        =   39
         Top             =   3600
         Width           =   840
      End
      Begin VB.Label Label2 
         AutoSize        =   -1  'True
         Caption         =   "设备类型"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   10.5
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   210
         Index           =   9
         Left            =   405
         TabIndex        =   36
         Top             =   1320
         Width           =   840
      End
      Begin VB.Label Label2 
         AutoSize        =   -1  'True
         Caption         =   "设备名称"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   10.5
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   210
         Index           =   7
         Left            =   405
         TabIndex        =   22
         Top             =   600
         Width           =   840
      End
      Begin VB.Label Label2 
         AutoSize        =   -1  'True
         Caption         =   "设备类别"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   10.5
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   210
         Index           =   6
         Left            =   405
         TabIndex        =   21
         Top             =   960
         Width           =   840
      End
      Begin VB.Label Label2 
         AutoSize        =   -1  'True
         Caption         =   "购买日期"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   10.5
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   210
         Index           =   5
         Left            =   405
         TabIndex        =   20
         Top             =   1680
         Width           =   840
      End
      Begin VB.Label Label2 
         AutoSize        =   -1  'True
         Caption         =   "设备状态"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   10.5
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   210
         Index           =   3
         Left            =   405
         TabIndex        =   18
         Top             =   2040
         Width           =   840
      End
      Begin VB.Label Label2 
         AutoSize        =   -1  'True
         Caption         =   "产品质量状态"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   10.5
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   210
         Index           =   2
         Left            =   240
         TabIndex        =   17
         Top             =   2880
         Width           =   1200
      End
      Begin VB.Label Label2 
         AutoSize        =   -1  'True
         Caption         =   "设备编号"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   10.5
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   210
         Index           =   0
         Left            =   405
         TabIndex        =   16
         Top             =   240
         Width           =   840
      End
      Begin VB.Label Label2 
         AutoSize        =   -1  'True
         Caption         =   "操作员情况"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   10.5
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   210
         Index           =   4
         Left            =   360
         TabIndex        =   19
         Top             =   2400
         Width           =   1200
      End
   End
   Begin VB.Frame frm_dc 
      Caption         =   "参数区"
      Height          =   3255
      Left            =   9840
      TabIndex        =   25
      Top             =   1440
      Width           =   2895
      Begin VB.TextBox dc_txt 
         Height          =   495
         Index           =   2
         Left            =   1200
         TabIndex        =   33
         Top             =   1520
         Width           =   1575
      End
      Begin VB.TextBox dc_txt 
         Height          =   495
         Index           =   0
         Left            =   1200
         TabIndex        =   28
         Top             =   240
         Width           =   1575
      End
      Begin VB.TextBox dc_txt 
         Height          =   495
         Index           =   3
         Left            =   1200
         TabIndex        =   27
         Top             =   2160
         Width           =   1575
      End
      Begin VB.TextBox dc_txt 
         Height          =   495
         Index           =   1
         Left            =   1200
         TabIndex        =   26
         Top             =   880
         Width           =   1575
      End
      Begin VB.Label Label1 
         AutoSize        =   -1  'True
         Caption         =   "设备类别名"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   10.5
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   210
         Index           =   4
         Left            =   120
         TabIndex        =   32
         Top             =   960
         Width           =   1050
      End
      Begin VB.Label Label1 
         AutoSize        =   -1  'True
         Caption         =   "使用年限"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   10.5
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   210
         Index           =   3
         Left            =   120
         TabIndex        =   31
         Top             =   1680
         Width           =   840
      End
      Begin VB.Label Label1 
         AutoSize        =   -1  'True
         Caption         =   "数  量"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   10.5
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   210
         Index           =   2
         Left            =   240
         TabIndex        =   30
         Top             =   2280
         Width           =   630
      End
      Begin VB.Label label 
         AutoSize        =   -1  'True
         Caption         =   "设备类别号"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   10.5
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   210
         Index           =   0
         Left            =   120
         TabIndex        =   29
         Top             =   360
         Width           =   1050
      End
   End
   Begin MSComctlLib.ListView LVDevice 
      Height          =   4770
      Left            =   2760
      TabIndex        =   0
      Top             =   1080
      Width           =   6735
      _ExtentX        =   11880
      _ExtentY        =   8414
      Sorted          =   -1  'True
      MultiSelect     =   -1  'True
      LabelWrap       =   -1  'True
      HideSelection   =   -1  'True
      AllowReorder    =   -1  'True
      HoverSelection  =   -1  'True
      _Version        =   393217
      Icons           =   "imlD"
      SmallIcons      =   "imlD"
      ForeColor       =   -2147483640
      BackColor       =   -2147483643
      BorderStyle     =   1
      Appearance      =   1
      NumItems        =   0
   End
   Begin MSComctlLib.ListView LVDeviceClass 
      Height          =   4800
      Left            =   0
      TabIndex        =   8
      Top             =   1080
      Width           =   2565
      _ExtentX        =   4524
      _ExtentY        =   8467
      Sorted          =   -1  'True
      LabelWrap       =   -1  'True
      HideSelection   =   -1  'True
      HideColumnHeaders=   -1  'True
      HoverSelection  =   -1  'True
      _Version        =   393217
      Icons           =   "imlDC"
      SmallIcons      =   "imlDC"
      ColHdrIcons     =   "imlDC"
      ForeColor       =   -2147483640
      BackColor       =   -2147483643
      BorderStyle     =   1
      Appearance      =   1
      NumItems        =   0
   End
   Begin VB.Label Label2 
      AutoSize        =   -1  'True
      Caption         =   "设备类别"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   10.5
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   210
      Index           =   8
      Left            =   0
      TabIndex        =   35
      Top             =   0
      Width           =   840
   End
   Begin VB.Label Label2 
      AutoSize        =   -1  'True
      Caption         =   "选择设备类型"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   10.5
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   210
      Index           =   1
      Left            =   150
      TabIndex        =   4
      Top             =   510
      Width           =   1260
   End
   Begin VB.Label Label1 
      AutoSize        =   -1  'True
      Caption         =   "车间情况:(车间名称)"
      Height          =   180
      Index           =   0
      Left            =   2760
      TabIndex        =   1
      Top             =   240
      Width           =   1890
   End
End
Attribute VB_Name = "frmWorkshop"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'Const Sqlopen = "uid=;pwd=;database=大机车数据库;DSN=dlrwdb;uid=scl;uid=scl;"

Option Explicit
Dim mconn As New ADODB.Connection
Dim mrs As New ADODB.Recordset, mrs_c As New ADODB.Recordset
Dim bflag As Boolean, bcflag As Boolean
Dim pm() As ProcessMatrix
Dim bom() As mytype

Private Sub cbo_select_Click()
Dim sql As String, rs0 As New ADODB.Recordset
Dim sno As Integer
If Label2(1).Caption = "选择设备类型" Then
    Call InitDeviceClass(cbo_select.Text)
    If cbo_select.Text <> "全部设备" Then
        sql = "select model from deviceclass where name='" & cbo_select.Text & "'"
        rs0.Open sql, mconn, adOpenKeyset, adLockPessimistic
        sql = rs0(0)

⌨️ 快捷键说明

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