frmTj.vb
上传用户:wj57717022
上传日期:2014-12-16
资源大小:4093k
文件大小:41k
- Public Class frmTj
- 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 tbntj As System.Windows.Forms.ToolBar
- Friend WithEvents Label10 As System.Windows.Forms.Label
- Friend WithEvents txtpprice As System.Windows.Forms.TextBox
- Friend WithEvents Label9 As System.Windows.Forms.Label
- Friend WithEvents txtsj As System.Windows.Forms.TextBox
- Friend WithEvents Label8 As System.Windows.Forms.Label
- Friend WithEvents txtjj As System.Windows.Forms.TextBox
- Friend WithEvents Label7 As System.Windows.Forms.Label
- Friend WithEvents txtbillnumber As System.Windows.Forms.TextBox
- Friend WithEvents txtunit 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 txtno As System.Windows.Forms.TextBox
- Friend WithEvents GroupBox2 As System.Windows.Forms.GroupBox
- Friend WithEvents Label6 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 GroupBox1 As System.Windows.Forms.GroupBox
- Friend WithEvents txtlprice As System.Windows.Forms.TextBox
- Friend WithEvents Label11 As System.Windows.Forms.Label
- Friend WithEvents txtjprice As System.Windows.Forms.TextBox
- Friend WithEvents Label12 As System.Windows.Forms.Label
- Friend WithEvents txtzprice As System.Windows.Forms.TextBox
- Friend WithEvents txtxzprice As System.Windows.Forms.TextBox
- Friend WithEvents Label13 As System.Windows.Forms.Label
- Friend WithEvents txtxjprice As System.Windows.Forms.TextBox
- Friend WithEvents Label14 As System.Windows.Forms.Label
- Friend WithEvents txtxlprice As System.Windows.Forms.TextBox
- Friend WithEvents Label15 As System.Windows.Forms.Label
- Friend WithEvents txtxpprice As System.Windows.Forms.TextBox
- Friend WithEvents Label16 As System.Windows.Forms.Label
- Friend WithEvents txtxsj As System.Windows.Forms.TextBox
- Friend WithEvents Label17 As System.Windows.Forms.Label
- Friend WithEvents txtxjj As System.Windows.Forms.TextBox
- Friend WithEvents Label18 As System.Windows.Forms.Label
- Friend WithEvents Label19 As System.Windows.Forms.Label
- Friend WithEvents Label20 As System.Windows.Forms.Label
- Friend WithEvents cbojsr As System.Windows.Forms.ComboBox
- Friend WithEvents txtzy As System.Windows.Forms.TextBox
- Friend WithEvents Label21 As System.Windows.Forms.Label
- Friend WithEvents txtyw As System.Windows.Forms.TextBox
- Friend WithEvents TextBox14 As System.Windows.Forms.TextBox
- Friend WithEvents TextBox15 As System.Windows.Forms.TextBox
- Friend WithEvents TextBox16 As System.Windows.Forms.TextBox
- Friend WithEvents TextBox17 As System.Windows.Forms.TextBox
- Friend WithEvents TextBox18 As System.Windows.Forms.TextBox
- Friend WithEvents dgview As System.Windows.Forms.DataGrid
- Friend WithEvents tbnadd As System.Windows.Forms.ToolBarButton
- 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 ImageList2 As System.Windows.Forms.ImageList
- <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
- Me.components = New System.ComponentModel.Container
- Dim resources As System.Resources.ResourceManager = New System.Resources.ResourceManager(GetType(frmTj))
- Me.tbntj = 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.Label10 = New System.Windows.Forms.Label
- Me.txtpprice = New System.Windows.Forms.TextBox
- Me.Label9 = New System.Windows.Forms.Label
- Me.txtsj = New System.Windows.Forms.TextBox
- Me.Label8 = New System.Windows.Forms.Label
- Me.txtjj = New System.Windows.Forms.TextBox
- Me.Label7 = New System.Windows.Forms.Label
- Me.txtbillnumber = New System.Windows.Forms.TextBox
- Me.txtunit = 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.txtno = New System.Windows.Forms.TextBox
- Me.GroupBox2 = New System.Windows.Forms.GroupBox
- Me.Label6 = 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.GroupBox1 = New System.Windows.Forms.GroupBox
- Me.txtyw = New System.Windows.Forms.TextBox
- Me.Label21 = New System.Windows.Forms.Label
- Me.txtzy = New System.Windows.Forms.TextBox
- Me.cbojsr = New System.Windows.Forms.ComboBox
- Me.Label20 = New System.Windows.Forms.Label
- Me.Label19 = New System.Windows.Forms.Label
- Me.txtxzprice = New System.Windows.Forms.TextBox
- Me.Label13 = New System.Windows.Forms.Label
- Me.txtxjprice = New System.Windows.Forms.TextBox
- Me.Label14 = New System.Windows.Forms.Label
- Me.txtxlprice = New System.Windows.Forms.TextBox
- Me.Label15 = New System.Windows.Forms.Label
- Me.txtxpprice = New System.Windows.Forms.TextBox
- Me.Label16 = New System.Windows.Forms.Label
- Me.txtxsj = New System.Windows.Forms.TextBox
- Me.Label17 = New System.Windows.Forms.Label
- Me.txtxjj = New System.Windows.Forms.TextBox
- Me.Label18 = New System.Windows.Forms.Label
- Me.txtzprice = New System.Windows.Forms.TextBox
- Me.Label12 = New System.Windows.Forms.Label
- Me.txtjprice = New System.Windows.Forms.TextBox
- Me.Label11 = New System.Windows.Forms.Label
- Me.txtlprice = New System.Windows.Forms.TextBox
- Me.TextBox14 = New System.Windows.Forms.TextBox
- Me.TextBox15 = New System.Windows.Forms.TextBox
- Me.TextBox16 = New System.Windows.Forms.TextBox
- Me.TextBox17 = New System.Windows.Forms.TextBox
- Me.TextBox18 = New System.Windows.Forms.TextBox
- Me.dgview = New System.Windows.Forms.DataGrid
- Me.ErrorProvider1 = New System.Windows.Forms.ErrorProvider
- Me.GroupBox1.SuspendLayout()
- CType(Me.dgview, System.ComponentModel.ISupportInitialize).BeginInit()
- Me.SuspendLayout()
- '
- 'tbntj
- '
- Me.tbntj.Appearance = System.Windows.Forms.ToolBarAppearance.Flat
- Me.tbntj.Buttons.AddRange(New System.Windows.Forms.ToolBarButton() {Me.tbnadd, Me.tbnsave, Me.tbnprint, Me.tbnexit})
- Me.tbntj.DropDownArrows = True
- Me.tbntj.ImageList = Me.ImageList2
- Me.tbntj.Location = New System.Drawing.Point(0, 0)
- Me.tbntj.Name = "tbntj"
- Me.tbntj.ShowToolTips = True
- Me.tbntj.Size = New System.Drawing.Size(896, 41)
- Me.tbntj.TabIndex = 0
- '
- '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
- '
- 'Label10
- '
- Me.Label10.AutoSize = True
- Me.Label10.Location = New System.Drawing.Point(454, 64)
- Me.Label10.Name = "Label10"
- Me.Label10.Size = New System.Drawing.Size(54, 17)
- Me.Label10.TabIndex = 19
- Me.Label10.Text = "零售价:"
- '
- 'txtpprice
- '
- Me.txtpprice.Location = New System.Drawing.Point(352, 56)
- Me.txtpprice.Name = "txtpprice"
- Me.txtpprice.ReadOnly = True
- Me.txtpprice.Size = New System.Drawing.Size(80, 21)
- Me.txtpprice.TabIndex = 18
- Me.txtpprice.Text = ""
- '
- 'Label9
- '
- Me.Label9.AutoSize = True
- Me.Label9.Location = New System.Drawing.Point(302, 64)
- Me.Label9.Name = "Label9"
- Me.Label9.Size = New System.Drawing.Size(54, 17)
- Me.Label9.TabIndex = 17
- Me.Label9.Text = "批发价:"
- '
- 'txtsj
- '
- Me.txtsj.Location = New System.Drawing.Point(200, 56)
- Me.txtsj.Name = "txtsj"
- Me.txtsj.ReadOnly = True
- Me.txtsj.Size = New System.Drawing.Size(80, 21)
- Me.txtsj.TabIndex = 16
- Me.txtsj.Text = ""
- '
- 'Label8
- '
- Me.Label8.AutoSize = True
- Me.Label8.Location = New System.Drawing.Point(162, 64)
- Me.Label8.Name = "Label8"
- Me.Label8.Size = New System.Drawing.Size(42, 17)
- Me.Label8.TabIndex = 15
- Me.Label8.Text = "售价:"
- '
- 'txtjj
- '
- Me.txtjj.Location = New System.Drawing.Point(56, 56)
- Me.txtjj.Name = "txtjj"
- Me.txtjj.ReadOnly = True
- Me.txtjj.Size = New System.Drawing.Size(80, 21)
- Me.txtjj.TabIndex = 14
- Me.txtjj.Text = ""
- '
- 'Label7
- '
- Me.Label7.AutoSize = True
- Me.Label7.Location = New System.Drawing.Point(18, 64)
- Me.Label7.Name = "Label7"
- Me.Label7.Size = New System.Drawing.Size(42, 17)
- Me.Label7.TabIndex = 13
- Me.Label7.Text = "进价:"
- '
- 'txtbillnumber
- '
- Me.txtbillnumber.AutoSize = False
- Me.txtbillnumber.Location = New System.Drawing.Point(728, 17)
- Me.txtbillnumber.Name = "txtbillnumber"
- Me.txtbillnumber.ReadOnly = True
- Me.txtbillnumber.Size = New System.Drawing.Size(152, 21)
- Me.txtbillnumber.TabIndex = 12
- Me.txtbillnumber.Text = ""
- '
- 'txtunit
- '
- Me.txtunit.AutoSize = False
- Me.txtunit.Location = New System.Drawing.Point(640, 17)
- Me.txtunit.Name = "txtunit"
- Me.txtunit.ReadOnly = True
- Me.txtunit.Size = New System.Drawing.Size(32, 21)
- Me.txtunit.TabIndex = 11
- Me.txtunit.Text = ""
- '
- 'txtmedrule
- '
- Me.txtmedrule.AutoSize = False
- Me.txtmedrule.Location = New System.Drawing.Point(496, 16)
- Me.txtmedrule.Name = "txtmedrule"
- Me.txtmedrule.ReadOnly = True
- Me.txtmedrule.Size = New System.Drawing.Size(100, 25)
- Me.txtmedrule.TabIndex = 10
- Me.txtmedrule.Text = ""
- '
- 'txtmedname
- '
- Me.txtmedname.AutoSize = False
- Me.txtmedname.Location = New System.Drawing.Point(320, 17)
- Me.txtmedname.Name = "txtmedname"
- Me.txtmedname.ReadOnly = True
- Me.txtmedname.Size = New System.Drawing.Size(100, 25)
- Me.txtmedname.TabIndex = 9
- Me.txtmedname.Text = ""
- '
- 'txtmednumber
- '
- Me.txtmednumber.Location = New System.Drawing.Point(168, 17)
- Me.txtmednumber.Name = "txtmednumber"
- Me.txtmednumber.Size = New System.Drawing.Size(80, 21)
- Me.txtmednumber.TabIndex = 8
- Me.txtmednumber.Text = ""
- '
- 'txtno
- '
- Me.txtno.Location = New System.Drawing.Point(56, 16)
- Me.txtno.Name = "txtno"
- Me.txtno.ReadOnly = True
- Me.txtno.Size = New System.Drawing.Size(40, 21)
- Me.txtno.TabIndex = 7
- Me.txtno.Text = ""
- '
- 'GroupBox2
- '
- Me.GroupBox2.Location = New System.Drawing.Point(8, 40)
- Me.GroupBox2.Name = "GroupBox2"
- Me.GroupBox2.Size = New System.Drawing.Size(872, 8)
- Me.GroupBox2.TabIndex = 6
- Me.GroupBox2.TabStop = False
- '
- 'Label6
- '
- Me.Label6.AutoSize = True
- Me.Label6.Location = New System.Drawing.Point(602, 24)
- Me.Label6.Name = "Label6"
- Me.Label6.Size = New System.Drawing.Size(42, 17)
- Me.Label6.TabIndex = 5
- Me.Label6.Text = "单位:"
- '
- 'Label5
- '
- Me.Label5.AutoSize = True
- Me.Label5.Location = New System.Drawing.Point(690, 24)
- Me.Label5.Name = "Label5"
- Me.Label5.Size = New System.Drawing.Size(42, 17)
- Me.Label5.TabIndex = 4
- Me.Label5.Text = "票号:"
- '
- 'Label4
- '
- Me.Label4.AutoSize = True
- Me.Label4.Location = New System.Drawing.Point(18, 24)
- Me.Label4.Name = "Label4"
- Me.Label4.Size = New System.Drawing.Size(42, 17)
- Me.Label4.TabIndex = 3
- Me.Label4.Text = "序号:"
- '
- 'Label3
- '
- Me.Label3.AutoSize = True
- Me.Label3.Location = New System.Drawing.Point(434, 24)
- Me.Label3.Name = "Label3"
- Me.Label3.Size = New System.Drawing.Size(66, 17)
- Me.Label3.TabIndex = 2
- Me.Label3.Text = "药品规格:"
- '
- 'Label2
- '
- Me.Label2.AutoSize = True
- Me.Label2.Location = New System.Drawing.Point(258, 24)
- Me.Label2.Name = "Label2"
- Me.Label2.Size = New System.Drawing.Size(66, 17)
- Me.Label2.TabIndex = 1
- Me.Label2.Text = "药品名称:"
- '
- 'Label1
- '
- Me.Label1.AutoSize = True
- Me.Label1.Location = New System.Drawing.Point(106, 24)
- Me.Label1.Name = "Label1"
- Me.Label1.Size = New System.Drawing.Size(66, 17)
- Me.Label1.TabIndex = 0
- Me.Label1.Text = "药品编号:"
- '
- 'GroupBox1
- '
- Me.GroupBox1.Controls.Add(Me.txtyw)
- Me.GroupBox1.Controls.Add(Me.Label21)
- Me.GroupBox1.Controls.Add(Me.txtzy)
- Me.GroupBox1.Controls.Add(Me.cbojsr)
- Me.GroupBox1.Controls.Add(Me.Label20)
- Me.GroupBox1.Controls.Add(Me.Label19)
- Me.GroupBox1.Controls.Add(Me.txtxzprice)
- Me.GroupBox1.Controls.Add(Me.Label13)
- Me.GroupBox1.Controls.Add(Me.txtxjprice)
- Me.GroupBox1.Controls.Add(Me.Label14)
- Me.GroupBox1.Controls.Add(Me.txtxlprice)
- Me.GroupBox1.Controls.Add(Me.Label15)
- Me.GroupBox1.Controls.Add(Me.txtxpprice)
- Me.GroupBox1.Controls.Add(Me.Label16)
- Me.GroupBox1.Controls.Add(Me.txtxsj)
- Me.GroupBox1.Controls.Add(Me.Label17)
- Me.GroupBox1.Controls.Add(Me.txtxjj)
- Me.GroupBox1.Controls.Add(Me.Label18)
- Me.GroupBox1.Controls.Add(Me.txtzprice)
- Me.GroupBox1.Controls.Add(Me.Label12)
- Me.GroupBox1.Controls.Add(Me.txtjprice)
- Me.GroupBox1.Controls.Add(Me.Label11)
- Me.GroupBox1.Controls.Add(Me.txtlprice)
- Me.GroupBox1.Controls.Add(Me.Label10)
- Me.GroupBox1.Controls.Add(Me.txtpprice)
- Me.GroupBox1.Controls.Add(Me.Label9)
- Me.GroupBox1.Controls.Add(Me.txtsj)
- Me.GroupBox1.Controls.Add(Me.Label8)
- Me.GroupBox1.Controls.Add(Me.txtjj)
- Me.GroupBox1.Controls.Add(Me.Label7)
- Me.GroupBox1.Controls.Add(Me.txtbillnumber)
- Me.GroupBox1.Controls.Add(Me.txtunit)
- Me.GroupBox1.Controls.Add(Me.txtmedrule)
- Me.GroupBox1.Controls.Add(Me.txtmedname)
- Me.GroupBox1.Controls.Add(Me.txtmednumber)
- Me.GroupBox1.Controls.Add(Me.txtno)
- Me.GroupBox1.Controls.Add(Me.GroupBox2)
- Me.GroupBox1.Controls.Add(Me.Label6)
- 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.TextBox14)
- Me.GroupBox1.Controls.Add(Me.TextBox15)
- Me.GroupBox1.Controls.Add(Me.TextBox16)
- Me.GroupBox1.Controls.Add(Me.TextBox17)
- Me.GroupBox1.Controls.Add(Me.TextBox18)
- 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(896, 158)
- Me.GroupBox1.TabIndex = 1
- Me.GroupBox1.TabStop = False
- '
- 'txtyw
- '
- Me.txtyw.Location = New System.Drawing.Point(504, 120)
- Me.txtyw.Name = "txtyw"
- Me.txtyw.Size = New System.Drawing.Size(376, 21)
- Me.txtyw.TabIndex = 42
- Me.txtyw.Text = ""
- '
- 'Label21
- '
- Me.Label21.AutoSize = True
- Me.Label21.Location = New System.Drawing.Point(466, 128)
- Me.Label21.Name = "Label21"
- Me.Label21.Size = New System.Drawing.Size(42, 17)
- Me.Label21.TabIndex = 41
- Me.Label21.Text = "业务:"
- '
- 'txtzy
- '
- Me.txtzy.Location = New System.Drawing.Point(200, 120)
- Me.txtzy.Name = "txtzy"
- Me.txtzy.Size = New System.Drawing.Size(232, 21)
- Me.txtzy.TabIndex = 40
- Me.txtzy.Text = ""
- '
- 'cbojsr
- '
- Me.cbojsr.Location = New System.Drawing.Point(56, 120)
- Me.cbojsr.Name = "cbojsr"
- Me.cbojsr.Size = New System.Drawing.Size(80, 20)
- Me.cbojsr.TabIndex = 39
- '
- 'Label20
- '
- Me.Label20.AutoSize = True
- Me.Label20.Location = New System.Drawing.Point(7, 128)
- Me.Label20.Name = "Label20"
- Me.Label20.Size = New System.Drawing.Size(54, 17)
- Me.Label20.TabIndex = 38
- Me.Label20.Text = "经手人:"
- '
- 'Label19
- '
- Me.Label19.AutoSize = True
- Me.Label19.Location = New System.Drawing.Point(162, 128)
- Me.Label19.Name = "Label19"
- Me.Label19.Size = New System.Drawing.Size(42, 17)
- Me.Label19.TabIndex = 37
- Me.Label19.Text = "摘要:"
- '
- 'txtxzprice
- '
- Me.txtxzprice.Location = New System.Drawing.Point(800, 88)
- Me.txtxzprice.Name = "txtxzprice"
- Me.txtxzprice.Size = New System.Drawing.Size(80, 21)
- Me.txtxzprice.TabIndex = 36
- Me.txtxzprice.Text = "0.00"
- '
- 'Label13
- '
- Me.Label13.AutoSize = True
- Me.Label13.Location = New System.Drawing.Point(740, 96)
- Me.Label13.Name = "Label13"
- Me.Label13.Size = New System.Drawing.Size(66, 17)
- Me.Label13.TabIndex = 35
- Me.Label13.Text = "现最低价:"
- '
- 'txtxjprice
- '
- Me.txtxjprice.Location = New System.Drawing.Point(656, 88)
- Me.txtxjprice.Name = "txtxjprice"
- Me.txtxjprice.Size = New System.Drawing.Size(80, 21)
- Me.txtxjprice.TabIndex = 34
- Me.txtxjprice.Text = "0.00"
- '
- 'Label14
- '
- Me.Label14.AutoSize = True
- Me.Label14.Location = New System.Drawing.Point(594, 96)
- Me.Label14.Name = "Label14"
- Me.Label14.Size = New System.Drawing.Size(66, 17)
- Me.Label14.TabIndex = 33
- Me.Label14.Text = "现建议价:"
- '
- 'txtxlprice
- '
- Me.txtxlprice.Location = New System.Drawing.Point(504, 88)
- Me.txtxlprice.Name = "txtxlprice"
- Me.txtxlprice.Size = New System.Drawing.Size(80, 21)
- Me.txtxlprice.TabIndex = 32
- Me.txtxlprice.Text = "0.00"
- '
- 'Label15
- '
- Me.Label15.AutoSize = True
- Me.Label15.Location = New System.Drawing.Point(442, 96)
- Me.Label15.Name = "Label15"
- Me.Label15.Size = New System.Drawing.Size(66, 17)
- Me.Label15.TabIndex = 31
- Me.Label15.Text = "现零售价:"
- '
- 'txtxpprice
- '
- Me.txtxpprice.Location = New System.Drawing.Point(352, 88)
- Me.txtxpprice.Name = "txtxpprice"
- Me.txtxpprice.Size = New System.Drawing.Size(80, 21)
- Me.txtxpprice.TabIndex = 30
- Me.txtxpprice.Text = "0.00"
- '
- 'Label16
- '
- Me.Label16.AutoSize = True
- Me.Label16.Location = New System.Drawing.Point(290, 96)
- Me.Label16.Name = "Label16"
- Me.Label16.Size = New System.Drawing.Size(66, 17)
- Me.Label16.TabIndex = 29
- Me.Label16.Text = "现批发价:"
- '
- 'txtxsj
- '
- Me.txtxsj.Location = New System.Drawing.Point(200, 88)
- Me.txtxsj.Name = "txtxsj"
- Me.txtxsj.Size = New System.Drawing.Size(80, 21)
- Me.txtxsj.TabIndex = 28
- Me.txtxsj.Text = "0.00"
- '
- 'Label17
- '
- Me.Label17.AutoSize = True
- Me.Label17.Location = New System.Drawing.Point(150, 96)
- Me.Label17.Name = "Label17"
- Me.Label17.Size = New System.Drawing.Size(54, 17)
- Me.Label17.TabIndex = 27
- Me.Label17.Text = "现售价:"
- '
- 'txtxjj
- '
- Me.txtxjj.Location = New System.Drawing.Point(56, 88)
- Me.txtxjj.Name = "txtxjj"
- Me.txtxjj.Size = New System.Drawing.Size(80, 21)
- Me.txtxjj.TabIndex = 26
- Me.txtxjj.Text = "0.00"
- '
- 'Label18
- '
- Me.Label18.AutoSize = True
- Me.Label18.Location = New System.Drawing.Point(8, 96)
- Me.Label18.Name = "Label18"
- Me.Label18.Size = New System.Drawing.Size(54, 17)
- Me.Label18.TabIndex = 25
- Me.Label18.Text = "现进价:"
- '
- 'txtzprice
- '
- Me.txtzprice.Location = New System.Drawing.Point(800, 56)
- Me.txtzprice.Name = "txtzprice"
- Me.txtzprice.ReadOnly = True
- Me.txtzprice.Size = New System.Drawing.Size(80, 21)
- Me.txtzprice.TabIndex = 24
- Me.txtzprice.Text = ""
- '
- 'Label12
- '
- Me.Label12.AutoSize = True
- Me.Label12.Location = New System.Drawing.Point(752, 64)
- Me.Label12.Name = "Label12"
- Me.Label12.Size = New System.Drawing.Size(54, 17)
- Me.Label12.TabIndex = 23
- Me.Label12.Text = "最低价:"
- '
- 'txtjprice
- '
- Me.txtjprice.Location = New System.Drawing.Point(656, 56)
- Me.txtjprice.Name = "txtjprice"
- Me.txtjprice.ReadOnly = True
- Me.txtjprice.Size = New System.Drawing.Size(80, 21)
- Me.txtjprice.TabIndex = 22
- Me.txtjprice.Text = ""
- '
- 'Label11
- '
- Me.Label11.AutoSize = True
- Me.Label11.Location = New System.Drawing.Point(606, 64)
- Me.Label11.Name = "Label11"
- Me.Label11.Size = New System.Drawing.Size(54, 17)
- Me.Label11.TabIndex = 21
- Me.Label11.Text = "建议价:"
- '
- 'txtlprice
- '
- Me.txtlprice.Location = New System.Drawing.Point(504, 56)
- Me.txtlprice.Name = "txtlprice"
- Me.txtlprice.ReadOnly = True
- Me.txtlprice.Size = New System.Drawing.Size(80, 21)
- Me.txtlprice.TabIndex = 20
- Me.txtlprice.Text = ""
- '
- 'TextBox14
- '
- Me.TextBox14.Location = New System.Drawing.Point(352, 56)
- Me.TextBox14.Name = "TextBox14"
- Me.TextBox14.ReadOnly = True
- Me.TextBox14.Size = New System.Drawing.Size(80, 21)
- Me.TextBox14.TabIndex = 18
- Me.TextBox14.Text = ""
- '
- 'TextBox15
- '
- Me.TextBox15.Location = New System.Drawing.Point(656, 56)
- Me.TextBox15.Name = "TextBox15"
- Me.TextBox15.ReadOnly = True
- Me.TextBox15.Size = New System.Drawing.Size(80, 21)
- Me.TextBox15.TabIndex = 22
- Me.TextBox15.Text = ""
- '
- 'TextBox16
- '
- Me.TextBox16.Location = New System.Drawing.Point(504, 56)
- Me.TextBox16.Name = "TextBox16"
- Me.TextBox16.ReadOnly = True
- Me.TextBox16.Size = New System.Drawing.Size(80, 21)
- Me.TextBox16.TabIndex = 20
- Me.TextBox16.Text = ""
- '
- 'TextBox17
- '
- Me.TextBox17.Location = New System.Drawing.Point(200, 56)
- Me.TextBox17.Name = "TextBox17"
- Me.TextBox17.ReadOnly = True
- Me.TextBox17.Size = New System.Drawing.Size(80, 21)
- Me.TextBox17.TabIndex = 16
- Me.TextBox17.Text = ""
- '
- 'TextBox18
- '
- Me.TextBox18.Location = New System.Drawing.Point(800, 56)
- Me.TextBox18.Name = "TextBox18"
- Me.TextBox18.ReadOnly = True
- Me.TextBox18.Size = New System.Drawing.Size(80, 21)
- Me.TextBox18.TabIndex = 24
- Me.TextBox18.Text = ""
- '
- '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, 199)
- Me.dgview.Name = "dgview"
- Me.dgview.Size = New System.Drawing.Size(896, 277)
- Me.dgview.TabIndex = 2
- '
- 'ErrorProvider1
- '
- Me.ErrorProvider1.ContainerControl = Me
- '
- 'frmTj
- '
- Me.AutoScaleBaseSize = New System.Drawing.Size(6, 14)
- Me.ClientSize = New System.Drawing.Size(896, 476)
- Me.Controls.Add(Me.dgview)
- Me.Controls.Add(Me.GroupBox1)
- Me.Controls.Add(Me.tbntj)
- Me.Name = "frmTj"
- Me.Text = "frmTj"
- Me.WindowState = System.Windows.Forms.FormWindowState.Maximized
- Me.GroupBox1.ResumeLayout(False)
- CType(Me.dgview, System.ComponentModel.ISupportInitialize).EndInit()
- Me.ResumeLayout(False)
- End Sub
- #End Region
- Public lsweb As New jxcmanage
- Public dslocals As DataSet = lsweb.returndataset("select 序号,药品编号,药品名称,药品规格,单位,进价,售价,批发价,零售价,建议价,最低价,现进价,现售价,现批发价,现零售价,现建议价,现最低价,票号,摘要,经手人,业务 from wz_tj", "wz_tj")
- Private Sub txtmednumber_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtmednumber.TextChanged
- End Sub
- Public Function getinfo(ByVal strqueryid As String) As String
- Dim strOrderId As String
- strOrderId = strqueryid
- Return strOrderId
- End Function
- Private Sub txtmednumber_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles txtmednumber.KeyDown
- If e.KeyCode = Keys.Enter Then
- Dim dlg As frmMedQuery = New frmMedQuery
- dlg.PYM = Me.getinfo(txtmednumber.Text)
- If dlg.PYM = "" 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, "不能为空,请输入查询码!或没有查到记录,请重新开始!")
- 'txtNumber.Focus()
- Else
- Dim runSqlQuery As String
- runSqlQuery = "select * from wz_cp 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)("单位")
- txtjj.Text = dv(0)("单价")
- txtsj.Text = dv(0)("售价")
- txtxjj.Text = dv(0)("单价")
- txtxsj.Text = dv(0)("售价")
- txtpprice.Text = dv(0)("批发价")
- txtlprice.Text = dv(0)("零售价")
- txtjprice.Text = dv(0)("建议价")
- txtzprice.Text = dv(0)("最低价")
- txtxpprice.Text = dv(0)("批发价")
- txtxlprice.Text = dv(0)("零售价")
- txtxjprice.Text = dv(0)("建议价")
- txtxzprice.Text = dv(0)("最低价")
- ErrorProvider1.SetError(txtmednumber, "")
- txtxjj.Focus()
- End If
- End If
- End Sub
- Private Sub txtxjj_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtxjj.TextChanged
- End Sub
- Private Sub txtxjj_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles txtxjj.KeyDown
- If e.KeyCode = Keys.Enter Then
- txtxsj.Focus()
- End If
- End Sub
- Private Sub txtxsj_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtxsj.TextChanged
- End Sub
- Private Sub txtxsj_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles txtxsj.KeyDown
- If e.KeyCode = Keys.Enter Then
- txtxpprice.Focus()
- End If
- End Sub
- Private Sub txtxpprice_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtxpprice.TextChanged
- End Sub
- Private Sub txtxpprice_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles txtxpprice.KeyDown
- If e.KeyCode = Keys.Enter Then
- txtxlprice.Focus()
- End If
- End Sub
- Private Sub txtxlprice_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtxlprice.TextChanged
- End Sub
- Private Sub txtxlprice_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles txtxlprice.KeyDown
- If e.KeyCode = Keys.Enter Then
- txtxjprice.Focus()
- End If
- End Sub
- Private Sub txtxjprice_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtxjprice.TextChanged
- End Sub
- Private Sub txtxjprice_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles txtxjprice.KeyDown
- If e.KeyCode = Keys.Enter Then
- txtxzprice.Focus()
- End If
- End Sub
- Private Sub txtxzprice_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtxzprice.TextChanged
- End Sub
- Private Sub txtxzprice_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles txtxzprice.KeyDown
- If e.KeyCode = Keys.Enter Then
- cbojsr.Focus()
- End If
- End Sub
- Private Sub cbojsr_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cbojsr.SelectedIndexChanged
- End Sub
- Private Sub cbojsr_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles cbojsr.KeyDown
- If e.KeyCode = Keys.Enter Then
- txtzy.Focus()
- End If
- End Sub
- Private Sub txtzy_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtzy.TextChanged
- End Sub
- Private Sub txtzy_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles txtzy.KeyDown
- If e.KeyCode = Keys.Enter Then
- txtyw.Focus()
- End If
- End Sub
- Private Sub txtxjj_Validating(ByVal sender As Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles txtxjj.Validating
- If Not IsNumeric(txtxjj.Text) Or txtxjj.Text = String.Empty Then
- ErrorProvider1.SetError(txtxjj, "不是数值类型且不能为空。")
- e.Cancel = True
- Else
- ErrorProvider1.SetError(txtxjj, "")
- End If
- End Sub
- Private Sub txtxsj_Validating(ByVal sender As Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles txtxsj.Validating
- If Not IsNumeric(txtxsj.Text) Or txtxsj.Text = String.Empty Then
- ErrorProvider1.SetError(txtxsj, "不是数值类型且不能为空。")
- e.Cancel = True
- Else
- ErrorProvider1.SetError(txtxsj, "")
- End If
- End Sub
- Private Sub txtxpprice_Validating(ByVal sender As Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles txtxpprice.Validating
- If Not IsNumeric(txtxpprice.Text) Or txtxpprice.Text = String.Empty Then
- ErrorProvider1.SetError(txtxpprice, "不是数值类型且不能为空。")
- e.Cancel = True
- Else
- ErrorProvider1.SetError(txtxpprice, "")
- End If
- End Sub
- Private Sub txtxlprice_Validating(ByVal sender As Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles txtxlprice.Validating
- If Not IsNumeric(txtxlprice.Text) Or txtxlprice.Text = String.Empty Then
- ErrorProvider1.SetError(txtxlprice, "不是数值类型且不能为空。")
- e.Cancel = True
- Else
- ErrorProvider1.SetError(txtxlprice, "")
- End If
- End Sub
- Private Sub txtxjprice_Validating(ByVal sender As Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles txtxjprice.Validating
- If Not IsNumeric(txtxjprice.Text) Or txtxjprice.Text = String.Empty Then
- ErrorProvider1.SetError(txtxjprice, "不是数值类型且不能为空。")
- e.Cancel = True
- Else
- ErrorProvider1.SetError(txtxjprice, "")
- End If
- End Sub
- Private Sub txtxzprice_Validating(ByVal sender As Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles txtxzprice.Validating
- If Not IsNumeric(txtxzprice.Text) Or txtxzprice.Text = String.Empty Then
- ErrorProvider1.SetError(txtxzprice, "不是数值类型且不能为空。")
- e.Cancel = True
- Else
- ErrorProvider1.SetError(txtxzprice, "")
- End If
- End Sub
- Private Sub cbojsr_Validating(ByVal sender As Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles cbojsr.Validating
- If cbojsr.Text = String.Empty Then
- ErrorProvider1.SetError(cbojsr, "不能为空!")
- e.Cancel = True
- Else
- ErrorProvider1.SetError(cbojsr, "")
- End If
- End Sub
- Private Sub frmTj_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
- tbnsave.Enabled = False
- dslocals.Clear()
- dgview.DataSource = dslocals.Tables("wz_tj").DefaultView
- End Sub
- Public Sub add()
- dslocals.Clear()
- txtmednumber.Text() = ""
- txtmednumber.Focus()
- txtNo.Text = 1
- Dim mmdr As System.Data.SqlClient.SqlDataReader
-
- mmdr = lsweb.returnDataReader("select 操作员 from wz_mm")
- Do While mmdr.Read()
- cbojsr.Items.Add(mmdr("操作员"))
- Loop
- txtbillnumber.Text = lsweb.selectbill("TJ").ToString
- txtmedname.Text() = ""
- txtmedrule.Text() = ""
- txtUnit.Text() = ""
- txtjj.Text() = CStr(0)
- txtsj.Text() = CStr(0)
- txtPprice.Text() = CStr(0)
- txtLprice.Text() = CStr(0)
- txtJprice.Text() = CStr(0)
- txtzprice.Text() = CStr(0)
- txtxjj.Text() = CStr(0)
- txtxsj.Text() = CStr(0)
- txtxpprice.Text() = CStr(0)
- txtxlprice.Text() = CStr(0)
- txtxjprice.Text() = CStr(0)
- txtxzprice.Text() = CStr(0)
- txtyw.Text = ""
- txtzy.Text = ""
- End Sub
- Private Sub clear()
- txtNo.ReadOnly = True
- cbojsr.Enabled = False
- txtmednumber.Text = ""
- txtmedname.Text() = ""
- txtmedrule.Text() = ""
- txtUnit.Text() = ""
-
- txtJJ.Text() = 0.0
- txtsj.Text() = 0.0
- txtPprice.Text() = CStr(0.0)
- txtLprice.Text() = CStr(0.0)
- txtJprice.Text() = CStr(0.0)
- txtzprice.Text() = CStr(0.0)
- txtxjj.Text() = 0.0
- txtxsj.Text() = 0.0
- txtxpprice.Text() = CStr(0.0)
- txtxlprice.Text() = CStr(0.0)
- txtxjprice.Text() = CStr(0.0)
- txtxzprice.Text() = CStr(0.0)
- txtzy.Text = ""
- txtyw.Text = ""
- 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
- Private Sub save()
- If lsweb.updatedataset("select 序号,药品编号,药品名称,药品规格,单位,进价,售价,批发价,零售价,建议价,最低价,现进价,现售价,现批发价,现零售价,现建议价,现最低价,票号,摘要,经手人,业务 from wz_tj", "wz_tj", dslocals, DataRowState.Added) = True Then
- MessageBox.Show("信息成功保存!", "提示", MessageBoxButtons.OK)
- Else
- MessageBox.Show("信息保存失败!", "提示", MessageBoxButtons.AbortRetryIgnore)
- End If
- End Sub
- Private Sub txtyw_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles txtyw.KeyDown
- If e.KeyCode = Keys.Enter Then
- Static i As Int16
- i = i + 1
- txtno.Text = CStr(i)
- Dim dr As DataRow = dslocals.Tables("wz_tj").NewRow()
- dr("序号") = CInt(Me.txtno.Text.Trim)
- dr("票号") = Me.txtbillnumber.Text.Trim
- dr("药品编号") = Me.txtmednumber.Text.Trim
- dr("药品名称") = Me.txtmedname.Text.Trim
- dr("药品规格") = Me.txtmedrule.Text.Trim
- dr("单位") = Me.txtunit.Text.Trim
- dr("进价") = CDec(Me.txtjj.Text.Trim)
- dr("现进价") = CDec(Me.txtxjj.Text.Trim)
- dr("售价") = CDec(Me.txtsj.Text.Trim)
- dr("现售价") = CDec(Me.txtxsj.Text.Trim)
- dr("批发价") = CDec(Me.txtpprice.Text.Trim)
- dr("零售价") = CDec(Me.txtlprice.Text.Trim)
- dr("建议价") = CDec(Me.txtjprice.Text.Trim)
- dr("最低价") = CDec(Me.txtzprice.Text.Trim)
- dr("现批发价") = CDec(Me.txtxpprice.Text.Trim)
- dr("现零售价") = CDec(Me.txtxlprice.Text.Trim)
- dr("现建议价") = CDec(Me.txtxjprice.Text.Trim)
- dr("现最低价") = CDec(Me.txtxzprice.Text.Trim)
- dr("摘要") = Me.txtzy.Text.Trim
- dr("经手人") = Me.cbojsr.Text.Trim
- dr("业务") = Me.txtyw.Text.Trim
- dslocals.Tables("wz_tj").Rows.Add(dr)
- txtmednumber.Focus()
- ' clear()
- End If
- dgview.DataSource = dslocals.Tables("wz_tj").DefaultView
- End Sub
- Private Sub tbntj_ButtonClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.ToolBarButtonClickEventArgs) Handles tbntj.ButtonClick
- Select Case e.Button.Text
- Case "添加"
- add()
- tbnEnable("tbnAdd.Enabled = False", tbntj)
- Case "保存"
- save()
- tbnEnable("tbnSave.Enabled = False", tbntj)
- Case "退出"
- Me.Close()
- End Select
- End Sub
- End Class