main_jhgl_jyjg_data.frm

来自「完整的物资管理系统源码」· FRM 代码 · 共 119 行

FRM
119
字号
VERSION 5.00
Begin VB.Form main_jhgl_jyjg_data 
   BorderStyle     =   3  'Fixed Dialog
   Caption         =   "输入数据"
   ClientHeight    =   2085
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   8100
   Icon            =   "main_jhgl_jyjg_data.frx":0000
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   2085
   ScaleWidth      =   8100
   ShowInTaskbar   =   0   'False
   StartUpPosition =   2  '屏幕中心
   Begin VB.CommandButton Command2 
      Caption         =   "取消"
      Height          =   375
      Left            =   4110
      TabIndex        =   7
      Top             =   1485
      Width           =   1560
   End
   Begin VB.CommandButton Command1 
      Caption         =   "确定"
      Height          =   375
      Left            =   2340
      TabIndex        =   6
      Top             =   1485
      Width           =   1560
   End
   Begin VB.ComboBox Combo1 
      Height          =   300
      Left            =   1260
      Style           =   2  'Dropdown List
      TabIndex        =   4
      Top             =   900
      Width           =   2745
   End
   Begin VB.TextBox Text1 
      Height          =   330
      Index           =   1
      Left            =   1260
      TabIndex        =   2
      Top             =   510
      Width           =   6780
   End
   Begin VB.TextBox Text1 
      Height          =   330
      Index           =   0
      Left            =   1260
      TabIndex        =   1
      Top             =   135
      Width           =   2745
   End
   Begin VB.Label Label3 
      Caption         =   "试验结果"
      Height          =   240
      Left            =   465
      TabIndex        =   5
      Top             =   960
      Width           =   765
   End
   Begin VB.Label Label2 
      Caption         =   "试验单位"
      Height          =   240
      Left            =   480
      TabIndex        =   3
      Top             =   585
      Width           =   765
   End
   Begin VB.Label Label1 
      Caption         =   "试验报告编号"
      Height          =   240
      Left            =   135
      TabIndex        =   0
      Top             =   210
      Width           =   1095
   End
End
Attribute VB_Name = "main_jhgl_jyjg_data"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
  Dim i As Integer
  With main_jhgl_jyjg
      If .Adodc1.Recordset.RecordCount > 0 Then
         Do Until .Adodc1.Recordset.EOF
            .Adodc1.Recordset.Fields("试验报告编号") = Text1(0)
            .Adodc1.Recordset.Fields("试验单位") = Text1(1)
            .Adodc1.Recordset.Fields("检验和试验结果") = Combo1
           .Adodc1.Recordset.MoveNext
         Loop
         Unload Me
         .Adodc1.Refresh
      Else
         MsgBox "没有需要添写检验结果的物资!"
      End If
  End With
End Sub
Private Sub Form_Activate()
  Text1(0).SetFocus
End Sub
Private Sub Form_Load()
  Combo1.AddItem "合格"
  Combo1.AddItem "不合格"
  Combo1.ListIndex = 0
End Sub
Private Sub Text1_KeyDown(Index As Integer, KeyCode As Integer, Shift As Integer)
  If KeyCode = vbKeyReturn And Index = 0 Then Text1(1).SetFocus
  If KeyCode = vbKeyReturn And Index = 1 Then Combo1.SetFocus
End Sub
Private Sub Command2_Click()
  Unload Me
End Sub

⌨️ 快捷键说明

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