📄 frmzongfen.vb
字号:
Public Class frmZongfen
Inherits System.Windows.Forms.Form
Protected bmData As BindingManagerBase
Protected dtData As DataTable
#Region " Windows 窗体设计器生成的代码 "
Public Sub New()
MyBase.New()
'该调用是 Windows 窗体设计器所必需的。
InitializeComponent()
'在 InitializeComponent() 调用之后添加任何初始化
End Sub
'窗体重写 dispose 以清理组件列表。
Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
If disposing Then
If Not (components Is Nothing) Then
components.Dispose()
End If
End If
MyBase.Dispose(disposing)
End Sub
'Windows 窗体设计器所必需的
Private components As System.ComponentModel.IContainer
'注意: 以下过程是 Windows 窗体设计器所必需的
'可以使用 Windows 窗体设计器修改此过程。
'不要使用代码编辑器修改它。
Friend WithEvents ImageList1 As System.Windows.Forms.ImageList
Friend WithEvents ToolBar1 As System.Windows.Forms.ToolBar
Friend WithEvents tbbFirst As System.Windows.Forms.ToolBarButton
Friend WithEvents tbbBack As System.Windows.Forms.ToolBarButton
Friend WithEvents tbbForward As System.Windows.Forms.ToolBarButton
Friend WithEvents tbbLast As System.Windows.Forms.ToolBarButton
Friend WithEvents tbbExit As System.Windows.Forms.ToolBarButton
Friend WithEvents grbSearch As System.Windows.Forms.GroupBox
Friend WithEvents Label1 As System.Windows.Forms.Label
Friend WithEvents txbOne As System.Windows.Forms.TextBox
Friend WithEvents btnSearch As System.Windows.Forms.Button
Friend WithEvents lblCount As System.Windows.Forms.Label
Friend WithEvents Label2 As System.Windows.Forms.Label
Friend WithEvents cbbCheck As System.Windows.Forms.CheckBox
Friend WithEvents dgdList As System.Windows.Forms.DataGrid
Friend WithEvents SqlDataAdapter1 As System.Data.SqlClient.SqlDataAdapter
Friend WithEvents SqlSelectCommand1 As System.Data.SqlClient.SqlCommand
Friend WithEvents SqlInsertCommand1 As System.Data.SqlClient.SqlCommand
Friend WithEvents SqlUpdateCommand1 As System.Data.SqlClient.SqlCommand
Friend WithEvents SqlDeleteCommand1 As System.Data.SqlClient.SqlCommand
Friend WithEvents SqlConnection1 As System.Data.SqlClient.SqlConnection
Friend WithEvents DataSet11 As 财务管理.DataSet1
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
Me.components = New System.ComponentModel.Container
Dim resources As System.Resources.ResourceManager = New System.Resources.ResourceManager(GetType(frmZongfen))
Me.ImageList1 = New System.Windows.Forms.ImageList(Me.components)
Me.ToolBar1 = New System.Windows.Forms.ToolBar
Me.tbbFirst = New System.Windows.Forms.ToolBarButton
Me.tbbBack = New System.Windows.Forms.ToolBarButton
Me.tbbForward = New System.Windows.Forms.ToolBarButton
Me.tbbLast = New System.Windows.Forms.ToolBarButton
Me.tbbExit = New System.Windows.Forms.ToolBarButton
Me.grbSearch = New System.Windows.Forms.GroupBox
Me.cbbCheck = New System.Windows.Forms.CheckBox
Me.Label2 = New System.Windows.Forms.Label
Me.Label1 = New System.Windows.Forms.Label
Me.txbOne = New System.Windows.Forms.TextBox
Me.btnSearch = New System.Windows.Forms.Button
Me.lblCount = New System.Windows.Forms.Label
Me.dgdList = New System.Windows.Forms.DataGrid
Me.SqlDataAdapter1 = New System.Data.SqlClient.SqlDataAdapter
Me.SqlDeleteCommand1 = New System.Data.SqlClient.SqlCommand
Me.SqlConnection1 = New System.Data.SqlClient.SqlConnection
Me.SqlInsertCommand1 = New System.Data.SqlClient.SqlCommand
Me.SqlSelectCommand1 = New System.Data.SqlClient.SqlCommand
Me.SqlUpdateCommand1 = New System.Data.SqlClient.SqlCommand
Me.DataSet11 = New 财务管理.DataSet1
Me.grbSearch.SuspendLayout()
CType(Me.dgdList, System.ComponentModel.ISupportInitialize).BeginInit()
CType(Me.DataSet11, System.ComponentModel.ISupportInitialize).BeginInit()
Me.SuspendLayout()
'
'ImageList1
'
Me.ImageList1.ImageSize = New System.Drawing.Size(16, 16)
Me.ImageList1.ImageStream = CType(resources.GetObject("ImageList1.ImageStream"), System.Windows.Forms.ImageListStreamer)
Me.ImageList1.TransparentColor = System.Drawing.Color.Transparent
'
'ToolBar1
'
Me.ToolBar1.Buttons.AddRange(New System.Windows.Forms.ToolBarButton() {Me.tbbFirst, Me.tbbBack, Me.tbbForward, Me.tbbLast, Me.tbbExit})
Me.ToolBar1.DropDownArrows = True
Me.ToolBar1.ImageList = Me.ImageList1
Me.ToolBar1.Location = New System.Drawing.Point(0, 0)
Me.ToolBar1.Name = "ToolBar1"
Me.ToolBar1.ShowToolTips = True
Me.ToolBar1.Size = New System.Drawing.Size(520, 41)
Me.ToolBar1.TabIndex = 2
'
'tbbFirst
'
Me.tbbFirst.ImageIndex = 0
Me.tbbFirst.Text = "首记录"
Me.tbbFirst.ToolTipText = "首记录"
'
'tbbBack
'
Me.tbbBack.ImageIndex = 1
Me.tbbBack.Text = "上记录"
Me.tbbBack.ToolTipText = "上一条记录"
'
'tbbForward
'
Me.tbbForward.ImageIndex = 2
Me.tbbForward.Text = "下记录"
Me.tbbForward.ToolTipText = "下一条记录"
'
'tbbLast
'
Me.tbbLast.ImageIndex = 3
Me.tbbLast.Text = "尾记录"
Me.tbbLast.ToolTipText = "尾记录"
'
'tbbExit
'
Me.tbbExit.ImageIndex = 4
Me.tbbExit.Text = "退出"
Me.tbbExit.ToolTipText = "退出"
'
'grbSearch
'
Me.grbSearch.Controls.Add(Me.cbbCheck)
Me.grbSearch.Controls.Add(Me.Label2)
Me.grbSearch.Controls.Add(Me.Label1)
Me.grbSearch.Controls.Add(Me.txbOne)
Me.grbSearch.Controls.Add(Me.btnSearch)
Me.grbSearch.Controls.Add(Me.lblCount)
Me.grbSearch.Dock = System.Windows.Forms.DockStyle.Top
Me.grbSearch.Location = New System.Drawing.Point(0, 41)
Me.grbSearch.Name = "grbSearch"
Me.grbSearch.Size = New System.Drawing.Size(520, 95)
Me.grbSearch.TabIndex = 3
Me.grbSearch.TabStop = False
'
'cbbCheck
'
Me.cbbCheck.Location = New System.Drawing.Point(8, 64)
Me.cbbCheck.Name = "cbbCheck"
Me.cbbCheck.Size = New System.Drawing.Size(144, 24)
Me.cbbCheck.TabIndex = 6
Me.cbbCheck.Text = "无发生金额的不显示"
'
'Label2
'
Me.Label2.Location = New System.Drawing.Point(8, 43)
Me.Label2.Name = "Label2"
Me.Label2.Size = New System.Drawing.Size(496, 13)
Me.Label2.TabIndex = 5
Me.Label2.Text = "需要查询历史账簿,需要在""期末结帐""时将【本期汇总帐簿】表的数据倒入历史,实例不提供"
'
'Label1
'
Me.Label1.Location = New System.Drawing.Point(88, 16)
Me.Label1.Name = "Label1"
Me.Label1.Size = New System.Drawing.Size(56, 15)
Me.Label1.TabIndex = 2
Me.Label1.Text = "科目代码"
'
'txbOne
'
Me.txbOne.Location = New System.Drawing.Point(144, 11)
Me.txbOne.Name = "txbOne"
Me.txbOne.Size = New System.Drawing.Size(56, 21)
Me.txbOne.TabIndex = 1
Me.txbOne.Text = ""
'
'btnSearch
'
Me.btnSearch.Image = CType(resources.GetObject("btnSearch.Image"), System.Drawing.Image)
Me.btnSearch.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft
Me.btnSearch.Location = New System.Drawing.Point(224, 11)
Me.btnSearch.Name = "btnSearch"
Me.btnSearch.Size = New System.Drawing.Size(64, 22)
Me.btnSearch.TabIndex = 0
Me.btnSearch.Text = " 搜索"
'
'lblCount
'
Me.lblCount.Location = New System.Drawing.Point(8, 16)
Me.lblCount.Name = "lblCount"
Me.lblCount.Size = New System.Drawing.Size(80, 15)
Me.lblCount.TabIndex = 4
'
'dgdList
'
Me.dgdList.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
Or System.Windows.Forms.AnchorStyles.Left) _
Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
Me.dgdList.CaptionVisible = False
Me.dgdList.DataMember = ""
Me.dgdList.HeaderForeColor = System.Drawing.SystemColors.ControlText
Me.dgdList.Location = New System.Drawing.Point(0, 136)
Me.dgdList.Name = "dgdList"
Me.dgdList.Size = New System.Drawing.Size(520, 136)
Me.dgdList.TabIndex = 7
'
'SqlDataAdapter1
'
Me.SqlDataAdapter1.DeleteCommand = Me.SqlDeleteCommand1
Me.SqlDataAdapter1.InsertCommand = Me.SqlInsertCommand1
Me.SqlDataAdapter1.SelectCommand = Me.SqlSelectCommand1
Me.SqlDataAdapter1.TableMappings.AddRange(New System.Data.Common.DataTableMapping() {New System.Data.Common.DataTableMapping("Table", "本期汇总账簿", New System.Data.Common.DataColumnMapping() {New System.Data.Common.DataColumnMapping("科目代码", "科目代码"), New System.Data.Common.DataColumnMapping("会计期间", "会计期间"), New System.Data.Common.DataColumnMapping("期初余额", "期初余额"), New System.Data.Common.DataColumnMapping("本期借方合计", "本期借方合计"), New System.Data.Common.DataColumnMapping("本期贷方合计", "本期贷方合计"), New System.Data.Common.DataColumnMapping("本年借方累计", "本年借方累计"), New System.Data.Common.DataColumnMapping("本年贷方累计", "本年贷方累计"), New System.Data.Common.DataColumnMapping("余额", "余额"), New System.Data.Common.DataColumnMapping("余额方向", "余额方向")})})
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -