frmPsPst.vb
上传用户:wj57717022
上传日期:2014-12-16
资源大小:4093k
文件大小:55k
源码类别:

医药行业

开发平台:

Visual Basic

  1. Public Class frmPsPst
  2.     Inherits System.Windows.Forms.Form
  3. #Region " Windows 窗体设计器生成的代码 "
  4.     Public Sub New()
  5.         MyBase.New()
  6.         '该调用是 Windows 窗体设计器所必需的。
  7.         InitializeComponent()
  8.         '在 InitializeComponent() 调用之后添加任何初始化
  9.     End Sub
  10.     '窗体重写 dispose 以清理组件列表。
  11.     Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
  12.         If disposing Then
  13.             If Not (components Is Nothing) Then
  14.                 components.Dispose()
  15.             End If
  16.         End If
  17.         MyBase.Dispose(disposing)
  18.     End Sub
  19.     'Windows 窗体设计器所必需的
  20.     Private components As System.ComponentModel.IContainer
  21.     '注意: 以下过程是 Windows 窗体设计器所必需的
  22.     '可以使用 Windows 窗体设计器修改此过程。
  23.     '不要使用代码编辑器修改它。
  24.     Friend WithEvents StatusBar1 As System.Windows.Forms.StatusBar
  25.     Friend WithEvents GroupBox1 As System.Windows.Forms.GroupBox
  26.     Friend WithEvents Label8 As System.Windows.Forms.Label
  27.     Friend WithEvents Label7 As System.Windows.Forms.Label
  28.     Friend WithEvents Label6 As System.Windows.Forms.Label
  29.     Friend WithEvents Label5 As System.Windows.Forms.Label
  30.     Friend WithEvents Label3 As System.Windows.Forms.Label
  31.     Friend WithEvents Label2 As System.Windows.Forms.Label
  32.     Friend WithEvents Label1 As System.Windows.Forms.Label
  33.     Friend WithEvents Label21 As System.Windows.Forms.Label
  34.     Friend WithEvents txtSum As System.Windows.Forms.TextBox
  35.     Friend WithEvents ErrorProvider1 As System.Windows.Forms.ErrorProvider
  36.     Friend WithEvents tbnAdd As System.Windows.Forms.ToolBarButton
  37.     Friend WithEvents tbnSave As System.Windows.Forms.ToolBarButton
  38.     Friend WithEvents tbnPrint As System.Windows.Forms.ToolBarButton
  39.     Friend WithEvents tbnExit As System.Windows.Forms.ToolBarButton
  40.     Friend WithEvents txtBhDate As System.Windows.Forms.DateTimePicker
  41.     Friend WithEvents txtBhType As System.Windows.Forms.ComboBox
  42.     Friend WithEvents txtBhy As System.Windows.Forms.ComboBox
  43.     Friend WithEvents MsdnTextboxValidator1 As MSDNTextboxValidator.MSDNTextboxValidator
  44.     Friend WithEvents txtPsCenter As System.Windows.Forms.ComboBox
  45.     Friend WithEvents txtbillnumber As System.Windows.Forms.TextBox
  46.     Friend WithEvents txtshy As System.Windows.Forms.TextBox
  47.     Friend WithEvents txtBhNumber As System.Windows.Forms.TextBox
  48.     Friend WithEvents Label4 As System.Windows.Forms.Label
  49.     Friend WithEvents Panel1 As System.Windows.Forms.Panel
  50.     Friend WithEvents GroupBox2 As System.Windows.Forms.GroupBox
  51.     Friend WithEvents txtPackage As System.Windows.Forms.TextBox
  52.     Friend WithEvents txtUnit As System.Windows.Forms.TextBox
  53.     Friend WithEvents Label22 As System.Windows.Forms.Label
  54.     Friend WithEvents txtNo As System.Windows.Forms.TextBox
  55.     Friend WithEvents Label20 As System.Windows.Forms.Label
  56.     Friend WithEvents Label16 As System.Windows.Forms.Label
  57.     Friend WithEvents txtProduct As System.Windows.Forms.TextBox
  58.     Friend WithEvents txtAvaid As System.Windows.Forms.TextBox
  59.     Friend WithEvents txtBatch As System.Windows.Forms.TextBox
  60.     Friend WithEvents txtMoney As System.Windows.Forms.TextBox
  61.     Friend WithEvents txtPrice As System.Windows.Forms.TextBox
  62.     Friend WithEvents txtCount As System.Windows.Forms.TextBox
  63.     Friend WithEvents txtMedRule As System.Windows.Forms.TextBox
  64.     Friend WithEvents txtmedName As System.Windows.Forms.TextBox
  65.     Friend WithEvents txtMedNumber As System.Windows.Forms.TextBox
  66.     Friend WithEvents Label19 As System.Windows.Forms.Label
  67.     Friend WithEvents Label18 As System.Windows.Forms.Label
  68.     Friend WithEvents Label17 As System.Windows.Forms.Label
  69.     Friend WithEvents Label15 As System.Windows.Forms.Label
  70.     Friend WithEvents Label14 As System.Windows.Forms.Label
  71.     Friend WithEvents Label13 As System.Windows.Forms.Label
  72.     Friend WithEvents Label11 As System.Windows.Forms.Label
  73.     Friend WithEvents Label10 As System.Windows.Forms.Label
  74.     Friend WithEvents Label9 As System.Windows.Forms.Label
  75.     Friend WithEvents Panel2 As System.Windows.Forms.Panel
  76.     Friend WithEvents dgview As System.Windows.Forms.DataGrid
  77.     Friend WithEvents tbnPs As System.Windows.Forms.ToolBar
  78.     Friend WithEvents ImageList2 As System.Windows.Forms.ImageList
  79.     Friend WithEvents Label12 As System.Windows.Forms.Label
  80.     Friend WithEvents txtPsMedName As System.Windows.Forms.ComboBox
  81.     Friend WithEvents Label23 As System.Windows.Forms.Label
  82.     Friend WithEvents txthw As System.Windows.Forms.TextBox
  83.     <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
  84.         Me.components = New System.ComponentModel.Container
  85.         Dim resources As System.Resources.ResourceManager = New System.Resources.ResourceManager(GetType(frmPsPst))
  86.         Me.tbnPs = New System.Windows.Forms.ToolBar
  87.         Me.tbnAdd = New System.Windows.Forms.ToolBarButton
  88.         Me.tbnSave = New System.Windows.Forms.ToolBarButton
  89.         Me.tbnPrint = New System.Windows.Forms.ToolBarButton
  90.         Me.tbnExit = New System.Windows.Forms.ToolBarButton
  91.         Me.ImageList2 = New System.Windows.Forms.ImageList(Me.components)
  92.         Me.StatusBar1 = New System.Windows.Forms.StatusBar
  93.         Me.GroupBox1 = New System.Windows.Forms.GroupBox
  94.         Me.txthw = New System.Windows.Forms.TextBox
  95.         Me.Label23 = New System.Windows.Forms.Label
  96.         Me.txtPsMedName = New System.Windows.Forms.ComboBox
  97.         Me.Label12 = New System.Windows.Forms.Label
  98.         Me.Label4 = New System.Windows.Forms.Label
  99.         Me.txtBhNumber = New System.Windows.Forms.TextBox
  100.         Me.txtshy = New System.Windows.Forms.TextBox
  101.         Me.txtbillnumber = New System.Windows.Forms.TextBox
  102.         Me.txtPsCenter = New System.Windows.Forms.ComboBox
  103.         Me.txtBhy = New System.Windows.Forms.ComboBox
  104.         Me.txtBhType = New System.Windows.Forms.ComboBox
  105.         Me.txtBhDate = New System.Windows.Forms.DateTimePicker
  106.         Me.txtSum = New System.Windows.Forms.TextBox
  107.         Me.Label21 = New System.Windows.Forms.Label
  108.         Me.Label8 = New System.Windows.Forms.Label
  109.         Me.Label7 = New System.Windows.Forms.Label
  110.         Me.Label6 = New System.Windows.Forms.Label
  111.         Me.Label5 = New System.Windows.Forms.Label
  112.         Me.Label3 = New System.Windows.Forms.Label
  113.         Me.Label2 = New System.Windows.Forms.Label
  114.         Me.Label1 = New System.Windows.Forms.Label
  115.         Me.ErrorProvider1 = New System.Windows.Forms.ErrorProvider
  116.         Me.MsdnTextboxValidator1 = New MSDNTextboxValidator.MSDNTextboxValidator(Me.components)
  117.         Me.txtPackage = New System.Windows.Forms.TextBox
  118.         Me.txtUnit = New System.Windows.Forms.TextBox
  119.         Me.txtNo = New System.Windows.Forms.TextBox
  120.         Me.txtProduct = New System.Windows.Forms.TextBox
  121.         Me.txtAvaid = New System.Windows.Forms.TextBox
  122.         Me.txtBatch = New System.Windows.Forms.TextBox
  123.         Me.txtMoney = New System.Windows.Forms.TextBox
  124.         Me.txtPrice = New System.Windows.Forms.TextBox
  125.         Me.txtCount = New System.Windows.Forms.TextBox
  126.         Me.txtMedRule = New System.Windows.Forms.TextBox
  127.         Me.txtmedName = New System.Windows.Forms.TextBox
  128.         Me.txtMedNumber = New System.Windows.Forms.TextBox
  129.         Me.Panel1 = New System.Windows.Forms.Panel
  130.         Me.GroupBox2 = New System.Windows.Forms.GroupBox
  131.         Me.Label22 = New System.Windows.Forms.Label
  132.         Me.Label20 = New System.Windows.Forms.Label
  133.         Me.Label16 = New System.Windows.Forms.Label
  134.         Me.Label19 = New System.Windows.Forms.Label
  135.         Me.Label18 = New System.Windows.Forms.Label
  136.         Me.Label17 = New System.Windows.Forms.Label
  137.         Me.Label15 = New System.Windows.Forms.Label
  138.         Me.Label14 = New System.Windows.Forms.Label
  139.         Me.Label13 = New System.Windows.Forms.Label
  140.         Me.Label11 = New System.Windows.Forms.Label
  141.         Me.Label10 = New System.Windows.Forms.Label
  142.         Me.Label9 = New System.Windows.Forms.Label
  143.         Me.Panel2 = New System.Windows.Forms.Panel
  144.         Me.dgview = New System.Windows.Forms.DataGrid
  145.         Me.GroupBox1.SuspendLayout()
  146.         Me.Panel1.SuspendLayout()
  147.         Me.GroupBox2.SuspendLayout()
  148.         Me.Panel2.SuspendLayout()
  149.         CType(Me.dgview, System.ComponentModel.ISupportInitialize).BeginInit()
  150.         Me.SuspendLayout()
  151.         '
  152.         'tbnPs
  153.         '
  154.         Me.tbnPs.Appearance = System.Windows.Forms.ToolBarAppearance.Flat
  155.         Me.tbnPs.Buttons.AddRange(New System.Windows.Forms.ToolBarButton() {Me.tbnAdd, Me.tbnSave, Me.tbnPrint, Me.tbnExit})
  156.         Me.tbnPs.DropDownArrows = True
  157.         Me.tbnPs.ImageList = Me.ImageList2
  158.         Me.tbnPs.Location = New System.Drawing.Point(0, 0)
  159.         Me.tbnPs.Name = "tbnPs"
  160.         Me.tbnPs.ShowToolTips = True
  161.         Me.tbnPs.Size = New System.Drawing.Size(734, 44)
  162.         Me.tbnPs.TabIndex = 0
  163.         '
  164.         'tbnAdd
  165.         '
  166.         Me.tbnAdd.ImageIndex = 7
  167.         Me.tbnAdd.Text = "添加"
  168.         '
  169.         'tbnSave
  170.         '
  171.         Me.tbnSave.ImageIndex = 4
  172.         Me.tbnSave.Text = "保存"
  173.         '
  174.         'tbnPrint
  175.         '
  176.         Me.tbnPrint.ImageIndex = 12
  177.         Me.tbnPrint.Text = "打印"
  178.         '
  179.         'tbnExit
  180.         '
  181.         Me.tbnExit.ImageIndex = 11
  182.         Me.tbnExit.Text = "退出"
  183.         '
  184.         'ImageList2
  185.         '
  186.         Me.ImageList2.ImageSize = New System.Drawing.Size(16, 16)
  187.         Me.ImageList2.ImageStream = CType(resources.GetObject("ImageList2.ImageStream"), System.Windows.Forms.ImageListStreamer)
  188.         Me.ImageList2.TransparentColor = System.Drawing.Color.Transparent
  189.         '
  190.         'StatusBar1
  191.         '
  192.         Me.StatusBar1.Location = New System.Drawing.Point(0, 694)
  193.         Me.StatusBar1.Name = "StatusBar1"
  194.         Me.StatusBar1.Size = New System.Drawing.Size(734, 22)
  195.         Me.StatusBar1.TabIndex = 1
  196.         Me.StatusBar1.Text = "StatusBar1"
  197.         '
  198.         'GroupBox1
  199.         '
  200.         Me.GroupBox1.Controls.Add(Me.txthw)
  201.         Me.GroupBox1.Controls.Add(Me.Label23)
  202.         Me.GroupBox1.Controls.Add(Me.txtPsMedName)
  203.         Me.GroupBox1.Controls.Add(Me.Label12)
  204.         Me.GroupBox1.Controls.Add(Me.Label4)
  205.         Me.GroupBox1.Controls.Add(Me.txtBhNumber)
  206.         Me.GroupBox1.Controls.Add(Me.txtshy)
  207.         Me.GroupBox1.Controls.Add(Me.txtbillnumber)
  208.         Me.GroupBox1.Controls.Add(Me.txtPsCenter)
  209.         Me.GroupBox1.Controls.Add(Me.txtBhy)
  210.         Me.GroupBox1.Controls.Add(Me.txtBhType)
  211.         Me.GroupBox1.Controls.Add(Me.txtBhDate)
  212.         Me.GroupBox1.Controls.Add(Me.txtSum)
  213.         Me.GroupBox1.Controls.Add(Me.Label21)
  214.         Me.GroupBox1.Controls.Add(Me.Label8)
  215.         Me.GroupBox1.Controls.Add(Me.Label7)
  216.         Me.GroupBox1.Controls.Add(Me.Label6)
  217.         Me.GroupBox1.Controls.Add(Me.Label5)
  218.         Me.GroupBox1.Controls.Add(Me.Label3)
  219.         Me.GroupBox1.Controls.Add(Me.Label2)
  220.         Me.GroupBox1.Controls.Add(Me.Label1)
  221.         Me.GroupBox1.Dock = System.Windows.Forms.DockStyle.Top
  222.         Me.GroupBox1.Location = New System.Drawing.Point(0, 44)
  223.         Me.GroupBox1.Name = "GroupBox1"
  224.         Me.GroupBox1.Size = New System.Drawing.Size(734, 153)
  225.         Me.GroupBox1.TabIndex = 2
  226.         Me.GroupBox1.TabStop = False
  227.         Me.GroupBox1.Text = "配送信息"
  228.         '
  229.         'txthw
  230.         '
  231.         Me.MsdnTextboxValidator1.SetCustomValidationEnabled(Me.txthw, True)
  232.         Me.MsdnTextboxValidator1.SetDataType(Me.txthw, MSDNTextboxValidator.DataTypeConstants.StringType)
  233.         Me.MsdnTextboxValidator1.SetDisplayName(Me.txthw, "")
  234.         Me.txthw.Location = New System.Drawing.Point(480, 104)
  235.         Me.MsdnTextboxValidator1.SetMaxValue(Me.txthw, "")
  236.         Me.MsdnTextboxValidator1.SetMinValue(Me.txthw, "")
  237.         Me.txthw.Name = "txthw"
  238.         Me.txthw.ReadOnly = True
  239.         Me.MsdnTextboxValidator1.SetRegularExpression(Me.txthw, "")
  240.         Me.MsdnTextboxValidator1.SetRequired(Me.txthw, False)
  241.         Me.txthw.Size = New System.Drawing.Size(80, 25)
  242.         Me.txthw.TabIndex = 49
  243.         Me.txthw.Text = ""
  244.         '
  245.         'Label23
  246.         '
  247.         Me.Label23.AutoSize = True
  248.         Me.Label23.Location = New System.Drawing.Point(440, 112)
  249.         Me.Label23.Name = "Label23"
  250.         Me.Label23.Size = New System.Drawing.Size(52, 21)
  251.         Me.Label23.TabIndex = 47
  252.         Me.Label23.Text = "货位:"
  253.         '
  254.         'txtPsMedName
  255.         '
  256.         Me.txtPsMedName.Location = New System.Drawing.Point(96, 64)
  257.         Me.txtPsMedName.Name = "txtPsMedName"
  258.         Me.txtPsMedName.Size = New System.Drawing.Size(136, 23)
  259.         Me.txtPsMedName.TabIndex = 45
  260.         '
  261.         'Label12
  262.         '
  263.         Me.Label12.AutoSize = True
  264.         Me.Label12.Location = New System.Drawing.Point(24, 72)
  265.         Me.Label12.Name = "Label12"
  266.         Me.Label12.Size = New System.Drawing.Size(83, 21)
  267.         Me.Label12.TabIndex = 44
  268.         Me.Label12.Text = "配送对象:"
  269.         '
  270.         'Label4
  271.         '
  272.         Me.Label4.Location = New System.Drawing.Point(0, 0)
  273.         Me.Label4.Name = "Label4"
  274.         Me.Label4.TabIndex = 46
  275.         '
  276.         'txtBhNumber
  277.         '
  278.         Me.MsdnTextboxValidator1.SetCustomValidationEnabled(Me.txtBhNumber, True)
  279.         Me.MsdnTextboxValidator1.SetDataType(Me.txtBhNumber, MSDNTextboxValidator.DataTypeConstants.StringType)
  280.         Me.MsdnTextboxValidator1.SetDisplayName(Me.txtBhNumber, "")
  281.         Me.txtBhNumber.Location = New System.Drawing.Point(560, 24)
  282.         Me.MsdnTextboxValidator1.SetMaxValue(Me.txtBhNumber, "")
  283.         Me.MsdnTextboxValidator1.SetMinValue(Me.txtBhNumber, "")
  284.         Me.txtBhNumber.Name = "txtBhNumber"
  285.         Me.txtBhNumber.ReadOnly = True
  286.         Me.MsdnTextboxValidator1.SetRegularExpression(Me.txtBhNumber, "")
  287.         Me.MsdnTextboxValidator1.SetRequired(Me.txtBhNumber, False)
  288.         Me.txtBhNumber.Size = New System.Drawing.Size(152, 25)
  289.         Me.txtBhNumber.TabIndex = 41
  290.         Me.txtBhNumber.Text = ""
  291.         '
  292.         'txtshy
  293.         '
  294.         Me.MsdnTextboxValidator1.SetCustomValidationEnabled(Me.txtshy, True)
  295.         Me.MsdnTextboxValidator1.SetDataType(Me.txtshy, MSDNTextboxValidator.DataTypeConstants.StringType)
  296.         Me.MsdnTextboxValidator1.SetDisplayName(Me.txtshy, "")
  297.         Me.txtshy.Location = New System.Drawing.Point(560, 62)
  298.         Me.MsdnTextboxValidator1.SetMaxValue(Me.txtshy, "")
  299.         Me.MsdnTextboxValidator1.SetMinValue(Me.txtshy, "")
  300.         Me.txtshy.Name = "txtshy"
  301.         Me.txtshy.ReadOnly = True
  302.         Me.MsdnTextboxValidator1.SetRegularExpression(Me.txtshy, "")
  303.         Me.MsdnTextboxValidator1.SetRequired(Me.txtshy, False)
  304.         Me.txtshy.Size = New System.Drawing.Size(152, 25)
  305.         Me.txtshy.TabIndex = 40
  306.         Me.txtshy.Text = ""
  307.         '
  308.         'txtbillnumber
  309.         '
  310.         Me.MsdnTextboxValidator1.SetCustomValidationEnabled(Me.txtbillnumber, True)
  311.         Me.MsdnTextboxValidator1.SetDataType(Me.txtbillnumber, MSDNTextboxValidator.DataTypeConstants.StringType)
  312.         Me.MsdnTextboxValidator1.SetDisplayName(Me.txtbillnumber, "")
  313.         Me.txtbillnumber.Location = New System.Drawing.Point(85, 24)
  314.         Me.MsdnTextboxValidator1.SetMaxValue(Me.txtbillnumber, "")
  315.         Me.MsdnTextboxValidator1.SetMinValue(Me.txtbillnumber, "")
  316.         Me.txtbillnumber.Name = "txtbillnumber"
  317.         Me.txtbillnumber.ReadOnly = True
  318.         Me.MsdnTextboxValidator1.SetRegularExpression(Me.txtbillnumber, "")
  319.         Me.MsdnTextboxValidator1.SetRequired(Me.txtbillnumber, False)
  320.         Me.txtbillnumber.Size = New System.Drawing.Size(147, 25)
  321.         Me.txtbillnumber.TabIndex = 39
  322.         Me.txtbillnumber.Text = ""
  323.         '
  324.         'txtPsCenter
  325.         '
  326.         Me.txtPsCenter.Location = New System.Drawing.Point(96, 103)
  327.         Me.txtPsCenter.Name = "txtPsCenter"
  328.         Me.txtPsCenter.Size = New System.Drawing.Size(136, 23)
  329.         Me.txtPsCenter.TabIndex = 38
  330.         '
  331.         'txtBhy
  332.         '
  333.         Me.txtBhy.Location = New System.Drawing.Point(328, 104)
  334.         Me.txtBhy.Name = "txtBhy"
  335.         Me.txtBhy.Size = New System.Drawing.Size(88, 23)
  336.         Me.txtBhy.TabIndex = 36
  337.         '
  338.         'txtBhType
  339.         '
  340.         Me.txtBhType.Location = New System.Drawing.Point(328, 62)
  341.         Me.txtBhType.Name = "txtBhType"
  342.         Me.txtBhType.Size = New System.Drawing.Size(136, 23)
  343.         Me.txtBhType.TabIndex = 35
  344.         '
  345.         'txtBhDate
  346.         '
  347.         Me.txtBhDate.Location = New System.Drawing.Point(328, 24)
  348.         Me.txtBhDate.Name = "txtBhDate"
  349.         Me.txtBhDate.Size = New System.Drawing.Size(136, 25)
  350.         Me.txtBhDate.TabIndex = 34
  351.         '
  352.         'txtSum
  353.         '
  354.         Me.MsdnTextboxValidator1.SetCustomValidationEnabled(Me.txtSum, True)
  355.         Me.MsdnTextboxValidator1.SetDataType(Me.txtSum, MSDNTextboxValidator.DataTypeConstants.StringType)
  356.         Me.MsdnTextboxValidator1.SetDisplayName(Me.txtSum, "")
  357.         Me.txtSum.Location = New System.Drawing.Point(640, 104)
  358.         Me.MsdnTextboxValidator1.SetMaxValue(Me.txtSum, "")
  359.         Me.MsdnTextboxValidator1.SetMinValue(Me.txtSum, "")
  360.         Me.txtSum.Name = "txtSum"
  361.         Me.txtSum.ReadOnly = True
  362.         Me.MsdnTextboxValidator1.SetRegularExpression(Me.txtSum, "")
  363.         Me.MsdnTextboxValidator1.SetRequired(Me.txtSum, False)
  364.         Me.txtSum.Size = New System.Drawing.Size(72, 25)
  365.         Me.txtSum.TabIndex = 33
  366.         Me.txtSum.Text = ""
  367.         '
  368.         'Label21
  369.         '
  370.         Me.Label21.AutoSize = True
  371.         Me.Label21.ForeColor = System.Drawing.Color.Red
  372.         Me.Label21.Location = New System.Drawing.Point(568, 112)
  373.         Me.Label21.Name = "Label21"
  374.         Me.Label21.RightToLeft = System.Windows.Forms.RightToLeft.No
  375.         Me.Label21.Size = New System.Drawing.Size(83, 21)
  376.         Me.Label21.TabIndex = 32
  377.         Me.Label21.Text = "合计金额:"
  378.         '
  379.         'Label8
  380.         '
  381.         Me.Label8.AutoSize = True
  382.         Me.Label8.Location = New System.Drawing.Point(504, 72)
  383.         Me.Label8.Name = "Label8"
  384.         Me.Label8.Size = New System.Drawing.Size(67, 21)
  385.         Me.Label8.TabIndex = 31
  386.         Me.Label8.Text = "审核员:"
  387.         '
  388.         'Label7
  389.         '
  390.         Me.Label7.AutoSize = True
  391.         Me.Label7.Location = New System.Drawing.Point(272, 113)
  392.         Me.Label7.Name = "Label7"
  393.         Me.Label7.Size = New System.Drawing.Size(67, 21)
  394.         Me.Label7.TabIndex = 30
  395.         Me.Label7.Text = "配送员:"
  396.         '
  397.         'Label6
  398.         '
  399.         Me.Label6.AutoSize = True
  400.         Me.Label6.Location = New System.Drawing.Point(256, 72)
  401.         Me.Label6.Name = "Label6"
  402.         Me.Label6.Size = New System.Drawing.Size(83, 21)
  403.         Me.Label6.TabIndex = 29
  404.         Me.Label6.Text = "配送状态:"
  405.         '
  406.         'Label5
  407.         '
  408.         Me.Label5.AutoSize = True
  409.         Me.Label5.Location = New System.Drawing.Point(21, 113)
  410.         Me.Label5.Name = "Label5"
  411.         Me.Label5.Size = New System.Drawing.Size(83, 21)
  412.         Me.Label5.TabIndex = 28
  413.         Me.Label5.Text = "配送中心:"
  414.         Me.Label5.TextAlign = System.Drawing.ContentAlignment.TopRight
  415.         '
  416.         'Label3
  417.         '
  418.         Me.Label3.AutoSize = True
  419.         Me.Label3.Location = New System.Drawing.Point(488, 32)
  420.         Me.Label3.Name = "Label3"
  421.         Me.Label3.Size = New System.Drawing.Size(83, 21)
  422.         Me.Label3.TabIndex = 26
  423.         Me.Label3.Text = "补货票号:"
  424.         '
  425.         'Label2
  426.         '
  427.         Me.Label2.AutoSize = True
  428.         Me.Label2.Location = New System.Drawing.Point(256, 31)
  429.         Me.Label2.Name = "Label2"
  430.         Me.Label2.Size = New System.Drawing.Size(83, 21)
  431.         Me.Label2.TabIndex = 25
  432.         Me.Label2.Text = "配货日期:"
  433.         '
  434.         'Label1
  435.         '
  436.         Me.Label1.AutoSize = True
  437.         Me.Label1.Location = New System.Drawing.Point(37, 32)
  438.         Me.Label1.Name = "Label1"
  439.         Me.Label1.Size = New System.Drawing.Size(52, 21)
  440.         Me.Label1.TabIndex = 24
  441.         Me.Label1.Text = "票号:"
  442.         Me.Label1.TextAlign = System.Drawing.ContentAlignment.TopRight
  443.         '
  444.         'ErrorProvider1
  445.         '
  446.         Me.ErrorProvider1.ContainerControl = Me
  447.         '
  448.         'MsdnTextboxValidator1
  449.         '
  450.         Me.MsdnTextboxValidator1.DisplayControl = Nothing
  451.         Me.MsdnTextboxValidator1.ErrorProvider = Nothing
  452.         Me.MsdnTextboxValidator1.InvalidBackColor = System.Drawing.Color.Empty
  453.         Me.MsdnTextboxValidator1.TooltipProvider = Nothing
  454.         '
  455.         'txtPackage
  456.         '
  457.         Me.MsdnTextboxValidator1.SetCustomValidationEnabled(Me.txtPackage, True)
  458.         Me.MsdnTextboxValidator1.SetDataType(Me.txtPackage, MSDNTextboxValidator.DataTypeConstants.StringType)
  459.         Me.MsdnTextboxValidator1.SetDisplayName(Me.txtPackage, "")
  460.         Me.txtPackage.Location = New System.Drawing.Point(656, 104)
  461.         Me.MsdnTextboxValidator1.SetMaxValue(Me.txtPackage, "")
  462.         Me.MsdnTextboxValidator1.SetMinValue(Me.txtPackage, "")
  463.         Me.txtPackage.Name = "txtPackage"
  464.         Me.txtPackage.ReadOnly = True
  465.         Me.MsdnTextboxValidator1.SetRegularExpression(Me.txtPackage, "")
  466.         Me.MsdnTextboxValidator1.SetRequired(Me.txtPackage, False)
  467.         Me.txtPackage.Size = New System.Drawing.Size(56, 25)
  468.         Me.txtPackage.TabIndex = 74
  469.         Me.txtPackage.Text = ""
  470.         '
  471.         'txtUnit
  472.         '
  473.         Me.MsdnTextboxValidator1.SetCustomValidationEnabled(Me.txtUnit, True)
  474.         Me.MsdnTextboxValidator1.SetDataType(Me.txtUnit, MSDNTextboxValidator.DataTypeConstants.StringType)
  475.         Me.MsdnTextboxValidator1.SetDisplayName(Me.txtUnit, "")
  476.         Me.txtUnit.Location = New System.Drawing.Point(656, 62)
  477.         Me.MsdnTextboxValidator1.SetMaxValue(Me.txtUnit, "")
  478.         Me.MsdnTextboxValidator1.SetMinValue(Me.txtUnit, "")
  479.         Me.txtUnit.Name = "txtUnit"
  480.         Me.txtUnit.ReadOnly = True
  481.         Me.MsdnTextboxValidator1.SetRegularExpression(Me.txtUnit, "")
  482.         Me.MsdnTextboxValidator1.SetRequired(Me.txtUnit, False)
  483.         Me.txtUnit.Size = New System.Drawing.Size(56, 25)
  484.         Me.txtUnit.TabIndex = 73
  485.         Me.txtUnit.Text = ""
  486.         '
  487.         'txtNo
  488.         '
  489.         Me.MsdnTextboxValidator1.SetCustomValidationEnabled(Me.txtNo, True)
  490.         Me.MsdnTextboxValidator1.SetDataType(Me.txtNo, MSDNTextboxValidator.DataTypeConstants.StringType)
  491.         Me.MsdnTextboxValidator1.SetDisplayName(Me.txtNo, "")
  492.         Me.txtNo.Location = New System.Drawing.Point(96, 62)
  493.         Me.MsdnTextboxValidator1.SetMaxValue(Me.txtNo, "")
  494.         Me.MsdnTextboxValidator1.SetMinValue(Me.txtNo, "")
  495.         Me.txtNo.Name = "txtNo"
  496.         Me.txtNo.ReadOnly = True
  497.         Me.MsdnTextboxValidator1.SetRegularExpression(Me.txtNo, "")
  498.         Me.MsdnTextboxValidator1.SetRequired(Me.txtNo, False)
  499.         Me.txtNo.Size = New System.Drawing.Size(40, 25)
  500.         Me.txtNo.TabIndex = 71
  501.         Me.txtNo.Text = ""
  502.         '
  503.         'txtProduct
  504.         '
  505.         Me.MsdnTextboxValidator1.SetCustomValidationEnabled(Me.txtProduct, True)
  506.         Me.MsdnTextboxValidator1.SetDataType(Me.txtProduct, MSDNTextboxValidator.DataTypeConstants.StringType)
  507.         Me.MsdnTextboxValidator1.SetDisplayName(Me.txtProduct, "")
  508.         Me.txtProduct.Location = New System.Drawing.Point(331, 103)
  509.         Me.MsdnTextboxValidator1.SetMaxValue(Me.txtProduct, "")
  510.         Me.MsdnTextboxValidator1.SetMinValue(Me.txtProduct, "")
  511.         Me.txtProduct.Name = "txtProduct"
  512.         Me.txtProduct.ReadOnly = True
  513.         Me.MsdnTextboxValidator1.SetRegularExpression(Me.txtProduct, "")
  514.         Me.MsdnTextboxValidator1.SetRequired(Me.txtProduct, False)
  515.         Me.txtProduct.Size = New System.Drawing.Size(128, 25)
  516.         Me.txtProduct.TabIndex = 67
  517.         Me.txtProduct.Text = ""
  518.         '
  519.         'txtAvaid
  520.         '
  521.         Me.MsdnTextboxValidator1.SetCustomValidationEnabled(Me.txtAvaid, True)
  522.         Me.MsdnTextboxValidator1.SetDataType(Me.txtAvaid, MSDNTextboxValidator.DataTypeConstants.StringType)
  523.         Me.MsdnTextboxValidator1.SetDisplayName(Me.txtAvaid, "")
  524.         Me.txtAvaid.Location = New System.Drawing.Point(528, 103)
  525.         Me.MsdnTextboxValidator1.SetMaxValue(Me.txtAvaid, "")
  526.         Me.MsdnTextboxValidator1.SetMinValue(Me.txtAvaid, "")
  527.         Me.txtAvaid.Name = "txtAvaid"
  528.         Me.txtAvaid.ReadOnly = True
  529.         Me.MsdnTextboxValidator1.SetRegularExpression(Me.txtAvaid, "")
  530.         Me.MsdnTextboxValidator1.SetRequired(Me.txtAvaid, False)
  531.         Me.txtAvaid.Size = New System.Drawing.Size(72, 25)
  532.         Me.txtAvaid.TabIndex = 66
  533.         Me.txtAvaid.Text = ""
  534.         '
  535.         'txtBatch
  536.         '
  537.         Me.MsdnTextboxValidator1.SetCustomValidationEnabled(Me.txtBatch, True)
  538.         Me.MsdnTextboxValidator1.SetDataType(Me.txtBatch, MSDNTextboxValidator.DataTypeConstants.StringType)
  539.         Me.MsdnTextboxValidator1.SetDisplayName(Me.txtBatch, "")
  540.         Me.txtBatch.Location = New System.Drawing.Point(96, 103)
  541.         Me.MsdnTextboxValidator1.SetMaxValue(Me.txtBatch, "")
  542.         Me.MsdnTextboxValidator1.SetMinValue(Me.txtBatch, "")
  543.         Me.txtBatch.Name = "txtBatch"
  544.         Me.txtBatch.ReadOnly = True
  545.         Me.MsdnTextboxValidator1.SetRegularExpression(Me.txtBatch, "")
  546.         Me.MsdnTextboxValidator1.SetRequired(Me.txtBatch, False)
  547.         Me.txtBatch.Size = New System.Drawing.Size(152, 25)
  548.         Me.txtBatch.TabIndex = 65
  549.         Me.txtBatch.Text = ""
  550.         '
  551.         'txtMoney
  552.         '
  553.         Me.MsdnTextboxValidator1.SetCustomValidationEnabled(Me.txtMoney, True)
  554.         Me.MsdnTextboxValidator1.SetDataType(Me.txtMoney, MSDNTextboxValidator.DataTypeConstants.StringType)
  555.         Me.MsdnTextboxValidator1.SetDisplayName(Me.txtMoney, "")
  556.         Me.txtMoney.Location = New System.Drawing.Point(528, 62)
  557.         Me.MsdnTextboxValidator1.SetMaxValue(Me.txtMoney, "")
  558.         Me.MsdnTextboxValidator1.SetMinValue(Me.txtMoney, "")
  559.         Me.txtMoney.Name = "txtMoney"
  560.         Me.txtMoney.ReadOnly = True
  561.         Me.MsdnTextboxValidator1.SetRegularExpression(Me.txtMoney, "")
  562.         Me.MsdnTextboxValidator1.SetRequired(Me.txtMoney, False)
  563.         Me.txtMoney.Size = New System.Drawing.Size(72, 25)
  564.         Me.txtMoney.TabIndex = 63
  565.         Me.txtMoney.Text = "0.00"
  566.         '
  567.         'txtPrice
  568.         '
  569.         Me.MsdnTextboxValidator1.SetCustomValidationEnabled(Me.txtPrice, True)
  570.         Me.MsdnTextboxValidator1.SetDataType(Me.txtPrice, MSDNTextboxValidator.DataTypeConstants.DecimalType)
  571.         Me.MsdnTextboxValidator1.SetDisplayName(Me.txtPrice, "")
  572.         Me.txtPrice.Location = New System.Drawing.Point(331, 62)
  573.         Me.MsdnTextboxValidator1.SetMaxValue(Me.txtPrice, "")
  574.         Me.MsdnTextboxValidator1.SetMinValue(Me.txtPrice, "")
  575.         Me.txtPrice.Name = "txtPrice"
  576.         Me.MsdnTextboxValidator1.SetRegularExpression(Me.txtPrice, "")
  577.         Me.MsdnTextboxValidator1.SetRequired(Me.txtPrice, False)
  578.         Me.txtPrice.Size = New System.Drawing.Size(128, 25)
  579.         Me.txtPrice.TabIndex = 62
  580.         Me.txtPrice.Text = "0.00"
  581.         '
  582.         'txtCount
  583.         '
  584.         Me.MsdnTextboxValidator1.SetCustomValidationEnabled(Me.txtCount, True)
  585.         Me.MsdnTextboxValidator1.SetDataType(Me.txtCount, MSDNTextboxValidator.DataTypeConstants.StringType)
  586.         Me.MsdnTextboxValidator1.SetDisplayName(Me.txtCount, "")
  587.         Me.txtCount.Location = New System.Drawing.Point(192, 62)
  588.         Me.MsdnTextboxValidator1.SetMaxValue(Me.txtCount, "")
  589.         Me.MsdnTextboxValidator1.SetMinValue(Me.txtCount, "")
  590.         Me.txtCount.Name = "txtCount"
  591.         Me.MsdnTextboxValidator1.SetRegularExpression(Me.txtCount, "")
  592.         Me.MsdnTextboxValidator1.SetRequired(Me.txtCount, False)
  593.         Me.txtCount.Size = New System.Drawing.Size(56, 25)
  594.         Me.txtCount.TabIndex = 61
  595.         Me.txtCount.Text = ""
  596.         '
  597.         'txtMedRule
  598.         '
  599.         Me.MsdnTextboxValidator1.SetCustomValidationEnabled(Me.txtMedRule, True)
  600.         Me.MsdnTextboxValidator1.SetDataType(Me.txtMedRule, MSDNTextboxValidator.DataTypeConstants.StringType)
  601.         Me.MsdnTextboxValidator1.SetDisplayName(Me.txtMedRule, "")
  602.         Me.txtMedRule.Location = New System.Drawing.Point(616, 24)
  603.         Me.MsdnTextboxValidator1.SetMaxValue(Me.txtMedRule, "")
  604.         Me.MsdnTextboxValidator1.SetMinValue(Me.txtMedRule, "")
  605.         Me.txtMedRule.Name = "txtMedRule"
  606.         Me.txtMedRule.ReadOnly = True
  607.         Me.MsdnTextboxValidator1.SetRegularExpression(Me.txtMedRule, "")
  608.         Me.MsdnTextboxValidator1.SetRequired(Me.txtMedRule, False)
  609.         Me.txtMedRule.Size = New System.Drawing.Size(96, 25)
  610.         Me.txtMedRule.TabIndex = 59
  611.         Me.txtMedRule.Text = ""
  612.         '
  613.         'txtmedName
  614.         '
  615.         Me.MsdnTextboxValidator1.SetCustomValidationEnabled(Me.txtmedName, True)
  616.         Me.MsdnTextboxValidator1.SetDataType(Me.txtmedName, MSDNTextboxValidator.DataTypeConstants.StringType)
  617.         Me.MsdnTextboxValidator1.SetDisplayName(Me.txtmedName, "")
  618.         Me.txtmedName.Location = New System.Drawing.Point(331, 24)
  619.         Me.MsdnTextboxValidator1.SetMaxValue(Me.txtmedName, "")
  620.         Me.MsdnTextboxValidator1.SetMinValue(Me.txtmedName, "")
  621.         Me.txtmedName.Name = "txtmedName"
  622.         Me.txtmedName.ReadOnly = True
  623.         Me.MsdnTextboxValidator1.SetRegularExpression(Me.txtmedName, "")
  624.         Me.MsdnTextboxValidator1.SetRequired(Me.txtmedName, False)
  625.         Me.txtmedName.Size = New System.Drawing.Size(200, 25)
  626.         Me.txtmedName.TabIndex = 58
  627.         Me.txtmedName.Text = ""
  628.         '
  629.         'txtMedNumber
  630.         '
  631.         Me.MsdnTextboxValidator1.SetCustomValidationEnabled(Me.txtMedNumber, True)
  632.         Me.MsdnTextboxValidator1.SetDataType(Me.txtMedNumber, MSDNTextboxValidator.DataTypeConstants.StringType)
  633.         Me.MsdnTextboxValidator1.SetDisplayName(Me.txtMedNumber, "")
  634.         Me.txtMedNumber.Location = New System.Drawing.Point(96, 24)
  635.         Me.MsdnTextboxValidator1.SetMaxValue(Me.txtMedNumber, "")
  636.         Me.MsdnTextboxValidator1.SetMinValue(Me.txtMedNumber, "")
  637.         Me.txtMedNumber.Name = "txtMedNumber"
  638.         Me.MsdnTextboxValidator1.SetRegularExpression(Me.txtMedNumber, "")
  639.         Me.MsdnTextboxValidator1.SetRequired(Me.txtMedNumber, False)
  640.         Me.txtMedNumber.Size = New System.Drawing.Size(152, 25)
  641.         Me.txtMedNumber.TabIndex = 57
  642.         Me.txtMedNumber.Text = ""
  643.         '
  644.         'Panel1
  645.         '
  646.         Me.Panel1.Controls.Add(Me.GroupBox2)
  647.         Me.Panel1.Dock = System.Windows.Forms.DockStyle.Top
  648.         Me.Panel1.Location = New System.Drawing.Point(0, 197)
  649.         Me.Panel1.Name = "Panel1"
  650.         Me.Panel1.Size = New System.Drawing.Size(734, 144)
  651.         Me.Panel1.TabIndex = 6
  652.         '
  653.         'GroupBox2
  654.         '
  655.         Me.GroupBox2.Controls.Add(Me.txtPackage)
  656.         Me.GroupBox2.Controls.Add(Me.txtUnit)
  657.         Me.GroupBox2.Controls.Add(Me.Label22)
  658.         Me.GroupBox2.Controls.Add(Me.txtNo)
  659.         Me.GroupBox2.Controls.Add(Me.Label20)
  660.         Me.GroupBox2.Controls.Add(Me.Label16)
  661.         Me.GroupBox2.Controls.Add(Me.txtProduct)
  662.         Me.GroupBox2.Controls.Add(Me.txtAvaid)
  663.         Me.GroupBox2.Controls.Add(Me.txtBatch)
  664.         Me.GroupBox2.Controls.Add(Me.txtMoney)
  665.         Me.GroupBox2.Controls.Add(Me.txtPrice)
  666.         Me.GroupBox2.Controls.Add(Me.txtCount)
  667.         Me.GroupBox2.Controls.Add(Me.txtMedRule)
  668.         Me.GroupBox2.Controls.Add(Me.txtmedName)
  669.         Me.GroupBox2.Controls.Add(Me.txtMedNumber)
  670.         Me.GroupBox2.Controls.Add(Me.Label19)
  671.         Me.GroupBox2.Controls.Add(Me.Label18)
  672.         Me.GroupBox2.Controls.Add(Me.Label17)
  673.         Me.GroupBox2.Controls.Add(Me.Label15)
  674.         Me.GroupBox2.Controls.Add(Me.Label14)
  675.         Me.GroupBox2.Controls.Add(Me.Label13)
  676.         Me.GroupBox2.Controls.Add(Me.Label11)
  677.         Me.GroupBox2.Controls.Add(Me.Label10)
  678.         Me.GroupBox2.Controls.Add(Me.Label9)
  679.         Me.GroupBox2.Dock = System.Windows.Forms.DockStyle.Fill
  680.         Me.GroupBox2.Location = New System.Drawing.Point(0, 0)
  681.         Me.GroupBox2.Name = "GroupBox2"
  682.         Me.GroupBox2.Size = New System.Drawing.Size(734, 144)
  683.         Me.GroupBox2.TabIndex = 6
  684.         Me.GroupBox2.TabStop = False
  685.         Me.GroupBox2.Text = "药品信息"
  686.         '
  687.         'Label22
  688.         '
  689.         Me.Label22.AutoSize = True
  690.         Me.Label22.Location = New System.Drawing.Point(616, 72)
  691.         Me.Label22.Name = "Label22"
  692.         Me.Label22.Size = New System.Drawing.Size(52, 21)
  693.         Me.Label22.TabIndex = 72
  694.         Me.Label22.Text = "单位:"
  695.         '
  696.         'Label20
  697.         '
  698.         Me.Label20.AutoSize = True
  699.         Me.Label20.Location = New System.Drawing.Point(56, 72)
  700.         Me.Label20.Name = "Label20"
  701.         Me.Label20.Size = New System.Drawing.Size(52, 21)
  702.         Me.Label20.TabIndex = 70
  703.         Me.Label20.Text = "序号:"
  704.         '
  705.         'Label16
  706.         '
  707.         Me.Label16.AutoSize = True
  708.         Me.Label16.Location = New System.Drawing.Point(616, 113)
  709.         Me.Label16.Name = "Label16"
  710.         Me.Label16.Size = New System.Drawing.Size(52, 21)
  711.         Me.Label16.TabIndex = 69
  712.         Me.Label16.Text = "包装:"
  713.         '
  714.         'Label19
  715.         '
  716.         Me.Label19.AutoSize = True
  717.         Me.Label19.Location = New System.Drawing.Point(288, 113)
  718.         Me.Label19.Name = "Label19"
  719.         Me.Label19.Size = New System.Drawing.Size(52, 21)
  720.         Me.Label19.TabIndex = 56
  721.         Me.Label19.Text = "产地:"
  722.         '
  723.         'Label18
  724.         '
  725.         Me.Label18.AutoSize = True
  726.         Me.Label18.Location = New System.Drawing.Point(472, 113)
  727.         Me.Label18.Name = "Label18"
  728.         Me.Label18.Size = New System.Drawing.Size(67, 21)
  729.         Me.Label18.TabIndex = 55
  730.         Me.Label18.Text = "有效期:"
  731.         '
  732.         'Label17
  733.         '
  734.         Me.Label17.AutoSize = True
  735.         Me.Label17.Location = New System.Drawing.Point(56, 113)
  736.         Me.Label17.Name = "Label17"
  737.         Me.Label17.Size = New System.Drawing.Size(52, 21)
  738.         Me.Label17.TabIndex = 54
  739.         Me.Label17.Text = "批号:"
  740.         '
  741.         'Label15
  742.         '
  743.         Me.Label15.AutoSize = True
  744.         Me.Label15.ForeColor = System.Drawing.Color.Red
  745.         Me.Label15.Location = New System.Drawing.Point(488, 72)
  746.         Me.Label15.Name = "Label15"
  747.         Me.Label15.Size = New System.Drawing.Size(52, 21)
  748.         Me.Label15.TabIndex = 53
  749.         Me.Label15.Text = "金额:"
  750.         '
  751.         'Label14
  752.         '
  753.         Me.Label14.AutoSize = True
  754.         Me.Label14.Location = New System.Drawing.Point(288, 72)
  755.         Me.Label14.Name = "Label14"
  756.         Me.Label14.Size = New System.Drawing.Size(52, 21)
  757.         Me.Label14.TabIndex = 52
  758.         Me.Label14.Text = "单价:"
  759.         '
  760.         'Label13
  761.         '
  762.         Me.Label13.AutoSize = True
  763.         Me.Label13.Location = New System.Drawing.Point(152, 72)
  764.         Me.Label13.Name = "Label13"
  765.         Me.Label13.Size = New System.Drawing.Size(52, 21)
  766.         Me.Label13.TabIndex = 51
  767.         Me.Label13.Text = "数量:"
  768.         '
  769.         'Label11
  770.         '
  771.         Me.Label11.AutoSize = True
  772.         Me.Label11.Location = New System.Drawing.Point(544, 31)
  773.         Me.Label11.Name = "Label11"
  774.         Me.Label11.Size = New System.Drawing.Size(83, 21)
  775.         Me.Label11.TabIndex = 50
  776.         Me.Label11.Text = "药品规格:"
  777.         '
  778.         'Label10
  779.         '
  780.         Me.Label10.AutoSize = True
  781.         Me.Label10.Location = New System.Drawing.Point(260, 32)
  782.         Me.Label10.Name = "Label10"
  783.         Me.Label10.Size = New System.Drawing.Size(83, 21)
  784.         Me.Label10.TabIndex = 49
  785.         Me.Label10.Text = "药品名称:"
  786.         '
  787.         'Label9
  788.         '
  789.         Me.Label9.AutoSize = True
  790.         Me.Label9.Location = New System.Drawing.Point(24, 31)
  791.         Me.Label9.Name = "Label9"
  792.         Me.Label9.Size = New System.Drawing.Size(83, 21)
  793.         Me.Label9.TabIndex = 48
  794.         Me.Label9.Text = "药品编号:"
  795.         '
  796.         'Panel2
  797.         '
  798.         Me.Panel2.Controls.Add(Me.dgview)
  799.         Me.Panel2.Dock = System.Windows.Forms.DockStyle.Fill
  800.         Me.Panel2.Location = New System.Drawing.Point(0, 341)
  801.         Me.Panel2.Name = "Panel2"
  802.         Me.Panel2.Size = New System.Drawing.Size(734, 353)
  803.         Me.Panel2.TabIndex = 7
  804.         '
  805.         'dgview
  806.         '
  807.         Me.dgview.DataMember = ""
  808.         Me.dgview.Dock = System.Windows.Forms.DockStyle.Fill
  809.         Me.dgview.HeaderForeColor = System.Drawing.SystemColors.ControlText
  810.         Me.dgview.Location = New System.Drawing.Point(0, 0)
  811.         Me.dgview.Name = "dgview"
  812.         Me.dgview.Size = New System.Drawing.Size(734, 353)
  813.         Me.dgview.TabIndex = 5
  814.         '
  815.         'frmPsPst
  816.         '
  817.         Me.AutoScaleBaseSize = New System.Drawing.Size(8, 18)
  818.         Me.ClientSize = New System.Drawing.Size(734, 716)
  819.         Me.Controls.Add(Me.Panel2)
  820.         Me.Controls.Add(Me.Panel1)
  821.         Me.Controls.Add(Me.GroupBox1)
  822.         Me.Controls.Add(Me.StatusBar1)
  823.         Me.Controls.Add(Me.tbnPs)
  824.         Me.Name = "frmPsPst"
  825.         Me.Text = "门店配送登记"
  826.         Me.WindowState = System.Windows.Forms.FormWindowState.Maximized
  827.         Me.GroupBox1.ResumeLayout(False)
  828.         Me.Panel1.ResumeLayout(False)
  829.         Me.GroupBox2.ResumeLayout(False)
  830.         Me.Panel2.ResumeLayout(False)
  831.         CType(Me.dgview, System.ComponentModel.ISupportInitialize).EndInit()
  832.         Me.ResumeLayout(False)
  833.     End Sub
  834. #End Region
  835.     Public lsweb As New jxcmanage
  836.     Public dslocals As New DataSet
  837.     Public dslocal As DataSet = lsweb.returndataset("select BillNumber as 票号,BhDate as 日期,BhNumber as 补货票号,PsMedName as 配送对象,PsZt as 配送状态,Shy as 审核员,PsCenter as 配送中心,Psy as 配送员,Money as 金额,ysmoney as 应收金额 from PsPsdj", "PsPsdj")
  838.     Public strSql As String
  839.     Public s As Int16
  840.     Private Sub frmPsPst_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
  841.         Dim pscenterdr, psmednamedr, bhy As System.Data.SqlClient.SqlDataReader
  842.         pscenterdr = lsweb.returnDataReader("select Cname from PsCenter")
  843.         psmednamedr = lsweb.returnDataReader("select Cname from MdManager")
  844.         bhy = lsweb.returnDataReader("select 操作员 from wz_mm")
  845.         Do While pscenterdr.Read()
  846.             txtPsCenter.Items.Add(pscenterdr("Cname"))
  847.         Loop
  848.         Do While psmednamedr.Read()
  849.             txtPsMedName.Items.Add(psmednamedr("Cname"))
  850.         Loop
  851.         Do While bhy.Read()
  852.             txtBhy.Items.Add(bhy("操作员"))
  853.         Loop
  854.         
  855.         Dim frmpspfer As New frmPsPf
  856.         If strSql = "" Then
  857.             dslocals = lsweb.returndataset("select number as 序号,medNumber as 药品编号,medname as 药品名称,medrule as 药品规格,unit as 单位,Pfcount as 数量,price as 单价,money as 金额,batch as 批号,avaid as 有效期,product as 产地,package as 包装,billnumber as 票号,demo as 货位 from PsPsdjMx", "PsPsdjMx")
  858.             dslocals.Clear()
  859.             Me.Show()
  860.             s = 0
  861.         Else
  862.             tbnAdd.Enabled = False
  863.             Dim drlocals As System.Data.SqlClient.SqlDataReader
  864.             drlocals = lsweb.returnDataReader("select * from PsPsdj where billnumber = '" & strSql.Substring(4, 16) & "' and psmedname='" & strSql.Substring(0, 4) & "'")
  865.             Do While drlocals.Read()
  866.                 txtbillnumber.Text = lsweb.selectbill("PS").ToString.Trim()
  867.                 txtBhDate.Text = drlocals("BhDate")
  868.                 txtSum.Text = drlocals("Money")
  869.                 txtPsMedName.Text = drlocals("PsMedName")
  870.                 txtBhNumber.Text = drlocals("billnumber")
  871.                 txtshy.Text = drlocals("Shy")
  872.                 txtPsCenter.Text = drlocals("PsCenter")
  873.             Loop
  874.             dslocals = lsweb.returndataset("select number as 序号,medNumber as 药品编号,medname as 药品名称,medrule as 药品规格,unit as 单位,Pfcount as 数量,price as 单价,money as 金额,batch as 批号,avaid as 有效期,product as 产地,package as 包装,billnumber as 票号,demo as 货位 from PsPsdjMx where billnumber = '" & strSql.Substring(4, 16) & "' and psmedname='" & strSql.Substring(0, 4) & "'", "PsPsdjMx")
  875.             dgview.DataSource = dslocals.Tables(0).DefaultView
  876.             s = lsweb.maxNumber("select isnull(max(number),0) as 序号 from PsPsdjMx where billnumber = '" & strSql.Substring(4, 16) & "' and psmedname='" & strSql.Substring(0, 4) & "'")
  877.         End If
  878.         txtBhDate.Value() = Today().ToString()
  879.     End Sub
  880.     Public Function getinfo(ByVal strqueryid As String) As String
  881.         Dim strOrderId As String
  882.         strOrderId = strqueryid
  883.         Return strOrderId
  884.     End Function
  885.     Private Sub CalMxMoney()
  886.         Dim price As Double = CType(txtPrice.Text.Trim, Double)
  887.         Dim count As Int16 = CInt(txtCount.Text.Trim)
  888.         Me.txtMoney.Text = (price * count).ToString
  889.     End Sub
  890.     Private Sub CalTotalMoney()
  891.         If dslocals.Tables("PsPsdjMx").Rows.Count = 0 Then
  892.             Me.txtMoney.Text = 0
  893.         End If
  894.         Dim money As String = ""
  895.         Dim dtotal As Double = 0
  896.         For Each dr As DataRow In dslocals.Tables("PsPsdjMx").Rows
  897.             money = dr("金额")
  898.             dtotal = dtotal + CType(money.Trim, Double)
  899.             txtSum.Text = dtotal.ToString.Trim
  900.         Next
  901.     End Sub
  902.     Private Sub clear()
  903.         txtMedNumber.Text = ""
  904.         txtmedName.Text = ""
  905.         txtMedRule.Text = ""
  906.         txtUnit.Text = ""
  907.         txtPrice.Text = 0.0
  908.         txtCount.Text = 0
  909.         txtMoney.Text = 0.0
  910.         txtAvaid.Text = ""
  911.         txtPackage.Text = ""
  912.         txtProduct.Text = ""
  913.         txtBatch.Text = ""
  914.     End Sub
  915.     Private Sub add()
  916.         dslocals.Clear()
  917.         txtBhDate.Value() = Today().ToString()
  918.         txtbillnumber.Text = lsweb.selectbill("PS").ToString
  919.         txtPsMedName.Text = ""
  920.         txtBhType.Text = ""
  921.         txtPsCenter.Text = ""
  922.         txtBhy.Text = ""
  923.         txthw.Text = ""
  924.         txtNo.Text = "1"
  925.         txtMedNumber.Text = ""
  926.         txtmedName.Text = ""
  927.         txtMedRule.Text = ""
  928.         txtUnit.Text = ""
  929.         txtPrice.Text = 0.0
  930.         txtCount.Text = 0
  931.         txtMoney.Text = 0.0
  932.         txtAvaid.Text = ""
  933.         txtPackage.Text = ""
  934.         txtProduct.Text = ""
  935.         txtBatch.Text = ""
  936.         txtPsMedName.Focus()
  937.     End Sub
  938.     Public Sub tbnEnable(ByVal strboolean As String, ByVal tbr As ToolBar)
  939.         If strboolean = "tbnAdd.Enabled = True" Then
  940.             tbnSave.Enabled = False
  941.             tbnPrint.Enabled = False
  942.             tbnExit.Enabled = True
  943.         ElseIf strboolean = "tbnAdd.Enabled = False" Then
  944.             tbnAdd.Enabled = False
  945.             tbnSave.Enabled = True
  946.             tbnPrint.Enabled = True
  947.             tbnExit.Enabled = True
  948.         ElseIf strboolean = "tbnSave.Enabled = True" Then
  949.             tbnAdd.Enabled = False
  950.             tbnPrint.Enabled = True
  951.             tbnExit.Enabled = True
  952.         ElseIf strboolean = "tbnSave.Enabled = False" Then
  953.             tbnSave.Enabled = False
  954.             tbnAdd.Enabled = True
  955.             tbnPrint.Enabled = True
  956.             tbnExit.Enabled = True
  957.         End If
  958.     End Sub
  959.     Private Sub ToolBar1_ButtonClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.ToolBarButtonClickEventArgs) Handles tbnPs.ButtonClick
  960.         Select Case e.Button.Text
  961.             Case "添加"
  962.                 add()
  963.                 tbnEnable("tbnAdd.Enabled = False", tbnPs)
  964.             Case "保存"
  965.                 If txtSum.Text = "" Then
  966.                     MessageBox.Show("信息不完整,保存失败!", "提示", MessageBoxButtons.OK)
  967.                 Else
  968.                     Dim dr As DataRow = dslocal.Tables("PsPsdj").NewRow()
  969.                     dr("票号") = Me.txtbillnumber.Text.Trim
  970.                     dr("日期") = Me.txtBhDate.Value
  971.                     dr("补货票号") = Me.txtBhNumber.Text.Trim
  972.                     dr("配送对象") = Me.txtPsMedName.Text.Trim
  973.                     dr("配送状态") = Me.txtBhType.Text.Trim
  974.                     dr("审核员") = Me.txtshy.Text.Trim
  975.                     dr("配送中心") = Me.txtPsCenter.Text.Trim
  976.                     dr("配送员") = Me.txtBhy.Text.Trim
  977.                     dr("金额") = Me.txtSum.Text.Trim
  978.                     dr("应收金额") = Me.txtSum.Text.Trim
  979.                     dslocal.Tables("PsPsdj").Rows.Add(dr)
  980.                     If lsweb.updatedataset("select number as 序号,medNumber as 药品编号,medname as 药品名称,medrule as 药品规格,unit as 单位,Pfcount as 数量,price as 单价,money as 金额,batch as 批号,avaid as 有效期,product as 产地,package as 包装,billnumber as 票号,demo as 货位 from PsPsdjMx", "PsPsdjMx", dslocals, DataRowState.Added) = True And lsweb.updatedataset("select BillNumber as 票号,BhDate as 日期,BhNumber as 补货票号,PsMedName as 配送对象,PsZt as 配送状态,Shy as 审核员,PsCenter as 配送中心,Psy as 配送员,Money as 金额,ysmoney as 应收金额 from PsPsdj", "PsPsdj", dslocal, DataRowState.Added) = True Then
  981.                         MessageBox.Show("销售信息成功保存!", "提示", MessageBoxButtons.OK)
  982.                     Else
  983.                         MessageBox.Show("销售信息保存失败!", "提示", MessageBoxButtons.AbortRetryIgnore)
  984.                     End If
  985.                     tbnEnable("tbnSave.Enabled = False", tbnPs)
  986.                 End If
  987.             Case "退出"
  988.                     Me.Close()
  989.         End Select
  990.     End Sub
  991.     Private Sub txtPrice_Validating(ByVal sender As System.Object, ByVal e As System.ComponentModel.CancelEventArgs)
  992.         If Not IsNumeric(txtPrice.Text) Or txtPrice.Text = String.Empty Then
  993.             ErrorProvider1.SetError(txtPrice, "不是数值类型且不能为空。")
  994.             txtPrice.Focus()
  995.         Else
  996.             ErrorProvider1.SetError(txtPrice, "")
  997.         End If
  998.     End Sub
  999.     Private Sub txtCount_KeyDown(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyEventArgs)
  1000.         If e.KeyCode = Keys.Enter Then
  1001.             txtPrice.Focus()
  1002.         End If
  1003.     End Sub
  1004.     Private Sub txtCount_Validating(ByVal sender As System.Object, ByVal e As System.ComponentModel.CancelEventArgs)
  1005.         If txtCount.Text = String.Empty Then
  1006.             ErrorProvider1.SetError(txtCount, "不是数值类型且不能为空。")
  1007.             txtCount.Focus()
  1008.         Else
  1009.             ErrorProvider1.SetError(txtCount, "")
  1010.         End If
  1011.     End Sub
  1012.     Private Sub txtMedNumber_KeyDown1(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles txtMedNumber.KeyDown
  1013.         If e.KeyCode = Keys.Enter Then
  1014.             Dim dlg As frmMedKcQuery = New frmMedKcQuery
  1015.             dlg.PYMs = Me.getinfo(txtMedNumber.Text)
  1016.             If dlg.PYMs = "" Then
  1017.                 ErrorProvider1.SetError(txtMedNumber, "不能为空,请输入查询码!")
  1018.             Else
  1019.                 dlg.ShowDialog()
  1020.                 ErrorProvider1.SetError(txtMedNumber, "")
  1021.             End If
  1022.             Dim medIdvalue, medbatch, product, avaid, hw, package As String
  1023.             medIdvalue = dlg.GetInfo("药品编号")
  1024.             medbatch = dlg.GetInfo("批号")
  1025.             product = dlg.GetInfo("产地")
  1026.             avaid = dlg.GetInfo("有效期")
  1027.             hw = dlg.GetInfo("货位")
  1028.             package = dlg.GetInfo("包装")
  1029.             If medIdvalue Is Nothing Then
  1030.                 ErrorProvider1.SetError(txtMedNumber, "不能为空,请输入查询码!或没有查到记录,请重新开始!")
  1031.             Else
  1032.                 Dim runSqlQuery As String
  1033.                 runSqlQuery = "select * from wz_kc where 药品编号='" & medIdvalue & "' and 批号 ='" & medbatch & "' and 产地='" & product & "' and 有效期='" & avaid & "' and 货位='" & hw & "' and 包装='" & package & "'"
  1034.                 Dim dv As DataView
  1035.                 ' Dim mOrderId As New managers
  1036.                 '调用mCustomId对象的SPcustomersID函数
  1037.                 Dim dtOrder As DataTable = lsweb.runSql(runSqlQuery).Tables(0)
  1038.                 'bb为一随意表名
  1039.                 dtOrder.TableName = "bb"
  1040.                 dv = dtOrder.DefaultView
  1041.                 txtMedNumber.Text = dv(0)("药品编号")
  1042.                 txtmedName.Text = dv(0)("药品名称")
  1043.                 txtMedRule.Text = dv(0)("药品规格")
  1044.                 txtUnit.Text = dv(0)("单位")
  1045.                 txtPrice.Text = dv(0)("进价")
  1046.                 txtCount.Text = dv(0)("数量")
  1047.                 txtAvaid.Text = dv(0)("有效期")
  1048.                 txtPackage.Text = dv(0)("包装")
  1049.                 txtProduct.Text = dv(0)("产地")
  1050.                 txtBatch.Text = dv(0)("批号")
  1051.                 txthw.Text = dv(0)("货位")
  1052.                 ErrorProvider1.SetError(txtMedNumber, "")
  1053.                 txtCount.Focus()
  1054.             End If
  1055.         End If
  1056.     End Sub
  1057.     Private Sub txtPrice_KeyDown1(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles txtPrice.KeyDown
  1058.         If e.KeyCode = Keys.Enter Then
  1059.             If txtPrice.Text = String.Empty Then
  1060.                 txtPrice_Validating(Nothing, Nothing)
  1061.             Else
  1062.                 Static i As Int16
  1063.                 If dslocals.Tables("PsPsdjMx").Rows.Count < 1 Then
  1064.                     i = 1
  1065.                 Else
  1066.                     i = i + 1
  1067.                 End If
  1068.                 txtNo.Text = CStr(i + s)
  1069.                 Dim dr As DataRow = dslocals.Tables("PsPsdjMx").NewRow()
  1070.                 dr("序号") = CStr(i + s)
  1071.                 dr("药品编号") = Me.txtMedNumber.Text.Trim
  1072.                 dr("药品名称") = Me.txtmedName.Text.Trim
  1073.                 dr("药品规格") = Me.txtMedRule.Text.Trim
  1074.                 dr("单位") = Me.txtUnit.Text.Trim
  1075.                 dr("数量") = Me.txtCount.Text.Trim
  1076.                 dr("单价") = CDec(Me.txtPrice.Text.Trim)
  1077.                 dr("金额") = CDec(Me.txtPrice.Text.Trim) * CInt(Me.txtCount.Text.Trim)
  1078.                 dr("批号") = Me.txtBatch.Text.Trim
  1079.                 dr("有效期") = Me.txtAvaid.Text.Trim
  1080.                 dr("产地") = Me.txtProduct.Text.Trim
  1081.                 dr("包装") = Me.txtPackage.Text.Trim
  1082.                 dr("票号") = Me.txtbillnumber.Text.Trim
  1083.                 dr("货位") = Me.txthw.Text.Trim
  1084.                 dslocals.Tables("PsPsdjMx").Rows.Add(dr)
  1085.                 txtMedNumber.Text = ""
  1086.                 txtMedNumber.Focus()
  1087.                 'clear()
  1088.                 CalMxMoney()
  1089.                 CalTotalMoney()
  1090.             End If
  1091.         End If
  1092.         dgview.DataSource = dslocals.Tables("PsPsdjMx").DefaultView
  1093.     End Sub
  1094.     Private Sub txtPsMedName_KeyDown(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyEventArgs)
  1095.        
  1096.     End Sub
  1097.     Private Sub txtBhType_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles txtBhType.KeyDown
  1098.         If e.KeyCode = Keys.Enter Then
  1099.             txtPsCenter.Focus()
  1100.         End If
  1101.     End Sub
  1102.     Private Sub txtPsCenter_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles txtPsCenter.KeyDown
  1103.         If e.KeyCode = Keys.Enter Then
  1104.             txtBhy.Focus()
  1105.         End If
  1106.     End Sub
  1107.     Private Sub txtBhy_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles txtBhy.KeyDown
  1108.         If e.KeyCode = Keys.Enter Then
  1109.             txtMedNumber.Focus()
  1110.         End If
  1111.     End Sub
  1112.     Private Sub txtCount_KeyDown1(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles txtCount.KeyDown
  1113.         If e.KeyCode = Keys.Enter Then
  1114.             txtPrice.Focus()
  1115.         End If
  1116.     End Sub
  1117.     Private Sub txtPsMedName_Validating(ByVal sender As System.Object, ByVal e As System.ComponentModel.CancelEventArgs)
  1118.         If txtPsMedName.Text = String.Empty Then
  1119.             ErrorProvider1.SetError(txtPsMedName, "不能为空!")
  1120.             e.Cancel = True
  1121.         Else
  1122.             ErrorProvider1.SetError(txtPsMedName, "")
  1123.         End If
  1124.     End Sub
  1125.     Private Sub txtBhType_Validating(ByVal sender As Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles txtBhType.Validating
  1126.         If txtBhType.Text = String.Empty Then
  1127.             ErrorProvider1.SetError(txtBhType, "不能为空!")
  1128.             e.Cancel = True
  1129.         Else
  1130.             ErrorProvider1.SetError(txtBhType, "")
  1131.         End If
  1132.     End Sub
  1133.     Private Sub txtPsCenter_Validating(ByVal sender As Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles txtPsCenter.Validating
  1134.         If txtPsCenter.Text = String.Empty Then
  1135.             ErrorProvider1.SetError(txtPsCenter, "不能为空!")
  1136.             e.Cancel = True
  1137.         Else
  1138.             ErrorProvider1.SetError(txtPsCenter, "")
  1139.         End If
  1140.     End Sub
  1141.     Private Sub txtBhy_Validating(ByVal sender As Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles txtBhy.Validating
  1142.         If txtBhy.Text = String.Empty Then
  1143.             ErrorProvider1.SetError(txtBhy, "不能为空!")
  1144.             e.Cancel = True
  1145.         Else
  1146.             ErrorProvider1.SetError(txtBhy, "")
  1147.         End If
  1148.     End Sub
  1149.     Private Sub txtMedNumber_Validating(ByVal sender As Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles txtMedNumber.Validating
  1150.         If txtMedNumber.Text = String.Empty Then
  1151.             ErrorProvider1.SetError(txtMedNumber, "不能为空!")
  1152.             txtMedNumber.Focus()
  1153.         Else
  1154.             ErrorProvider1.SetError(txtMedNumber, "")
  1155.         End If
  1156.     End Sub
  1157.     Private Sub txtCount_Validating1(ByVal sender As Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles txtCount.Validating
  1158.         If Not IsNumeric(txtCount.Text) Or txtCount.Text = String.Empty Then
  1159.             ErrorProvider1.SetError(txtCount, "不是数值类型且不能为空。")
  1160.             e.Cancel = True
  1161.         Else
  1162.             ErrorProvider1.SetError(txtCount, "")
  1163.         End If
  1164.     End Sub
  1165.     Private Sub txtPrice_Validating1(ByVal sender As Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles txtPrice.Validating
  1166.         If Not IsNumeric(txtPrice.Text) Or txtPrice.Text = String.Empty Then
  1167.             ErrorProvider1.SetError(txtPrice, "不是数值类型且不能为空。")
  1168.             e.Cancel = True
  1169.         Else
  1170.             ErrorProvider1.SetError(txtPrice, "")
  1171.         End If
  1172.     End Sub
  1173.     Private Sub frmPsPst_Closed(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Closed
  1174.         If txtbillnumber.Text <> String.Empty And tbnSave.Enabled = True Then
  1175.             lsweb.cancelbill(txtbillnumber.Text.Trim)
  1176.         End If
  1177.     End Sub
  1178.     Private Sub txtBhy_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtBhy.SelectedIndexChanged
  1179.     End Sub
  1180.     Private Sub txthw_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs)
  1181.     End Sub
  1182.     Private Sub txthw_KeyDown(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyEventArgs)
  1183.         
  1184.     End Sub
  1185.     Private Sub txthw_Validating(ByVal sender As System.Object, ByVal e As System.ComponentModel.CancelEventArgs)
  1186.         If txthw.Text = String.Empty Then
  1187.             ErrorProvider1.SetError(txthw, "不能为空!")
  1188.             e.Cancel = True
  1189.         Else
  1190.             ErrorProvider1.SetError(txthw, "")
  1191.         End If
  1192.     End Sub
  1193.     Private Sub txtPsMedName_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtPsMedName.SelectedIndexChanged
  1194.     End Sub
  1195.     Private Sub txtPsMedName_KeyDown1(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles txtPsMedName.KeyDown
  1196.         If e.KeyCode = Keys.Enter Then
  1197.             txtBhType.Focus()
  1198.         End If
  1199.     End Sub
  1200.     Private Sub txthw_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txthw.TextChanged
  1201.     End Sub
  1202.     Private Sub txthw_KeyDown1(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles txthw.KeyDown
  1203.     End Sub
  1204.     Private Sub txtMedNumber_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtMedNumber.TextChanged
  1205.     End Sub
  1206. End Class