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

📄 收费通知单.frm

📁 小区物业管理系统vb开发的,曾用于本科毕业设计
💻 FRM
📖 第 1 页 / 共 2 页
字号:
   Begin VB.Line Line10 
      X1              =   1320
      X2              =   1320
      Y1              =   1440
      Y2              =   5280
   End
   Begin VB.Label Label1 
      BackColor       =   &H00FFFFFF&
      Caption         =   "费用总计(大写):"
      BeginProperty Font 
         Name            =   "隶书"
         Size            =   14.25
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   255
      Index           =   20
      Left            =   360
      TabIndex        =   20
      Top             =   5400
      Width           =   2415
   End
   Begin VB.Line Line9 
      X1              =   240
      X2              =   6960
      Y1              =   5280
      Y2              =   5280
   End
   Begin VB.Label Label1 
      BackColor       =   &H00FFFFC0&
      Caption         =   "合计:"
      Height          =   255
      Index           =   19
      Left            =   360
      TabIndex        =   19
      Top             =   4920
      Width           =   855
   End
   Begin VB.Line Line8 
      X1              =   240
      X2              =   6960
      Y1              =   4800
      Y2              =   4800
   End
   Begin VB.Label Label1 
      BackColor       =   &H00FFFFC0&
      Caption         =   "停车费"
      Height          =   255
      Index           =   18
      Left            =   360
      TabIndex        =   18
      Top             =   4440
      Width           =   855
   End
   Begin VB.Line Line7 
      X1              =   240
      X2              =   6960
      Y1              =   4320
      Y2              =   4320
   End
   Begin VB.Label Label1 
      BackColor       =   &H00FFFFC0&
      Caption         =   "租金"
      Height          =   255
      Index           =   17
      Left            =   360
      TabIndex        =   17
      Top             =   3960
      Width           =   855
   End
   Begin VB.Line Line6 
      X1              =   240
      X2              =   6960
      Y1              =   3840
      Y2              =   3840
   End
   Begin VB.Label Label1 
      BackColor       =   &H00FFFFC0&
      Caption         =   "维修金"
      Height          =   255
      Index           =   16
      Left            =   360
      TabIndex        =   16
      Top             =   3480
      Width           =   855
   End
   Begin VB.Line Line5 
      X1              =   240
      X2              =   6960
      Y1              =   3360
      Y2              =   3360
   End
   Begin VB.Label Label1 
      BackColor       =   &H00FFFFC0&
      Caption         =   "排污费"
      Height          =   255
      Index           =   15
      Left            =   360
      TabIndex        =   15
      Top             =   3000
      Width           =   855
   End
   Begin VB.Line Line4 
      X1              =   240
      X2              =   6960
      Y1              =   2880
      Y2              =   2880
   End
   Begin VB.Label Label1 
      BackColor       =   &H00FFFFC0&
      Caption         =   "电费"
      Height          =   255
      Index           =   14
      Left            =   360
      TabIndex        =   14
      Top             =   2520
      Width           =   855
   End
   Begin VB.Line Line3 
      X1              =   240
      X2              =   6960
      Y1              =   2400
      Y2              =   2400
   End
   Begin VB.Label Label1 
      BackColor       =   &H00FFFFC0&
      Caption         =   "水费"
      Height          =   255
      Index           =   13
      Left            =   360
      TabIndex        =   13
      Top             =   2040
      Width           =   855
   End
   Begin VB.Label Label1 
      BackColor       =   &H00FFFFC0&
      Caption         =   "金  额"
      Height          =   255
      Index           =   12
      Left            =   6120
      TabIndex        =   12
      Top             =   1560
      Width           =   615
   End
   Begin VB.Label Label1 
      BackColor       =   &H00FFFFC0&
      Caption         =   "单  价"
      Height          =   255
      Index           =   11
      Left            =   4920
      TabIndex        =   11
      Top             =   1560
      Width           =   735
   End
   Begin VB.Label Label1 
      BackColor       =   &H00FFFFC0&
      Caption         =   "用  量"
      Height          =   255
      Index           =   10
      Left            =   3840
      TabIndex        =   10
      Top             =   1560
      Width           =   735
   End
   Begin VB.Label Label1 
      BackColor       =   &H00FFFFC0&
      Caption         =   "本次读数"
      Height          =   255
      Index           =   9
      Left            =   2640
      TabIndex        =   9
      Top             =   1560
      Width           =   855
   End
   Begin VB.Label Label1 
      BackColor       =   &H00FFFFC0&
      Caption         =   "前次读数"
      Height          =   255
      Index           =   8
      Left            =   1560
      TabIndex        =   8
      Top             =   1560
      Width           =   855
   End
   Begin VB.Label Label1 
      BackColor       =   &H00FFFFC0&
      Caption         =   "费用名称"
      Height          =   255
      Index           =   7
      Left            =   360
      TabIndex        =   7
      Top             =   1560
      Width           =   855
   End
   Begin VB.Line Line2 
      X1              =   240
      X2              =   6960
      Y1              =   1920
      Y2              =   1920
   End
   Begin VB.Line Line1 
      X1              =   2040
      X2              =   7440
      Y1              =   480
      Y2              =   480
   End
   Begin VB.Label Label1 
      BackColor       =   &H00FFFFC0&
      Caption         =   "预收款余额:"
      Height          =   255
      Index           =   6
      Left            =   6480
      TabIndex        =   6
      Top             =   1080
      Width           =   1095
   End
   Begin VB.Label Label1 
      BackColor       =   &H00FFFFC0&
      Caption         =   "很行帐号:"
      Height          =   255
      Index           =   5
      Left            =   3840
      TabIndex        =   5
      Top             =   1080
      Width           =   855
   End
   Begin VB.Label Label1 
      BackColor       =   &H00FFFFC0&
      Caption         =   "业主姓名:"
      Height          =   255
      Index           =   4
      Left            =   480
      TabIndex        =   4
      Top             =   1080
      Width           =   855
   End
   Begin VB.Label Label1 
      BackColor       =   &H00FFFFC0&
      Caption         =   "管理区名称:"
      Height          =   255
      Index           =   3
      Left            =   6480
      TabIndex        =   3
      Top             =   720
      Width           =   1095
   End
   Begin VB.Label Label1 
      BackColor       =   &H00FFFFC0&
      Caption         =   "所属大楼:"
      Height          =   255
      Index           =   2
      Left            =   3840
      TabIndex        =   2
      Top             =   720
      Width           =   855
   End
   Begin VB.Label Label1 
      BackColor       =   &H00FFFFC0&
      Caption         =   "房间代码:"
      Height          =   255
      Index           =   1
      Left            =   480
      TabIndex        =   1
      Top             =   720
      Width           =   855
   End
   Begin VB.Shape Shape2 
      BackColor       =   &H00FFFFC0&
      Height          =   4335
      Left            =   240
      Top             =   1440
      Width           =   9135
   End
   Begin VB.Label Label1 
      BackColor       =   &H00FFFFC0&
      Caption         =   "小区物业管理公司收费通知单"
      BeginProperty Font 
         Name            =   "隶书"
         Size            =   15.75
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   375
      Index           =   0
      Left            =   2520
      TabIndex        =   0
      Top             =   120
      Width           =   4455
   End
   Begin VB.Shape Shape1 
      BorderColor     =   &H00000000&
      Height          =   6375
      Left            =   0
      Top             =   0
      Width           =   9615
   End
End
Attribute VB_Name = "收费通知单"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim objwater As Recordset
Dim objlight As Recordset
Dim objhome As Recordset
Dim objcn As Connection

Private Sub Form_Load()
Label2(0) = 费用查询.Cmbroom   '房号
Label2(1) = 费用查询.Cmbflor   '大楼名称
Label2(10) = 费用查询.Text8    '水费
Label2(15) = 费用查询.Text9    '电费
Label2(17) = 费用查询.Text2    '排污费
Label2(19) = 费用查询.Text4    '维修费
Label2(21) = 费用查询.Text3    '租金
Label2(23) = 费用查询.Text5    '停车费
Label4 = 费用查询.Text10



'数据库联接
Set objcn = New Connection
With objcn
     .Provider = "SQLOLEDB"
     .ConnectionString = "User ID=sa;PWD=sa;Data Source=(local);Initial Catalog=物业管理系统"
     .Open
End With

'获取房屋信息数据
Set objhome = New Recordset
With objhome
Set .ActiveConnection = objcn
    .CursorLocation = adUseClient
    .CursorType = adOpenStatic
    .LockType = adLockOptimistic
    .Open "select * from " & 费用查询.Cmbflor
    '查出业主姓名
    .Find "房号='" & 费用查询.Cmbroom & " '"
    Label2(3).Caption = .Fields("住户名称")
End With

'获水费信息表数据
Set objwater = New Recordset
With objwater
Set .ActiveConnection = objcn
    .CursorLocation = adUseClient
    .CursorType = adOpenStatic
    .LockType = adLockOptimistic
    .Open "select * from 水表信息"
    '查找水表抄表日期
    .Find "大楼名称='" & 费用查询.Cmbflor & "'"
    .Find "房号='" & 费用查询.Cmbroom & " '"
    Label2(6).Caption = .Fields("前月抄表数据")
    Label2(7).Caption = .Fields("本月抄表数据")
    Label2(8).Caption = .Fields("实际用水量")
    
End With

'获取电表信息数据
Set objlight = New Recordset
With objlight
Set .ActiveConnection = objcn
    .CursorLocation = adUseClient
    .CursorType = adOpenStatic
    .LockType = adLockOptimistic
    .Open "select * from 电表信息"
     '查找电表抄表日期
    .Find "大楼名称='" & 费用查询.Cmbflor & "'"
    .Find "房号='" & 费用查询.Cmbroom & " '"
    Label2(11).Caption = .Fields("前月抄表数据")
    Label2(12).Caption = .Fields("本月抄表数据")
    Label2(13).Caption = .Fields("实际用电量")
End With


a = 100
i = Trim(Label4.Caption)
Do While a > 0

  b = i \ a
Select Case (b)
Case 0: K = "元整"
Case 1: K = "壹"
Case 2: K = "贰"
Case 3: K = "叁"
Case 4: K = "肆"
Case 5: K = "伍"
Case 6: K = "陆"
Case 7: K = "柒"
Case 8: K = "捌"
Case 9: K = "玖"
Case 10: K = "拾"
End Select
m = m & K
If i \ 100 Then
   m = m & "佰"
ElseIf i \ 10 Then
    m = m & "拾"
End If
b = i Mod a
i = b
a = a \ 10

Loop
Label2(24).Caption = m

End Sub

⌨️ 快捷键说明

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