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

📄 pincontrol.frm

📁 该程序基于RS232串口通讯的激光检测钻头钻孔内径及外径等相关参数从而判断该产品是否为OK/NG
💻 FRM
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "Msadodc.OCX"
Object = "{F0D2F211-CCB0-11D0-A316-00AA00688B10}#1.0#0"; "MSDATLST.OCX"
Object = "{CDE57A40-8B86-11D0-B3C6-00A0C90AEA82}#1.0#0"; "MSDATGRD.OCX"
Begin VB.Form pincontrol 
   Caption         =   "Form1"
   ClientHeight    =   5070
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   9720
   LinkTopic       =   "Form1"
   ScaleHeight     =   5070
   ScaleWidth      =   9720
   StartUpPosition =   3  'Windows Default
   Begin MSDataGridLib.DataGrid DataGrid1 
      Bindings        =   "pincontrol.frx":0000
      Height          =   2775
      Left            =   0
      TabIndex        =   16
      Top             =   1680
      Width           =   9615
      _ExtentX        =   16960
      _ExtentY        =   4895
      _Version        =   393216
      AllowUpdate     =   -1  'True
      DefColWidth     =   67
      ColumnHeaders   =   -1  'True
      HeadLines       =   1
      RowHeight       =   15
      AllowAddNew     =   -1  'True
      AllowDelete     =   -1  'True
      BeginProperty HeadFont {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "MS Sans Serif"
         Size            =   8.25
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "MS Sans Serif"
         Size            =   8.25
         Charset         =   0
         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 VB.Frame Frame4 
      Height          =   615
      Left            =   0
      TabIndex        =   13
      Top             =   4440
      Width           =   9615
      Begin VB.CommandButton Command1 
         Caption         =   "删除测量点(D)"
         Height          =   375
         Left            =   5760
         TabIndex        =   15
         Top             =   120
         Width           =   1455
      End
      Begin VB.CommandButton Command2 
         Caption         =   "测量点设置(OK)"
         Height          =   375
         Left            =   1560
         TabIndex        =   14
         Top             =   120
         Width           =   1455
      End
   End
   Begin VB.CommandButton Command3 
      Caption         =   "产品设置(OK)"
      Height          =   375
      Left            =   2160
      TabIndex        =   12
      Top             =   1200
      Width           =   1335
   End
   Begin VB.CommandButton Command4 
      Caption         =   "删除产品(D)"
      Height          =   375
      Left            =   4800
      TabIndex        =   11
      Top             =   1200
      Width           =   1455
   End
   Begin VB.Frame Frame6 
      Height          =   615
      Left            =   1200
      TabIndex        =   2
      Top             =   480
      Width           =   5775
      Begin VB.TextBox tpyramidal 
         Height          =   285
         Left            =   1080
         TabIndex        =   6
         ToolTipText     =   "锥度的第一个起点!"
         Top             =   240
         Width           =   495
      End
      Begin VB.TextBox tpyramidal1 
         Height          =   285
         Left            =   1920
         TabIndex        =   5
         ToolTipText     =   "锥度的结束点!"
         Top             =   240
         Width           =   495
      End
      Begin VB.TextBox tpyu 
         Height          =   285
         Left            =   3480
         TabIndex        =   4
         Top             =   240
         Width           =   855
      End
      Begin VB.TextBox tpyd 
         Height          =   285
         Left            =   4800
         TabIndex        =   3
         Top             =   240
         Width           =   855
      End
      Begin VB.Label Label22 
         Caption         =   "锥度位置:"
         Height          =   255
         Left            =   120
         TabIndex        =   10
         Top             =   240
         Width           =   975
      End
      Begin VB.Label Label2 
         Caption         =   "-----------------------"
         Height          =   255
         Left            =   1320
         TabIndex        =   9
         Top             =   240
         Width           =   1335
      End
      Begin VB.Label Label10 
         AutoSize        =   -1  'True
         Caption         =   "上下限:"
         Height          =   195
         Left            =   2760
         TabIndex        =   8
         Top             =   240
         Width           =   720
      End
      Begin VB.Label Label29 
         Caption         =   "-----------------------"
         Height          =   255
         Left            =   4200
         TabIndex        =   7
         Top             =   240
         Width           =   1335
      End
   End
   Begin MSAdodcLib.Adodc adoname 
      Height          =   330
      Left            =   6480
      Top             =   600
      Visible         =   0   'False
      Width           =   1215
      _ExtentX        =   2143
      _ExtentY        =   582
      ConnectMode     =   0
      CursorLocation  =   3
      IsolationLevel  =   -1
      ConnectionTimeout=   15
      CommandTimeout  =   30
      CursorType      =   3
      LockType        =   3
      CommandType     =   1
      CursorOptions   =   0
      CacheSize       =   50
      MaxRecords      =   0
      BOFAction       =   0
      EOFAction       =   0
      ConnectStringType=   2
      Appearance      =   1
      BackColor       =   -2147483643
      ForeColor       =   -2147483640
      Orientation     =   0
      Enabled         =   -1
      Connect         =   "FILE NAME=F:\VB双钻头检测系统\zt.udl"
      OLEDBString     =   ""
      OLEDBFile       =   "F:\VB双钻头检测系统\zt.udl"
      DataSourceName  =   ""
      OtherAttributes =   ""
      UserName        =   "admin"
      Password        =   ""
      RecordSource    =   "select * from putout"
      Caption         =   "Adodc3"
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "MS Sans Serif"
         Size            =   8.25
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      _Version        =   393216
   End
   Begin MSAdodcLib.Adodc Adodc2 
      Height          =   330
      Left            =   6000
      Top             =   240
      Visible         =   0   'False
      Width           =   1440
      _ExtentX        =   2540
      _ExtentY        =   582
      ConnectMode     =   0
      CursorLocation  =   3
      IsolationLevel  =   -1
      ConnectionTimeout=   15
      CommandTimeout  =   30
      CursorType      =   3
      LockType        =   3
      CommandType     =   1
      CursorOptions   =   0
      CacheSize       =   50
      MaxRecords      =   0
      BOFAction       =   0
      EOFAction       =   0
      ConnectStringType=   2
      Appearance      =   1
      BackColor       =   -2147483643
      ForeColor       =   -2147483640
      Orientation     =   0
      Enabled         =   -1
      Connect         =   "FILE NAME=F:\VB双钻头检测系统\zt.udl"
      OLEDBString     =   ""
      OLEDBFile       =   "F:\VB双钻头检测系统\zt.udl"
      DataSourceName  =   ""
      OtherAttributes =   ""
      UserName        =   "admin"
      Password        =   ""
      RecordSource    =   "select meano,name,meaname,post, rade,hh,hl,lo,ll from measure"
      Caption         =   "Adodc2"
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "MS Sans Serif"
         Size            =   8.25
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      _Version        =   393216
   End
   Begin MSAdodcLib.Adodc Adodc1 
      Height          =   330
      Left            =   7560
      Negotiate       =   -1  'True
      Top             =   120
      Visible         =   0   'False
      Width           =   1200
      _ExtentX        =   2117
      _ExtentY        =   582
      ConnectMode     =   0
      CursorLocation  =   3
      IsolationLevel  =   -1
      ConnectionTimeout=   15
      CommandTimeout  =   30
      CursorType      =   3
      LockType        =   3
      CommandType     =   1
      CursorOptions   =   0
      CacheSize       =   50
      MaxRecords      =   0
      BOFAction       =   0
      EOFAction       =   0
      ConnectStringType=   2
      Appearance      =   1
      BackColor       =   -2147483643
      ForeColor       =   -2147483640
      Orientation     =   0
      Enabled         =   -1
      Connect         =   "FILE NAME=F:\VB双钻头检测系统\zt.udl"
      OLEDBString     =   ""
      OLEDBFile       =   "F:\VB双钻头检测系统\zt.udl"
      DataSourceName  =   ""
      OtherAttributes =   ""
      UserName        =   "admin"
      Password        =   ""
      RecordSource    =   "select * from measure"
      Caption         =   "Adodc1"
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "MS Sans Serif"
         Size            =   8.25
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      _Version        =   393216
   End
   Begin MSDataListLib.DataCombo DataCombo2 
      Bindings        =   "pincontrol.frx":0015
      DataSource      =   "adoname"
      Height          =   315
      Left            =   3480
      TabIndex        =   0
      Top             =   120
      Width           =   2295
      _ExtentX        =   4048
      _ExtentY        =   556
      _Version        =   393216
      ListField       =   "name"
      BoundColumn     =   "name"
      Text            =   "----请选择产品---"
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "MS Sans Serif"
         Size            =   8.25
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
   End
   Begin VB.Label Label12 
      Caption         =   "产品型号:"
      Height          =   255
      Index           =   0
      Left            =   2400
      TabIndex        =   1
      Top             =   120
      Width           =   975
   End
End
Attribute VB_Name = "pincontrol"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub DataCombo2_Change()
On Error Resume Next
Adodc1.RecordSource = "select * from putout where name='" & Trim(DataCombo2.Text) & "'"
Adodc1.Refresh
tpyramidal.Text = ""
tpyramidal1.Text = ""
tpyu.Text = ""
tpyd.Text = ""
tpyramidal.Text = Adodc1.Recordset.Fields("pyramidal")
tpyramidal1.Text = Adodc1.Recordset.Fields("pyramidal1")
tpyu.Text = Adodc1.Recordset.Fields("pyu")
tpyd.Text = Adodc1.Recordset.Fields("pyd")

Adodc2.RecordSource = "select meano,name,meaname,post, rade,hh,hl,lo,ll from measure where name='" & Trim(DataCombo2.Text) & "'"
Adodc2.Refresh
DataCombo1.Text = "请选择测量点-" & "SUM(" & Adodc2.Recordset.RecordCount & ")"
Combo2.Text = ""
fcontrol.Caption = DataCombo2.Text & "-参数设置--"
End Sub

⌨️ 快捷键说明

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