📄 frmcpgx.vb
字号:
Imports System.Data.OleDb
Public Class frmCpGx
Inherits System.Windows.Forms.Form
Dim WithEvents cnData As New OleDbConnection
#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 DataGrid1 As System.Windows.Forms.DataGrid
Friend WithEvents Label1 As System.Windows.Forms.Label
Friend WithEvents btnOK As System.Windows.Forms.Button
Friend WithEvents DataGridTableStyle1 As System.Windows.Forms.DataGridTableStyle
Friend WithEvents DataGridTextBoxColumn1 As System.Windows.Forms.DataGridTextBoxColumn
Friend WithEvents DataGridTextBoxColumn4 As System.Windows.Forms.DataGridTextBoxColumn
Friend WithEvents DataGridTextBoxColumn5 As System.Windows.Forms.DataGridTextBoxColumn
Friend WithEvents Label2 As System.Windows.Forms.Label
Friend WithEvents Label5 As System.Windows.Forms.Label
Friend WithEvents Label6 As System.Windows.Forms.Label
Friend WithEvents txtPf As System.Windows.Forms.TextBox
Friend WithEvents txtGx As System.Windows.Forms.TextBox
Friend WithEvents txtJg As System.Windows.Forms.TextBox
Friend WithEvents btnAdd As System.Windows.Forms.Button
Friend WithEvents Button1 As System.Windows.Forms.Button
Friend WithEvents Label3 As System.Windows.Forms.Label
Friend WithEvents Label4 As System.Windows.Forms.Label
Friend WithEvents Label7 As System.Windows.Forms.Label
Friend WithEvents txtFei1 As System.Windows.Forms.TextBox
Friend WithEvents txtFei2 As System.Windows.Forms.TextBox
Friend WithEvents txtFei3 As System.Windows.Forms.TextBox
Friend WithEvents Label8 As System.Windows.Forms.Label
Friend WithEvents DataGridTextBoxColumn6 As System.Windows.Forms.DataGridTextBoxColumn
Friend WithEvents DataGridTextBoxColumn7 As System.Windows.Forms.DataGridTextBoxColumn
Friend WithEvents DataGridTextBoxColumn8 As System.Windows.Forms.DataGridTextBoxColumn
Friend WithEvents daCpgx 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 DsCpgx1 As JiJianGongZi.dsCpgx
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
Me.DataGrid1 = New System.Windows.Forms.DataGrid
Me.DsCpgx1 = New JiJianGongZi.dsCpgx
Me.DataGridTableStyle1 = New System.Windows.Forms.DataGridTableStyle
Me.DataGridTextBoxColumn1 = 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.DataGridTextBoxColumn7 = New System.Windows.Forms.DataGridTextBoxColumn
Me.DataGridTextBoxColumn8 = New System.Windows.Forms.DataGridTextBoxColumn
Me.btnOK = New System.Windows.Forms.Button
Me.Label1 = New System.Windows.Forms.Label
Me.txtPf = New System.Windows.Forms.TextBox
Me.txtGx = New System.Windows.Forms.TextBox
Me.txtJg = New System.Windows.Forms.TextBox
Me.btnAdd = New System.Windows.Forms.Button
Me.Label2 = New System.Windows.Forms.Label
Me.Label5 = New System.Windows.Forms.Label
Me.Label6 = New System.Windows.Forms.Label
Me.Button1 = New System.Windows.Forms.Button
Me.Label3 = New System.Windows.Forms.Label
Me.Label4 = New System.Windows.Forms.Label
Me.Label7 = New System.Windows.Forms.Label
Me.txtFei1 = New System.Windows.Forms.TextBox
Me.txtFei2 = New System.Windows.Forms.TextBox
Me.txtFei3 = New System.Windows.Forms.TextBox
Me.Label8 = New System.Windows.Forms.Label
Me.daCpgx = 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.DsCpgx1, System.ComponentModel.ISupportInitialize).BeginInit()
Me.SuspendLayout()
'
'DataGrid1
'
Me.DataGrid1.CaptionText = "产品工序列表"
Me.DataGrid1.DataMember = "Cpgx"
Me.DataGrid1.DataSource = Me.DsCpgx1
Me.DataGrid1.HeaderForeColor = System.Drawing.SystemColors.ControlText
Me.DataGrid1.Location = New System.Drawing.Point(36, 24)
Me.DataGrid1.Name = "DataGrid1"
Me.DataGrid1.Size = New System.Drawing.Size(572, 296)
Me.DataGrid1.TabIndex = 0
Me.DataGrid1.TableStyles.AddRange(New System.Windows.Forms.DataGridTableStyle() {Me.DataGridTableStyle1})
'
'DsCpgx1
'
Me.DsCpgx1.DataSetName = "dsCpgx"
Me.DsCpgx1.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.DataGridTextBoxColumn4, Me.DataGridTextBoxColumn5, Me.DataGridTextBoxColumn6, Me.DataGridTextBoxColumn7, Me.DataGridTextBoxColumn8})
Me.DataGridTableStyle1.HeaderForeColor = System.Drawing.SystemColors.ControlText
Me.DataGridTableStyle1.MappingName = "Cpgx"
'
'DataGridTextBoxColumn1
'
Me.DataGridTextBoxColumn1.Format = ""
Me.DataGridTextBoxColumn1.FormatInfo = Nothing
Me.DataGridTextBoxColumn1.HeaderText = "产品名称"
Me.DataGridTextBoxColumn1.MappingName = "Pf"
Me.DataGridTextBoxColumn1.Width = 75
'
'DataGridTextBoxColumn4
'
Me.DataGridTextBoxColumn4.Format = ""
Me.DataGridTextBoxColumn4.FormatInfo = Nothing
Me.DataGridTextBoxColumn4.HeaderText = "工序"
Me.DataGridTextBoxColumn4.MappingName = "Gx"
Me.DataGridTextBoxColumn4.Width = 120
'
'DataGridTextBoxColumn5
'
Me.DataGridTextBoxColumn5.Format = ""
Me.DataGridTextBoxColumn5.FormatInfo = Nothing
Me.DataGridTextBoxColumn5.HeaderText = "价格"
Me.DataGridTextBoxColumn5.MappingName = "Jg"
Me.DataGridTextBoxColumn5.Width = 75
'
'DataGridTextBoxColumn6
'
Me.DataGridTextBoxColumn6.Format = ""
Me.DataGridTextBoxColumn6.FormatInfo = Nothing
Me.DataGridTextBoxColumn6.HeaderText = "不合格(料)"
Me.DataGridTextBoxColumn6.MappingName = "Fei1"
Me.DataGridTextBoxColumn6.Width = 75
'
'DataGridTextBoxColumn7
'
Me.DataGridTextBoxColumn7.Format = ""
Me.DataGridTextBoxColumn7.FormatInfo = Nothing
Me.DataGridTextBoxColumn7.HeaderText = "不合格(责)"
Me.DataGridTextBoxColumn7.MappingName = "Fei2"
Me.DataGridTextBoxColumn7.Width = 75
'
'DataGridTextBoxColumn8
'
Me.DataGridTextBoxColumn8.Format = ""
Me.DataGridTextBoxColumn8.FormatInfo = Nothing
Me.DataGridTextBoxColumn8.HeaderText = "不合格(回用)"
Me.DataGridTextBoxColumn8.MappingName = "Fei3"
Me.DataGridTextBoxColumn8.Width = 85
'
'btnOK
'
Me.btnOK.ForeColor = System.Drawing.Color.Red
Me.btnOK.Location = New System.Drawing.Point(536, 408)
Me.btnOK.Name = "btnOK"
Me.btnOK.TabIndex = 9
Me.btnOK.Text = "更新"
'
'Label1
'
Me.Label1.Font = New System.Drawing.Font("宋体", 15.0!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(134, Byte))
Me.Label1.ForeColor = System.Drawing.SystemColors.ActiveCaption
Me.Label1.Location = New System.Drawing.Point(296, 408)
Me.Label1.Name = "Label1"
Me.Label1.Size = New System.Drawing.Size(216, 24)
Me.Label1.TabIndex = 17
Me.Label1.Text = "请核实数据后点击更新"
'
'txtPf
'
Me.txtPf.Location = New System.Drawing.Point(104, 336)
Me.txtPf.Name = "txtPf"
Me.txtPf.Size = New System.Drawing.Size(104, 21)
Me.txtPf.TabIndex = 1
Me.txtPf.Text = ""
'
'txtGx
'
Me.txtGx.Location = New System.Drawing.Point(272, 336)
Me.txtGx.Name = "txtGx"
Me.txtGx.Size = New System.Drawing.Size(104, 21)
Me.txtGx.TabIndex = 2
Me.txtGx.Text = ""
'
'txtJg
'
Me.txtJg.Location = New System.Drawing.Point(464, 336)
Me.txtJg.Name = "txtJg"
Me.txtJg.Size = New System.Drawing.Size(48, 21)
Me.txtJg.TabIndex = 3
Me.txtJg.Text = ""
'
'btnAdd
'
Me.btnAdd.Location = New System.Drawing.Point(536, 352)
Me.btnAdd.Name = "btnAdd"
Me.btnAdd.Size = New System.Drawing.Size(75, 40)
Me.btnAdd.TabIndex = 7
Me.btnAdd.Text = "增加"
'
'Label2
'
Me.Label2.Location = New System.Drawing.Point(48, 336)
Me.Label2.Name = "Label2"
Me.Label2.Size = New System.Drawing.Size(56, 23)
Me.Label2.TabIndex = 10
Me.Label2.Text = "产品名称"
'
'Label5
'
Me.Label5.Location = New System.Drawing.Point(240, 336)
Me.Label5.Name = "Label5"
Me.Label5.Size = New System.Drawing.Size(32, 23)
Me.Label5.TabIndex = 11
Me.Label5.Text = "工序"
'
'Label6
'
Me.Label6.Location = New System.Drawing.Point(432, 336)
Me.Label6.Name = "Label6"
Me.Label6.Size = New System.Drawing.Size(32, 23)
Me.Label6.TabIndex = 12
Me.Label6.Text = "价格"
'
'Button1
'
Me.Button1.Location = New System.Drawing.Point(48, 408)
Me.Button1.Name = "Button1"
Me.Button1.Size = New System.Drawing.Size(160, 23)
Me.Button1.TabIndex = 8
Me.Button1.Text = "导出到Excel"
'
'Label3
'
Me.Label3.Location = New System.Drawing.Point(48, 368)
Me.Label3.Name = "Label3"
Me.Label3.Size = New System.Drawing.Size(56, 23)
Me.Label3.TabIndex = 13
Me.Label3.Text = "不合格品"
'
'Label4
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -