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

📄 form6.frm

📁 本软件主要的使用对象是家庭与个人。它提供了比较完善的收支记录、查询修改、统计报表等功能。您可以自定义各种系统参数:如自定义用户名、密码、系统自动备份时间、资金不足警示、各种收支类型等。您还可以手动备份
💻 FRM
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Object = "{CDE57A40-8B86-11D0-B3C6-00A0C90AEA82}#1.0#0"; "MSDATGRD.OCX"
Object = "{86CF1D34-0C5F-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCT2.OCX"
Begin VB.Form Form6 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "资金流动"
   ClientHeight    =   2640
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   3645
   Icon            =   "Form6.frx":0000
   LinkTopic       =   "Form6"
   MaxButton       =   0   'False
   MDIChild        =   -1  'True
   ScaleHeight     =   2640
   ScaleWidth      =   3645
   Begin MSDataGridLib.DataGrid DataGrid1 
      Height          =   2295
      Left            =   3720
      TabIndex        =   17
      Top             =   240
      Width           =   5055
      _ExtentX        =   8916
      _ExtentY        =   4048
      _Version        =   393216
      AllowUpdate     =   0   'False
      HeadLines       =   1
      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 
         ScrollBars      =   2
         RecordSelectors =   0   'False
         BeginProperty Column00 
         EndProperty
         BeginProperty Column01 
         EndProperty
      EndProperty
   End
   Begin MSAdodcLib.Adodc Adodc1 
      Height          =   330
      Left            =   5280
      Top             =   4440
      Visible         =   0   'False
      Width           =   1455
      _ExtentX        =   2566
      _ExtentY        =   582
      ConnectMode     =   0
      CursorLocation  =   3
      IsolationLevel  =   -1
      ConnectionTimeout=   15
      CommandTimeout  =   30
      CursorType      =   3
      LockType        =   3
      CommandType     =   8
      CursorOptions   =   0
      CacheSize       =   50
      MaxRecords      =   0
      BOFAction       =   0
      EOFAction       =   0
      ConnectStringType=   1
      Appearance      =   1
      BackColor       =   -2147483643
      ForeColor       =   -2147483640
      Orientation     =   0
      Enabled         =   -1
      Connect         =   ""
      OLEDBString     =   ""
      OLEDBFile       =   ""
      DataSourceName  =   ""
      OtherAttributes =   ""
      UserName        =   ""
      Password        =   ""
      RecordSource    =   ""
      Caption         =   "Adodc1"
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      _Version        =   393216
   End
   Begin VB.Frame Frame2 
      Height          =   1575
      Left            =   120
      TabIndex        =   13
      Top             =   960
      Width           =   3375
      Begin VB.CommandButton Command2 
         Caption         =   "退   出"
         Height          =   375
         Left            =   2160
         TabIndex        =   5
         Top             =   720
         Width           =   1095
      End
      Begin VB.CommandButton Command1 
         Caption         =   "添  加"
         Default         =   -1  'True
         Height          =   375
         Left            =   2160
         TabIndex        =   4
         Top             =   240
         Width           =   1095
      End
      Begin VB.TextBox Text2 
         Appearance      =   0  'Flat
         DataSource      =   "Adodc1"
         Height          =   495
         Left            =   960
         MultiLine       =   -1  'True
         TabIndex        =   2
         Top             =   960
         Width           =   1095
      End
      Begin VB.TextBox Text1 
         Appearance      =   0  'Flat
         DataSource      =   "Adodc1"
         Height          =   270
         Left            =   960
         MaxLength       =   10
         TabIndex        =   1
         Top             =   600
         Width           =   1095
      End
      Begin MSComCtl2.DTPicker DTPicker1 
         Height          =   255
         Left            =   960
         TabIndex        =   3
         Top             =   210
         Width           =   1095
         _ExtentX        =   1931
         _ExtentY        =   450
         _Version        =   393216
         Format          =   24641537
         CurrentDate     =   37980
      End
      Begin VB.CheckBox Check1 
         Caption         =   "历史记录"
         Height          =   255
         Left            =   2160
         TabIndex        =   6
         Top             =   1200
         Width           =   1095
      End
      Begin VB.Label Label3 
         AutoSize        =   -1  'True
         Caption         =   "备    注"
         Height          =   180
         Left            =   120
         TabIndex        =   16
         Top             =   1110
         Width           =   720
      End
      Begin VB.Label Label2 
         AutoSize        =   -1  'True
         Caption         =   "流动金额"
         Height          =   180
         Left            =   120
         TabIndex        =   15
         Top             =   645
         Width           =   720
      End
      Begin VB.Label Label1 
         AutoSize        =   -1  'True
         Caption         =   "流动日期"
         Height          =   180
         Left            =   120
         TabIndex        =   14
         Top             =   240
         Width           =   720
      End
   End
   Begin VB.Frame Frame1 
      Caption         =   "流动类型"
      Height          =   855
      Left            =   120
      TabIndex        =   0
      Top             =   120
      Width           =   3375
      Begin VB.OptionButton Option1 
         Caption         =   "别人还钱"
         Height          =   255
         Index           =   5
         Left            =   2160
         TabIndex        =   12
         Top             =   480
         Width           =   1095
      End
      Begin VB.OptionButton Option1 
         Caption         =   "别人借钱"
         Height          =   255
         Index           =   4
         Left            =   2160
         TabIndex        =   11
         Top             =   240
         Width           =   1095
      End
      Begin VB.OptionButton Option1 
         Caption         =   "还别人钱"
         Height          =   255
         Index           =   3
         Left            =   960
         TabIndex        =   10
         Top             =   480
         Width           =   1335
      End
      Begin VB.OptionButton Option1 
         Caption         =   "借别人钱"
         Height          =   255
         Index           =   2
         Left            =   960
         TabIndex        =   9
         Top             =   240
         Width           =   1335
      End
      Begin VB.OptionButton Option1 
         Caption         =   "取钱"
         Height          =   255
         Index           =   1
         Left            =   120
         TabIndex        =   8
         Top             =   480
         Width           =   735
      End
      Begin VB.OptionButton Option1 
         Caption         =   "存钱"
         Height          =   255
         Index           =   0
         Left            =   120
         TabIndex        =   7
         Top             =   240
         Value           =   -1  'True
         Width           =   735
      End
   End
