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

📄 abhc.frm

📁 检定证书的管理打印程序VB6+ace
💻 FRM
字号:
VERSION 5.00
Begin VB.Form abhc 
   Caption         =   "Form1"
   ClientHeight    =   2085
   ClientLeft      =   60
   ClientTop       =   450
   ClientWidth     =   6360
   LinkTopic       =   "Form1"
   ScaleHeight     =   2085
   ScaleWidth      =   6360
   StartUpPosition =   3  '窗口缺省
   Begin VB.ComboBox Combo2 
      Height          =   300
      Left            =   2520
      TabIndex        =   7
      Top             =   720
      Width           =   3375
   End
   Begin VB.CommandButton Command3 
      Caption         =   "返回"
      Height          =   375
      Left            =   4080
      TabIndex        =   6
      Top             =   1560
      Width           =   1455
   End
   Begin VB.TextBox Text2 
      Height          =   270
      Left            =   360
      TabIndex        =   5
      Top             =   1080
      Width           =   5535
   End
   Begin VB.ComboBox Combo1 
      Height          =   300
      ItemData        =   "abhc.frx":0000
      Left            =   360
      List            =   "abhc.frx":000D
      TabIndex        =   3
      Top             =   720
      Width           =   1575
   End
   Begin VB.CommandButton command2 
      Caption         =   "查询"
      Height          =   375
      Left            =   2400
      TabIndex        =   2
      Top             =   1560
      Width           =   1455
   End
   Begin VB.CommandButton Command1 
      Caption         =   "清除"
      Height          =   375
      Left            =   720
      TabIndex        =   1
      Top             =   1560
      Width           =   1455
   End
   Begin VB.Label Label2 
      Caption         =   "为"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   10.5
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   255
      Left            =   2040
      TabIndex        =   4
      Top             =   720
      Width           =   375
   End
   Begin VB.Label Label1 
      Caption         =   "选择查询条件"
      Height          =   255
      Left            =   360
      TabIndex        =   0
      Top             =   240
      Width           =   3255
   End
End
Attribute VB_Name = "abhc"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Combo1_Click()
Text2 = ""
If Trim(Combo1.Text) = "证书编号" Then
   Text2 = "zsbh"
   combo2.Text = ""
End If
If Trim(Combo1.Text) = "委托单位" Then
   combo2.Clear
   strsql = "select sy,wtdwmc from  wtdwb"
   grs.Open strsql, conn, adOpenKeyset, adLockReadOnly, adCmdText
   fillcombo combo2, grs
   grs.Close
   Text2 = "wtdwmc"
End If
If Trim(Combo1.Text) = "仪器名称" Then
   combo2.Clear
   strsql = "select sy,yqmc from  yqmcb"
   grs.Open strsql, conn, adOpenKeyset, adLockReadOnly, adCmdText
   fillcombo combo2, grs
   grs.Close
   Text2 = "yqmc"
End If

End Sub

Private Sub combo2_Click()
If Len(Combo1.Text) <> 0 Then
     Text2 = Text2 & "  like  " & "'%" + Trim(combo2.Text) + "%'"
     Text2.SetFocus
End If
End Sub

Private Sub Combo2_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
    'Text2 = Text2 & "  like  " & "'%" + Trim(Combo2.Text) + "%'"
    Text2.SetFocus
End If
End Sub

Private Sub Combo2_LostFocus()
If Trim(Combo1.Text) = "证书编号" Then
    Text2 = Text2 & "  like  " & "'%" + Trim(combo2.Text) + "%'"
    Text2.SetFocus
End If
End Sub

Private Sub Combo3_Change()

End Sub

Private Sub Command1_Click()
Text2 = ""
End Sub

Private Sub Command2_Click()

cxtj = Trim(Text2)
caxunbj = 1
jdzsb.Show 1

End Sub

Private Sub Command3_Click()
Unload Me
End Sub

Private Sub Form_Load()
Me.Move (main.Width - Me.Width) / 2, (main.Height - Me.Height) / 2
Select Case caxiun
       Case 1 '按证书编号查询
         Label1.Caption = "按证书编号查询"
          
       Case 2 '按委托单位查询
         Label1.Caption = "按委托单位查询"
       
       Case 3 '按仪器名称查询
         Label1.Caption = "按仪器名称查询"
       
       
End Select
       
End Sub


⌨️ 快捷键说明

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