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

📄 往来帐户管理.frm

📁 vb酒店管理系统的原码下载
💻 FRM
📖 第 1 页 / 共 2 页
字号:
         Index           =   3
         Left            =   1500
         TabIndex        =   7
         Top             =   1755
         Width           =   2670
      End
      Begin VB.TextBox Text1 
         Height          =   300
         Index           =   0
         Left            =   1500
         TabIndex        =   4
         Top             =   600
         Width           =   2670
      End
      Begin VB.CommandButton Command1 
         Caption         =   "保存"
         Height          =   285
         Left            =   765
         TabIndex        =   3
         Top             =   4935
         Width           =   1095
      End
      Begin VB.CommandButton Command2 
         Caption         =   "关闭"
         Height          =   285
         Left            =   2850
         TabIndex        =   2
         Top             =   4920
         Width           =   1095
      End
      Begin VB.Label Label1 
         BackStyle       =   0  'Transparent
         Caption         =   "银行帐户:"
         ForeColor       =   &H0000FFFF&
         Height          =   210
         Index           =   5
         Left            =   570
         TabIndex        =   20
         Top             =   2970
         Width           =   1080
      End
      Begin VB.Label Label1 
         BackStyle       =   0  'Transparent
         Caption         =   "备    注:"
         ForeColor       =   &H0000FFFF&
         Height          =   210
         Index           =   4
         Left            =   555
         TabIndex        =   18
         Top             =   3495
         Width           =   1080
      End
      Begin VB.Label Label1 
         BackStyle       =   0  'Transparent
         Caption         =   "开户银行:"
         ForeColor       =   &H0000FFFF&
         Height          =   210
         Index           =   3
         Left            =   550
         TabIndex        =   17
         Top             =   2595
         Width           =   1080
      End
      Begin VB.Label Label1 
         BackStyle       =   0  'Transparent
         Caption         =   "联系电话:"
         ForeColor       =   &H0000FFFF&
         Height          =   210
         Index           =   2
         Left            =   550
         TabIndex        =   16
         Top             =   2205
         Width           =   1080
      End
      Begin VB.Label Label1 
         BackStyle       =   0  'Transparent
         Caption         =   "负 责 人:"
         ForeColor       =   &H0000FFFF&
         Height          =   210
         Index           =   1
         Left            =   550
         TabIndex        =   15
         Top             =   1815
         Width           =   1080
      End
      Begin VB.Label Label3 
         BackStyle       =   0  'Transparent
         Caption         =   "类    别:"
         ForeColor       =   &H0000FFFF&
         Height          =   210
         Left            =   550
         TabIndex        =   14
         Top             =   1425
         Width           =   1080
      End
      Begin VB.Label Label2 
         BackStyle       =   0  'Transparent
         Caption         =   "帐户名称:"
         ForeColor       =   &H0000FFFF&
         Height          =   210
         Left            =   550
         TabIndex        =   13
         Top             =   1020
         Width           =   1080
      End
      Begin VB.Label Label1 
         BackStyle       =   0  'Transparent
         Caption         =   "帐户编号:"
         ForeColor       =   &H0000FFFF&
         Height          =   210
         Index           =   0
         Left            =   550
         TabIndex        =   12
         Top             =   660
         Width           =   1080
      End
      Begin VB.Line Line1 
         BorderColor     =   &H00808080&
         X1              =   90
         X2              =   4545
         Y1              =   4740
         Y2              =   4740
      End
      Begin VB.Line Line2 
         BorderColor     =   &H00FFFFFF&
         X1              =   75
         X2              =   4530
         Y1              =   4755
         Y2              =   4755
      End
   End
   Begin MSDataGridLib.DataGrid DataGrid1 
      Height          =   6630
      Left            =   45
      TabIndex        =   19
      Top             =   465
      Width           =   11220
      _ExtentX        =   19791
      _ExtentY        =   11695
      _Version        =   393216
      AllowUpdate     =   0   'False
      AllowArrows     =   0   'False
      HeadLines       =   2
      RowHeight       =   15
      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 ComctlLib.ImageList ImageList1 
      Left            =   300
      Top             =   525
      _ExtentX        =   1005
      _ExtentY        =   1005
      BackColor       =   -2147483643
      ImageWidth      =   16
      ImageHeight     =   16
      MaskColor       =   12632256
      _Version        =   327682
      BeginProperty Images {0713E8C2-850A-101B-AFC0-4210102A8DA7} 
         NumListImages   =   17
         BeginProperty ListImage1 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
            Picture         =   "往来帐户管理.frx":0000
            Key             =   ""
         EndProperty
         BeginProperty ListImage2 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
            Picture         =   "往来帐户管理.frx":031A
            Key             =   ""
         EndProperty
         BeginProperty ListImage3 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
            Picture         =   "往来帐户管理.frx":0634
            Key             =   ""
         EndProperty
         BeginProperty ListImage4 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
            Picture         =   "往来帐户管理.frx":094E
            Key             =   ""
         EndProperty
         BeginProperty ListImage5 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
            Picture         =   "往来帐户管理.frx":0C68
            Key             =   ""
         EndProperty
         BeginProperty ListImage6 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
            Picture         =   "往来帐户管理.frx":0F82
            Key             =   ""
         EndProperty
         BeginProperty ListImage7 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
            Picture         =   "往来帐户管理.frx":129C
            Key             =   ""
         EndProperty
         BeginProperty ListImage8 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
            Picture         =   "往来帐户管理.frx":15B6
            Key             =   ""
         EndProperty
         BeginProperty ListImage9 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
            Picture         =   "往来帐户管理.frx":1A30
            Key             =   ""
         EndProperty
         BeginProperty ListImage10 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
            Picture         =   "往来帐户管理.frx":206A
            Key             =   ""
         EndProperty
         BeginProperty ListImage11 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
            Picture         =   "往来帐户管理.frx":256C
            Key             =   ""
         EndProperty
         BeginProperty ListImage12 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
            Picture         =   "往来帐户管理.frx":288E
            Key             =   ""
         EndProperty
         BeginProperty ListImage13 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
            Picture         =   "往来帐户管理.frx":2BB0
            Key             =   ""
         EndProperty
         BeginProperty ListImage14 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
            Picture         =   "往来帐户管理.frx":2ED2
            Key             =   ""
         EndProperty
         BeginProperty ListImage15 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
            Picture         =   "往来帐户管理.frx":3224
            Key             =   ""
         EndProperty
         BeginProperty ListImage16 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
            Picture         =   "往来帐户管理.frx":35EA
            Key             =   ""
         EndProperty
         BeginProperty ListImage17 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
            Picture         =   "往来帐户管理.frx":393C
            Key             =   ""
         EndProperty
      EndProperty
   End