End
Attribute VB_Name = "Form6"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Check1_Click()
If Check1.Value = 1 Then
Command1.Enabled = False
Me.Width = 8970
Text1.DataField = ""
Text2.DataField = ""
Adodc1.Recordset.CancelUpdate
Set DataGrid1.DataSource = Adodc1
Adodc1.Refresh
DataGrid1.Columns(0).Caption = " 流动时间"
DataGrid1.Columns(0).Width = 1000
DataGrid1.Columns(1).Caption = " 流动类型"
DataGrid1.Columns(1).Width = 1000
DataGrid1.Columns(2).Caption = " 流动金额"
DataGrid1.Columns(2).Width = 1000
DataGrid1.Columns(3).Caption = "      备    注"
DataGrid1.Columns(3).Width = 1800
Else
Me.Width = 3645
Command1.Enabled = True
Text1.DataField = "ldj"
Text2.DataField = "bz"
Set DataGrid1.DataSource = Nothing
Adodc1.Recordset.AddNew
End If
End Sub

Private Sub Command1_Click()
If Not IsNumeric(Text1.Text) Then
   MsgBox "流动金额必须为数字!"
   Text1.SetFocus
   Exit Sub
End If

Adodc1.Recordset.Fields(0) = DTPicker1.Value
If Option1(0).Value = True Then Adodc1.Recordset.Fields(1) = Option1(0).Caption
If Option1(1).Value = True Then Adodc1.Recordset.Fields(1) = Option1(1).Caption
If Option1(2).Value = True Then Adodc1.Recordset.Fields(1) = Option1(2).Caption
If Option1(3).Value = True Then Adodc1.Recordset.Fields(1) = Option1(3).Caption
If Option1(4).Value = True Then Adodc1.Recordset.Fields(1) = Option1(4).Caption
If Option1(5).Value = True Then Adodc1.Recordset.Fields(1) = Option1(5).Caption
Adodc1.Recordset.Update
MsgBox "添加成功!"
Adodc1.Recordset.AddNew
End Sub


Private Sub Command2_Click()
Unload Me
End Sub

Private Sub DTPicker1_CloseUp()
If DTPicker1.Value > Date Then
   MsgBox "您不能选择未来的日期!"
   DTPicker1.Value = Date
Exit Sub
End If
End Sub

Private Sub Form_Load()
Adodc1.ConnectionString = ado
Adodc1.RecordSource = "zjld"
Adodc1.Refresh

Text1.DataField = "ldj"
Text2.DataField = "bz"
DTPicker1.Value = Date

Adodc1.Recordset.AddNew
End Sub

⌨️ 快捷键说明

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