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

📄 frmjswgxg.vb

📁 一个实际的商业项目
💻 VB
📖 第 1 页 / 共 2 页
字号:
Imports System.Data.OleDb
Public Class frmJsWgxg
    Inherits System.Windows.Forms.Form

    Dim WithEvents cnData As New OleDbConnection

    Dim strDate1 As String
    Dim strDate2 As String

#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 btnList As System.Windows.Forms.Button
    Friend WithEvents Label5 As System.Windows.Forms.Label
    Friend WithEvents txtGx As System.Windows.Forms.TextBox
    Friend WithEvents Label3 As System.Windows.Forms.Label
    Friend WithEvents txtXm As System.Windows.Forms.TextBox
    Friend WithEvents Label2 As System.Windows.Forms.Label
    Friend WithEvents Label1 As System.Windows.Forms.Label
    Friend WithEvents dp2 As System.Windows.Forms.DateTimePicker
    Friend WithEvents dp1 As System.Windows.Forms.DateTimePicker
    Friend WithEvents DataGrid1 As System.Windows.Forms.DataGrid
    Friend WithEvents Label6 As System.Windows.Forms.Label
    Friend WithEvents btnExcel As System.Windows.Forms.Button
    Friend WithEvents btnUpdata As System.Windows.Forms.Button
    Friend WithEvents daJsWgxg As System.Data.OleDb.OleDbDataAdapter
    Friend WithEvents OleDbSelectCommand1 As System.Data.OleDb.OleDbCommand
    Friend WithEvents OleDbInsertCommand1 As System.Data.OleDb.OleDbCommand
    Friend WithEvents OleDbUpdateCommand1 As System.Data.OleDb.OleDbCommand
    Friend WithEvents OleDbDeleteCommand1 As System.Data.OleDb.OleDbCommand
    Friend WithEvents DsJsWgxg1 As JiJianGongZi.dsJsWgxg
    Friend WithEvents DataGridTableStyle1 As System.Windows.Forms.DataGridTableStyle
    Friend WithEvents DataGridTextBoxColumn1 As System.Windows.Forms.DataGridTextBoxColumn
    Friend WithEvents DataGridTextBoxColumn2 As System.Windows.Forms.DataGridTextBoxColumn
    Friend WithEvents DataGridTextBoxColumn3 As System.Windows.Forms.DataGridTextBoxColumn
    Friend WithEvents DataGridTextBoxColumn4 As System.Windows.Forms.DataGridTextBoxColumn
    Friend WithEvents DataGridTextBoxColumn5 As System.Windows.Forms.DataGridTextBoxColumn
    Friend WithEvents DataGridTextBoxColumn6 As System.Windows.Forms.DataGridTextBoxColumn
    <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
        Me.btnList = New System.Windows.Forms.Button
        Me.Label5 = New System.Windows.Forms.Label
        Me.txtGx = New System.Windows.Forms.TextBox
        Me.Label3 = New System.Windows.Forms.Label
        Me.txtXm = New System.Windows.Forms.TextBox
        Me.Label2 = New System.Windows.Forms.Label
        Me.Label1 = New System.Windows.Forms.Label
        Me.dp2 = New System.Windows.Forms.DateTimePicker
        Me.dp1 = New System.Windows.Forms.DateTimePicker
        Me.DataGrid1 = New System.Windows.Forms.DataGrid
        Me.DsJsWgxg1 = New JiJianGongZi.dsJsWgxg
        Me.DataGridTableStyle1 = New System.Windows.Forms.DataGridTableStyle
        Me.DataGridTextBoxColumn1 = New System.Windows.Forms.DataGridTextBoxColumn
        Me.DataGridTextBoxColumn2 = New System.Windows.Forms.DataGridTextBoxColumn
        Me.DataGridTextBoxColumn3 = New System.Windows.Forms.DataGridTextBoxColumn
        Me.DataGridTextBoxColumn4 = New System.Windows.Forms.DataGridTextBoxColumn
        Me.DataGridTextBoxColumn5 = New System.Windows.Forms.DataGridTextBoxColumn
        Me.DataGridTextBoxColumn6 = New System.Windows.Forms.DataGridTextBoxColumn
        Me.Label6 = New System.Windows.Forms.Label
        Me.btnExcel = New System.Windows.Forms.Button
        Me.btnUpdata = New System.Windows.Forms.Button
        Me.daJsWgxg = New System.Data.OleDb.OleDbDataAdapter
        Me.OleDbDeleteCommand1 = New System.Data.OleDb.OleDbCommand
        Me.OleDbInsertCommand1 = New System.Data.OleDb.OleDbCommand
        Me.OleDbSelectCommand1 = New System.Data.OleDb.OleDbCommand
        Me.OleDbUpdateCommand1 = New System.Data.OleDb.OleDbCommand
        CType(Me.DataGrid1, System.ComponentModel.ISupportInitialize).BeginInit()
        CType(Me.DsJsWgxg1, System.ComponentModel.ISupportInitialize).BeginInit()
        Me.SuspendLayout()
        '
        'btnList
        '
        Me.btnList.Location = New System.Drawing.Point(489, 48)
        Me.btnList.Name = "btnList"
        Me.btnList.TabIndex = 22
        Me.btnList.Text = "刷新"
        '
        'Label5
        '
        Me.Label5.Location = New System.Drawing.Point(409, 24)
        Me.Label5.Name = "Label5"
        Me.Label5.Size = New System.Drawing.Size(56, 23)
        Me.Label5.TabIndex = 21
        Me.Label5.Text = "工序"
        '
        'txtGx
        '
        Me.txtGx.Location = New System.Drawing.Point(409, 48)
        Me.txtGx.Name = "txtGx"
        Me.txtGx.Size = New System.Drawing.Size(56, 21)
        Me.txtGx.TabIndex = 20
        Me.txtGx.Text = ""
        '
        'Label3
        '
        Me.Label3.Location = New System.Drawing.Point(340, 24)
        Me.Label3.Name = "Label3"
        Me.Label3.Size = New System.Drawing.Size(56, 23)
        Me.Label3.TabIndex = 17
        Me.Label3.Text = "姓名"
        '
        'txtXm
        '
        Me.txtXm.Location = New System.Drawing.Point(340, 48)
        Me.txtXm.Name = "txtXm"
        Me.txtXm.Size = New System.Drawing.Size(56, 21)
        Me.txtXm.TabIndex = 16
        Me.txtXm.Text = ""
        '
        'Label2
        '
        Me.Label2.Location = New System.Drawing.Point(44, 24)
        Me.Label2.Name = "Label2"
        Me.Label2.Size = New System.Drawing.Size(100, 24)
        Me.Label2.TabIndex = 15
        Me.Label2.Text = "完工日期"
        '
        'Label1
        '
        Me.Label1.Location = New System.Drawing.Point(156, 56)
        Me.Label1.Name = "Label1"
        Me.Label1.Size = New System.Drawing.Size(32, 23)
        Me.Label1.TabIndex = 14
        Me.Label1.Text = "->"
        '
        'dp2
        '
        Me.dp2.Location = New System.Drawing.Point(188, 48)
        Me.dp2.Name = "dp2"
        Me.dp2.Size = New System.Drawing.Size(112, 21)
        Me.dp2.TabIndex = 13
        '
        'dp1
        '
        Me.dp1.Location = New System.Drawing.Point(44, 48)
        Me.dp1.Name = "dp1"
        Me.dp1.Size = New System.Drawing.Size(112, 21)
        Me.dp1.TabIndex = 12
        '
        'DataGrid1
        '
        Me.DataGrid1.CaptionText = "完工单列表"
        Me.DataGrid1.DataMember = "JsWg"
        Me.DataGrid1.DataSource = Me.DsJsWgxg1
        Me.DataGrid1.HeaderForeColor = System.Drawing.SystemColors.ControlText
        Me.DataGrid1.Location = New System.Drawing.Point(30, 88)
        Me.DataGrid1.Name = "DataGrid1"
        Me.DataGrid1.Size = New System.Drawing.Size(548, 280)
        Me.DataGrid1.TabIndex = 23
        Me.DataGrid1.TableStyles.AddRange(New System.Windows.Forms.DataGridTableStyle() {Me.DataGridTableStyle1})
        '
        'DsJsWgxg1
        '
        Me.DsJsWgxg1.DataSetName = "dsJsWgxg"
        Me.DsJsWgxg1.Locale = New System.Globalization.CultureInfo("zh-CN")
        '
        'DataGridTableStyle1
        '
        Me.DataGridTableStyle1.DataGrid = Me.DataGrid1
        Me.DataGridTableStyle1.GridColumnStyles.AddRange(New System.Windows.Forms.DataGridColumnStyle() {Me.DataGridTextBoxColumn1, Me.DataGridTextBoxColumn2, Me.DataGridTextBoxColumn3, Me.DataGridTextBoxColumn4, Me.DataGridTextBoxColumn5, Me.DataGridTextBoxColumn6})
        Me.DataGridTableStyle1.HeaderForeColor = System.Drawing.SystemColors.ControlText
        Me.DataGridTableStyle1.MappingName = "JsWg"
        '
        'DataGridTextBoxColumn1
        '
        Me.DataGridTextBoxColumn1.Format = ""
        Me.DataGridTextBoxColumn1.FormatInfo = Nothing
        Me.DataGridTextBoxColumn1.HeaderText = "完工日期"
        Me.DataGridTextBoxColumn1.MappingName = "Rq"
        Me.DataGridTextBoxColumn1.Width = 75
        '
        'DataGridTextBoxColumn2
        '
        Me.DataGridTextBoxColumn2.Format = ""
        Me.DataGridTextBoxColumn2.FormatInfo = Nothing
        Me.DataGridTextBoxColumn2.HeaderText = "工号"
        Me.DataGridTextBoxColumn2.MappingName = "Gh"
        Me.DataGridTextBoxColumn2.Width = 75
        '
        'DataGridTextBoxColumn3
        '
        Me.DataGridTextBoxColumn3.Format = ""
        Me.DataGridTextBoxColumn3.FormatInfo = Nothing
        Me.DataGridTextBoxColumn3.HeaderText = "姓名"
        Me.DataGridTextBoxColumn3.MappingName = "Xm"
        Me.DataGridTextBoxColumn3.Width = 75
        '
        'DataGridTextBoxColumn4
        '
        Me.DataGridTextBoxColumn4.Format = ""
        Me.DataGridTextBoxColumn4.FormatInfo = Nothing
        Me.DataGridTextBoxColumn4.HeaderText = "工序"
        Me.DataGridTextBoxColumn4.MappingName = "Gx"
        Me.DataGridTextBoxColumn4.Width = 85
        '
        'DataGridTextBoxColumn5
        '
        Me.DataGridTextBoxColumn5.Format = ""
        Me.DataGridTextBoxColumn5.FormatInfo = Nothing
        Me.DataGridTextBoxColumn5.HeaderText = "数量"
        Me.DataGridTextBoxColumn5.MappingName = "Sl"
        Me.DataGridTextBoxColumn5.Width = 75
        '
        'DataGridTextBoxColumn6
        '
        Me.DataGridTextBoxColumn6.Format = ""
        Me.DataGridTextBoxColumn6.FormatInfo = Nothing
        Me.DataGridTextBoxColumn6.HeaderText = "备注"
        Me.DataGridTextBoxColumn6.MappingName = "Bz"
        Me.DataGridTextBoxColumn6.Width = 120
        '
        'Label6
        '
        Me.Label6.Font = New System.Drawing.Font("宋体", 15.75!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(134, Byte))
        Me.Label6.ForeColor = System.Drawing.SystemColors.ActiveCaption
        Me.Label6.Location = New System.Drawing.Point(248, 384)
        Me.Label6.Name = "Label6"
        Me.Label6.Size = New System.Drawing.Size(248, 23)
        Me.Label6.TabIndex = 26
        Me.Label6.Text = "更新数据前请仔细检查!"

⌨️ 快捷键说明

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