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

📄 frmchargeitemedit.frm

📁 Visual Basic + Oracle 9i数据库应用系统开发与实例《小区物业管理系统》,界面还行
💻 FRM
字号:
VERSION 5.00
Begin VB.Form FrmChargeItemEdit 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "编辑收费项目信息"
   ClientHeight    =   2085
   ClientLeft      =   45
   ClientTop       =   345
   ClientWidth     =   6270
   Icon            =   "FrmChargeItemEdit.frx":0000
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   2085
   ScaleWidth      =   6270
   StartUpPosition =   2  '屏幕中心
   Begin VB.CommandButton Cmd_Cancel 
      Cancel          =   -1  'True
      Caption         =   "取 消"
      Height          =   400
      Left            =   3565
      MouseIcon       =   "FrmChargeItemEdit.frx":0CCA
      MousePointer    =   99  'Custom
      Style           =   1  'Graphical
      TabIndex        =   4
      Top             =   1440
      Width           =   1300
   End
   Begin VB.CommandButton Cmd_OK 
      Caption         =   "确 定"
      Height          =   400
      Left            =   1405
      MouseIcon       =   "FrmChargeItemEdit.frx":0FD4
      MousePointer    =   99  'Custom
      Style           =   1  'Graphical
      TabIndex        =   3
      Top             =   1440
      Width           =   1300
   End
   Begin VB.Frame Frame1 
      Height          =   1095
      Left            =   240
      TabIndex        =   5
      Top             =   120
      Width           =   5775
      Begin VB.ComboBox ComboUnit 
         Height          =   300
         ItemData        =   "FrmChargeItemEdit.frx":12DE
         Left            =   4080
         List            =   "FrmChargeItemEdit.frx":12EB
         Style           =   2  'Dropdown List
         TabIndex        =   10
         Top             =   600
         Width           =   1455
      End
      Begin VB.TextBox txtUnitPrice 
         Height          =   270
         Left            =   4080
         MaxLength       =   20
         TabIndex        =   1
         Top             =   195
         Width           =   1455
      End
      Begin VB.ComboBox ComboCycle 
         Height          =   300
         ItemData        =   "FrmChargeItemEdit.frx":1313
         Left            =   1200
         List            =   "FrmChargeItemEdit.frx":1329
         Style           =   2  'Dropdown List
         TabIndex        =   2
         Top             =   585
         Width           =   1455
      End
      Begin VB.TextBox txtItem 
         Height          =   270
         Left            =   1200
         MaxLength       =   20
         TabIndex        =   0
         Top             =   195
         Width           =   1455
      End
      Begin VB.Label Label3 
         AutoSize        =   -1  'True
         BackStyle       =   0  'Transparent
         Caption         =   "收费单位"
         Height          =   180
         Left            =   3120
         TabIndex        =   9
         Top             =   645
         Width           =   720
      End
      Begin VB.Label Label6 
         AutoSize        =   -1  'True
         BackStyle       =   0  'Transparent
         Caption         =   "收费单价"
         Height          =   180
         Left            =   3120
         TabIndex        =   8
         Top             =   240
         Width           =   720
      End
      Begin VB.Label Label1 
         AutoSize        =   -1  'True
         BackStyle       =   0  'Transparent
         Caption         =   "收费项目"
         Height          =   180
         Left            =   240
         TabIndex        =   7
         Top             =   240
         Width           =   720
      End
      Begin VB.Label Label2 
         AutoSize        =   -1  'True
         BackStyle       =   0  'Transparent
         Caption         =   "收费周期"
         Height          =   180
         Left            =   240
         TabIndex        =   6
         Top             =   645
         Width           =   720
      End
   End
End
Attribute VB_Name = "FrmChargeItemEdit"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Public Modify As Boolean
Public OriId As Long

Private Function Check() As Boolean
  If Trim(txtItem) = "" Then
    MsgBox "请输入收费项目"
    txtItem.SetFocus
    Check = False
    Exit Function
  End If
  
  Check = True
End Function

Private Sub Cmd_OK_Click()
  If Check = False Then
    Exit Sub
  End If
  
  With MyChargeItem
  .Item = MakeStr(txtItem)
  .UnitPrice = Val(txtUnitPrice)
  .Unit = MakeStr(ComboUnit.Text)
  .PayCycle = MakeStr(ComboCycle.Text)
  
  If Modify = False Then
    .Insert
  Else
    .Update (OriId)
  End If
    
  End With
  Unload Me
End Sub

Private Sub Cmd_Cancel_Click()
  Unload Me
End Sub

⌨️ 快捷键说明

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