📄 caigouwenyuan.vb
字号:
Public Class caigouwenyuan
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 ComboBox2 As System.Windows.Forms.ComboBox
Friend WithEvents ComboBox1 As System.Windows.Forms.ComboBox
Friend WithEvents RadioButton1 As System.Windows.Forms.RadioButton
Friend WithEvents TextBox2 As System.Windows.Forms.TextBox
Friend WithEvents Label2 As System.Windows.Forms.Label
Friend WithEvents GroupBox1 As System.Windows.Forms.GroupBox
Friend WithEvents TextBox16 As System.Windows.Forms.TextBox
Friend WithEvents Label19 As System.Windows.Forms.Label
Friend WithEvents ComboBox3 As System.Windows.Forms.ComboBox
Friend WithEvents RadioButton2 As System.Windows.Forms.RadioButton
Friend WithEvents DataGrid1 As System.Windows.Forms.DataGrid
Friend WithEvents DataGrid2 As System.Windows.Forms.DataGrid
Friend WithEvents GroupBox4 As System.Windows.Forms.GroupBox
Friend WithEvents Button4 As System.Windows.Forms.Button
Friend WithEvents Label1 As System.Windows.Forms.Label
Friend WithEvents GroupBox3 As System.Windows.Forms.GroupBox
Friend WithEvents TextBox17 As System.Windows.Forms.TextBox
Friend WithEvents Label20 As System.Windows.Forms.Label
Friend WithEvents ComboBox4 As System.Windows.Forms.ComboBox
Friend WithEvents RadioButton3 As System.Windows.Forms.RadioButton
Friend WithEvents Button1 As System.Windows.Forms.Button
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
Dim resources As System.Resources.ResourceManager = New System.Resources.ResourceManager(GetType(caigouwenyuan))
Me.ComboBox2 = New System.Windows.Forms.ComboBox
Me.ComboBox1 = New System.Windows.Forms.ComboBox
Me.RadioButton1 = New System.Windows.Forms.RadioButton
Me.TextBox2 = New System.Windows.Forms.TextBox
Me.Label2 = New System.Windows.Forms.Label
Me.GroupBox1 = New System.Windows.Forms.GroupBox
Me.TextBox16 = New System.Windows.Forms.TextBox
Me.Label19 = New System.Windows.Forms.Label
Me.ComboBox3 = New System.Windows.Forms.ComboBox
Me.RadioButton2 = New System.Windows.Forms.RadioButton
Me.DataGrid1 = New System.Windows.Forms.DataGrid
Me.DataGrid2 = New System.Windows.Forms.DataGrid
Me.GroupBox4 = New System.Windows.Forms.GroupBox
Me.Button4 = New System.Windows.Forms.Button
Me.Label1 = New System.Windows.Forms.Label
Me.GroupBox3 = New System.Windows.Forms.GroupBox
Me.TextBox17 = New System.Windows.Forms.TextBox
Me.Label20 = New System.Windows.Forms.Label
Me.ComboBox4 = New System.Windows.Forms.ComboBox
Me.RadioButton3 = New System.Windows.Forms.RadioButton
Me.Button1 = New System.Windows.Forms.Button
CType(Me.DataGrid1, System.ComponentModel.ISupportInitialize).BeginInit()
CType(Me.DataGrid2, System.ComponentModel.ISupportInitialize).BeginInit()
Me.GroupBox4.SuspendLayout()
Me.GroupBox3.SuspendLayout()
Me.SuspendLayout()
'
'ComboBox2
'
Me.ComboBox2.Location = New System.Drawing.Point(120, 104)
Me.ComboBox2.Name = "ComboBox2"
Me.ComboBox2.Size = New System.Drawing.Size(104, 20)
Me.ComboBox2.TabIndex = 82
Me.ComboBox2.Text = "可选工程编号"
'
'ComboBox1
'
Me.ComboBox1.Location = New System.Drawing.Point(376, 24)
Me.ComboBox1.Name = "ComboBox1"
Me.ComboBox1.Size = New System.Drawing.Size(128, 20)
Me.ComboBox1.TabIndex = 80
Me.ComboBox1.Text = "已提交预算单号"
'
'RadioButton1
'
Me.RadioButton1.Location = New System.Drawing.Point(280, 24)
Me.RadioButton1.Name = "RadioButton1"
Me.RadioButton1.TabIndex = 79
Me.RadioButton1.Text = "已提交预算单"
'
'TextBox2
'
Me.TextBox2.Location = New System.Drawing.Point(296, 104)
Me.TextBox2.Name = "TextBox2"
Me.TextBox2.ReadOnly = True
Me.TextBox2.Size = New System.Drawing.Size(152, 21)
Me.TextBox2.TabIndex = 76
Me.TextBox2.Text = "TextBox2"
'
'Label2
'
Me.Label2.Location = New System.Drawing.Point(232, 104)
Me.Label2.Name = "Label2"
Me.Label2.Size = New System.Drawing.Size(56, 16)
Me.Label2.TabIndex = 75
Me.Label2.Text = "工程名称"
'
'GroupBox1
'
Me.GroupBox1.Location = New System.Drawing.Point(16, 8)
Me.GroupBox1.Name = "GroupBox1"
Me.GroupBox1.Size = New System.Drawing.Size(760, 48)
Me.GroupBox1.TabIndex = 81
Me.GroupBox1.TabStop = False
Me.GroupBox1.Text = "请购单号选择区域"
'
'TextBox16
'
Me.TextBox16.Location = New System.Drawing.Point(120, 72)
Me.TextBox16.Name = "TextBox16"
Me.TextBox16.Size = New System.Drawing.Size(208, 21)
Me.TextBox16.TabIndex = 78
Me.TextBox16.Text = ""
'
'Label19
'
Me.Label19.Location = New System.Drawing.Point(40, 72)
Me.Label19.Name = "Label19"
Me.Label19.Size = New System.Drawing.Size(72, 24)
Me.Label19.TabIndex = 77
Me.Label19.Text = "预算单编号"
Me.Label19.TextAlign = System.Drawing.ContentAlignment.MiddleLeft
'
'ComboBox3
'
Me.ComboBox3.Location = New System.Drawing.Point(128, 24)
Me.ComboBox3.Name = "ComboBox3"
Me.ComboBox3.Size = New System.Drawing.Size(136, 20)
Me.ComboBox3.TabIndex = 86
Me.ComboBox3.Text = "现有预算单号"
'
'RadioButton2
'
Me.RadioButton2.Location = New System.Drawing.Point(32, 24)
Me.RadioButton2.Name = "RadioButton2"
Me.RadioButton2.TabIndex = 85
Me.RadioButton2.Text = "现有预算单"
'
'DataGrid1
'
Me.DataGrid1.CaptionText = "请购物品信息情况表"
Me.DataGrid1.DataMember = ""
Me.DataGrid1.HeaderForeColor = System.Drawing.SystemColors.ControlText
Me.DataGrid1.Location = New System.Drawing.Point(16, 144)
Me.DataGrid1.Name = "DataGrid1"
Me.DataGrid1.ReadOnly = True
Me.DataGrid1.Size = New System.Drawing.Size(656, 232)
Me.DataGrid1.TabIndex = 84
'
'DataGrid2
'
Me.DataGrid2.CaptionText = "该请购单详细情况表"
Me.DataGrid2.DataMember = ""
Me.DataGrid2.HeaderForeColor = System.Drawing.SystemColors.ControlText
Me.DataGrid2.Location = New System.Drawing.Point(16, 384)
Me.DataGrid2.Name = "DataGrid2"
Me.DataGrid2.ReadOnly = True
Me.DataGrid2.Size = New System.Drawing.Size(760, 104)
Me.DataGrid2.TabIndex = 88
'
'GroupBox4
'
Me.GroupBox4.Controls.Add(Me.Button4)
Me.GroupBox4.Controls.Add(Me.Button1)
Me.GroupBox4.Location = New System.Drawing.Point(672, 56)
Me.GroupBox4.Name = "GroupBox4"
Me.GroupBox4.Size = New System.Drawing.Size(104, 320)
Me.GroupBox4.TabIndex = 87
Me.GroupBox4.TabStop = False
Me.GroupBox4.Text = "操作区"
'
'Button4
'
Me.Button4.Location = New System.Drawing.Point(8, 152)
Me.Button4.Name = "Button4"
Me.Button4.Size = New System.Drawing.Size(80, 24)
Me.Button4.TabIndex = 55
Me.Button4.Text = "提 交"
'
'Label1
'
Me.Label1.Location = New System.Drawing.Point(40, 104)
Me.Label1.Name = "Label1"
Me.Label1.Size = New System.Drawing.Size(72, 24)
Me.Label1.TabIndex = 74
Me.Label1.Text = "工程编号"
'
'GroupBox3
'
Me.GroupBox3.Controls.Add(Me.TextBox17)
Me.GroupBox3.Controls.Add(Me.Label20)
Me.GroupBox3.Location = New System.Drawing.Point(16, 56)
Me.GroupBox3.Name = "GroupBox3"
Me.GroupBox3.Size = New System.Drawing.Size(656, 80)
Me.GroupBox3.TabIndex = 83
Me.GroupBox3.TabStop = False
Me.GroupBox3.Text = "货描信息"
'
'TextBox17
'
Me.TextBox17.BackColor = System.Drawing.SystemColors.Window
Me.TextBox17.Enabled = False
Me.TextBox17.Font = New System.Drawing.Font("宋体", 9.0!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(134, Byte))
Me.TextBox17.ForeColor = System.Drawing.Color.Red
Me.TextBox17.ImeMode = System.Windows.Forms.ImeMode.NoControl
Me.TextBox17.Location = New System.Drawing.Point(504, 48)
Me.TextBox17.Name = "TextBox17"
Me.TextBox17.ReadOnly = True
Me.TextBox17.Size = New System.Drawing.Size(136, 21)
Me.TextBox17.TabIndex = 38
Me.TextBox17.Text = "双击编辑预算详细信息"
'
'Label20
'
Me.Label20.Location = New System.Drawing.Point(440, 48)
Me.Label20.Name = "Label20"
Me.Label20.Size = New System.Drawing.Size(56, 16)
Me.Label20.TabIndex = 37
Me.Label20.Text = "录入信息 "
'
'ComboBox4
'
Me.ComboBox4.Location = New System.Drawing.Point(624, 24)
Me.ComboBox4.Name = "ComboBox4"
Me.ComboBox4.Size = New System.Drawing.Size(128, 20)
Me.ComboBox4.TabIndex = 90
Me.ComboBox4.Text = "已存在预算单号"
'
'RadioButton3
'
Me.RadioButton3.Location = New System.Drawing.Point(528, 24)
Me.RadioButton3.Name = "RadioButton3"
Me.RadioButton3.TabIndex = 89
Me.RadioButton3.Text = "已存在预算单"
'
'Button1
'
Me.Button1.Image = CType(resources.GetObject("Button1.Image"), System.Drawing.Image)
Me.Button1.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft
Me.Button1.Location = New System.Drawing.Point(8, 216)
Me.Button1.Name = "Button1"
Me.Button1.Size = New System.Drawing.Size(80, 32)
Me.Button1.TabIndex = 143
Me.Button1.Tag = ""
Me.Button1.Text = "分 析"
Me.Button1.TextAlign = System.Drawing.ContentAlignment.MiddleRight
'
'caigouwenyuan
'
Me.AutoScaleBaseSize = New System.Drawing.Size(6, 14)
Me.ClientSize = New System.Drawing.Size(792, 502)
Me.Controls.Add(Me.ComboBox4)
Me.Controls.Add(Me.RadioButton3)
Me.Controls.Add(Me.ComboBox2)
Me.Controls.Add(Me.ComboBox1)
Me.Controls.Add(Me.RadioButton1)
Me.Controls.Add(Me.TextBox2)
Me.Controls.Add(Me.Label2)
Me.Controls.Add(Me.TextBox16)
Me.Controls.Add(Me.Label19)
Me.Controls.Add(Me.ComboBox3)
Me.Controls.Add(Me.RadioButton2)
Me.Controls.Add(Me.DataGrid1)
Me.Controls.Add(Me.DataGrid2)
Me.Controls.Add(Me.GroupBox4)
Me.Controls.Add(Me.Label1)
Me.Controls.Add(Me.GroupBox3)
Me.Controls.Add(Me.GroupBox1)
Me.MaximizeBox = False
Me.Name = "caigouwenyuan"
Me.Text = "采购预算录入管理"
CType(Me.DataGrid1, System.ComponentModel.ISupportInitialize).EndInit()
CType(Me.DataGrid2, System.ComponentModel.ISupportInitialize).EndInit()
Me.GroupBox4.ResumeLayout(False)
Me.GroupBox3.ResumeLayout(False)
Me.ResumeLayout(False)
End Sub
#End Region
'得到待填写的工程编号
Private Sub gongchengbianhao()
Dim mystr As String
Dim mydataset As New DataSet
mystr = "select 工程编号 from technologyInf where 预算过程标志 =" + Chr(39) + "0" + Chr(39) + " "
mydataset = GetDataFromDB(mystr)
Dim i As Integer
Dim y As Integer = mydataset.Tables(0).Rows.Count
Dim str As String
ComboBox2.Items.Clear()
For i = 0 To (y - 1)
str = Trim(mydataset.Tables(0).Rows(i)("工程编号"))
ComboBox2.Items.Add(str)
Next
mydataset.Dispose()
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -