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

📄 分部修改.frm

📁 一个商场财务系统
💻 FRM
📖 第 1 页 / 共 2 页
字号:
            SubFormatType   =   0
         EndProperty
      EndProperty
      BeginProperty Column07 
         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 Column08 
         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
         AllowRowSizing  =   0   'False
         AllowSizing     =   0   'False
         BeginProperty Column00 
            Alignment       =   2
            ColumnAllowSizing=   0   'False
            ColumnWidth     =   61.984
         EndProperty
         BeginProperty Column01 
            Alignment       =   2
            ColumnAllowSizing=   0   'False
            ColumnWidth     =   58.998
         EndProperty
         BeginProperty Column02 
            Alignment       =   1
            ColumnAllowSizing=   0   'False
            ColumnWidth     =   89.008
         EndProperty
         BeginProperty Column03 
            Alignment       =   2
            ColumnAllowSizing=   0   'False
            ColumnWidth     =   132.019
         EndProperty
         BeginProperty Column04 
            Alignment       =   1
            ColumnAllowSizing=   0   'False
         EndProperty
         BeginProperty Column05 
            Alignment       =   1
            ColumnAllowSizing=   0   'False
            ColumnWidth     =   85.002
         EndProperty
         BeginProperty Column06 
            Alignment       =   1
            ColumnAllowSizing=   0   'False
            ColumnWidth     =   78.992
         EndProperty
         BeginProperty Column07 
            Alignment       =   2
            ColumnAllowSizing=   0   'False
            ColumnWidth     =   56.995
         EndProperty
         BeginProperty Column08 
            Alignment       =   2
            ColumnAllowSizing=   0   'False
            ColumnWidth     =   54.992
         EndProperty
      EndProperty
   End
   Begin MSComctlLib.StatusBar StatusBar1 
      Align           =   2  'Align Bottom
      Height          =   345
      Left            =   0
      TabIndex        =   7
      Top             =   7200
      Width           =   11925
      _ExtentX        =   21034
      _ExtentY        =   609
      _Version        =   393216
      BeginProperty Panels {8E3867A5-8586-11D1-B16A-00C0F0283628} 
         NumPanels       =   4
         BeginProperty Panel1 {8E3867AB-8586-11D1-B16A-00C0F0283628} 
            AutoSize        =   1
            Object.Width           =   4339
            Picture         =   "分部修改.frx":0457
         EndProperty
         BeginProperty Panel2 {8E3867AB-8586-11D1-B16A-00C0F0283628} 
            AutoSize        =   1
            Object.Width           =   4339
            Picture         =   "分部修改.frx":05B1
         EndProperty
         BeginProperty Panel3 {8E3867AB-8586-11D1-B16A-00C0F0283628} 
            Alignment       =   2
            AutoSize        =   1
            Object.Width           =   6103
            MinWidth        =   4304
            Picture         =   "分部修改.frx":0A03
         EndProperty
         BeginProperty Panel4 {8E3867AB-8586-11D1-B16A-00C0F0283628} 
            Alignment       =   2
            AutoSize        =   1
            Object.Width           =   6103
            MinWidth        =   4304
            Picture         =   "分部修改.frx":0E55
         EndProperty
      EndProperty
   End
   Begin VB.Shape Shape1 
      BorderColor     =   &H00C0FFFF&
      BorderWidth     =   2
      FillColor       =   &H00000040&
      Height          =   615
      Left            =   2910
      Shape           =   4  'Rounded Rectangle
      Top             =   210
      Width           =   6225
   End
   Begin VB.Line Line1 
      BorderColor     =   &H80000005&
      BorderWidth     =   3
      X1              =   2
      X2              =   800
      Y1              =   53.684
      Y2              =   53.684
   End
   Begin VB.Label Label1 
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      BeginProperty Font 
         Name            =   "隶书"
         Size            =   26.25
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   525
      Left            =   3210
      TabIndex        =   0
      Top             =   270
      Width           =   285
   End
End
Attribute VB_Name = "分部修改"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim Num As Integer, Result As Integer
Private Sub Form_Load()
    Me.Left = 0
    Me.Top = 0
    Label1.Caption = 主程序.LabelName
    Label1.Left = (Me.ScaleWidth - Label1.Width) / 2
    Shape1.Left = (Me.ScaleWidth - Shape1.Width) / 2
    Label1.Caption = 主程序.LabelName
    Adodc1.ConnectionString = "Provider=MSDASQL.1;Persist Security Info=False;Extended Properties=DSN=商场帐务;APP=Visual Basic;WSID=YAO_WEI_SERVER;DATABASE=商场帐务;Trusted_Connection=Yes"
    Adodc1.RecordSource = 主程序.FileName
    Adodc1.Refresh
    Adodc1.Recordset.MoveLast
    Adodc1.Recordset.MoveFirst
    Num = Adodc1.Recordset.RecordCount
    StatusBar1.Panels(1).Text = "记录总数: " & Num
    StatusBar1.Panels(2).Text = "当前记录: " & 1
    StatusBar1.Panels(3).Text = "今天日期: " & Format(Date, "yyyy 年 m 月 d 日")
    StatusBar1.Panels(4).Text = "当前时间: " & Time
End Sub
Private Sub Command1_Click()
  Adodc1.Recordset.MoveFirst
  StatusBar1.Panels(2).Text = "当前记录: " & Adodc1.Recordset.AbsolutePosition
End Sub
Private Sub Command2_Click()
  Adodc1.Recordset.MovePrevious
    If Adodc1.Recordset.AbsolutePosition = adPosBOF Then
       Adodc1.Recordset.MoveFirst
       StatusBar1.Panels(2).Text = "当前记录: " & 1
       Result = MsgBox("已经是第一条记录 !    ", vbExclamation)
    Else
       StatusBar1.Panels(2).Text = "当前记录: " & Adodc1.Recordset.AbsolutePosition
    End If
End Sub
Private Sub Command3_Click()
  Adodc1.Recordset.MoveNext
   If Adodc1.Recordset.AbsolutePosition = adPosEOF Then
        Adodc1.Recordset.MoveLast
        StatusBar1.Panels(2).Text = "当前记录: " & Num
        Result = MsgBox("已经是最后一条记录 !   ", vbExclamation)
      Else
        StatusBar1.Panels(2).Text = "当前记录: " & Adodc1.Recordset.AbsolutePosition
     End If
End Sub
Private Sub Command4_Click()
    Adodc1.Recordset.MoveLast
    StatusBar1.Panels(2).Text = "当前记录: " & Adodc1.Recordset.AbsolutePosition
End Sub
Private Sub Command5_Click()
    Unload Me
End Sub
Private Sub DataGrid1_RowColChange(LastRow As Variant, ByVal LastCol As Integer)
On Error Resume Next
    StatusBar1.Panels(1).Text = "记录总数: " & Adodc1.Recordset.RecordCount
    StatusBar1.Panels(2).Text = "当前记录: " & Adodc1.Recordset.AbsolutePosition
        If DataGrid1.Columns(2) = "" Then
         DataGrid1.Columns(2) = Format(Date, "yyyy年m月d日")
        End If
    DataGrid1.Columns(6) = DataGrid1.Columns(4) - DataGrid1.Columns(5)
End Sub
Private Sub DataGrid1_SelChange(Cancel As Integer)
    If Adodc1.Recordset.AbsolutePosition > Num Then
        StatusBar1.Panels(2).Text = "当前记录: " & Adodc1.Recordset.AbsolutePosition
    End If
End Sub
Private Sub Timer1_Timer()
    StatusBar1.Panels(4).Text = "当前时间: " & Time
End Sub



⌨️ 快捷键说明

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