frmMdth.vb
上传用户:wj57717022
上传日期:2014-12-16
资源大小:4093k
文件大小:46k
- Imports localJxc.jxcmanage
- Public Class frmMdth
- 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 StatusBar1 As System.Windows.Forms.StatusBar
- Friend WithEvents tbnSave As System.Windows.Forms.ToolBarButton
- Friend WithEvents tbnPrint As System.Windows.Forms.ToolBarButton
- Friend WithEvents tbnExit As System.Windows.Forms.ToolBarButton
- Friend WithEvents ErrorProvider1 As System.Windows.Forms.ErrorProvider
- Friend WithEvents GroupBox1 As System.Windows.Forms.GroupBox
- Friend WithEvents txtThDate As System.Windows.Forms.DateTimePicker
- Friend WithEvents txtYwy As System.Windows.Forms.ComboBox
- Friend WithEvents txtShy As System.Windows.Forms.ComboBox
- Friend WithEvents txtPsCenter As System.Windows.Forms.ComboBox
- Friend WithEvents txtSum As System.Windows.Forms.TextBox
- Friend WithEvents Label8 As System.Windows.Forms.Label
- Friend WithEvents Label7 As System.Windows.Forms.Label
- Friend WithEvents Label5 As System.Windows.Forms.Label
- Friend WithEvents Label4 As System.Windows.Forms.Label
- Friend WithEvents Label3 As System.Windows.Forms.Label
- Friend WithEvents Label2 As System.Windows.Forms.Label
- Friend WithEvents Label1 As System.Windows.Forms.Label
- Friend WithEvents txtBillNumber As System.Windows.Forms.TextBox
- Friend WithEvents GroupBox2 As System.Windows.Forms.GroupBox
- Friend WithEvents Label6 As System.Windows.Forms.Label
- Friend WithEvents Label16 As System.Windows.Forms.Label
- Friend WithEvents Label12 As System.Windows.Forms.Label
- Friend WithEvents txtProduct As System.Windows.Forms.TextBox
- Friend WithEvents txtAvaid As System.Windows.Forms.TextBox
- Friend WithEvents txtBatch As System.Windows.Forms.TextBox
- Friend WithEvents txtMoney As System.Windows.Forms.TextBox
- Friend WithEvents txtPrice As System.Windows.Forms.TextBox
- Friend WithEvents txtCount As System.Windows.Forms.TextBox
- Friend WithEvents txtMedRule As System.Windows.Forms.TextBox
- Friend WithEvents txtmedName As System.Windows.Forms.TextBox
- Friend WithEvents txtMedNumber As System.Windows.Forms.TextBox
- Friend WithEvents Label19 As System.Windows.Forms.Label
- Friend WithEvents Label18 As System.Windows.Forms.Label
- Friend WithEvents Label17 As System.Windows.Forms.Label
- Friend WithEvents Label15 As System.Windows.Forms.Label
- Friend WithEvents Label14 As System.Windows.Forms.Label
- Friend WithEvents Label13 As System.Windows.Forms.Label
- Friend WithEvents Label11 As System.Windows.Forms.Label
- Friend WithEvents Label10 As System.Windows.Forms.Label
- Friend WithEvents Label9 As System.Windows.Forms.Label
- Friend WithEvents txtno As System.Windows.Forms.TextBox
- Friend WithEvents Panel1 As System.Windows.Forms.Panel
- Friend WithEvents dgView As System.Windows.Forms.DataGrid
- Friend WithEvents txtUnit As System.Windows.Forms.TextBox
- Friend WithEvents txtpackage As System.Windows.Forms.TextBox
- Friend WithEvents tbnth As System.Windows.Forms.ToolBar
- Friend WithEvents tbnAdd As System.Windows.Forms.ToolBarButton
- Friend WithEvents txtPsMedName As System.Windows.Forms.ComboBox
- Friend WithEvents ImageList2 As System.Windows.Forms.ImageList
- Friend WithEvents Label20 As System.Windows.Forms.Label
- Friend WithEvents txthw As System.Windows.Forms.ComboBox
- <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
- Me.components = New System.ComponentModel.Container
- Dim resources As System.Resources.ResourceManager = New System.Resources.ResourceManager(GetType(frmMdth))
- Me.tbnth = New System.Windows.Forms.ToolBar
- Me.tbnAdd = New System.Windows.Forms.ToolBarButton
- Me.tbnSave = New System.Windows.Forms.ToolBarButton
- Me.tbnPrint = New System.Windows.Forms.ToolBarButton
- Me.tbnExit = New System.Windows.Forms.ToolBarButton
- Me.ImageList2 = New System.Windows.Forms.ImageList(Me.components)
- Me.StatusBar1 = New System.Windows.Forms.StatusBar
- Me.ErrorProvider1 = New System.Windows.Forms.ErrorProvider
- Me.GroupBox1 = New System.Windows.Forms.GroupBox
- Me.txthw = New System.Windows.Forms.ComboBox
- Me.Label20 = New System.Windows.Forms.Label
- Me.txtPsMedName = New System.Windows.Forms.ComboBox
- Me.txtThDate = New System.Windows.Forms.DateTimePicker
- Me.txtYwy = New System.Windows.Forms.ComboBox
- Me.txtShy = New System.Windows.Forms.ComboBox
- Me.txtPsCenter = New System.Windows.Forms.ComboBox
- Me.txtSum = New System.Windows.Forms.TextBox
- Me.Label8 = New System.Windows.Forms.Label
- Me.Label7 = New System.Windows.Forms.Label
- Me.Label5 = New System.Windows.Forms.Label
- Me.Label4 = New System.Windows.Forms.Label
- Me.Label3 = New System.Windows.Forms.Label
- Me.Label2 = New System.Windows.Forms.Label
- Me.Label1 = New System.Windows.Forms.Label
- Me.txtBillNumber = New System.Windows.Forms.TextBox
- Me.GroupBox2 = New System.Windows.Forms.GroupBox
- Me.txtpackage = New System.Windows.Forms.TextBox
- Me.txtUnit = New System.Windows.Forms.TextBox
- Me.txtno = New System.Windows.Forms.TextBox
- Me.Label6 = New System.Windows.Forms.Label
- Me.Label16 = New System.Windows.Forms.Label
- Me.Label12 = New System.Windows.Forms.Label
- Me.txtProduct = New System.Windows.Forms.TextBox
- Me.txtAvaid = New System.Windows.Forms.TextBox
- Me.txtBatch = New System.Windows.Forms.TextBox
- Me.txtMoney = New System.Windows.Forms.TextBox
- Me.txtPrice = New System.Windows.Forms.TextBox
- Me.txtCount = New System.Windows.Forms.TextBox
- Me.txtMedRule = New System.Windows.Forms.TextBox
- Me.txtmedName = New System.Windows.Forms.TextBox
- Me.txtMedNumber = New System.Windows.Forms.TextBox
- Me.Label19 = New System.Windows.Forms.Label
- Me.Label18 = New System.Windows.Forms.Label
- Me.Label17 = New System.Windows.Forms.Label
- Me.Label15 = New System.Windows.Forms.Label
- Me.Label14 = New System.Windows.Forms.Label
- Me.Label13 = New System.Windows.Forms.Label
- Me.Label11 = New System.Windows.Forms.Label
- Me.Label10 = New System.Windows.Forms.Label
- Me.Label9 = New System.Windows.Forms.Label
- Me.Panel1 = New System.Windows.Forms.Panel
- Me.dgView = New System.Windows.Forms.DataGrid
- Me.GroupBox1.SuspendLayout()
- Me.GroupBox2.SuspendLayout()
- Me.Panel1.SuspendLayout()
- CType(Me.dgView, System.ComponentModel.ISupportInitialize).BeginInit()
- Me.SuspendLayout()
- '
- 'tbnth
- '
- Me.tbnth.Appearance = System.Windows.Forms.ToolBarAppearance.Flat
- Me.tbnth.Buttons.AddRange(New System.Windows.Forms.ToolBarButton() {Me.tbnAdd, Me.tbnSave, Me.tbnPrint, Me.tbnExit})
- Me.tbnth.DropDownArrows = True
- Me.tbnth.ImageList = Me.ImageList2
- Me.tbnth.Location = New System.Drawing.Point(0, 0)
- Me.tbnth.Name = "tbnth"
- Me.tbnth.ShowToolTips = True
- Me.tbnth.Size = New System.Drawing.Size(586, 41)
- Me.tbnth.TabIndex = 8
- '
- 'tbnAdd
- '
- Me.tbnAdd.ImageIndex = 7
- Me.tbnAdd.Text = "添加"
- '
- 'tbnSave
- '
- Me.tbnSave.ImageIndex = 4
- Me.tbnSave.Text = "保存"
- '
- 'tbnPrint
- '
- Me.tbnPrint.ImageIndex = 12
- Me.tbnPrint.Text = "打印"
- '
- 'tbnExit
- '
- Me.tbnExit.ImageIndex = 11
- Me.tbnExit.Text = "退出"
- '
- 'ImageList2
- '
- Me.ImageList2.ImageSize = New System.Drawing.Size(16, 16)
- Me.ImageList2.ImageStream = CType(resources.GetObject("ImageList2.ImageStream"), System.Windows.Forms.ImageListStreamer)
- Me.ImageList2.TransparentColor = System.Drawing.Color.Transparent
- '
- 'StatusBar1
- '
- Me.StatusBar1.Location = New System.Drawing.Point(0, 452)
- Me.StatusBar1.Name = "StatusBar1"
- Me.StatusBar1.Size = New System.Drawing.Size(586, 18)
- Me.StatusBar1.TabIndex = 9
- Me.StatusBar1.Text = "StatusBar1"
- '
- 'ErrorProvider1
- '
- Me.ErrorProvider1.ContainerControl = Me
- '
- 'GroupBox1
- '
- Me.GroupBox1.Controls.Add(Me.txthw)
- Me.GroupBox1.Controls.Add(Me.Label20)
- Me.GroupBox1.Controls.Add(Me.txtPsMedName)
- Me.GroupBox1.Controls.Add(Me.txtThDate)
- Me.GroupBox1.Controls.Add(Me.txtYwy)
- Me.GroupBox1.Controls.Add(Me.txtShy)
- Me.GroupBox1.Controls.Add(Me.txtPsCenter)
- Me.GroupBox1.Controls.Add(Me.txtSum)
- Me.GroupBox1.Controls.Add(Me.Label8)
- Me.GroupBox1.Controls.Add(Me.Label7)
- Me.GroupBox1.Controls.Add(Me.Label5)
- Me.GroupBox1.Controls.Add(Me.Label4)
- Me.GroupBox1.Controls.Add(Me.Label3)
- Me.GroupBox1.Controls.Add(Me.Label2)
- Me.GroupBox1.Controls.Add(Me.Label1)
- Me.GroupBox1.Controls.Add(Me.txtBillNumber)
- Me.GroupBox1.Dock = System.Windows.Forms.DockStyle.Top
- Me.GroupBox1.Location = New System.Drawing.Point(0, 41)
- Me.GroupBox1.Name = "GroupBox1"
- Me.GroupBox1.Size = New System.Drawing.Size(586, 95)
- Me.GroupBox1.TabIndex = 10
- Me.GroupBox1.TabStop = False
- Me.GroupBox1.Text = "门店退货信息"
- '
- 'txthw
- '
- Me.txthw.Location = New System.Drawing.Point(402, 56)
- Me.txthw.Name = "txthw"
- Me.txthw.Size = New System.Drawing.Size(60, 20)
- Me.txthw.TabIndex = 71
- '
- 'Label20
- '
- Me.Label20.AutoSize = True
- Me.Label20.Location = New System.Drawing.Point(372, 62)
- Me.Label20.Name = "Label20"
- Me.Label20.Size = New System.Drawing.Size(35, 17)
- Me.Label20.TabIndex = 70
- Me.Label20.Text = "货位:"
- '
- 'txtPsMedName
- '
- Me.txtPsMedName.Location = New System.Drawing.Point(60, 56)
- Me.txtPsMedName.Name = "txtPsMedName"
- Me.txtPsMedName.Size = New System.Drawing.Size(114, 20)
- Me.txtPsMedName.TabIndex = 69
- '
- 'txtThDate
- '
- Me.txtThDate.Location = New System.Drawing.Point(246, 25)
- Me.txtThDate.Name = "txtThDate"
- Me.txtThDate.Size = New System.Drawing.Size(102, 21)
- Me.txtThDate.TabIndex = 67
- Me.txtThDate.Value = New Date(2006, 4, 15, 0, 0, 0, 0)
- '
- 'txtYwy
- '
- Me.txtYwy.Location = New System.Drawing.Point(522, 24)
- Me.txtYwy.Name = "txtYwy"
- Me.txtYwy.Size = New System.Drawing.Size(54, 20)
- Me.txtYwy.TabIndex = 66
- '
- 'txtShy
- '
- Me.txtShy.Location = New System.Drawing.Point(402, 25)
- Me.txtShy.Name = "txtShy"
- Me.txtShy.Size = New System.Drawing.Size(60, 20)
- Me.txtShy.TabIndex = 65
- '
- 'txtPsCenter
- '
- Me.txtPsCenter.Location = New System.Drawing.Point(246, 56)
- Me.txtPsCenter.Name = "txtPsCenter"
- Me.txtPsCenter.Size = New System.Drawing.Size(102, 20)
- Me.txtPsCenter.TabIndex = 64
- '
- 'txtSum
- '
- Me.txtSum.Location = New System.Drawing.Point(522, 56)
- Me.txtSum.Name = "txtSum"
- Me.txtSum.ReadOnly = True
- Me.txtSum.Size = New System.Drawing.Size(54, 21)
- Me.txtSum.TabIndex = 63
- Me.txtSum.Text = ""
- '
- 'Label8
- '
- Me.Label8.AutoSize = True
- Me.Label8.Location = New System.Drawing.Point(468, 62)
- Me.Label8.Name = "Label8"
- Me.Label8.Size = New System.Drawing.Size(66, 17)
- Me.Label8.TabIndex = 62
- Me.Label8.Text = "合计金额:"
- '
- 'Label7
- '
- Me.Label7.AutoSize = True
- Me.Label7.Location = New System.Drawing.Point(480, 32)
- Me.Label7.Name = "Label7"
- Me.Label7.Size = New System.Drawing.Size(54, 17)
- Me.Label7.TabIndex = 61
- Me.Label7.Text = "业务员:"
- '
- 'Label5
- '
- Me.Label5.AutoSize = True
- Me.Label5.Location = New System.Drawing.Point(192, 64)
- Me.Label5.Name = "Label5"
- Me.Label5.Size = New System.Drawing.Size(66, 17)
- Me.Label5.TabIndex = 60
- Me.Label5.Text = "配送中心:"
- '
- 'Label4
- '
- Me.Label4.AutoSize = True
- Me.Label4.Location = New System.Drawing.Point(8, 64)
- Me.Label4.Name = "Label4"
- Me.Label4.Size = New System.Drawing.Size(66, 17)
- Me.Label4.TabIndex = 59
- Me.Label4.Text = "配送对象:"
- '
- 'Label3
- '
- Me.Label3.AutoSize = True
- Me.Label3.Location = New System.Drawing.Point(360, 31)
- Me.Label3.Name = "Label3"
- Me.Label3.Size = New System.Drawing.Size(54, 17)
- Me.Label3.TabIndex = 58
- Me.Label3.Text = "审核员:"
- '
- 'Label2
- '
- Me.Label2.AutoSize = True
- Me.Label2.Location = New System.Drawing.Point(192, 32)
- Me.Label2.Name = "Label2"
- Me.Label2.Size = New System.Drawing.Size(66, 17)
- Me.Label2.TabIndex = 57
- Me.Label2.Text = "退货日期:"
- '
- 'Label1
- '
- Me.Label1.Location = New System.Drawing.Point(8, 32)
- Me.Label1.Name = "Label1"
- Me.Label1.Size = New System.Drawing.Size(32, 17)
- Me.Label1.TabIndex = 56
- Me.Label1.Text = "票号:"
- '
- 'txtBillNumber
- '
- Me.txtBillNumber.Location = New System.Drawing.Point(48, 24)
- Me.txtBillNumber.Name = "txtBillNumber"
- Me.txtBillNumber.ReadOnly = True
- Me.txtBillNumber.Size = New System.Drawing.Size(126, 21)
- Me.txtBillNumber.TabIndex = 54
- Me.txtBillNumber.Text = ""
- '
- 'GroupBox2
- '
- Me.GroupBox2.Controls.Add(Me.txtpackage)
- Me.GroupBox2.Controls.Add(Me.txtUnit)
- Me.GroupBox2.Controls.Add(Me.txtno)
- Me.GroupBox2.Controls.Add(Me.Label6)
- Me.GroupBox2.Controls.Add(Me.Label16)
- Me.GroupBox2.Controls.Add(Me.Label12)
- Me.GroupBox2.Controls.Add(Me.txtProduct)
- Me.GroupBox2.Controls.Add(Me.txtAvaid)
- Me.GroupBox2.Controls.Add(Me.txtBatch)
- Me.GroupBox2.Controls.Add(Me.txtMoney)
- Me.GroupBox2.Controls.Add(Me.txtPrice)
- Me.GroupBox2.Controls.Add(Me.txtCount)
- Me.GroupBox2.Controls.Add(Me.txtMedRule)
- Me.GroupBox2.Controls.Add(Me.txtmedName)
- Me.GroupBox2.Controls.Add(Me.txtMedNumber)
- Me.GroupBox2.Controls.Add(Me.Label19)
- Me.GroupBox2.Controls.Add(Me.Label18)
- Me.GroupBox2.Controls.Add(Me.Label17)
- Me.GroupBox2.Controls.Add(Me.Label15)
- Me.GroupBox2.Controls.Add(Me.Label14)
- Me.GroupBox2.Controls.Add(Me.Label13)
- Me.GroupBox2.Controls.Add(Me.Label11)
- Me.GroupBox2.Controls.Add(Me.Label10)
- Me.GroupBox2.Controls.Add(Me.Label9)
- Me.GroupBox2.Dock = System.Windows.Forms.DockStyle.Top
- Me.GroupBox2.Location = New System.Drawing.Point(0, 136)
- Me.GroupBox2.Name = "GroupBox2"
- Me.GroupBox2.Size = New System.Drawing.Size(586, 112)
- Me.GroupBox2.TabIndex = 11
- Me.GroupBox2.TabStop = False
- Me.GroupBox2.Text = "药品信息"
- '
- 'txtpackage
- '
- Me.txtpackage.Location = New System.Drawing.Point(480, 81)
- Me.txtpackage.Name = "txtpackage"
- Me.txtpackage.ReadOnly = True
- Me.txtpackage.Size = New System.Drawing.Size(65, 21)
- Me.txtpackage.TabIndex = 120
- Me.txtpackage.Text = ""
- '
- 'txtUnit
- '
- Me.txtUnit.Location = New System.Drawing.Point(480, 50)
- Me.txtUnit.Name = "txtUnit"
- Me.txtUnit.ReadOnly = True
- Me.txtUnit.Size = New System.Drawing.Size(65, 21)
- Me.txtUnit.TabIndex = 119
- Me.txtUnit.Text = ""
- '
- 'txtno
- '
- Me.txtno.Location = New System.Drawing.Point(60, 48)
- Me.txtno.Name = "txtno"
- Me.txtno.ReadOnly = True
- Me.txtno.Size = New System.Drawing.Size(24, 21)
- Me.txtno.TabIndex = 118
- Me.txtno.Text = ""
- '
- 'Label6
- '
- Me.Label6.AutoSize = True
- Me.Label6.Location = New System.Drawing.Point(32, 56)
- Me.Label6.Name = "Label6"
- Me.Label6.Size = New System.Drawing.Size(42, 17)
- Me.Label6.TabIndex = 117
- Me.Label6.Text = "序号:"
- '
- 'Label16
- '
- Me.Label16.AutoSize = True
- Me.Label16.Location = New System.Drawing.Point(450, 87)
- Me.Label16.Name = "Label16"
- Me.Label16.Size = New System.Drawing.Size(42, 17)
- Me.Label16.TabIndex = 115
- Me.Label16.Text = "包装:"
- '
- 'Label12
- '
- Me.Label12.AutoSize = True
- Me.Label12.Location = New System.Drawing.Point(450, 56)
- Me.Label12.Name = "Label12"
- Me.Label12.Size = New System.Drawing.Size(42, 17)
- Me.Label12.TabIndex = 114
- Me.Label12.Text = "单位:"
- '
- 'txtProduct
- '
- Me.txtProduct.Location = New System.Drawing.Point(246, 80)
- Me.txtProduct.Name = "txtProduct"
- Me.txtProduct.ReadOnly = True
- Me.txtProduct.Size = New System.Drawing.Size(72, 21)
- Me.txtProduct.TabIndex = 113
- Me.txtProduct.Text = ""
- '
- 'txtAvaid
- '
- Me.txtAvaid.Location = New System.Drawing.Point(366, 80)
- Me.txtAvaid.Name = "txtAvaid"
- Me.txtAvaid.ReadOnly = True
- Me.txtAvaid.Size = New System.Drawing.Size(66, 21)
- Me.txtAvaid.TabIndex = 112
- Me.txtAvaid.Text = ""
- '
- 'txtBatch
- '
- Me.txtBatch.Location = New System.Drawing.Point(60, 80)
- Me.txtBatch.Name = "txtBatch"
- Me.txtBatch.ReadOnly = True
- Me.txtBatch.Size = New System.Drawing.Size(108, 21)
- Me.txtBatch.TabIndex = 111
- Me.txtBatch.Text = ""
- '
- 'txtMoney
- '
- Me.txtMoney.Location = New System.Drawing.Point(366, 50)
- Me.txtMoney.Name = "txtMoney"
- Me.txtMoney.ReadOnly = True
- Me.txtMoney.Size = New System.Drawing.Size(66, 21)
- Me.txtMoney.TabIndex = 109
- Me.txtMoney.Text = "0.00"
- '
- 'txtPrice
- '
- Me.txtPrice.Location = New System.Drawing.Point(246, 48)
- Me.txtPrice.Name = "txtPrice"
- Me.txtPrice.Size = New System.Drawing.Size(72, 21)
- Me.txtPrice.TabIndex = 108
- Me.txtPrice.Text = "0.00"
- '
- 'txtCount
- '
- Me.txtCount.Location = New System.Drawing.Point(126, 48)
- Me.txtCount.Name = "txtCount"
- Me.txtCount.Size = New System.Drawing.Size(42, 21)
- Me.txtCount.TabIndex = 107
- Me.txtCount.Text = ""
- '
- 'txtMedRule
- '
- Me.txtMedRule.Location = New System.Drawing.Point(426, 19)
- Me.txtMedRule.Name = "txtMedRule"
- Me.txtMedRule.ReadOnly = True
- Me.txtMedRule.Size = New System.Drawing.Size(120, 21)
- Me.txtMedRule.TabIndex = 105
- Me.txtMedRule.Text = ""
- '
- 'txtmedName
- '
- Me.txtmedName.Location = New System.Drawing.Point(246, 16)
- Me.txtmedName.Name = "txtmedName"
- Me.txtmedName.ReadOnly = True
- Me.txtmedName.Size = New System.Drawing.Size(114, 21)
- Me.txtmedName.TabIndex = 104
- Me.txtmedName.Text = ""
- '
- 'txtMedNumber
- '
- Me.txtMedNumber.Location = New System.Drawing.Point(60, 16)
- Me.txtMedNumber.Name = "txtMedNumber"
- Me.txtMedNumber.Size = New System.Drawing.Size(108, 21)
- Me.txtMedNumber.TabIndex = 103
- Me.txtMedNumber.Text = ""
- '
- 'Label19
- '
- Me.Label19.AutoSize = True
- Me.Label19.Location = New System.Drawing.Point(216, 88)
- Me.Label19.Name = "Label19"
- Me.Label19.Size = New System.Drawing.Size(42, 17)
- Me.Label19.TabIndex = 102
- Me.Label19.Text = "产地:"
- '
- 'Label18
- '
- Me.Label18.AutoSize = True
- Me.Label18.Location = New System.Drawing.Point(324, 87)
- Me.Label18.Name = "Label18"
- Me.Label18.Size = New System.Drawing.Size(54, 17)
- Me.Label18.TabIndex = 101
- Me.Label18.Text = "有效期:"
- '
- 'Label17
- '
- Me.Label17.AutoSize = True
- Me.Label17.Location = New System.Drawing.Point(32, 88)
- Me.Label17.Name = "Label17"
- Me.Label17.Size = New System.Drawing.Size(42, 17)
- Me.Label17.TabIndex = 100
- Me.Label17.Text = "批号:"
- '
- 'Label15
- '
- Me.Label15.AutoSize = True
- Me.Label15.ForeColor = System.Drawing.Color.Red
- Me.Label15.Location = New System.Drawing.Point(336, 56)
- Me.Label15.Name = "Label15"
- Me.Label15.Size = New System.Drawing.Size(42, 17)
- Me.Label15.TabIndex = 99
- Me.Label15.Text = "金额:"
- '
- 'Label14
- '
- Me.Label14.AutoSize = True
- Me.Label14.Location = New System.Drawing.Point(216, 56)
- Me.Label14.Name = "Label14"
- Me.Label14.Size = New System.Drawing.Size(42, 17)
- Me.Label14.TabIndex = 98
- Me.Label14.Text = "单价:"
- '
- 'Label13
- '
- Me.Label13.AutoSize = True
- Me.Label13.Location = New System.Drawing.Point(96, 56)
- Me.Label13.Name = "Label13"
- Me.Label13.Size = New System.Drawing.Size(42, 17)
- Me.Label13.TabIndex = 97
- Me.Label13.Text = "数量:"
- '
- 'Label11
- '
- Me.Label11.AutoSize = True
- Me.Label11.Location = New System.Drawing.Point(372, 24)
- Me.Label11.Name = "Label11"
- Me.Label11.Size = New System.Drawing.Size(66, 17)
- Me.Label11.TabIndex = 96
- Me.Label11.Text = "药品规格:"
- '
- 'Label10
- '
- Me.Label10.AutoSize = True
- Me.Label10.Location = New System.Drawing.Point(192, 24)
- Me.Label10.Name = "Label10"
- Me.Label10.Size = New System.Drawing.Size(66, 17)
- Me.Label10.TabIndex = 95
- Me.Label10.Text = "药品名称:"
- '
- 'Label9
- '
- Me.Label9.AutoSize = True
- Me.Label9.Location = New System.Drawing.Point(8, 24)
- Me.Label9.Name = "Label9"
- Me.Label9.Size = New System.Drawing.Size(66, 17)
- Me.Label9.TabIndex = 94
- Me.Label9.Text = "药品编号:"
- '
- 'Panel1
- '
- Me.Panel1.Controls.Add(Me.dgView)
- Me.Panel1.Dock = System.Windows.Forms.DockStyle.Fill
- Me.Panel1.Location = New System.Drawing.Point(0, 248)
- Me.Panel1.Name = "Panel1"
- Me.Panel1.Size = New System.Drawing.Size(586, 204)
- Me.Panel1.TabIndex = 12
- '
- 'dgView
- '
- Me.dgView.DataMember = ""
- Me.dgView.Dock = System.Windows.Forms.DockStyle.Fill
- Me.dgView.HeaderForeColor = System.Drawing.SystemColors.ControlText
- Me.dgView.Location = New System.Drawing.Point(0, 0)
- Me.dgView.Name = "dgView"
- Me.dgView.Size = New System.Drawing.Size(586, 204)
- Me.dgView.TabIndex = 8
- '
- 'frmMdth
- '
- Me.AutoScaleBaseSize = New System.Drawing.Size(6, 14)
- Me.ClientSize = New System.Drawing.Size(586, 470)
- Me.Controls.Add(Me.Panel1)
- Me.Controls.Add(Me.GroupBox2)
- Me.Controls.Add(Me.GroupBox1)
- Me.Controls.Add(Me.StatusBar1)
- Me.Controls.Add(Me.tbnth)
- Me.Name = "frmMdth"
- Me.Text = "门店退货登记"
- Me.WindowState = System.Windows.Forms.FormWindowState.Maximized
- Me.GroupBox1.ResumeLayout(False)
- Me.GroupBox2.ResumeLayout(False)
- Me.Panel1.ResumeLayout(False)
- CType(Me.dgView, System.ComponentModel.ISupportInitialize).EndInit()
- Me.ResumeLayout(False)
- End Sub
- #End Region
- Public lsweb As New jxcmanage
- Public dslocal As DataSet = lsweb.returndataset("select BillNumber as 票号,PsMedName as 配送对象,Money as 金额,thdate as 退货日期,PsCenter as 配送中心,Shy as 审核人,ywy as 业务员 from mdthdj", "mdthdj")
- Public dslocals As DataSet = lsweb.returndataset("select Number as 序号,MedNumber as 药品编号,MedName as 药品名称,MedRule as 药品规格,Unit as 单位,Price as 单价,Lcount as 数量,Money as 金额,Batch as 批号,Avaid as 有效期,Package as 包装,Product as 产地,BillNumber as 票号,demo as 货位 from mdthdjmx", "mdthdjmx")
- Private Sub frmMdth_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
- dslocals.Clear()
- dgView.DataSource = dslocals.Tables("mdthdjMx").DefaultView
- Dim hwdr As System.Data.SqlClient.SqlDataReader
- hwdr = lsweb.returnDataReader("select 货位 from wz_hw")
- Do While hwdr.Read()
- txthw.Items.Add(hwdr("货位"))
- Loop
- Dim Centerdr, namedr, ysydr As System.Data.SqlClient.SqlDataReader
- Centerdr = lsweb.returnDataReader("select Cname as 配送中心 from pscenter")
- namedr = lsweb.returnDataReader("select Cname as 配送对象 from MdManager")
- ysydr = lsweb.returnDataReader("select 操作员 from wz_mm")
- Do While Centerdr.Read()
- txtPsCenter.Items.Add(Centerdr("配送中心"))
- Loop
- Do While namedr.Read()
- txtPsMedName.Items.Add(namedr("配送对象"))
- Loop
- Do While ysydr.Read()
- txtShy.Items.Add(ysydr("操作员"))
- txtYwy.Items.Add(ysydr("操作员"))
- Loop
- txtThDate.Value = Today.ToString
- End Sub
- Private Sub save()
- If txtSum.Text = "" Then
- MessageBox.Show("信息不完整,保存失败!", "提示", MessageBoxButtons.OK)
- Else
- Dim dr As DataRow = dslocal.Tables("mdthdj").NewRow()
- dr("票号") = Me.txtBillNumber.Text.Trim
- dr("配送对象") = Me.txtmedName.Text.Trim
- dr("金额") = Me.txtSum.Text.Trim
- dr("退货日期") = Me.txtThDate.Text.Trim
- dr("配送中心") = Me.txtPsCenter.Text.Trim
- dr("审核人") = Me.txtShy.Text.Trim
- dr("业务员") = Me.txtYwy.Text.Trim
- dslocal.Tables("mdthdj").Rows.Add(dr)
- If lsweb.updatedataset("select BillNumber as 票号,PsMedName as 配送对象,Money as 金额,thdate as 退货日期,PsCenter as 配送中心,Shy as 审核人,ywy as 业务员 from mdthdj", "mdthdj", dslocal, DataRowState.Added) = True And lsweb.updatedataset("select Number as 序号,MedNumber as 药品编号,MedName as 药品名称,MedRule as 药品规格,Unit as 单位,Price as 单价,Lcount as 数量,Money as 金额,Batch as 批号,Avaid as 有效期,Package as 包装,Product as 产地,BillNumber as 票号,demo as 货位 from mdthdjmx", "mdthdjmx", dslocals, DataRowState.Added) = True Then
- MessageBox.Show("信息成功保存!", "提示", MessageBoxButtons.OK)
- Else
- MessageBox.Show("信息保存失败!", "提示", MessageBoxButtons.AbortRetryIgnore)
- End If
- End If
- End Sub
- Public Sub tbnEnable(ByVal strboolean As String, ByVal tbr As ToolBar)
- If strboolean = "tbnAdd.Enabled = True" Then
- tbnSave.Enabled = False
- tbnPrint.Enabled = False
- tbnExit.Enabled = True
- ElseIf strboolean = "tbnAdd.Enabled = False" Then
- tbnAdd.Enabled = False
- tbnSave.Enabled = True
- tbnPrint.Enabled = True
- tbnExit.Enabled = True
- ElseIf strboolean = "tbnSave.Enabled = True" Then
- tbnAdd.Enabled = False
- tbnPrint.Enabled = True
- tbnExit.Enabled = True
- ElseIf strboolean = "tbnSave.Enabled = False" Then
- tbnSave.Enabled = False
- tbnAdd.Enabled = True
- tbnPrint.Enabled = True
- tbnExit.Enabled = True
- End If
- End Sub
- Public Sub add()
- dslocal.Clear()
- dslocals.Clear()
- txtThDate.Value().Today().ToString()
- txtBillNumber.Text = lsweb.selectbill("TL").ToString
- txtShy.Focus()
- txtYwy.Text = ""
- txtSum.Text() = CStr(0)
- txtMedNumber.Text = ""
- txtmedName.Text() = ""
- txtMedRule.Text() = ""
- txtno.Text() = "1"
- txtCount.Text() = ""
- txtPrice.Text() = CStr(0)
- txtMoney.Text() = CStr(0)
- txtBatch.Text() = ""
- txtAvaid.Text() = ""
- txtUnit.Text() = ""
- txtProduct.Text() = ""
- txtpackage.Text() = ""
- End Sub
- Private Sub txtShy_KeyDown(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyEventArgs)
- If e.KeyCode = Keys.Enter Then
- txtYwy.Focus()
- End If
- End Sub
- Private Sub txtYwy_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs)
- End Sub
- Private Sub txtYwy_KeyDown(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyEventArgs)
- If e.KeyCode = Keys.Enter Then
- txtPsCenter.Focus()
- End If
- End Sub
- Private Sub txtPsCenter_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs)
- End Sub
- Private Sub txtPsCenter_KeyDown(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyEventArgs)
- If e.KeyCode = Keys.Enter Then
- txtMedNumber.Focus()
- End If
- End Sub
- Private Sub txtMedNumber_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs)
- End Sub
- Public Function getinfo(ByVal strqueryid As String) As String
- Dim strOrderId As String
- strOrderId = strqueryid
- Return strOrderId
- End Function
- Private Sub CalMxMoney()
- Dim price As Double = CType(txtPrice.Text.Trim, Double)
- Dim count As Int16 = CInt(txtCount.Text.Trim)
- Me.txtMoney.Text = (price * count).ToString
- End Sub
- Private Sub CalTotalMoney()
- If dslocals.Tables("mdthdjMx").Rows.Count = 0 Then
- Me.txtMoney.Text = 0
- End If
- Dim money As String = ""
- Dim dtotal As Double = 0
- For Each dr As DataRow In dslocals.Tables("mdthdjMx").Rows
- money = dr("金额")
- dtotal = dtotal + CType(money.Trim, Double)
- txtSum.Text = dtotal.ToString.Trim
- Next
- End Sub
- Private Sub txtMedNumber_KeyDown(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyEventArgs)
- If e.KeyCode = Keys.Enter Then
- Dim dlg As frmMedKcQuery = New frmMedKcQuery
- dlg.PYMs = Me.getinfo(txtMedNumber.Text)
- If dlg.PYMs = "" Then
- ErrorProvider1.SetError(txtMedNumber, "不能为空,请输入查询码!")
- Else
- dlg.ShowDialog()
- ErrorProvider1.SetError(txtMedNumber, "")
- End If
- Dim medIdvalue As String
- medIdvalue = dlg.GetInfo("药品编号")
- If medIdvalue Is Nothing Then
- ErrorProvider1.SetError(txtMedNumber, "不能为空,请输入查询码!或没有查到记录,请重新开始!")
- Else
- Dim runSqlQuery As String
- runSqlQuery = "select * from wz_kc where 药品编号='" & medIdvalue & " '"
- Dim dv As DataView
- ' Dim mOrderId As New managers
- '调用mCustomId对象的SPcustomersID函数
- Dim dtOrder As DataTable = lsweb.runSql(runSqlQuery).Tables(0)
- 'bb为一随意表名
- dtOrder.TableName = "bb"
- dv = dtOrder.DefaultView
- txtMedNumber.Text = dv(0)("药品编号")
- txtmedName.Text = dv(0)("药品名称")
- txtMedRule.Text = dv(0)("药品规格")
- txtUnit.Text = dv(0)("单位")
- txtPrice.Text = dv(0)("进价")
- txtCount.Text = dv(0)("数量")
- txtAvaid.Text = dv(0)("有效期")
- txtpackage.Text = dv(0)("包装")
- txtProduct.Text = dv(0)("产地")
- txtBatch.Text = dv(0)("批号")
- ErrorProvider1.SetError(txtMedNumber, "")
- End If
- txtCount.Focus()
- End If
- End Sub
- Private Sub clear()
- txtMedNumber.Text = ""
- txtmedName.Text = ""
- txtMedRule.Text = ""
- txtUnit.Text = ""
- txtPrice.Text = 0.0
- txtCount.Text = 0
- txtMoney.Text = 0.0
- txtAvaid.Text = ""
- txtpackage.Text = ""
- txtProduct.Text = ""
- txtBatch.Text = ""
- End Sub
- Private Sub txtCount_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs)
- End Sub
- Private Sub txtCount_KeyDown(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyEventArgs)
- If e.KeyCode = Keys.Enter Then
- txtPrice.Focus()
- CalMxMoney()
- End If
- End Sub
- Private Sub txtShy_Validating(ByVal sender As System.Object, ByVal e As System.ComponentModel.CancelEventArgs)
- If txtShy.Text = String.Empty Then
- ErrorProvider1.SetError(txtShy, "不是数值类型且不能为空。")
- txtShy.Focus()
- Else
- ErrorProvider1.SetError(txtShy, "")
- End If
- End Sub
- Private Sub txtYwy_Validating(ByVal sender As System.Object, ByVal e As System.ComponentModel.CancelEventArgs)
- If txtYwy.Text = String.Empty Then
- ErrorProvider1.SetError(txtYwy, "不是数值类型且不能为空。")
- txtYwy.Focus()
- Else
- ErrorProvider1.SetError(txtYwy, "")
- End If
- End Sub
- Private Sub txtPsCenter_Validating(ByVal sender As System.Object, ByVal e As System.ComponentModel.CancelEventArgs)
- If txtPsCenter.Text = String.Empty Then
- ErrorProvider1.SetError(txtPsCenter, "不是数值类型且不能为空。")
- txtPsCenter.Focus()
- Else
- ErrorProvider1.SetError(txtPsCenter, "")
- End If
- End Sub
- Private Sub txtMedNumber_Validating(ByVal sender As System.Object, ByVal e As System.ComponentModel.CancelEventArgs)
- If txtMedNumber.Text = String.Empty Then
- ErrorProvider1.SetError(txtMedNumber, "不是数值类型且不能为空。")
- txtMedNumber.Focus()
- Else
- ErrorProvider1.SetError(txtMedNumber, "")
- End If
- End Sub
- Private Sub txtCount_Validating(ByVal sender As System.Object, ByVal e As System.ComponentModel.CancelEventArgs)
- If txtCount.Text = String.Empty Then
- ErrorProvider1.SetError(txtCount, "不是数值类型且不能为空。")
- txtCount.Focus()
- Else
- ErrorProvider1.SetError(txtCount, "")
- End If
- End Sub
- Private Sub txtPrice_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs)
- End Sub
- Private Sub txtPrice_Validating(ByVal sender As System.Object, ByVal e As System.ComponentModel.CancelEventArgs)
- If Not IsNumeric(txtPrice.Text) Or txtPrice.Text = String.Empty Then
- ErrorProvider1.SetError(txtPrice, "不是数值类型且不能为空。")
- e.Cancel = True
- Else
- ErrorProvider1.SetError(txtPrice, "")
- End If
- End Sub
- Private Sub ToolBar1_ButtonClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.ToolBarButtonClickEventArgs) Handles tbnth.ButtonClick
- Select Case e.Button.Text
- Case "添加"
- add()
- tbnEnable("tbnAdd.Enabled = False", tbnth)
- Case "保存"
- save()
- tbnEnable("tbnSave.Enabled = False", tbnth)
- Case "退出"
- Me.Close()
- End Select
- End Sub
- Private Sub txtShy_KeyDown1(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles txtShy.KeyDown
- If e.KeyCode = Keys.Enter Then
- txtYwy.Focus()
- End If
- End Sub
- Private Sub txtYwy_SelectedIndexChanged_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtYwy.SelectedIndexChanged
- End Sub
- Private Sub txtYwy_KeyDown1(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles txtYwy.KeyDown
- If e.KeyCode = Keys.Enter Then
- txtPsMedName.Focus()
- End If
- End Sub
- Private Sub txtPsMedName_KeyDown(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyEventArgs)
- If e.KeyCode = Keys.Enter Then
- txtPsCenter.Focus()
- End If
- End Sub
- Private Sub txtShy_Validating1(ByVal sender As Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles txtShy.Validating
- If txtShy.Text = String.Empty Then
- ErrorProvider1.SetError(txtShy, "不是数值类型且不能为空。")
- txtShy.Focus()
- Else
- ErrorProvider1.SetError(txtShy, "")
- End If
- End Sub
- Private Sub txtYwy_Validating1(ByVal sender As Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles txtYwy.Validating
- If txtYwy.Text = String.Empty Then
- ErrorProvider1.SetError(txtYwy, "不是数值类型且不能为空。")
- txtYwy.Focus()
- Else
- ErrorProvider1.SetError(txtYwy, "")
- End If
- End Sub
- Private Sub txtPsMedName_Validating(ByVal sender As System.Object, ByVal e As System.ComponentModel.CancelEventArgs)
- End Sub
- Private Sub txtPsCenter_SelectedIndexChanged_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtPsCenter.SelectedIndexChanged
- End Sub
- Private Sub txtPsCenter_Validating1(ByVal sender As Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles txtPsCenter.Validating
- If txtPsCenter.Text = String.Empty Then
- ErrorProvider1.SetError(txtPsCenter, "不是数值类型且不能为空。")
- txtPsCenter.Focus()
- Else
- ErrorProvider1.SetError(txtPsCenter, "")
- End If
- End Sub
- Private Sub txtPsCenter_KeyDown1(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles txtPsCenter.KeyDown
- If e.KeyCode = Keys.Enter Then
- txthw.Focus()
- End If
- End Sub
- Private Sub txtMedNumber_TextChanged_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtMedNumber.TextChanged
- End Sub
- Private Sub txtMedNumber_KeyDown1(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles txtMedNumber.KeyDown
- If e.KeyCode = Keys.Enter Then
- Dim dlg As frmMedKcQuery = New frmMedKcQuery
- dlg.PYMs = Me.getinfo(txtMedNumber.Text)
- If dlg.PYMs = "" Then
- ErrorProvider1.SetError(txtMedNumber, "不能为空,请输入查询码!")
- Else
- dlg.ShowDialog()
- ErrorProvider1.SetError(txtMedNumber, "")
- End If
- Dim medIdvalue, medbatch, product, avaid, hw, package As String
- medIdvalue = dlg.GetInfo("药品编号")
- medbatch = dlg.GetInfo("批号")
- product = dlg.GetInfo("产地")
- avaid = dlg.GetInfo("有效期")
- hw = dlg.GetInfo("货位")
- package = dlg.GetInfo("包装")
- If medIdvalue Is Nothing Then
- ErrorProvider1.SetError(txtMedNumber, "不能为空,请输入查询码!或没有查到记录,请重新开始!")
- Else
- Dim runSqlQuery As String
- runSqlQuery = "select * from wz_kc where 药品编号='" & medIdvalue & " ' and 批号 ='" & medbatch & "' and 产地='" & product & "' and 有效期='" & avaid & "' and 货位='" & hw & "' and 包装='" & package & "'"
- Dim dv As DataView
- ' Dim mOrderId As New managers
- '调用mCustomId对象的SPcustomersID函数
- Dim dtOrder As DataTable = lsweb.runSql(runSqlQuery).Tables(0)
- 'bb为一随意表名
- dtOrder.TableName = "bb"
- dv = dtOrder.DefaultView
- txtMedNumber.Text = dv(0)("药品编号")
- txtmedName.Text = dv(0)("药品名称")
- txtMedRule.Text = dv(0)("药品规格")
- txtUnit.Text = dv(0)("单位")
- txtPrice.Text = dv(0)("进价")
- txtCount.Text = dv(0)("数量")
- txtAvaid.Text = dv(0)("有效期")
- txtpackage.Text = dv(0)("包装")
- txtProduct.Text = dv(0)("产地")
- txtBatch.Text = dv(0)("批号")
- txthw.Text = dv(0)("货位")
- ErrorProvider1.SetError(txtMedNumber, "")
- End If
- txtCount.Focus()
- End If
- End Sub
- Private Sub txtCount_TextChanged_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtCount.TextChanged
- End Sub
- Private Sub txtCount_KeyDown1(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles txtCount.KeyDown
- If e.KeyCode = Keys.Enter Then
- txtPrice.Focus()
- CalMxMoney()
- End If
- End Sub
- Private Sub txtPrice_TextChanged_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtPrice.TextChanged
- End Sub
- Private Sub txtPrice_KeyDown1(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles txtPrice.KeyDown
- If e.KeyCode = Keys.Enter Then
- If txtPrice.Text = String.Empty Then
- txtPrice_Validating(Nothing, Nothing)
- Else
- Static i As Int16
- If dslocals.Tables("mdthdjmx").Rows.Count < 1 Then
- i = 1
- Else
- i = i + 1
- End If
- txtno.Text = CStr(i)
- Dim dr As DataRow = dslocals.Tables("mdthdjmx").NewRow()
- dr("序号") = CStr(i)
- dr("药品编号") = Me.txtMedNumber.Text.Trim
- dr("药品名称") = Me.txtmedName.Text.Trim
- dr("药品规格") = Me.txtMedRule.Text.Trim
- dr("单位") = Me.txtUnit.Text.Trim
- dr("数量") = Me.txtCount.Text.Trim
- dr("单价") = CDec(Me.txtPrice.Text.Trim)
- dr("金额") = CDec(Me.txtPrice.Text.Trim) * CInt(Me.txtCount.Text.Trim)
- dr("批号") = Me.txtBatch.Text.Trim
- dr("有效期") = Me.txtAvaid.Text.Trim
- dr("产地") = Me.txtProduct.Text.Trim
- dr("包装") = Me.txtpackage.Text.Trim
- dr("票号") = Me.txtBillNumber.Text.Trim
- dr("货位") = Me.txthw.Text.Trim
- dslocals.Tables("mdthdjmx").Rows.Add(dr)
- txtMedNumber.Text = ""
- txtMedNumber.Focus()
- CalTotalMoney()
- 'clear()
- End If
- End If
- dgView.DataSource = dslocals.Tables("mdthdjMx").DefaultView
- End Sub
- Private Sub txthw_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txthw.SelectedIndexChanged
- End Sub
- Private Sub txthw_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles txthw.KeyDown
- If e.KeyCode = Keys.Enter Then
- txtMedNumber.Focus()
- End If
- End Sub
- Private Sub txthw_Validating(ByVal sender As Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles txthw.Validating
- If txthw.Text = String.Empty Then
- ErrorProvider1.SetError(txthw, "不能为空。")
- txthw.Focus()
- Else
- ErrorProvider1.SetError(txthw, "")
- End If
- End Sub
- Private Sub frmMdth_Closed(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Closed
- If txtBillNumber.Text <> String.Empty And tbnSave.Enabled = True Then
- lsweb.cancelbill(txtBillNumber.Text.Trim)
- End If
- End Sub
- Private Sub txtCount_Validating1(ByVal sender As Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles txtCount.Validating
- If Not IsNumeric(txtCount.Text) Or txtCount.Text = String.Empty Then
- ErrorProvider1.SetError(txtCount, "不是数值类型且不能为空!")
- txtCount.Focus()
- Else
- ErrorProvider1.SetError(txtCount, "")
- End If
- End Sub
- Private Sub txtPsMedName_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtPsMedName.SelectedIndexChanged
- End Sub
- Private Sub txtPsMedName_KeyDown1(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles txtPsMedName.KeyDown
- If e.KeyCode = Keys.Enter Then
- txtPsCenter.Focus()
- End If
- End Sub
- Private Sub txtPsMedName_Validating1(ByVal sender As Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles txtPsMedName.Validating
- If txtPsMedName.Text = String.Empty Then
- ErrorProvider1.SetError(txtPsMedName, "不是数值类型且不能为空。")
- txtPsMedName.Focus()
- Else
- ErrorProvider1.SetError(txtPsMedName, "")
- End If
- End Sub
- End Class