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

📄 frmtablemanage.frm

📁 物业管理
💻 FRM
📖 第 1 页 / 共 3 页
字号:
               Width           =   255
            End
            Begin VB.Label Label53 
               Caption         =   "度"
               Height          =   255
               Left            =   2520
               TabIndex        =   22
               Top             =   1080
               Width           =   255
            End
            Begin VB.Label Label54 
               Caption         =   "度"
               Height          =   255
               Left            =   2520
               TabIndex        =   21
               Top             =   1440
               Width           =   255
            End
            Begin VB.Label Label55 
               Caption         =   "度"
               Height          =   255
               Left            =   5280
               TabIndex        =   20
               Top             =   360
               Width           =   255
            End
            Begin VB.Label Label56 
               Caption         =   "度"
               Height          =   255
               Left            =   5280
               TabIndex        =   19
               Top             =   720
               Width           =   255
            End
            Begin VB.Label Label57 
               Caption         =   "度"
               Height          =   255
               Left            =   5280
               TabIndex        =   18
               Top             =   1080
               Width           =   255
            End
         End
         Begin MSComCtl2.DTPicker DTPicker3 
            Height          =   255
            Left            =   2640
            TabIndex        =   85
            Top             =   1680
            Width           =   1335
            _ExtentX        =   2355
            _ExtentY        =   450
            _Version        =   393216
            Format          =   19791873
            CurrentDate     =   37861
         End
         Begin VB.Label Label42 
            Caption         =   "计费水度"
            Height          =   255
            Left            =   3000
            TabIndex        =   91
            Top             =   720
            Width           =   855
         End
         Begin VB.Label Label43 
            Caption         =   "水抄表员"
            Height          =   255
            Left            =   3000
            TabIndex        =   90
            Top             =   1080
            Width           =   855
         End
         Begin VB.Label Label44 
            Caption         =   "抄表日期"
            Height          =   255
            Left            =   1680
            TabIndex        =   89
            Top             =   1680
            Width           =   735
         End
         Begin VB.Label Label47 
            Caption         =   "吨"
            Height          =   255
            Left            =   2040
            TabIndex        =   88
            Top             =   720
            Width           =   255
         End
         Begin VB.Label Label48 
            Caption         =   "吨"
            Height          =   255
            Left            =   2040
            TabIndex        =   87
            Top             =   1080
            Width           =   255
         End
         Begin VB.Label Label51 
            Caption         =   "吨"
            Height          =   255
            Left            =   4800
            TabIndex        =   86
            Top             =   720
            Width           =   255
         End
      End
   End
   Begin VB.TextBox Text1 
      DataField       =   "房间编号"
      Height          =   270
      Left            =   1080
      TabIndex        =   3
      Text            =   "Text1"
      Top             =   360
      Width           =   1215
   End
   Begin MSDataGridLib.DataGrid DataGrid1 
      Height          =   4455
      Left            =   120
      TabIndex        =   1
      Top             =   960
      Width           =   9135
      _ExtentX        =   16113
      _ExtentY        =   7858
      _Version        =   393216
      AllowUpdate     =   0   'False
      ColumnHeaders   =   -1  'True
      HeadLines       =   1
      RowHeight       =   15
      AllowAddNew     =   -1  'True
      AllowDelete     =   -1  'True
      BeginProperty HeadFont {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         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.Label Label58 
      Caption         =   "抄表登记"
      BeginProperty Font 
         Name            =   "楷体_GB2312"
         Size            =   21.75
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   495
      Left            =   3960
      TabIndex        =   92
      Top             =   120
      Width           =   1935
   End
   Begin VB.Label Label2 
      Caption         =   "房间编号"
      Height          =   255
      Left            =   240
      TabIndex        =   2
      Top             =   360
      Width           =   855
   End
   Begin VB.Label Label1 
      Caption         =   "抄表管理"
      BeginProperty Font 
         Name            =   "楷体_GB2312"
         Size            =   21.75
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   615
      Left            =   3960
      TabIndex        =   0
      Top             =   120
      Width           =   2055
   End
End
Attribute VB_Name = "frmtablemanage"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim WithEvents adoPrimaryRS As Recordset
Attribute adoPrimaryRS.VB_VarHelpID = -1
Dim mvBookMark As Variant
Dim mbEditFlag As Boolean
Dim mbAddNewFlag As Boolean
Private Sub Command1_Click()
  MsgBox "你真的要更改该条信息吗?", vbExclamation + vbOKCancel, pTitle
If response = vbNo Then
   Exit Sub
Else
  On Error GoTo UpdateErr
  adoPrimaryRS.UpdateBatch adAffectAll
  If mbAddNewFlag Then
    adoPrimaryRS.MoveLast              'move to the new record
  End If
  mbEditFlag = False
  mbAddNewFlag = False
  Frame1.Visible = False
   Label2.Visible = False
   Text1.Visible = False
   Label58.Visible = False
   frame4.Visible = False
  Exit Sub
  End If
UpdateErr:
   MsgBox "保存操作错误", vbExclamation + vbOKOnly, pTitle
   
End Sub

Private Sub Command2_Click() '取消
  ' On Error Resume Next
 On Error GoTo CancelErr
 If mbAddNewFlag = True Then
  adoPrimaryRS.Delete
 
  mbAddNewFlag = False
  Else
  mbEditFlag = False
  adoPrimaryRS.CancelUpdate
 End If
  If mvBookMark > 0 Then
   adoPrimaryRS.Bookmark = mvBookMark
  Else
   adoPrimaryRS.MoveFirst
  End If
  Frame1.Visible = False
   mbAddNewFlag = False
   Label2.Visible = False
   Text1.Visible = False
   Label58.Visible = False
   frame4.Visible = False
  Exit Sub
CancelErr:
    MsgBox "取消操作有错误", vbExclamation + vbOKOnly, pTitle
End Sub

Private Sub Command3_Click() '删除
  On Error GoTo DeleteErr
  Dim Resp As Integer
  Resp = MsgBox("你真的要删除该记录吗?", vbExclamation + vbOKCancel, pTitle)
  If Resp = 2 Then
     Exit Sub
  Else
   With adoPrimaryRS
     .Delete
     .MoveNext
    If .EOF Then .MoveLast
   End With
  End If
  frame4.Visible = False
  Exit Sub
DeleteErr:
  MsgBox "删除操作有错误", vbExclamation + vbOKOnly, pTitle

End Sub


Private Sub DataGrid1_DblClick()
   Label2.Visible = True
   Text1.Visible = True
   Label58.Visible = True
   frame4.Visible = True
   Frame1.Visible = True
   Frame2.Visible = True
   Frame3.Visible = True
End Sub
Private Sub Form_Load()
   Label2.Visible = False
   Text1.Visible = False
   Label58.Visible = False
   frame4.Visible = False
   Set adoPrimaryRS = New Recordset
   adoPrimaryRS.Open "select *from 抄表登记 order by 期间", db, adOpenStatic, adLockOptimistic
   Set DataGrid1.DataSource = adoPrimaryRS
   Set Text1.DataSource = adoPrimaryRS
   Set Text2.DataSource = adoPrimaryRS
   Set Text3.DataSource = adoPrimaryRS
   Set Text4.DataSource = adoPrimaryRS
   Set Text5.DataSource = adoPrimaryRS
   Set Text6.DataSource = adoPrimaryRS
   Set Text7.DataSource = adoPrimaryRS
   Set Text8.DataSource = adoPrimaryRS
   Set Text9.DataSource = adoPrimaryRS
   Set Text10.DataSource = adoPrimaryRS
   Set Text11.DataSource = adoPrimaryRS
   Set Text12.DataSource = adoPrimaryRS
   Set Text13.DataSource = adoPrimaryRS
   Set Text14.DataSource = adoPrimaryRS
   Set Text15.DataSource = adoPrimaryRS
   Set Text16.DataSource = adoPrimaryRS
   Set Text17.DataSource = adoPrimaryRS
   Set Text18.DataSource = adoPrimaryRS
   Set Text19.DataSource = adoPrimaryRS
   Set Text20.DataSource = adoPrimaryRS
   Set Text21.DataSource = adoPrimaryRS
   Set Text22.DataSource = adoPrimaryRS
   Set Text23.DataSource = adoPrimaryRS
   Set Text24.DataSource = adoPrimaryRS
   Set Text25.DataSource = adoPrimaryRS
   
End Sub


⌨️ 快捷键说明

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