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

📄 frmgetinset.frm

📁 一个功能比较完善的远程抄表软件
💻 FRM
字号:
VERSION 5.00
Begin VB.Form frmGetInSet 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "收费员设置"
   ClientHeight    =   1260
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   2985
   ControlBox      =   0   'False
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MDIChild        =   -1  'True
   MinButton       =   0   'False
   ScaleHeight     =   1260
   ScaleWidth      =   2985
   Begin VB.CommandButton cmdOK 
      Caption         =   "确定"
      Height          =   330
      Left            =   255
      TabIndex        =   2
      Top             =   750
      Width           =   1185
   End
   Begin VB.CommandButton cmdCancel 
      Cancel          =   -1  'True
      Caption         =   "取消"
      Height          =   330
      Left            =   1605
      TabIndex        =   1
      Top             =   750
      Width           =   1185
   End
   Begin VB.TextBox txtGetIn 
      Height          =   330
      Left            =   1425
      TabIndex        =   0
      Top             =   120
      Width           =   1455
   End
   Begin VB.Label Label1 
      Caption         =   "收费员名称:"
      Height          =   285
      Left            =   120
      TabIndex        =   3
      Top             =   165
      Width           =   1140
   End
End
Attribute VB_Name = "frmGetInSet"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'****************************************************************************
'人人为我,我为人人
'枕善居收藏整理
'发布日期:2007/07/09
'描    述:CBB三表户外计量系统 Ver 5.2
'网    站:http://www.Mndsoft.com/  (VB6源码博客)
'网    站:http://www.VbDnet.com/   (VB.NET源码博客,主要基于.NET2005)
'e-mail  :Mndsoft@163.com
'e-mail  :Mndsoft@126.com
'OICQ    :88382850
'          如果您有新的好的代码别忘记给枕善居哦!
'****************************************************************************
Option Explicit
Dim SQL As String
Dim rcGetIn As Recordset

Private Sub cmdCancel_Click()
    Unload Me
End Sub

Private Sub cmdOK_Click()
    
    SQL = "delete all * from GetIn"
    dbCbb.Execute SQL
    rcGetIn.AddNew
    rcGetIn!GetIn = Trim(txtGetIn.Text)
    rcGetIn.Update
    AppendStatusInfo "设置收费员 " & txtGetIn, icoBLUE
    SaveLog "设置收费员 " & txtGetIn.Text, 0
    Unload Me
End Sub

Private Sub Form_Activate()
    txtGetIn.SetFocus
    txtGetIn.SelStart = 0
    txtGetIn.SelLength = Len(txtGetIn.Text)
End Sub

Private Sub Form_Load()
    If UBound(curForm) > 0 Then
        curForm(UBound(curForm)).Enabled = False
    End If
    ReDim Preserve curForm(UBound(curForm) + 1)
    Set curForm(UBound(curForm)) = Me
    

    
    Set rcGetIn = dbCbb.OpenRecordset("GetIn", dbOpenDynaset)
    If rcGetIn.RecordCount > 0 Then
        rcGetIn.MoveFirst
        txtGetIn.Text = rcGetIn!GetIn
    End If
End Sub

Private Sub Form_Unload(Cancel As Integer)
    ReDim Preserve curForm(UBound(curForm) - 1)
    If UBound(curForm) > 0 Then
        curForm(UBound(curForm)).Enabled = True
    End If
End Sub

⌨️ 快捷键说明

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