End
Attribute VB_Name = "往来帐户管理"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'星级酒店管理系统最初功能演示版,提供所有星级酒店管理中的客房管理,
'房态管理,客史管理,客人资料管理,帐务管理,报表管理,餐饮收费管理
'菜谱管理,夜审处理,数据库备份等功能.所有功能皆可以运行,(但有一些BUG未处理)
'此代码完全可以完成星级酒店上述管理功能.(提供者:帅)
'--------------------------------------------------------------
'代码编写于:2001.12  系统分析:帅   代码编写:帅    版权所有:帅
'--------------------------------------------------------------
'本份代码仅提供给程序太平洋的所有朋友学习,研究之用.
'其它网站一律不得转载,否则为侵权行为,本人保留法律追诉权力.
'这也是本人最早的VB版程序,代码质量不好.望笑纳.:)
'--------------------------------------------------------------
'提供日期:2003-05-31    提供者:帅
'--------------------------------------------------------------
'系统提从与ACCESS或SQL相接,在登录时,选择全局数据库,就与SQL数据库
'连接,字符串存放在SERVER.DAT文本文件中;选择本地数据库,与本地ACCESS
'数据库相连,连接字符串存放在LOCAT.DAT文件中.(当前存放为e:\hotel2\room.mdb)
'---------------------------------------------------------------
'将ACCESS中所有表导入SQL中,并将有的表中的ID字段改为自动编码,就可以使用.
'---------------------------------------------------------------------
'
'
Dim ZHAccount_id As String

Private Sub Command1_Click()
    Adodc1.Recordset.AddNew
    Adodc1.Recordset.Fields("帐号") = Me.Text1(0).Text
    Adodc1.Recordset.Fields("帐户名称") = Me.Text1(1).Text
    Adodc1.Recordset.Fields("类别") = Me.Combo1.Text
    Adodc1.Recordset.Fields("负责人") = Me.Text1(3).Text
    Adodc1.Recordset.Fields("联系电话") = Me.Text1(4).Text
    Adodc1.Recordset.Fields("开户银行") = Me.Text1(5).Text
    Adodc1.Recordset.Fields("银行帐号") = Me.Text1(2).Text
    Adodc1.Recordset.Fields("备注") = Me.Text1(6).Text
    Me.Frame1.Visible = False
End Sub

Private Sub Command2_Click()
    Me.Frame1.Visible = False
End Sub

Private Sub Command3_Click()
    Me.Picture1.Visible = False
End Sub



Private Sub DataGrid1_RowColChange(LastRow As Variant, ByVal LastCol As Integer)
    ZHAccount_id = IIf(IsNull(Adodc1.Recordset.Fields("帐号")), "", Adodc1.Recordset.Fields("帐号"))
End Sub

Private Sub Form_Load()
    Left = 0
    Top = 0
'往来帐户
    Adodc1.ConnectionString = My_PROVIDER
    Adodc1.CommandType = adCmdText
    Adodc1.RecordSource = "select * from 项目编码 where 编码 like 'WL%' order by 名称"
    Adodc1.Refresh
    While Not Adodc1.Recordset.EOF
        Me.Combo1.AddItem Adodc1.Recordset.Fields("名称")
        Adodc1.Recordset.MoveNext
    Wend
    Adodc1.Recordset.Close

    Adodc1.ConnectionString = My_PROVIDER
    Adodc1.CommandType = adCmdText
    Adodc1.RecordSource = "select * from 往来帐户 where 类别 like '" & Query_Type2 & "'"
    Adodc1.Refresh
    
    Set DataGrid1.DataSource = Adodc1
    DataGrid1.ReBind
    DataGrid1.Refresh

End Sub

Private Sub Toolbar1_ButtonClick(ByVal Button As ComctlLib.Button)
    Select Case Button.Key
        Case "关闭"
            Unload Me
        Case "全部"
        Case "增加"
            Me.Frame1.Visible = True
        Case "帐务"
            Me.Picture1.Visible = True
            Adodc2.ConnectionString = My_PROVIDER
            Adodc2.CommandType = adCmdText
            Adodc2.RecordSource = "select * from 往来帐户挂帐记录 where 帐号 like '" & ZHAccount_id & "'"
            Adodc2.Refresh
            Set DataGrid2.DataSource = Adodc2
            DataGrid2.ReBind
            DataGrid2.Refresh
    End Select

End Sub

⌨️ 快捷键说明

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