📄 frmdam.vb
字号:
Imports System.Data.SqlClient
Public Class frmDam
Inherits System.Windows.Forms.Form
Dim DamQua As Integer
Dim strDamListID As String
Dim DamObj As New SCMAPP.Dam
#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 lblDepotId As System.Windows.Forms.Label
Friend WithEvents lblGoodsCount As System.Windows.Forms.Label
Friend WithEvents lblGoodName As System.Windows.Forms.Label
Friend WithEvents lblGoodId As System.Windows.Forms.Label
Friend WithEvents dgdDam As System.Windows.Forms.DataGrid
Friend WithEvents grbDamList As System.Windows.Forms.GroupBox
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 txtDamMemo As System.Windows.Forms.TextBox
Friend WithEvents btnPrd As System.Windows.Forms.Button
Friend WithEvents dtpDamDat As System.Windows.Forms.DateTimePicker
Friend WithEvents txtDamEmp As System.Windows.Forms.TextBox
Friend WithEvents btnDel As System.Windows.Forms.Button
Friend WithEvents btnAdd As System.Windows.Forms.Button
Friend WithEvents btnExt As System.Windows.Forms.Button
Friend WithEvents btnEdt As System.Windows.Forms.Button
Friend WithEvents lblListMaker As System.Windows.Forms.Label
Friend WithEvents lblOrderDate As System.Windows.Forms.Label
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
Me.dgdDam = New System.Windows.Forms.DataGrid
Me.grbDamList = New System.Windows.Forms.GroupBox
Me.txtDamMemo = 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.lblDepotId = 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.dtpDamDat = New System.Windows.Forms.DateTimePicker
Me.txtDamEmp = New System.Windows.Forms.TextBox
Me.lblListMaker = New System.Windows.Forms.Label
Me.lblOrderDate = New System.Windows.Forms.Label
Me.btnDel = New System.Windows.Forms.Button
Me.btnEdt = New System.Windows.Forms.Button
Me.btnAdd = New System.Windows.Forms.Button
Me.btnExt = New System.Windows.Forms.Button
CType(Me.dgdDam, System.ComponentModel.ISupportInitialize).BeginInit()
Me.grbDamList.SuspendLayout()
Me.SuspendLayout()
'
'dgdDam
'
Me.dgdDam.AlternatingBackColor = System.Drawing.Color.GhostWhite
Me.dgdDam.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.dgdDam.BackColor = System.Drawing.Color.GhostWhite
Me.dgdDam.BackgroundColor = System.Drawing.Color.Lavender
Me.dgdDam.BorderStyle = System.Windows.Forms.BorderStyle.None
Me.dgdDam.CaptionBackColor = System.Drawing.Color.RoyalBlue
Me.dgdDam.CaptionForeColor = System.Drawing.Color.White
Me.dgdDam.CaptionVisible = False
Me.dgdDam.DataMember = ""
Me.dgdDam.FlatMode = True
Me.dgdDam.Font = New System.Drawing.Font("Tahoma", 8.0!)
Me.dgdDam.ForeColor = System.Drawing.Color.MidnightBlue
Me.dgdDam.GridLineColor = System.Drawing.Color.RoyalBlue
Me.dgdDam.HeaderBackColor = System.Drawing.Color.MidnightBlue
Me.dgdDam.HeaderFont = New System.Drawing.Font("Tahoma", 8.0!, System.Drawing.FontStyle.Bold)
Me.dgdDam.HeaderForeColor = System.Drawing.Color.Lavender
Me.dgdDam.LinkColor = System.Drawing.Color.Teal
Me.dgdDam.Location = New System.Drawing.Point(6, 6)
Me.dgdDam.Name = "dgdDam"
Me.dgdDam.ParentRowsBackColor = System.Drawing.Color.Lavender
Me.dgdDam.ParentRowsForeColor = System.Drawing.Color.MidnightBlue
Me.dgdDam.ReadOnly = True
Me.dgdDam.SelectionBackColor = System.Drawing.Color.Teal
Me.dgdDam.SelectionForeColor = System.Drawing.Color.PaleGreen
Me.dgdDam.Size = New System.Drawing.Size(794, 144)
Me.dgdDam.TabIndex = 71
'
'grbDamList
'
Me.grbDamList.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Left) _
Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
Me.grbDamList.Controls.Add(Me.txtDamMemo)
Me.grbDamList.Controls.Add(Me.txtPrdQua)
Me.grbDamList.Controls.Add(Me.txtPrdNam)
Me.grbDamList.Controls.Add(Me.txtPrdId)
Me.grbDamList.Controls.Add(Me.lblDepotId)
Me.grbDamList.Controls.Add(Me.lblGoodsCount)
Me.grbDamList.Controls.Add(Me.lblGoodName)
Me.grbDamList.Controls.Add(Me.lblGoodId)
Me.grbDamList.Controls.Add(Me.btnPrd)
Me.grbDamList.Controls.Add(Me.dtpDamDat)
Me.grbDamList.Controls.Add(Me.txtDamEmp)
Me.grbDamList.Controls.Add(Me.lblListMaker)
Me.grbDamList.Controls.Add(Me.lblOrderDate)
Me.grbDamList.Font = New System.Drawing.Font("宋体", 10.5!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(134, Byte))
Me.grbDamList.ForeColor = System.Drawing.Color.Blue
Me.grbDamList.Location = New System.Drawing.Point(32, 168)
Me.grbDamList.Name = "grbDamList"
Me.grbDamList.Size = New System.Drawing.Size(746, 232)
Me.grbDamList.TabIndex = 70
Me.grbDamList.TabStop = False
Me.grbDamList.Text = "报损单明细信息"
'
'txtDamMemo
'
Me.txtDamMemo.Font = New System.Drawing.Font("宋体", 10.5!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(134, Byte))
Me.txtDamMemo.Location = New System.Drawing.Point(99, 136)
Me.txtDamMemo.Multiline = True
Me.txtDamMemo.Name = "txtDamMemo"
Me.txtDamMemo.Size = New System.Drawing.Size(608, 88)
Me.txtDamMemo.TabIndex = 60
Me.txtDamMemo.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(103, 54)
Me.txtPrdQua.Name = "txtPrdQua"
Me.txtPrdQua.Size = New System.Drawing.Size(202, 23)
Me.txtPrdQua.TabIndex = 52
Me.txtPrdQua.Text = ""
'
'txtPrdNam
'
Me.txtPrdNam.Font = New System.Drawing.Font("宋体", 10.5!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(134, Byte))
Me.txtPrdNam.ForeColor = System.Drawing.Color.Black
Me.txtPrdNam.Location = New System.Drawing.Point(500, 19)
Me.txtPrdNam.Name = "txtPrdNam"
Me.txtPrdNam.ReadOnly = True
Me.txtPrdNam.Size = New System.Drawing.Size(204, 23)
Me.txtPrdNam.TabIndex = 46
Me.txtPrdNam.Text = ""
'
'txtPrdId
'
Me.txtPrdId.Font = New System.Drawing.Font("宋体", 10.5!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(134, Byte))
Me.txtPrdId.ForeColor = System.Drawing.Color.Black
Me.txtPrdId.Location = New System.Drawing.Point(103, 19)
Me.txtPrdId.Name = "txtPrdId"
Me.txtPrdId.ReadOnly = True
Me.txtPrdId.Size = New System.Drawing.Size(172, 23)
Me.txtPrdId.TabIndex = 44
Me.txtPrdId.Text = ""
'
'lblDepotId
'
Me.lblDepotId.Font = New System.Drawing.Font("宋体", 10.5!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(134, Byte))
Me.lblDepotId.ForeColor = System.Drawing.Color.Black
Me.lblDepotId.Location = New System.Drawing.Point(35, 139)
Me.lblDepotId.Name = "lblDepotId"
Me.lblDepotId.Size = New System.Drawing.Size(56, 40)
Me.lblDepotId.TabIndex = 56
Me.lblDepotId.Text = "报损原因说明:"
'
'lblGoodsCount
'
Me.lblGoodsCount.Font = New System.Drawing.Font("宋体", 10.5!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(134, Byte))
Me.lblGoodsCount.ForeColor = System.Drawing.Color.Black
Me.lblGoodsCount.Location = New System.Drawing.Point(27, 61)
Me.lblGoodsCount.Name = "lblGoodsCount"
Me.lblGoodsCount.Size = New System.Drawing.Size(74, 16)
Me.lblGoodsCount.TabIndex = 51
Me.lblGoodsCount.Text = "报损数量:"
'
'lblGoodName
'
Me.lblGoodName.Font = New System.Drawing.Font("宋体", 10.5!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(134, Byte))
Me.lblGoodName.ForeColor = System.Drawing.Color.Black
Me.lblGoodName.Location = New System.Drawing.Point(419, 26)
Me.lblGoodName.Name = "lblGoodName"
Me.lblGoodName.Size = New System.Drawing.Size(72, 16)
Me.lblGoodName.TabIndex = 45
Me.lblGoodName.Text = "商品名称:"
'
'lblGoodId
'
Me.lblGoodId.Font = New System.Drawing.Font("宋体", 10.5!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(134, Byte))
Me.lblGoodId.ForeColor = System.Drawing.Color.Black
Me.lblGoodId.Location = New System.Drawing.Point(27, 26)
Me.lblGoodId.Name = "lblGoodId"
Me.lblGoodId.Size = New System.Drawing.Size(74, 16)
Me.lblGoodId.TabIndex = 43
Me.lblGoodId.Text = "商品编号:"
'
'btnPrd
'
Me.btnPrd.Font = New System.Drawing.Font("宋体", 12.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(134, Byte))
Me.btnPrd.ForeColor = System.Drawing.Color.DarkGreen
Me.btnPrd.Location = New System.Drawing.Point(282, 19)
Me.btnPrd.Name = "btnPrd"
Me.btnPrd.Size = New System.Drawing.Size(24, 24)
Me.btnPrd.TabIndex = 38
Me.btnPrd.Text = "…"
'
'dtpDamDat
'
Me.dtpDamDat.CalendarFont = New System.Drawing.Font("宋体", 10.5!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(134, Byte))
Me.dtpDamDat.Font = New System.Drawing.Font("宋体", 10.5!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(134, Byte))
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -