frmTodaySKFK.vb
上传用户:wj57717022
上传日期:2014-12-16
资源大小:4093k
文件大小:4k
- Public Class frmTodaySKFK
- Inherits System.Windows.Forms.Form
- #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 tabtable As System.Windows.Forms.TabControl
- Friend WithEvents tbsk As System.Windows.Forms.TabPage
- Friend WithEvents tbfk As System.Windows.Forms.TabPage
- Friend WithEvents dgview As System.Windows.Forms.DataGrid
- <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
- Me.tabtable = New System.Windows.Forms.TabControl
- Me.tbsk = New System.Windows.Forms.TabPage
- Me.tbfk = New System.Windows.Forms.TabPage
- Me.dgview = New System.Windows.Forms.DataGrid
- Me.tabtable.SuspendLayout()
- CType(Me.dgview, System.ComponentModel.ISupportInitialize).BeginInit()
- Me.SuspendLayout()
- '
- 'tabtable
- '
- Me.tabtable.Appearance = System.Windows.Forms.TabAppearance.FlatButtons
- Me.tabtable.Controls.Add(Me.tbsk)
- Me.tabtable.Controls.Add(Me.tbfk)
- Me.tabtable.Dock = System.Windows.Forms.DockStyle.Top
- Me.tabtable.Location = New System.Drawing.Point(0, 0)
- Me.tabtable.Name = "tabtable"
- Me.tabtable.SelectedIndex = 0
- Me.tabtable.Size = New System.Drawing.Size(1002, 31)
- Me.tabtable.TabIndex = 0
- '
- 'tbsk
- '
- Me.tbsk.Location = New System.Drawing.Point(4, 27)
- Me.tbsk.Name = "tbsk"
- Me.tbsk.Size = New System.Drawing.Size(994, 0)
- Me.tbsk.TabIndex = 0
- Me.tbsk.Text = "应收账款"
- '
- 'tbfk
- '
- Me.tbfk.Location = New System.Drawing.Point(4, 27)
- Me.tbfk.Name = "tbfk"
- Me.tbfk.Size = New System.Drawing.Size(995, 0)
- Me.tbfk.TabIndex = 1
- Me.tbfk.Text = "应付账款"
- '
- 'dgview
- '
- Me.dgview.DataMember = ""
- Me.dgview.Dock = System.Windows.Forms.DockStyle.Fill
- Me.dgview.HeaderForeColor = System.Drawing.SystemColors.ControlText
- Me.dgview.Location = New System.Drawing.Point(0, 31)
- Me.dgview.Name = "dgview"
- Me.dgview.Size = New System.Drawing.Size(1002, 551)
- Me.dgview.TabIndex = 1
- '
- 'frmTodaySKFK
- '
- Me.AutoScaleBaseSize = New System.Drawing.Size(8, 18)
- Me.ClientSize = New System.Drawing.Size(1002, 582)
- Me.Controls.Add(Me.dgview)
- Me.Controls.Add(Me.tabtable)
- Me.Name = "frmTodaySKFK"
- Me.Text = "今日收款付款提示"
- Me.WindowState = System.Windows.Forms.FormWindowState.Maximized
- Me.tabtable.ResumeLayout(False)
- CType(Me.dgview, System.ComponentModel.ISupportInitialize).EndInit()
- Me.ResumeLayout(False)
- End Sub
- #End Region
- Public lsweb As New jxcmanage
- Private Sub tabtable_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles tabtable.SelectedIndexChanged
- Dim strqueryes As String
- Select Case tabtable.SelectedTab.Text
- Case "应收账款"
- strqueryes = "select * from wz_ck_sk where 日期='" & Today().ToShortDateString & "'"
- Dim dslocal As DataSet
- dslocal = lsweb.runSql(strqueryes)
- dgview.DataSource = dslocal.Tables(0).DefaultView
- Case "应付账款"
- strqueryes = "select * from wz_rk_fk where 日期='" & Today().ToShortDateString & "'"
- Dim dslocal As DataSet
- dslocal = lsweb.runSql(strqueryes)
- dgview.DataSource = dslocal.Tables(0).DefaultView
- End Select
-
- End Sub
-
-
- End Class