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

📄 住户投诉管理.frm

📁 物业管理系统,VB做的,小试牛刀,不吝赐教
💻 FRM
📖 第 1 页 / 共 2 页
字号:
VERSION 5.00
Begin VB.Form frmTouSu 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "住户投诉管理"
   ClientHeight    =   6375
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   9705
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MDIChild        =   -1  'True
   MinButton       =   0   'False
   ScaleHeight     =   6375
   ScaleWidth      =   9705
   Begin VB.CommandButton cmdClose 
      Caption         =   "关   闭"
      Height          =   495
      Left            =   7560
      TabIndex        =   36
      Top             =   4560
      Width           =   975
   End
   Begin VB.Frame Frame1 
      Height          =   735
      Index           =   1
      Left            =   7080
      TabIndex        =   32
      Top             =   5280
      Width           =   1935
      Begin VB.TextBox Text2 
         Height          =   375
         Left            =   720
         TabIndex        =   33
         Top             =   240
         Width           =   495
      End
      Begin VB.Label Label4 
         Caption         =   "条记录"
         Height          =   255
         Index           =   1
         Left            =   1320
         TabIndex        =   35
         Top             =   360
         Width           =   615
      End
      Begin VB.Label Label3 
         Caption         =   "共有:"
         Height          =   255
         Index           =   1
         Left            =   120
         TabIndex        =   34
         Top             =   360
         Width           =   615
      End
   End
   Begin VB.Frame Frame3 
      Caption         =   "功能键"
      Height          =   1695
      Left            =   240
      TabIndex        =   21
      Top             =   4560
      Width           =   6135
      Begin VB.CommandButton cmdCancel 
         Caption         =   "取消"
         Height          =   495
         Left            =   4920
         TabIndex        =   31
         Top             =   240
         Width           =   975
      End
      Begin VB.CommandButton cmdQuery 
         Caption         =   "查找"
         Height          =   495
         Left            =   4920
         TabIndex        =   30
         Top             =   960
         Width           =   975
      End
      Begin VB.CommandButton cmdLast 
         Caption         =   "最后一条"
         Height          =   495
         Left            =   3720
         TabIndex        =   29
         Top             =   960
         Width           =   975
      End
      Begin VB.CommandButton cmdNext 
         Caption         =   "后一条"
         Height          =   495
         Left            =   2520
         TabIndex        =   28
         Top             =   960
         Width           =   975
      End
      Begin VB.CommandButton cmdPrev 
         Caption         =   "前一条"
         Height          =   495
         Left            =   1320
         TabIndex        =   27
         Top             =   960
         Width           =   975
      End
      Begin VB.CommandButton cmdFirst 
         Caption         =   "第一条"
         Height          =   495
         Left            =   240
         TabIndex        =   26
         Top             =   960
         Width           =   975
      End
      Begin VB.CommandButton cmdSave 
         Caption         =   "保存"
         Height          =   495
         Left            =   3720
         TabIndex        =   25
         Top             =   240
         Width           =   975
      End
      Begin VB.CommandButton cmdDel 
         Caption         =   "删除"
         Height          =   495
         Left            =   2520
         TabIndex        =   24
         Top             =   240
         Width           =   975
      End
      Begin VB.CommandButton cmdEdit 
         Caption         =   "修改"
         Height          =   495
         Left            =   1320
         TabIndex        =   23
         Top             =   240
         Width           =   975
      End
      Begin VB.CommandButton cmdAdd 
         Caption         =   "添加"
         Height          =   495
         Left            =   240
         TabIndex        =   22
         Top             =   240
         Width           =   975
      End
   End
   Begin VB.Frame Frame1 
      Height          =   4095
      Index           =   0
      Left            =   120
      TabIndex        =   0
      Top             =   240
      Width           =   9375
      Begin VB.TextBox Text1 
         Height          =   735
         Index           =   9
         Left            =   1080
         MultiLine       =   -1  'True
         TabIndex        =   20
         Top             =   3120
         Width           =   7935
      End
      Begin VB.TextBox Text1 
         Height          =   855
         Index           =   8
         Left            =   1080
         MultiLine       =   -1  'True
         TabIndex        =   18
         Top             =   2040
         Width           =   7935
      End
      Begin VB.TextBox Text1 
         Height          =   375
         Index           =   7
         Left            =   3600
         TabIndex        =   16
         Top             =   1440
         Width           =   5415
      End
      Begin VB.TextBox Text1 
         Height          =   375
         Index           =   6
         Left            =   1080
         TabIndex        =   14
         Top             =   1440
         Width           =   1215
      End
      Begin VB.TextBox Text1 
         Height          =   375
         Index           =   5
         Left            =   7560
         TabIndex        =   12
         Top             =   840
         Width           =   1455
      End
      Begin VB.TextBox Text1 
         Height          =   375
         Index           =   4
         Left            =   3600
         TabIndex        =   10
         Top             =   840
         Width           =   3135
      End
      Begin VB.TextBox Text1 
         Height          =   375
         Index           =   3
         Left            =   1080
         TabIndex        =   8
         Top             =   840
         Width           =   1215
      End
      Begin VB.TextBox Text1 
         Height          =   375
         Index           =   2
         Left            =   6840
         TabIndex        =   6
         Top             =   240
         Width           =   2175
      End
      Begin VB.TextBox Text1 
         Height          =   375
         Index           =   1
         Left            =   3600
         TabIndex        =   4
         Top             =   240
         Width           =   1935
      End
      Begin VB.TextBox Text1 
         Height          =   375
         Index           =   0
         Left            =   1080
         TabIndex        =   2
         Top             =   240
         Width           =   1215
      End
      Begin VB.Label Label1 
         Caption         =   "处理情况"
         Height          =   255
         Index           =   9
         Left            =   240
         TabIndex        =   19
         Top             =   3360
         Width           =   735
      End
      Begin VB.Label Label1 
         Caption         =   "投诉内容"
         Height          =   255
         Index           =   8
         Left            =   240
         TabIndex        =   17
         Top             =   2400
         Width           =   735
      End
      Begin VB.Label Label1 
         Caption         =   "处理人员"
         Height          =   255
         Index           =   7
         Left            =   2640
         TabIndex        =   15
         Top             =   1560
         Width           =   735
      End
      Begin VB.Label Label1 
         Caption         =   "处理日期"
         Height          =   255
         Index           =   6
         Left            =   240
         TabIndex        =   13
         Top             =   1560
         Width           =   735
      End
      Begin VB.Label Label1 
         Caption         =   "电话"
         Height          =   255
         Index           =   5
         Left            =   7080
         TabIndex        =   11
         Top             =   960
         Width           =   375
      End
      Begin VB.Label Label1 
         Caption         =   "物业地址"
         Height          =   255
         Index           =   4
         Left            =   2640
         TabIndex        =   9
         Top             =   960
         Width           =   735
      End
      Begin VB.Label Label1 
         Caption         =   "投诉住户"
         Height          =   255
         Index           =   3
         Left            =   240
         TabIndex        =   7
         Top             =   960
         Width           =   735
      End
      Begin VB.Label Label1 
         Caption         =   "接待人员"
         Height          =   255
         Index           =   2
         Left            =   6000
         TabIndex        =   5
         Top             =   360
         Width           =   735
      End
      Begin VB.Label Label1 
         Caption         =   "投诉日期"
         Height          =   255
         Index           =   1
         Left            =   2640
         TabIndex        =   3
         Top             =   360
         Width           =   735
      End
      Begin VB.Label Label1 
         Caption         =   "投诉编号"
         Height          =   255
         Index           =   0
         Left            =   240
         TabIndex        =   1
         Top             =   360
         Width           =   735
      End
   End
End
Attribute VB_Name = "frmTouSu"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim rs_tousu As New ADODB.Recordset
Dim rs_count As New ADODB.Recordset
'设置一个add变量用于保存时判断是从添加还是修改后保存
Dim add

Private Sub cmdAdd_Click()
   
   '设置除保存和取消按钮外的其他按钮不可用
   cmdAdd.Enabled = False
   cmdEdit.Enabled = False
   cmdDel.Enabled = False
   cmdSave.Enabled = True
   cmdCancel.Enabled = True
   cmdFirst.Enabled = False
   cmdPrev.Enabled = False
   cmdNext.Enabled = False
   cmdLast.Enabled = False
   cmdQuery.Enabled = False
   '需要清空所有text框,并且设置它们可写
   For i = 0 To 9
      Text1(i).Text = ""
      Text1(i).Enabled = True
   Next i
   'add变量用于保存时判断是从添加还是修改后保存
   add = 1
   Text1(0).SetFocus
   Text1(1).Text = Date
End Sub

⌨️ 快捷键说明

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