📄 frmpur.vb
字号:
Public Class frmPur
Inherits System.Windows.Forms.Form
'用于保存库存数量信息
Dim PurQua As Integer
'用于保存采购单编号
Dim strPurListID As String
'Pur类的对象
Dim purObj As New SCMAPP.Pur
#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 lblSupplyName As System.Windows.Forms.Label
Friend WithEvents lblSupplyId As System.Windows.Forms.Label
Friend WithEvents lblListMaker As System.Windows.Forms.Label
Friend WithEvents lblOrderDate As System.Windows.Forms.Label
Friend WithEvents btnDel As System.Windows.Forms.Button
Friend WithEvents lblDepotId As System.Windows.Forms.Label
Friend WithEvents lblGoodsPrice As System.Windows.Forms.Label
Friend WithEvents lblGoodsCount As System.Windows.Forms.Label
Friend WithEvents btnAdd As System.Windows.Forms.Button
Friend WithEvents lblGoodName As System.Windows.Forms.Label
Friend WithEvents lblGoodId As System.Windows.Forms.Label
Friend WithEvents dgdPur As System.Windows.Forms.DataGrid
Friend WithEvents grbPur As System.Windows.Forms.GroupBox
Friend WithEvents grbPurList As System.Windows.Forms.GroupBox
Friend WithEvents dtpPurDat As System.Windows.Forms.DateTimePicker
Friend WithEvents txtSupId As System.Windows.Forms.TextBox
Friend WithEvents txtSupNam As System.Windows.Forms.TextBox
Friend WithEvents txtPurEmp As System.Windows.Forms.TextBox
Friend WithEvents Label1 As System.Windows.Forms.Label
Friend WithEvents txtPrdPrc As System.Windows.Forms.TextBox
Friend WithEvents txtPrdQua As System.Windows.Forms.TextBox
Friend WithEvents txtPrdNam As System.Windows.Forms.TextBox
Friend WithEvents txtPrdId As System.Windows.Forms.TextBox
Friend WithEvents txtPurMemo As System.Windows.Forms.TextBox
Friend WithEvents btnSup As System.Windows.Forms.Button
Friend WithEvents btnPrd As System.Windows.Forms.Button
Friend WithEvents btnEdt As System.Windows.Forms.Button
Friend WithEvents btnExt As System.Windows.Forms.Button
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
Dim resources As System.Resources.ResourceManager = New System.Resources.ResourceManager(GetType(frmPur))
Me.dgdPur = New System.Windows.Forms.DataGrid
Me.grbPur = New System.Windows.Forms.GroupBox
Me.btnSup = New System.Windows.Forms.Button
Me.dtpPurDat = New System.Windows.Forms.DateTimePicker
Me.txtSupId = New System.Windows.Forms.TextBox
Me.txtSupNam = New System.Windows.Forms.TextBox
Me.txtPurEmp = New System.Windows.Forms.TextBox
Me.lblSupplyId = New System.Windows.Forms.Label
Me.lblOrderDate = New System.Windows.Forms.Label
Me.lblSupplyName = New System.Windows.Forms.Label
Me.lblListMaker = New System.Windows.Forms.Label
Me.grbPurList = New System.Windows.Forms.GroupBox
Me.btnExt = New System.Windows.Forms.Button
Me.txtPurMemo = New System.Windows.Forms.TextBox
Me.btnDel = New System.Windows.Forms.Button
Me.btnEdt = New System.Windows.Forms.Button
Me.txtPrdPrc = New System.Windows.Forms.TextBox
Me.txtPrdQua = New System.Windows.Forms.TextBox
Me.txtPrdNam = New System.Windows.Forms.TextBox
Me.txtPrdId = New System.Windows.Forms.TextBox
Me.btnAdd = New System.Windows.Forms.Button
Me.lblDepotId = New System.Windows.Forms.Label
Me.lblGoodsPrice = New System.Windows.Forms.Label
Me.lblGoodsCount = New System.Windows.Forms.Label
Me.lblGoodName = New System.Windows.Forms.Label
Me.lblGoodId = New System.Windows.Forms.Label
Me.btnPrd = New System.Windows.Forms.Button
Me.Label1 = New System.Windows.Forms.Label
CType(Me.dgdPur, System.ComponentModel.ISupportInitialize).BeginInit()
Me.grbPur.SuspendLayout()
Me.grbPurList.SuspendLayout()
Me.SuspendLayout()
'
'dgdPur
'
Me.dgdPur.AlternatingBackColor = System.Drawing.Color.GhostWhite
Me.dgdPur.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.dgdPur.BackColor = System.Drawing.Color.GhostWhite
Me.dgdPur.BackgroundColor = System.Drawing.Color.Lavender
Me.dgdPur.BorderStyle = System.Windows.Forms.BorderStyle.None
Me.dgdPur.CaptionBackColor = System.Drawing.Color.RoyalBlue
Me.dgdPur.CaptionForeColor = System.Drawing.Color.White
Me.dgdPur.CaptionVisible = False
Me.dgdPur.DataMember = ""
Me.dgdPur.FlatMode = True
Me.dgdPur.Font = New System.Drawing.Font("Tahoma", 8.0!)
Me.dgdPur.ForeColor = System.Drawing.Color.MidnightBlue
Me.dgdPur.GridLineColor = System.Drawing.Color.RoyalBlue
Me.dgdPur.HeaderBackColor = System.Drawing.Color.MidnightBlue
Me.dgdPur.HeaderFont = New System.Drawing.Font("Tahoma", 8.0!, System.Drawing.FontStyle.Bold)
Me.dgdPur.HeaderForeColor = System.Drawing.Color.Lavender
Me.dgdPur.LinkColor = System.Drawing.Color.Teal
Me.dgdPur.Location = New System.Drawing.Point(16, 24)
Me.dgdPur.Name = "dgdPur"
Me.dgdPur.ParentRowsBackColor = System.Drawing.Color.Lavender
Me.dgdPur.ParentRowsForeColor = System.Drawing.Color.MidnightBlue
Me.dgdPur.ReadOnly = True
Me.dgdPur.SelectionBackColor = System.Drawing.Color.Teal
Me.dgdPur.SelectionForeColor = System.Drawing.Color.PaleGreen
Me.dgdPur.Size = New System.Drawing.Size(748, 330)
Me.dgdPur.TabIndex = 71
'
'grbPur
'
Me.grbPur.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Left) _
Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
Me.grbPur.Controls.Add(Me.btnSup)
Me.grbPur.Controls.Add(Me.dtpPurDat)
Me.grbPur.Controls.Add(Me.txtSupId)
Me.grbPur.Controls.Add(Me.txtSupNam)
Me.grbPur.Controls.Add(Me.txtPurEmp)
Me.grbPur.Controls.Add(Me.lblSupplyId)
Me.grbPur.Controls.Add(Me.lblOrderDate)
Me.grbPur.Controls.Add(Me.lblSupplyName)
Me.grbPur.Controls.Add(Me.lblListMaker)
Me.grbPur.Font = New System.Drawing.Font("宋体", 10.5!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(134, Byte))
Me.grbPur.ForeColor = System.Drawing.Color.Blue
Me.grbPur.Location = New System.Drawing.Point(16, 264)
Me.grbPur.Name = "grbPur"
Me.grbPur.Size = New System.Drawing.Size(746, 112)
Me.grbPur.TabIndex = 73
Me.grbPur.TabStop = False
Me.grbPur.Text = "采购单基本信息"
'
'btnSup
'
Me.btnSup.Font = New System.Drawing.Font("宋体", 12.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(134, Byte))
Me.btnSup.ForeColor = System.Drawing.Color.Green
Me.btnSup.Location = New System.Drawing.Point(280, 62)
Me.btnSup.Name = "btnSup"
Me.btnSup.Size = New System.Drawing.Size(24, 24)
Me.btnSup.TabIndex = 37
Me.btnSup.Text = "…"
'
'dtpPurDat
'
Me.dtpPurDat.Location = New System.Drawing.Point(96, 18)
Me.dtpPurDat.MaxDate = New Date(2020, 12, 31, 0, 0, 0, 0)
Me.dtpPurDat.MinDate = New Date(1800, 1, 1, 0, 0, 0, 0)
Me.dtpPurDat.Name = "dtpPurDat"
Me.dtpPurDat.Size = New System.Drawing.Size(208, 23)
Me.dtpPurDat.TabIndex = 36
Me.dtpPurDat.Value = New Date(2005, 6, 13, 0, 0, 0, 0)
'
'txtSupId
'
Me.txtSupId.Font = New System.Drawing.Font("宋体", 10.5!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(134, Byte))
Me.txtSupId.ForeColor = System.Drawing.Color.Black
Me.txtSupId.Location = New System.Drawing.Point(96, 62)
Me.txtSupId.Name = "txtSupId"
Me.txtSupId.ReadOnly = True
Me.txtSupId.Size = New System.Drawing.Size(176, 23)
Me.txtSupId.TabIndex = 34
Me.txtSupId.Text = ""
'
'txtSupNam
'
Me.txtSupNam.Font = New System.Drawing.Font("宋体", 10.5!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(134, Byte))
Me.txtSupNam.ForeColor = System.Drawing.Color.Black
Me.txtSupNam.Location = New System.Drawing.Point(476, 62)
Me.txtSupNam.Name = "txtSupNam"
Me.txtSupNam.ReadOnly = True
Me.txtSupNam.Size = New System.Drawing.Size(208, 23)
Me.txtSupNam.TabIndex = 32
Me.txtSupNam.Text = ""
'
'txtPurEmp
'
Me.txtPurEmp.Font = New System.Drawing.Font("宋体", 10.5!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(134, Byte))
Me.txtPurEmp.ForeColor = System.Drawing.Color.Black
Me.txtPurEmp.Location = New System.Drawing.Point(476, 18)
Me.txtPurEmp.Name = "txtPurEmp"
Me.txtPurEmp.Size = New System.Drawing.Size(208, 23)
Me.txtPurEmp.TabIndex = 29
Me.txtPurEmp.Text = ""
'
'lblSupplyId
'
Me.lblSupplyId.Font = New System.Drawing.Font("宋体", 10.5!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(134, Byte))
Me.lblSupplyId.ForeColor = System.Drawing.Color.Black
Me.lblSupplyId.Location = New System.Drawing.Point(11, 67)
Me.lblSupplyId.Name = "lblSupplyId"
Me.lblSupplyId.Size = New System.Drawing.Size(88, 16)
Me.lblSupplyId.TabIndex = 31
Me.lblSupplyId.Text = "供应商编号:"
'
'lblOrderDate
'
Me.lblOrderDate.Font = New System.Drawing.Font("宋体", 10.5!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(134, Byte))
Me.lblOrderDate.ForeColor = System.Drawing.Color.Black
Me.lblOrderDate.Location = New System.Drawing.Point(19, 25)
Me.lblOrderDate.Name = "lblOrderDate"
Me.lblOrderDate.Size = New System.Drawing.Size(77, 16)
Me.lblOrderDate.TabIndex = 26
Me.lblOrderDate.Text = "采购时间:"
'
'lblSupplyName
'
Me.lblSupplyName.Font = New System.Drawing.Font("宋体", 10.5!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(134, Byte))
Me.lblSupplyName.ForeColor = System.Drawing.Color.Black
Me.lblSupplyName.Location = New System.Drawing.Point(388, 69)
Me.lblSupplyName.Name = "lblSupplyName"
Me.lblSupplyName.Size = New System.Drawing.Size(88, 16)
Me.lblSupplyName.TabIndex = 35
Me.lblSupplyName.Text = "供应商名称:"
'
'lblListMaker
'
Me.lblListMaker.Font = New System.Drawing.Font("宋体", 10.5!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(134, Byte))
Me.lblListMaker.ForeColor = System.Drawing.Color.Black
Me.lblListMaker.Location = New System.Drawing.Point(388, 25)
Me.lblListMaker.Name = "lblListMaker"
Me.lblListMaker.Size = New System.Drawing.Size(88, 16)
Me.lblListMaker.TabIndex = 28
Me.lblListMaker.Text = " 经 手 人: "
'
'grbPurList
'
Me.grbPurList.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Left) _
Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
Me.grbPurList.Controls.Add(Me.btnExt)
Me.grbPurList.Controls.Add(Me.txtPurMemo)
Me.grbPurList.Controls.Add(Me.btnDel)
Me.grbPurList.Controls.Add(Me.btnEdt)
Me.grbPurList.Controls.Add(Me.txtPrdPrc)
Me.grbPurList.Controls.Add(Me.txtPrdQua)
Me.grbPurList.Controls.Add(Me.txtPrdNam)
Me.grbPurList.Controls.Add(Me.txtPrdId)
Me.grbPurList.Controls.Add(Me.btnAdd)
Me.grbPurList.Controls.Add(Me.lblDepotId)
Me.grbPurList.Controls.Add(Me.lblGoodsPrice)
Me.grbPurList.Controls.Add(Me.lblGoodsCount)
Me.grbPurList.Controls.Add(Me.lblGoodName)
Me.grbPurList.Controls.Add(Me.lblGoodId)
Me.grbPurList.Controls.Add(Me.btnPrd)
Me.grbPurList.Controls.Add(Me.Label1)
Me.grbPurList.Font = New System.Drawing.Font("宋体", 10.5!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(134, Byte))
Me.grbPurList.ForeColor = System.Drawing.Color.Blue
Me.grbPurList.Location = New System.Drawing.Point(16, 384)
Me.grbPurList.Name = "grbPurList"
Me.grbPurList.Size = New System.Drawing.Size(746, 176)
Me.grbPurList.TabIndex = 70
Me.grbPurList.TabStop = False
Me.grbPurList.Text = "采购单明细信息"
'
'btnExt
'
Me.btnExt.Font = New System.Drawing.Font("宋体", 10.5!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(134, Byte))
Me.btnExt.ForeColor = System.Drawing.Color.Navy
Me.btnExt.Location = New System.Drawing.Point(687, 134)
Me.btnExt.Name = "btnExt"
Me.btnExt.Size = New System.Drawing.Size(64, 32)
Me.btnExt.TabIndex = 61
Me.btnExt.Text = "退 出"
'
'txtPurMemo
'
Me.txtPurMemo.Font = New System.Drawing.Font("宋体", 10.5!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(134, Byte))
Me.txtPurMemo.Location = New System.Drawing.Point(96, 93)
Me.txtPurMemo.Multiline = True
Me.txtPurMemo.Name = "txtPurMemo"
Me.txtPurMemo.Size = New System.Drawing.Size(580, 75)
Me.txtPurMemo.TabIndex = 60
Me.txtPurMemo.Text = ""
'
'btnDel
'
Me.btnDel.Font = New System.Drawing.Font("宋体", 10.5!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(134, Byte))
Me.btnDel.ForeColor = System.Drawing.Color.Navy
Me.btnDel.Location = New System.Drawing.Point(689, 96)
Me.btnDel.Name = "btnDel"
Me.btnDel.Size = New System.Drawing.Size(64, 32)
Me.btnDel.TabIndex = 59
Me.btnDel.Text = "删 除"
'
'btnEdt
'
Me.btnEdt.Font = New System.Drawing.Font("宋体", 10.5!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(134, Byte))
Me.btnEdt.ForeColor = System.Drawing.Color.Navy
Me.btnEdt.Location = New System.Drawing.Point(689, 58)
Me.btnEdt.Name = "btnEdt"
Me.btnEdt.Size = New System.Drawing.Size(64, 32)
Me.btnEdt.TabIndex = 58
Me.btnEdt.Text = "修 改"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -