📄 frmsal.vb
字号:
'Imports System.Data.SqlClient
Public Class frmSal
Inherits System.Windows.Forms.Form
' Dim dbObj As New SCMDB.SCMDB
Dim SalQua As Integer
Dim strSalListID As String
Dim salObj As New SCMAPP.Sal
' Dim selectCmd As String = "Select Sallistid as 销售单编号,prdid as 商品编号,Saldat as 销售日期,Salemp as 经手人, Salqua as 销售数量,Salprc as 销售价格,Salmemo as 销售说明 from Saleproduct"
#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 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 dgdSal As System.Windows.Forms.DataGrid
Friend WithEvents grbSal As System.Windows.Forms.GroupBox
Friend WithEvents grbSalList As System.Windows.Forms.GroupBox
Friend WithEvents dtpSalDat As System.Windows.Forms.DateTimePicker
Friend WithEvents txtSalEmp 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 txtSalMemo As System.Windows.Forms.TextBox
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(frmSal))
Me.dgdSal = New System.Windows.Forms.DataGrid
Me.grbSal = New System.Windows.Forms.GroupBox
Me.dtpSalDat = New System.Windows.Forms.DateTimePicker
Me.txtSalEmp = New System.Windows.Forms.TextBox
Me.lblOrderDate = New System.Windows.Forms.Label
Me.lblListMaker = New System.Windows.Forms.Label
Me.grbSalList = New System.Windows.Forms.GroupBox
Me.btnExt = New System.Windows.Forms.Button
Me.txtSalMemo = 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.dgdSal, System.ComponentModel.ISupportInitialize).BeginInit()
Me.grbSal.SuspendLayout()
Me.grbSalList.SuspendLayout()
Me.SuspendLayout()
'
'dgdSal
'
Me.dgdSal.AlternatingBackColor = System.Drawing.Color.GhostWhite
Me.dgdSal.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.dgdSal.BackColor = System.Drawing.Color.GhostWhite
Me.dgdSal.BackgroundColor = System.Drawing.Color.Lavender
Me.dgdSal.BorderStyle = System.Windows.Forms.BorderStyle.None
Me.dgdSal.CaptionBackColor = System.Drawing.Color.RoyalBlue
Me.dgdSal.CaptionForeColor = System.Drawing.Color.White
Me.dgdSal.CaptionVisible = False
Me.dgdSal.DataMember = ""
Me.dgdSal.FlatMode = True
Me.dgdSal.Font = New System.Drawing.Font("Tahoma", 8.0!)
Me.dgdSal.ForeColor = System.Drawing.Color.MidnightBlue
Me.dgdSal.GridLineColor = System.Drawing.Color.RoyalBlue
Me.dgdSal.HeaderBackColor = System.Drawing.Color.MidnightBlue
Me.dgdSal.HeaderFont = New System.Drawing.Font("Tahoma", 8.0!, System.Drawing.FontStyle.Bold)
Me.dgdSal.HeaderForeColor = System.Drawing.Color.Lavender
Me.dgdSal.LinkColor = System.Drawing.Color.Teal
Me.dgdSal.Location = New System.Drawing.Point(16, 8)
Me.dgdSal.Name = "dgdSal"
Me.dgdSal.ParentRowsBackColor = System.Drawing.Color.Lavender
Me.dgdSal.ParentRowsForeColor = System.Drawing.Color.MidnightBlue
Me.dgdSal.ReadOnly = True
Me.dgdSal.SelectionBackColor = System.Drawing.Color.Teal
Me.dgdSal.SelectionForeColor = System.Drawing.Color.PaleGreen
Me.dgdSal.Size = New System.Drawing.Size(748, 330)
Me.dgdSal.TabIndex = 71
'
'grbSal
'
Me.grbSal.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Left) _
Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
Me.grbSal.Controls.Add(Me.dtpSalDat)
Me.grbSal.Controls.Add(Me.txtSalEmp)
Me.grbSal.Controls.Add(Me.lblOrderDate)
Me.grbSal.Controls.Add(Me.lblListMaker)
Me.grbSal.Font = New System.Drawing.Font("宋体", 10.5!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(134, Byte))
Me.grbSal.ForeColor = System.Drawing.Color.Blue
Me.grbSal.Location = New System.Drawing.Point(32, 136)
Me.grbSal.Name = "grbSal"
Me.grbSal.Size = New System.Drawing.Size(746, 88)
Me.grbSal.TabIndex = 73
Me.grbSal.TabStop = False
Me.grbSal.Text = "销售单基本信息"
'
'dtpSalDat
'
Me.dtpSalDat.Location = New System.Drawing.Point(96, 24)
Me.dtpSalDat.MaxDate = New Date(2020, 12, 31, 0, 0, 0, 0)
Me.dtpSalDat.MinDate = New Date(1800, 1, 1, 0, 0, 0, 0)
Me.dtpSalDat.Name = "dtpSalDat"
Me.dtpSalDat.Size = New System.Drawing.Size(208, 23)
Me.dtpSalDat.TabIndex = 36
Me.dtpSalDat.Value = New Date(2005, 6, 13, 0, 0, 0, 0)
'
'txtSalEmp
'
Me.txtSalEmp.Font = New System.Drawing.Font("宋体", 10.5!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(134, Byte))
Me.txtSalEmp.ForeColor = System.Drawing.Color.Black
Me.txtSalEmp.Location = New System.Drawing.Point(476, 24)
Me.txtSalEmp.Name = "txtSalEmp"
Me.txtSalEmp.Size = New System.Drawing.Size(208, 23)
Me.txtSalEmp.TabIndex = 29
Me.txtSalEmp.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, 31)
Me.lblOrderDate.Name = "lblOrderDate"
Me.lblOrderDate.Size = New System.Drawing.Size(77, 16)
Me.lblOrderDate.TabIndex = 26
Me.lblOrderDate.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, 31)
Me.lblListMaker.Name = "lblListMaker"
Me.lblListMaker.Size = New System.Drawing.Size(88, 16)
Me.lblListMaker.TabIndex = 28
Me.lblListMaker.Text = " 经 手 人: "
'
'grbSalList
'
Me.grbSalList.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Left) _
Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
Me.grbSalList.Controls.Add(Me.btnExt)
Me.grbSalList.Controls.Add(Me.txtSalMemo)
Me.grbSalList.Controls.Add(Me.btnDel)
Me.grbSalList.Controls.Add(Me.btnEdt)
Me.grbSalList.Controls.Add(Me.txtPrdPrc)
Me.grbSalList.Controls.Add(Me.txtPrdQua)
Me.grbSalList.Controls.Add(Me.txtPrdNam)
Me.grbSalList.Controls.Add(Me.txtPrdId)
Me.grbSalList.Controls.Add(Me.btnAdd)
Me.grbSalList.Controls.Add(Me.lblDepotId)
Me.grbSalList.Controls.Add(Me.lblGoodsPrice)
Me.grbSalList.Controls.Add(Me.lblGoodsCount)
Me.grbSalList.Controls.Add(Me.lblGoodName)
Me.grbSalList.Controls.Add(Me.lblGoodId)
Me.grbSalList.Controls.Add(Me.btnPrd)
Me.grbSalList.Controls.Add(Me.Label1)
Me.grbSalList.Font = New System.Drawing.Font("宋体", 10.5!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(134, Byte))
Me.grbSalList.ForeColor = System.Drawing.Color.Blue
Me.grbSalList.Location = New System.Drawing.Point(24, 416)
Me.grbSalList.Name = "grbSalList"
Me.grbSalList.Size = New System.Drawing.Size(746, 200)
Me.grbSalList.TabIndex = 70
Me.grbSalList.TabStop = False
Me.grbSalList.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(688, 142)
Me.btnExt.Name = "btnExt"
Me.btnExt.Size = New System.Drawing.Size(64, 32)
Me.btnExt.TabIndex = 61
Me.btnExt.Text = "退 出"
'
'txtSalMemo
'
Me.txtSalMemo.Font = New System.Drawing.Font("宋体", 10.5!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(134, Byte))
Me.txtSalMemo.Location = New System.Drawing.Point(93, 93)
Me.txtSalMemo.Multiline = True
Me.txtSalMemo.Name = "txtSalMemo"
Me.txtSalMemo.Size = New System.Drawing.Size(580, 75)
Me.txtSalMemo.TabIndex = 60
Me.txtSalMemo.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(688, 100)
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(688, 58)
Me.btnEdt.Name = "btnEdt"
Me.btnEdt.Size = New System.Drawing.Size(64, 32)
Me.btnEdt.TabIndex = 58
Me.btnEdt.Text = "修 改"
'
'txtPrdPrc
'
Me.txtPrdPrc.Font = New System.Drawing.Font("宋体", 10.5!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(134, Byte))
Me.txtPrdPrc.ForeColor = System.Drawing.Color.Black
Me.txtPrdPrc.Location = New System.Drawing.Point(469, 54)
Me.txtPrdPrc.Name = "txtPrdPrc"
Me.txtPrdPrc.Size = New System.Drawing.Size(180, 23)
Me.txtPrdPrc.TabIndex = 54
Me.txtPrdPrc.Text = ""
'
'txtPrdQua
'
Me.txtPrdQua.Font = New System.Drawing.Font("宋体", 10.5!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(134, Byte))
Me.txtPrdQua.ForeColor = System.Drawing.Color.Black
Me.txtPrdQua.Location = New System.Drawing.Point(93, 54)
Me.txtPrdQua.Name = "txtPrdQua"
Me.txtPrdQua.Size = New System.Drawing.Size(202, 23)
Me.txtPrdQua.TabIndex = 52
Me.txtPrdQua.Text = ""
'
'txtPrdNam
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -