frmrk.vb
上传用户:wj57717022
上传日期:2014-12-16
资源大小:4093k
文件大小:65k
- Imports localJxc.jxcmanage
- Public Class frmrk
- Inherits System.Windows.Forms.Form
- ' Public weblocal As New WebReference.DataManager
- #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 tbrRk As System.Windows.Forms.ToolBar
- Friend WithEvents StatusBar1 As System.Windows.Forms.StatusBar
- Friend WithEvents GroupBox1 As System.Windows.Forms.GroupBox
- Friend WithEvents GroupBox2 As System.Windows.Forms.GroupBox
- Friend WithEvents Label1 As System.Windows.Forms.Label
- Friend WithEvents Label2 As System.Windows.Forms.Label
- Friend WithEvents Label4 As System.Windows.Forms.Label
- Friend WithEvents Label5 As System.Windows.Forms.Label
- Friend WithEvents Label6 As System.Windows.Forms.Label
- Friend WithEvents Label7 As System.Windows.Forms.Label
- Friend WithEvents Label8 As System.Windows.Forms.Label
- Friend WithEvents Label9 As System.Windows.Forms.Label
- Friend WithEvents Label10 As System.Windows.Forms.Label
- Friend WithEvents Label11 As System.Windows.Forms.Label
- Friend WithEvents Label12 As System.Windows.Forms.Label
- Friend WithEvents Label13 As System.Windows.Forms.Label
- Friend WithEvents Label14 As System.Windows.Forms.Label
- Friend WithEvents Label15 As System.Windows.Forms.Label
- Friend WithEvents Label16 As System.Windows.Forms.Label
- Friend WithEvents Label17 As System.Windows.Forms.Label
- 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 Label21 As System.Windows.Forms.Label
- Friend WithEvents Label22 As System.Windows.Forms.Label
- Friend WithEvents Label23 As System.Windows.Forms.Label
- Friend WithEvents tbrAdd As System.Windows.Forms.ToolBarButton
- Friend WithEvents tbrSave As System.Windows.Forms.ToolBarButton
- Friend WithEvents tbrPrint As System.Windows.Forms.ToolBarButton
- Friend WithEvents tbrQuery As System.Windows.Forms.ToolBarButton
- Friend WithEvents tbrSeparator As System.Windows.Forms.ToolBarButton
- Friend WithEvents tbrExit As System.Windows.Forms.ToolBarButton
- Friend WithEvents txtNumber As System.Windows.Forms.TextBox
- Friend WithEvents txtName As System.Windows.Forms.TextBox
- Friend WithEvents txtRule As System.Windows.Forms.TextBox
- Friend WithEvents txtUnit As System.Windows.Forms.TextBox
- Friend WithEvents txtPrice As System.Windows.Forms.TextBox
- Friend WithEvents txtCount As System.Windows.Forms.TextBox
- Friend WithEvents txtMoney As System.Windows.Forms.TextBox
- Friend WithEvents txtPackage As System.Windows.Forms.TextBox
- Friend WithEvents txtBatch As System.Windows.Forms.TextBox
- Friend WithEvents txtAvaid As System.Windows.Forms.TextBox
- Friend WithEvents txtAddress As System.Windows.Forms.TextBox
- Friend WithEvents txtPprice As System.Windows.Forms.TextBox
- Friend WithEvents txtLprice As System.Windows.Forms.TextBox
- Friend WithEvents txtJprice As System.Windows.Forms.TextBox
- Friend WithEvents txtZprice As System.Windows.Forms.TextBox
- Friend WithEvents Label24 As System.Windows.Forms.Label
- Friend WithEvents txtSum As System.Windows.Forms.TextBox
- Friend WithEvents cboHw As System.Windows.Forms.ComboBox
- Friend WithEvents cboJs As System.Windows.Forms.ComboBox
- Friend WithEvents txtNo As System.Windows.Forms.TextBox
- Friend WithEvents txtBillNumber As System.Windows.Forms.TextBox
- Friend WithEvents txtCustName As System.Windows.Forms.TextBox
- Friend WithEvents txtCustNumber As System.Windows.Forms.TextBox
- Friend WithEvents dgrk As System.Windows.Forms.DataGrid
- Friend WithEvents MsdnTextboxValidator1 As MSDNTextboxValidator.MSDNTextboxValidator
- Friend WithEvents ErrorProvider1 As System.Windows.Forms.ErrorProvider
- Friend WithEvents txtSzy As System.Windows.Forms.TextBox
- Friend WithEvents Label3 As System.Windows.Forms.Label
- Friend WithEvents txtdate As System.Windows.Forms.DateTimePicker
- Friend WithEvents ImageList2 As System.Windows.Forms.ImageList
- Friend WithEvents tbrTh As System.Windows.Forms.ToolBarButton
- <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
- Me.components = New System.ComponentModel.Container
- Dim resources As System.Resources.ResourceManager = New System.Resources.ResourceManager(GetType(frmrk))
- Me.tbrRk = New System.Windows.Forms.ToolBar
- Me.tbrAdd = New System.Windows.Forms.ToolBarButton
- Me.tbrSave = New System.Windows.Forms.ToolBarButton
- Me.tbrPrint = New System.Windows.Forms.ToolBarButton
- Me.tbrQuery = New System.Windows.Forms.ToolBarButton
- Me.tbrSeparator = New System.Windows.Forms.ToolBarButton
- Me.tbrTh = New System.Windows.Forms.ToolBarButton
- Me.tbrExit = New System.Windows.Forms.ToolBarButton
- Me.ImageList2 = New System.Windows.Forms.ImageList(Me.components)
- Me.StatusBar1 = New System.Windows.Forms.StatusBar
- Me.GroupBox1 = New System.Windows.Forms.GroupBox
- Me.txtdate = New System.Windows.Forms.DateTimePicker
- Me.Label3 = New System.Windows.Forms.Label
- Me.txtSzy = New System.Windows.Forms.TextBox
- Me.cboHw = New System.Windows.Forms.ComboBox
- Me.cboJs = New System.Windows.Forms.ComboBox
- Me.txtNo = New System.Windows.Forms.TextBox
- Me.txtBillNumber = New System.Windows.Forms.TextBox
- Me.txtCustName = New System.Windows.Forms.TextBox
- Me.txtCustNumber = New System.Windows.Forms.TextBox
- Me.Label8 = New System.Windows.Forms.Label
- Me.Label7 = New System.Windows.Forms.Label
- Me.Label6 = New System.Windows.Forms.Label
- Me.Label5 = New System.Windows.Forms.Label
- Me.Label4 = New System.Windows.Forms.Label
- Me.Label2 = New System.Windows.Forms.Label
- Me.Label1 = New System.Windows.Forms.Label
- Me.GroupBox2 = New System.Windows.Forms.GroupBox
- Me.txtSum = New System.Windows.Forms.TextBox
- Me.Label24 = New System.Windows.Forms.Label
- Me.txtZprice = New System.Windows.Forms.TextBox
- Me.txtJprice = New System.Windows.Forms.TextBox
- Me.txtLprice = New System.Windows.Forms.TextBox
- Me.txtPprice = New System.Windows.Forms.TextBox
- Me.txtAddress = New System.Windows.Forms.TextBox
- Me.txtAvaid = New System.Windows.Forms.TextBox
- Me.txtBatch = New System.Windows.Forms.TextBox
- Me.txtPackage = New System.Windows.Forms.TextBox
- Me.txtMoney = New System.Windows.Forms.TextBox
- Me.txtCount = New System.Windows.Forms.TextBox
- Me.txtPrice = New System.Windows.Forms.TextBox
- Me.txtUnit = New System.Windows.Forms.TextBox
- Me.txtRule = New System.Windows.Forms.TextBox
- Me.txtName = New System.Windows.Forms.TextBox
- Me.txtNumber = New System.Windows.Forms.TextBox
- Me.Label23 = New System.Windows.Forms.Label
- Me.Label22 = New System.Windows.Forms.Label
- Me.Label21 = New System.Windows.Forms.Label
- Me.Label20 = New System.Windows.Forms.Label
- Me.Label19 = New System.Windows.Forms.Label
- Me.Label18 = New System.Windows.Forms.Label
- Me.Label17 = New System.Windows.Forms.Label
- Me.Label16 = New System.Windows.Forms.Label
- Me.Label15 = New System.Windows.Forms.Label
- Me.Label14 = New System.Windows.Forms.Label
- Me.Label13 = New System.Windows.Forms.Label
- Me.Label12 = New System.Windows.Forms.Label
- Me.Label11 = New System.Windows.Forms.Label
- Me.Label10 = New System.Windows.Forms.Label
- Me.Label9 = New System.Windows.Forms.Label
- Me.dgrk = New System.Windows.Forms.DataGrid
- Me.MsdnTextboxValidator1 = New MSDNTextboxValidator.MSDNTextboxValidator(Me.components)
- Me.ErrorProvider1 = New System.Windows.Forms.ErrorProvider
- Me.GroupBox1.SuspendLayout()
- Me.GroupBox2.SuspendLayout()
- CType(Me.dgrk, System.ComponentModel.ISupportInitialize).BeginInit()
- Me.SuspendLayout()
- '
- 'tbrRk
- '
- Me.tbrRk.Appearance = System.Windows.Forms.ToolBarAppearance.Flat
- Me.tbrRk.Buttons.AddRange(New System.Windows.Forms.ToolBarButton() {Me.tbrAdd, Me.tbrSave, Me.tbrPrint, Me.tbrQuery, Me.tbrSeparator, Me.tbrTh, Me.tbrExit})
- Me.tbrRk.DropDownArrows = True
- Me.tbrRk.ImageList = Me.ImageList2
- Me.tbrRk.Location = New System.Drawing.Point(0, 0)
- Me.tbrRk.Name = "tbrRk"
- Me.tbrRk.ShowToolTips = True
- Me.tbrRk.Size = New System.Drawing.Size(877, 44)
- Me.tbrRk.TabIndex = 0
- '
- 'tbrAdd
- '
- Me.tbrAdd.ImageIndex = 7
- Me.tbrAdd.Text = "添加"
- '
- 'tbrSave
- '
- Me.tbrSave.ImageIndex = 4
- Me.tbrSave.Text = "保存"
- '
- 'tbrPrint
- '
- Me.tbrPrint.ImageIndex = 12
- Me.tbrPrint.Text = "打印"
- '
- 'tbrQuery
- '
- Me.tbrQuery.ImageIndex = 13
- Me.tbrQuery.Text = "查询"
- '
- 'tbrSeparator
- '
- Me.tbrSeparator.Style = System.Windows.Forms.ToolBarButtonStyle.Separator
- '
- 'tbrTh
- '
- Me.tbrTh.ImageIndex = 9
- Me.tbrTh.Text = "退货"
- '
- 'tbrExit
- '
- Me.tbrExit.ImageIndex = 11
- Me.tbrExit.Text = "退出"
- '
- 'ImageList2
- '
- Me.ImageList2.ImageSize = New System.Drawing.Size(16, 16)
- Me.ImageList2.ImageStream = CType(resources.GetObject("ImageList2.ImageStream"), System.Windows.Forms.ImageListStreamer)
- Me.ImageList2.TransparentColor = System.Drawing.Color.Transparent
- '
- 'StatusBar1
- '
- Me.StatusBar1.Location = New System.Drawing.Point(0, 653)
- Me.StatusBar1.Name = "StatusBar1"
- Me.StatusBar1.Size = New System.Drawing.Size(877, 29)
- Me.StatusBar1.TabIndex = 1
- '
- 'GroupBox1
- '
- Me.GroupBox1.Controls.Add(Me.txtdate)
- Me.GroupBox1.Controls.Add(Me.Label3)
- Me.GroupBox1.Controls.Add(Me.txtSzy)
- Me.GroupBox1.Controls.Add(Me.cboHw)
- Me.GroupBox1.Controls.Add(Me.cboJs)
- Me.GroupBox1.Controls.Add(Me.txtNo)
- Me.GroupBox1.Controls.Add(Me.txtBillNumber)
- Me.GroupBox1.Controls.Add(Me.txtCustName)
- Me.GroupBox1.Controls.Add(Me.txtCustNumber)
- Me.GroupBox1.Controls.Add(Me.Label8)
- Me.GroupBox1.Controls.Add(Me.Label7)
- Me.GroupBox1.Controls.Add(Me.Label6)
- Me.GroupBox1.Controls.Add(Me.Label5)
- Me.GroupBox1.Controls.Add(Me.Label4)
- Me.GroupBox1.Controls.Add(Me.Label2)
- Me.GroupBox1.Controls.Add(Me.Label1)
- Me.GroupBox1.Dock = System.Windows.Forms.DockStyle.Top
- Me.GroupBox1.Location = New System.Drawing.Point(0, 44)
- Me.GroupBox1.Name = "GroupBox1"
- Me.GroupBox1.Size = New System.Drawing.Size(877, 104)
- Me.GroupBox1.TabIndex = 2
- Me.GroupBox1.TabStop = False
- Me.GroupBox1.Text = "票据信息:"
- '
- 'txtdate
- '
- Me.txtdate.Location = New System.Drawing.Point(512, 32)
- Me.txtdate.Name = "txtdate"
- Me.txtdate.Size = New System.Drawing.Size(136, 25)
- Me.txtdate.TabIndex = 18
- Me.txtdate.Value = New Date(2006, 3, 31, 0, 0, 0, 0)
- '
- 'Label3
- '
- Me.Label3.AutoSize = True
- Me.Label3.Location = New System.Drawing.Point(472, 40)
- Me.Label3.Name = "Label3"
- Me.Label3.Size = New System.Drawing.Size(52, 21)
- Me.Label3.TabIndex = 17
- Me.Label3.Text = "日期:"
- '
- 'txtSzy
- '
- Me.MsdnTextboxValidator1.SetCustomValidationEnabled(Me.txtSzy, True)
- Me.MsdnTextboxValidator1.SetDataType(Me.txtSzy, MSDNTextboxValidator.DataTypeConstants.StringType)
- Me.MsdnTextboxValidator1.SetDisplayName(Me.txtSzy, "")
- Me.txtSzy.Location = New System.Drawing.Point(720, 64)
- Me.MsdnTextboxValidator1.SetMaxValue(Me.txtSzy, "")
- Me.MsdnTextboxValidator1.SetMinValue(Me.txtSzy, "")
- Me.txtSzy.Name = "txtSzy"
- Me.txtSzy.ReadOnly = True
- Me.MsdnTextboxValidator1.SetRegularExpression(Me.txtSzy, "")
- Me.MsdnTextboxValidator1.SetRequired(Me.txtSzy, False)
- Me.txtSzy.Size = New System.Drawing.Size(144, 25)
- Me.txtSzy.TabIndex = 16
- Me.txtSzy.Text = ""
- '
- 'cboHw
- '
- Me.cboHw.ForeColor = System.Drawing.Color.FromArgb(CType(0, Byte), CType(192, Byte), CType(0, Byte))
- Me.cboHw.Location = New System.Drawing.Point(512, 64)
- Me.cboHw.Name = "cboHw"
- Me.cboHw.Size = New System.Drawing.Size(136, 23)
- Me.cboHw.TabIndex = 15
- '
- 'cboJs
- '
- Me.cboJs.ForeColor = System.Drawing.Color.FromArgb(CType(0, Byte), CType(192, Byte), CType(0, Byte))
- Me.cboJs.Items.AddRange(New Object() {"现金", "支票", "记账"})
- Me.cboJs.Location = New System.Drawing.Point(256, 64)
- Me.cboJs.Name = "cboJs"
- Me.cboJs.Size = New System.Drawing.Size(128, 23)
- Me.cboJs.TabIndex = 13
- Me.cboJs.Text = "现金"
- '
- 'txtNo
- '
- Me.MsdnTextboxValidator1.SetCustomValidationEnabled(Me.txtNo, True)
- Me.MsdnTextboxValidator1.SetDataType(Me.txtNo, MSDNTextboxValidator.DataTypeConstants.StringType)
- Me.MsdnTextboxValidator1.SetDisplayName(Me.txtNo, "")
- Me.txtNo.Location = New System.Drawing.Point(80, 64)
- Me.MsdnTextboxValidator1.SetMaxValue(Me.txtNo, "")
- Me.MsdnTextboxValidator1.SetMinValue(Me.txtNo, "")
- Me.txtNo.Name = "txtNo"
- Me.txtNo.ReadOnly = True
- Me.MsdnTextboxValidator1.SetRegularExpression(Me.txtNo, "")
- Me.MsdnTextboxValidator1.SetRequired(Me.txtNo, False)
- Me.txtNo.Size = New System.Drawing.Size(88, 25)
- Me.txtNo.TabIndex = 12
- Me.txtNo.Text = ""
- '
- 'txtBillNumber
- '
- Me.txtBillNumber.BackColor = System.Drawing.SystemColors.Control
- Me.MsdnTextboxValidator1.SetCustomValidationEnabled(Me.txtBillNumber, True)
- Me.MsdnTextboxValidator1.SetDataType(Me.txtBillNumber, MSDNTextboxValidator.DataTypeConstants.StringType)
- Me.MsdnTextboxValidator1.SetDisplayName(Me.txtBillNumber, "")
- Me.txtBillNumber.Location = New System.Drawing.Point(720, 32)
- Me.MsdnTextboxValidator1.SetMaxValue(Me.txtBillNumber, "")
- Me.MsdnTextboxValidator1.SetMinValue(Me.txtBillNumber, "")
- Me.txtBillNumber.Name = "txtBillNumber"
- Me.txtBillNumber.ReadOnly = True
- Me.MsdnTextboxValidator1.SetRegularExpression(Me.txtBillNumber, "")
- Me.MsdnTextboxValidator1.SetRequired(Me.txtBillNumber, False)
- Me.txtBillNumber.Size = New System.Drawing.Size(144, 25)
- Me.txtBillNumber.TabIndex = 11
- Me.txtBillNumber.Text = ""
- '
- 'txtCustName
- '
- Me.txtCustName.BackColor = System.Drawing.Color.White
- Me.MsdnTextboxValidator1.SetCustomValidationEnabled(Me.txtCustName, True)
- Me.MsdnTextboxValidator1.SetDataType(Me.txtCustName, MSDNTextboxValidator.DataTypeConstants.StringType)
- Me.MsdnTextboxValidator1.SetDisplayName(Me.txtCustName, "")
- Me.txtCustName.Location = New System.Drawing.Point(256, 31)
- Me.MsdnTextboxValidator1.SetMaxValue(Me.txtCustName, "")
- Me.MsdnTextboxValidator1.SetMinValue(Me.txtCustName, "")
- Me.txtCustName.Name = "txtCustName"
- Me.txtCustName.ReadOnly = True
- Me.MsdnTextboxValidator1.SetRegularExpression(Me.txtCustName, "")
- Me.MsdnTextboxValidator1.SetRequired(Me.txtCustName, False)
- Me.txtCustName.Size = New System.Drawing.Size(200, 25)
- Me.txtCustName.TabIndex = 9
- Me.txtCustName.Text = ""
- '
- 'txtCustNumber
- '
- Me.MsdnTextboxValidator1.SetCustomValidationEnabled(Me.txtCustNumber, True)
- Me.MsdnTextboxValidator1.SetDataType(Me.txtCustNumber, MSDNTextboxValidator.DataTypeConstants.StringType)
- Me.MsdnTextboxValidator1.SetDisplayName(Me.txtCustNumber, "")
- Me.txtCustNumber.Location = New System.Drawing.Point(80, 31)
- Me.MsdnTextboxValidator1.SetMaxValue(Me.txtCustNumber, "")
- Me.MsdnTextboxValidator1.SetMinValue(Me.txtCustNumber, "")
- Me.txtCustNumber.Name = "txtCustNumber"
- Me.MsdnTextboxValidator1.SetRegularExpression(Me.txtCustNumber, "<>""""")
- Me.MsdnTextboxValidator1.SetRequired(Me.txtCustNumber, False)
- Me.txtCustNumber.Size = New System.Drawing.Size(88, 25)
- Me.txtCustNumber.TabIndex = 8
- Me.txtCustNumber.Text = ""
- '
- 'Label8
- '
- Me.Label8.AutoSize = True
- Me.Label8.Location = New System.Drawing.Point(664, 72)
- Me.Label8.Name = "Label8"
- Me.Label8.Size = New System.Drawing.Size(67, 21)
- Me.Label8.TabIndex = 7
- Me.Label8.Text = "操做员:"
- '
- 'Label7
- '
- Me.Label7.AutoSize = True
- Me.Label7.Location = New System.Drawing.Point(184, 72)
- Me.Label7.Name = "Label7"
- Me.Label7.Size = New System.Drawing.Size(83, 21)
- Me.Label7.TabIndex = 6
- Me.Label7.Text = "结算方式:"
- '
- 'Label6
- '
- Me.Label6.AutoSize = True
- Me.Label6.Location = New System.Drawing.Point(472, 72)
- Me.Label6.Name = "Label6"
- Me.Label6.Size = New System.Drawing.Size(52, 21)
- Me.Label6.TabIndex = 5
- Me.Label6.Text = "货位:"
- '
- 'Label5
- '
- Me.Label5.AutoSize = True
- Me.Label5.Location = New System.Drawing.Point(40, 72)
- Me.Label5.Name = "Label5"
- Me.Label5.Size = New System.Drawing.Size(52, 21)
- Me.Label5.TabIndex = 4
- Me.Label5.Text = "序号:"
- '
- 'Label4
- '
- Me.Label4.AutoSize = True
- Me.Label4.Location = New System.Drawing.Point(680, 40)
- Me.Label4.Name = "Label4"
- Me.Label4.Size = New System.Drawing.Size(52, 21)
- Me.Label4.TabIndex = 3
- Me.Label4.Text = "票号:"
- '
- 'Label2
- '
- Me.Label2.AutoSize = True
- Me.Label2.Location = New System.Drawing.Point(184, 40)
- Me.Label2.Name = "Label2"
- Me.Label2.Size = New System.Drawing.Size(83, 21)
- Me.Label2.TabIndex = 1
- Me.Label2.Text = "客户名称:"
- '
- 'Label1
- '
- Me.Label1.AutoSize = True
- Me.Label1.Location = New System.Drawing.Point(8, 40)
- Me.Label1.Name = "Label1"
- Me.Label1.Size = New System.Drawing.Size(83, 21)
- Me.Label1.TabIndex = 0
- Me.Label1.Text = "客户编号:"
- '
- 'GroupBox2
- '
- Me.GroupBox2.Controls.Add(Me.txtSum)
- Me.GroupBox2.Controls.Add(Me.Label24)
- Me.GroupBox2.Controls.Add(Me.txtZprice)
- Me.GroupBox2.Controls.Add(Me.txtJprice)
- Me.GroupBox2.Controls.Add(Me.txtLprice)
- Me.GroupBox2.Controls.Add(Me.txtPprice)
- Me.GroupBox2.Controls.Add(Me.txtAddress)
- Me.GroupBox2.Controls.Add(Me.txtAvaid)
- Me.GroupBox2.Controls.Add(Me.txtBatch)
- Me.GroupBox2.Controls.Add(Me.txtPackage)
- Me.GroupBox2.Controls.Add(Me.txtMoney)
- Me.GroupBox2.Controls.Add(Me.txtCount)
- Me.GroupBox2.Controls.Add(Me.txtPrice)
- Me.GroupBox2.Controls.Add(Me.txtUnit)
- Me.GroupBox2.Controls.Add(Me.txtRule)
- Me.GroupBox2.Controls.Add(Me.txtName)
- Me.GroupBox2.Controls.Add(Me.txtNumber)
- Me.GroupBox2.Controls.Add(Me.Label23)
- Me.GroupBox2.Controls.Add(Me.Label22)
- Me.GroupBox2.Controls.Add(Me.Label21)
- Me.GroupBox2.Controls.Add(Me.Label20)
- Me.GroupBox2.Controls.Add(Me.Label19)
- Me.GroupBox2.Controls.Add(Me.Label18)
- Me.GroupBox2.Controls.Add(Me.Label17)
- Me.GroupBox2.Controls.Add(Me.Label16)
- Me.GroupBox2.Controls.Add(Me.Label15)
- Me.GroupBox2.Controls.Add(Me.Label14)
- Me.GroupBox2.Controls.Add(Me.Label13)
- Me.GroupBox2.Controls.Add(Me.Label12)
- Me.GroupBox2.Controls.Add(Me.Label11)
- Me.GroupBox2.Controls.Add(Me.Label10)
- Me.GroupBox2.Controls.Add(Me.Label9)
- Me.GroupBox2.Dock = System.Windows.Forms.DockStyle.Top
- Me.GroupBox2.Location = New System.Drawing.Point(0, 148)
- Me.GroupBox2.Name = "GroupBox2"
- Me.GroupBox2.Size = New System.Drawing.Size(877, 168)
- Me.GroupBox2.TabIndex = 3
- Me.GroupBox2.TabStop = False
- Me.GroupBox2.Text = "药品信息:"
- '
- 'txtSum
- '
- Me.txtSum.BackColor = System.Drawing.SystemColors.Control
- Me.MsdnTextboxValidator1.SetCustomValidationEnabled(Me.txtSum, True)
- Me.MsdnTextboxValidator1.SetDataType(Me.txtSum, MSDNTextboxValidator.DataTypeConstants.StringType)
- Me.MsdnTextboxValidator1.SetDisplayName(Me.txtSum, "")
- Me.txtSum.ForeColor = System.Drawing.Color.Black
- Me.txtSum.Location = New System.Drawing.Point(768, 129)
- Me.MsdnTextboxValidator1.SetMaxValue(Me.txtSum, "")
- Me.MsdnTextboxValidator1.SetMinValue(Me.txtSum, "")
- Me.txtSum.Name = "txtSum"
- Me.txtSum.ReadOnly = True
- Me.MsdnTextboxValidator1.SetRegularExpression(Me.txtSum, "")
- Me.MsdnTextboxValidator1.SetRequired(Me.txtSum, False)
- Me.txtSum.Size = New System.Drawing.Size(96, 25)
- Me.txtSum.TabIndex = 31
- Me.txtSum.Text = ""
- '
- 'Label24
- '
- Me.Label24.AutoSize = True
- Me.Label24.ForeColor = System.Drawing.Color.Red
- Me.Label24.Location = New System.Drawing.Point(696, 136)
- Me.Label24.Name = "Label24"
- Me.Label24.Size = New System.Drawing.Size(83, 21)
- Me.Label24.TabIndex = 30
- Me.Label24.Text = "合计金额:"
- '
- 'txtZprice
- '
- Me.txtZprice.BackColor = System.Drawing.Color.White
- Me.MsdnTextboxValidator1.SetCustomValidationEnabled(Me.txtZprice, True)
- Me.MsdnTextboxValidator1.SetDataType(Me.txtZprice, MSDNTextboxValidator.DataTypeConstants.DoubleType)
- Me.MsdnTextboxValidator1.SetDisplayName(Me.txtZprice, "")
- Me.txtZprice.ForeColor = System.Drawing.Color.Black
- Me.txtZprice.Location = New System.Drawing.Point(544, 129)
- Me.MsdnTextboxValidator1.SetMaxValue(Me.txtZprice, "")
- Me.MsdnTextboxValidator1.SetMinValue(Me.txtZprice, "")
- Me.txtZprice.Name = "txtZprice"
- Me.MsdnTextboxValidator1.SetRegularExpression(Me.txtZprice, "")
- Me.MsdnTextboxValidator1.SetRequired(Me.txtZprice, False)
- Me.txtZprice.Size = New System.Drawing.Size(128, 25)
- Me.txtZprice.TabIndex = 29
- Me.txtZprice.Text = "0.00"
- '
- 'txtJprice
- '
- Me.txtJprice.BackColor = System.Drawing.Color.White
- Me.MsdnTextboxValidator1.SetCustomValidationEnabled(Me.txtJprice, True)
- Me.MsdnTextboxValidator1.SetDataType(Me.txtJprice, MSDNTextboxValidator.DataTypeConstants.DoubleType)
- Me.MsdnTextboxValidator1.SetDisplayName(Me.txtJprice, "")
- Me.txtJprice.ForeColor = System.Drawing.Color.Black
- Me.txtJprice.Location = New System.Drawing.Point(256, 129)
- Me.MsdnTextboxValidator1.SetMaxValue(Me.txtJprice, "")
- Me.MsdnTextboxValidator1.SetMinValue(Me.txtJprice, "")
- Me.txtJprice.Name = "txtJprice"
- Me.MsdnTextboxValidator1.SetRegularExpression(Me.txtJprice, "")
- Me.MsdnTextboxValidator1.SetRequired(Me.txtJprice, False)
- Me.txtJprice.Size = New System.Drawing.Size(128, 25)
- Me.txtJprice.TabIndex = 28
- Me.txtJprice.Text = "0.00"
- '
- 'txtLprice
- '
- Me.txtLprice.BackColor = System.Drawing.Color.White
- Me.MsdnTextboxValidator1.SetCustomValidationEnabled(Me.txtLprice, True)
- Me.MsdnTextboxValidator1.SetDataType(Me.txtLprice, MSDNTextboxValidator.DataTypeConstants.StringType)
- Me.MsdnTextboxValidator1.SetDisplayName(Me.txtLprice, "")
- Me.txtLprice.ForeColor = System.Drawing.Color.Black
- Me.txtLprice.Location = New System.Drawing.Point(80, 129)
- Me.MsdnTextboxValidator1.SetMaxValue(Me.txtLprice, "")
- Me.MsdnTextboxValidator1.SetMinValue(Me.txtLprice, "")
- Me.txtLprice.Name = "txtLprice"
- Me.txtLprice.ReadOnly = True
- Me.MsdnTextboxValidator1.SetRegularExpression(Me.txtLprice, "")
- Me.MsdnTextboxValidator1.SetRequired(Me.txtLprice, False)
- Me.txtLprice.Size = New System.Drawing.Size(88, 25)
- Me.txtLprice.TabIndex = 27
- Me.txtLprice.Text = "0.00"
- '
- 'txtPprice
- '
- Me.txtPprice.BackColor = System.Drawing.Color.White
- Me.MsdnTextboxValidator1.SetCustomValidationEnabled(Me.txtPprice, True)
- Me.MsdnTextboxValidator1.SetDataType(Me.txtPprice, MSDNTextboxValidator.DataTypeConstants.StringType)
- Me.MsdnTextboxValidator1.SetDisplayName(Me.txtPprice, "")
- Me.txtPprice.ForeColor = System.Drawing.Color.Black
- Me.txtPprice.Location = New System.Drawing.Point(768, 96)
- Me.MsdnTextboxValidator1.SetMaxValue(Me.txtPprice, "")
- Me.MsdnTextboxValidator1.SetMinValue(Me.txtPprice, "")
- Me.txtPprice.Name = "txtPprice"
- Me.txtPprice.ReadOnly = True
- Me.MsdnTextboxValidator1.SetRegularExpression(Me.txtPprice, "")
- Me.MsdnTextboxValidator1.SetRequired(Me.txtPprice, False)
- Me.txtPprice.Size = New System.Drawing.Size(96, 25)
- Me.txtPprice.TabIndex = 26
- Me.txtPprice.Text = ""
- '
- 'txtAddress
- '
- Me.txtAddress.BackColor = System.Drawing.Color.White
- Me.MsdnTextboxValidator1.SetCustomValidationEnabled(Me.txtAddress, True)
- Me.MsdnTextboxValidator1.SetDataType(Me.txtAddress, MSDNTextboxValidator.DataTypeConstants.StringType)
- Me.MsdnTextboxValidator1.SetDisplayName(Me.txtAddress, "")
- Me.txtAddress.ForeColor = System.Drawing.Color.Black
- Me.txtAddress.Location = New System.Drawing.Point(544, 96)
- Me.MsdnTextboxValidator1.SetMaxValue(Me.txtAddress, "")
- Me.MsdnTextboxValidator1.SetMinValue(Me.txtAddress, "")
- Me.txtAddress.Name = "txtAddress"
- Me.MsdnTextboxValidator1.SetRegularExpression(Me.txtAddress, "")
- Me.MsdnTextboxValidator1.SetRequired(Me.txtAddress, False)
- Me.txtAddress.Size = New System.Drawing.Size(128, 25)
- Me.txtAddress.TabIndex = 25
- Me.txtAddress.Text = ""
- '
- 'txtAvaid
- '
- Me.txtAvaid.BackColor = System.Drawing.Color.White
- Me.MsdnTextboxValidator1.SetCustomValidationEnabled(Me.txtAvaid, True)
- Me.MsdnTextboxValidator1.SetDataType(Me.txtAvaid, MSDNTextboxValidator.DataTypeConstants.StringType)
- Me.MsdnTextboxValidator1.SetDisplayName(Me.txtAvaid, "")
- Me.txtAvaid.ForeColor = System.Drawing.Color.Black
- Me.txtAvaid.Location = New System.Drawing.Point(256, 96)
- Me.MsdnTextboxValidator1.SetMaxValue(Me.txtAvaid, "")
- Me.MsdnTextboxValidator1.SetMinValue(Me.txtAvaid, "")
- Me.txtAvaid.Name = "txtAvaid"
- Me.MsdnTextboxValidator1.SetRegularExpression(Me.txtAvaid, "")
- Me.MsdnTextboxValidator1.SetRequired(Me.txtAvaid, False)
- Me.txtAvaid.Size = New System.Drawing.Size(128, 25)
- Me.txtAvaid.TabIndex = 24
- Me.txtAvaid.Text = ""
- '
- 'txtBatch
- '
- Me.txtBatch.BackColor = System.Drawing.Color.White
- Me.MsdnTextboxValidator1.SetCustomValidationEnabled(Me.txtBatch, True)
- Me.MsdnTextboxValidator1.SetDataType(Me.txtBatch, MSDNTextboxValidator.DataTypeConstants.StringType)
- Me.MsdnTextboxValidator1.SetDisplayName(Me.txtBatch, "")
- Me.txtBatch.ForeColor = System.Drawing.Color.Black
- Me.txtBatch.Location = New System.Drawing.Point(80, 96)
- Me.MsdnTextboxValidator1.SetMaxValue(Me.txtBatch, "")
- Me.MsdnTextboxValidator1.SetMinValue(Me.txtBatch, "")
- Me.txtBatch.Name = "txtBatch"
- Me.MsdnTextboxValidator1.SetRegularExpression(Me.txtBatch, "")
- Me.MsdnTextboxValidator1.SetRequired(Me.txtBatch, False)
- Me.txtBatch.Size = New System.Drawing.Size(88, 25)
- Me.txtBatch.TabIndex = 23
- Me.txtBatch.Text = ""
- '
- 'txtPackage
- '
- Me.txtPackage.BackColor = System.Drawing.Color.White
- Me.MsdnTextboxValidator1.SetCustomValidationEnabled(Me.txtPackage, True)
- Me.MsdnTextboxValidator1.SetDataType(Me.txtPackage, MSDNTextboxValidator.DataTypeConstants.StringType)
- Me.MsdnTextboxValidator1.SetDisplayName(Me.txtPackage, "")
- Me.txtPackage.ForeColor = System.Drawing.Color.Black
- Me.txtPackage.Location = New System.Drawing.Point(768, 64)
- Me.MsdnTextboxValidator1.SetMaxValue(Me.txtPackage, "")
- Me.MsdnTextboxValidator1.SetMinValue(Me.txtPackage, "")
- Me.txtPackage.Name = "txtPackage"
- Me.MsdnTextboxValidator1.SetRegularExpression(Me.txtPackage, "")
- Me.MsdnTextboxValidator1.SetRequired(Me.txtPackage, False)
- Me.txtPackage.Size = New System.Drawing.Size(96, 25)
- Me.txtPackage.TabIndex = 22
- Me.txtPackage.Text = ""
- '
- 'txtMoney
- '
- Me.txtMoney.BackColor = System.Drawing.SystemColors.Control
- Me.MsdnTextboxValidator1.SetCustomValidationEnabled(Me.txtMoney, True)
- Me.MsdnTextboxValidator1.SetDataType(Me.txtMoney, MSDNTextboxValidator.DataTypeConstants.StringType)
- Me.MsdnTextboxValidator1.SetDisplayName(Me.txtMoney, "")
- Me.txtMoney.ForeColor = System.Drawing.Color.Black
- Me.txtMoney.Location = New System.Drawing.Point(544, 64)
- Me.MsdnTextboxValidator1.SetMaxValue(Me.txtMoney, "")
- Me.MsdnTextboxValidator1.SetMinValue(Me.txtMoney, "")
- Me.txtMoney.Name = "txtMoney"
- Me.txtMoney.ReadOnly = True
- Me.MsdnTextboxValidator1.SetRegularExpression(Me.txtMoney, "")
- Me.MsdnTextboxValidator1.SetRequired(Me.txtMoney, False)
- Me.txtMoney.Size = New System.Drawing.Size(128, 25)
- Me.txtMoney.TabIndex = 21
- Me.txtMoney.Text = "0.00"
- '
- 'txtCount
- '
- Me.txtCount.BackColor = System.Drawing.Color.White
- Me.MsdnTextboxValidator1.SetCustomValidationEnabled(Me.txtCount, True)
- Me.MsdnTextboxValidator1.SetDataType(Me.txtCount, MSDNTextboxValidator.DataTypeConstants.Int16Type)
- Me.MsdnTextboxValidator1.SetDisplayName(Me.txtCount, "")
- Me.txtCount.ForeColor = System.Drawing.Color.Black
- Me.txtCount.Location = New System.Drawing.Point(256, 64)
- Me.MsdnTextboxValidator1.SetMaxValue(Me.txtCount, "")
- Me.MsdnTextboxValidator1.SetMinValue(Me.txtCount, "")
- Me.txtCount.Name = "txtCount"
- Me.MsdnTextboxValidator1.SetRegularExpression(Me.txtCount, "")
- Me.MsdnTextboxValidator1.SetRequired(Me.txtCount, False)
- Me.txtCount.Size = New System.Drawing.Size(128, 25)
- Me.txtCount.TabIndex = 20
- Me.txtCount.Text = ""
- '
- 'txtPrice
- '
- Me.txtPrice.BackColor = System.Drawing.Color.White
- Me.MsdnTextboxValidator1.SetCustomValidationEnabled(Me.txtPrice, True)
- Me.MsdnTextboxValidator1.SetDataType(Me.txtPrice, MSDNTextboxValidator.DataTypeConstants.DoubleType)
- Me.MsdnTextboxValidator1.SetDisplayName(Me.txtPrice, "")
- Me.txtPrice.ForeColor = System.Drawing.Color.Black
- Me.txtPrice.Location = New System.Drawing.Point(80, 64)
- Me.MsdnTextboxValidator1.SetMaxValue(Me.txtPrice, "")
- Me.MsdnTextboxValidator1.SetMinValue(Me.txtPrice, "")
- Me.txtPrice.Name = "txtPrice"
- Me.MsdnTextboxValidator1.SetRegularExpression(Me.txtPrice, "")
- Me.MsdnTextboxValidator1.SetRequired(Me.txtPrice, False)
- Me.txtPrice.Size = New System.Drawing.Size(88, 25)
- Me.txtPrice.TabIndex = 19
- Me.txtPrice.Text = "0.00"
- '
- 'txtUnit
- '
- Me.txtUnit.BackColor = System.Drawing.SystemColors.Control
- Me.MsdnTextboxValidator1.SetCustomValidationEnabled(Me.txtUnit, True)
- Me.MsdnTextboxValidator1.SetDataType(Me.txtUnit, MSDNTextboxValidator.DataTypeConstants.StringType)
- Me.MsdnTextboxValidator1.SetDisplayName(Me.txtUnit, "")
- Me.txtUnit.ForeColor = System.Drawing.Color.Black
- Me.txtUnit.Location = New System.Drawing.Point(768, 32)
- Me.MsdnTextboxValidator1.SetMaxValue(Me.txtUnit, "")
- Me.MsdnTextboxValidator1.SetMinValue(Me.txtUnit, "")
- Me.txtUnit.Name = "txtUnit"
- Me.txtUnit.ReadOnly = True
- Me.MsdnTextboxValidator1.SetRegularExpression(Me.txtUnit, "")
- Me.MsdnTextboxValidator1.SetRequired(Me.txtUnit, False)
- Me.txtUnit.Size = New System.Drawing.Size(96, 25)
- Me.txtUnit.TabIndex = 18
- Me.txtUnit.Text = ""
- '
- 'txtRule
- '
- Me.txtRule.BackColor = System.Drawing.SystemColors.Control
- Me.MsdnTextboxValidator1.SetCustomValidationEnabled(Me.txtRule, True)
- Me.MsdnTextboxValidator1.SetDataType(Me.txtRule, MSDNTextboxValidator.DataTypeConstants.StringType)
- Me.MsdnTextboxValidator1.SetDisplayName(Me.txtRule, "")
- Me.txtRule.ForeColor = System.Drawing.Color.Black
- Me.txtRule.Location = New System.Drawing.Point(544, 32)
- Me.MsdnTextboxValidator1.SetMaxValue(Me.txtRule, "")
- Me.MsdnTextboxValidator1.SetMinValue(Me.txtRule, "")
- Me.txtRule.Name = "txtRule"
- Me.txtRule.ReadOnly = True
- Me.MsdnTextboxValidator1.SetRegularExpression(Me.txtRule, "")
- Me.MsdnTextboxValidator1.SetRequired(Me.txtRule, False)
- Me.txtRule.Size = New System.Drawing.Size(128, 25)
- Me.txtRule.TabIndex = 17
- Me.txtRule.Text = ""
- '
- 'txtName
- '
- Me.txtName.BackColor = System.Drawing.SystemColors.Control
- Me.MsdnTextboxValidator1.SetCustomValidationEnabled(Me.txtName, True)
- Me.MsdnTextboxValidator1.SetDataType(Me.txtName, MSDNTextboxValidator.DataTypeConstants.StringType)
- Me.MsdnTextboxValidator1.SetDisplayName(Me.txtName, "")
- Me.txtName.ForeColor = System.Drawing.Color.Black
- Me.txtName.Location = New System.Drawing.Point(256, 31)
- Me.MsdnTextboxValidator1.SetMaxValue(Me.txtName, "")
- Me.MsdnTextboxValidator1.SetMinValue(Me.txtName, "")
- Me.txtName.Name = "txtName"
- Me.txtName.ReadOnly = True
- Me.MsdnTextboxValidator1.SetRegularExpression(Me.txtName, "")
- Me.MsdnTextboxValidator1.SetRequired(Me.txtName, False)
- Me.txtName.Size = New System.Drawing.Size(200, 25)
- Me.txtName.TabIndex = 16
- Me.txtName.Text = ""
- '
- 'txtNumber
- '
- Me.txtNumber.BackColor = System.Drawing.Color.White
- Me.MsdnTextboxValidator1.SetCustomValidationEnabled(Me.txtNumber, True)
- Me.MsdnTextboxValidator1.SetDataType(Me.txtNumber, MSDNTextboxValidator.DataTypeConstants.StringType)
- Me.MsdnTextboxValidator1.SetDisplayName(Me.txtNumber, "")
- Me.txtNumber.ForeColor = System.Drawing.Color.Black
- Me.txtNumber.Location = New System.Drawing.Point(80, 31)
- Me.MsdnTextboxValidator1.SetMaxValue(Me.txtNumber, "")
- Me.MsdnTextboxValidator1.SetMinValue(Me.txtNumber, "")
- Me.txtNumber.Name = "txtNumber"
- Me.MsdnTextboxValidator1.SetRegularExpression(Me.txtNumber, "")
- Me.MsdnTextboxValidator1.SetRequired(Me.txtNumber, False)
- Me.txtNumber.Size = New System.Drawing.Size(88, 25)
- Me.txtNumber.TabIndex = 15
- Me.txtNumber.Text = ""
- '
- 'Label23
- '
- Me.Label23.AutoSize = True
- Me.Label23.Location = New System.Drawing.Point(488, 136)
- Me.Label23.Name = "Label23"
- Me.Label23.Size = New System.Drawing.Size(67, 21)
- Me.Label23.TabIndex = 14
- Me.Label23.Text = "最低价:"
- '
- 'Label22
- '
- Me.Label22.AutoSize = True
- Me.Label22.Location = New System.Drawing.Point(200, 136)
- Me.Label22.Name = "Label22"
- Me.Label22.Size = New System.Drawing.Size(67, 21)
- Me.Label22.TabIndex = 13
- Me.Label22.Text = "建议价:"
- '
- 'Label21
- '
- Me.Label21.AutoSize = True
- Me.Label21.Location = New System.Drawing.Point(24, 136)
- Me.Label21.Name = "Label21"
- Me.Label21.Size = New System.Drawing.Size(67, 21)
- Me.Label21.TabIndex = 12
- Me.Label21.Text = "零售价:"
- '
- 'Label20
- '
- Me.Label20.AutoSize = True
- Me.Label20.Location = New System.Drawing.Point(712, 104)
- Me.Label20.Name = "Label20"
- Me.Label20.Size = New System.Drawing.Size(67, 21)
- Me.Label20.TabIndex = 11
- Me.Label20.Text = "批发价:"
- '
- 'Label19
- '
- Me.Label19.AutoSize = True
- Me.Label19.Location = New System.Drawing.Point(504, 104)
- Me.Label19.Name = "Label19"
- Me.Label19.Size = New System.Drawing.Size(52, 21)
- Me.Label19.TabIndex = 10
- Me.Label19.Text = "产地:"
- '
- 'Label18
- '
- Me.Label18.AutoSize = True
- Me.Label18.Location = New System.Drawing.Point(200, 104)
- Me.Label18.Name = "Label18"
- Me.Label18.Size = New System.Drawing.Size(67, 21)
- Me.Label18.TabIndex = 9
- Me.Label18.Text = "有效期:"
- '
- 'Label17
- '
- Me.Label17.AutoSize = True
- Me.Label17.Location = New System.Drawing.Point(40, 104)
- Me.Label17.Name = "Label17"
- Me.Label17.Size = New System.Drawing.Size(52, 21)
- Me.Label17.TabIndex = 8
- Me.Label17.Text = "批号:"
- '
- 'Label16
- '
- Me.Label16.AutoSize = True
- Me.Label16.Location = New System.Drawing.Point(728, 72)
- Me.Label16.Name = "Label16"
- Me.Label16.Size = New System.Drawing.Size(52, 21)
- Me.Label16.TabIndex = 7
- Me.Label16.Text = "包装:"
- '
- 'Label15
- '
- Me.Label15.AutoSize = True
- Me.Label15.ForeColor = System.Drawing.Color.Red
- Me.Label15.Location = New System.Drawing.Point(504, 72)
- Me.Label15.Name = "Label15"
- Me.Label15.Size = New System.Drawing.Size(52, 21)
- Me.Label15.TabIndex = 6
- Me.Label15.Text = "金额:"
- '
- 'Label14
- '
- Me.Label14.AutoSize = True
- Me.Label14.Location = New System.Drawing.Point(216, 72)
- Me.Label14.Name = "Label14"
- Me.Label14.Size = New System.Drawing.Size(52, 21)
- Me.Label14.TabIndex = 5
- Me.Label14.Text = "数量:"
- '
- 'Label13
- '
- Me.Label13.AutoSize = True
- Me.Label13.Location = New System.Drawing.Point(40, 72)
- Me.Label13.Name = "Label13"
- Me.Label13.Size = New System.Drawing.Size(52, 21)
- Me.Label13.TabIndex = 4
- Me.Label13.Text = "进价:"
- '
- 'Label12
- '
- Me.Label12.AutoSize = True
- Me.Label12.Location = New System.Drawing.Point(728, 40)
- Me.Label12.Name = "Label12"
- Me.Label12.Size = New System.Drawing.Size(52, 21)
- Me.Label12.TabIndex = 3
- Me.Label12.Text = "单位:"
- '
- 'Label11
- '
- Me.Label11.AutoSize = True
- Me.Label11.Location = New System.Drawing.Point(472, 40)
- Me.Label11.Name = "Label11"
- Me.Label11.Size = New System.Drawing.Size(83, 21)
- Me.Label11.TabIndex = 2
- Me.Label11.Text = "药品规格:"
- '
- 'Label10
- '
- Me.Label10.AutoSize = True
- Me.Label10.Location = New System.Drawing.Point(184, 40)
- Me.Label10.Name = "Label10"
- Me.Label10.Size = New System.Drawing.Size(83, 21)
- Me.Label10.TabIndex = 1
- Me.Label10.Text = "药品名称:"
- '
- 'Label9
- '
- Me.Label9.AutoSize = True
- Me.Label9.Location = New System.Drawing.Point(8, 40)
- Me.Label9.Name = "Label9"
- Me.Label9.Size = New System.Drawing.Size(83, 21)
- Me.Label9.TabIndex = 0
- Me.Label9.Text = "药品编号:"
- '
- 'dgrk
- '
- Me.dgrk.AlternatingBackColor = System.Drawing.Color.Gainsboro
- Me.dgrk.BackColor = System.Drawing.Color.Silver
- Me.dgrk.BackgroundColor = System.Drawing.Color.Silver
- Me.dgrk.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
- Me.dgrk.CaptionBackColor = System.Drawing.Color.DarkSlateBlue
- Me.dgrk.CaptionFont = New System.Drawing.Font("Tahoma", 8.0!)
- Me.dgrk.CaptionForeColor = System.Drawing.Color.White
- Me.dgrk.CaptionVisible = False
- Me.dgrk.DataMember = ""
- Me.dgrk.Dock = System.Windows.Forms.DockStyle.Fill
- Me.dgrk.FlatMode = True
- Me.dgrk.ForeColor = System.Drawing.Color.Black
- Me.dgrk.GridLineColor = System.Drawing.Color.White
- Me.dgrk.HeaderBackColor = System.Drawing.Color.DarkGray
- Me.dgrk.HeaderForeColor = System.Drawing.Color.Black
- Me.dgrk.LinkColor = System.Drawing.Color.DarkSlateBlue
- Me.dgrk.Location = New System.Drawing.Point(0, 316)
- Me.dgrk.Name = "dgrk"
- Me.dgrk.ParentRowsBackColor = System.Drawing.Color.Black
- Me.dgrk.ParentRowsForeColor = System.Drawing.Color.White
- Me.dgrk.RowHeadersVisible = False
- Me.dgrk.SelectionBackColor = System.Drawing.Color.DarkSlateBlue
- Me.dgrk.SelectionForeColor = System.Drawing.Color.White
- Me.dgrk.Size = New System.Drawing.Size(877, 337)
- Me.dgrk.TabIndex = 4
- '
- 'MsdnTextboxValidator1
- '
- Me.MsdnTextboxValidator1.DisplayControl = Nothing
- Me.MsdnTextboxValidator1.ErrorProvider = Nothing
- Me.MsdnTextboxValidator1.InvalidBackColor = System.Drawing.Color.Empty
- Me.MsdnTextboxValidator1.TooltipProvider = Nothing
- '
- 'ErrorProvider1
- '
- Me.ErrorProvider1.ContainerControl = Me
- '
- 'frmrk
- '
- Me.AutoScaleBaseSize = New System.Drawing.Size(8, 18)
- Me.ClientSize = New System.Drawing.Size(877, 682)
- Me.Controls.Add(Me.dgrk)
- Me.Controls.Add(Me.GroupBox2)
- Me.Controls.Add(Me.GroupBox1)
- Me.Controls.Add(Me.StatusBar1)
- Me.Controls.Add(Me.tbrRk)
- Me.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle
- Me.Name = "frmrk"
- Me.Text = "药品入库登记"
- Me.WindowState = System.Windows.Forms.FormWindowState.Maximized
- Me.GroupBox1.ResumeLayout(False)
- Me.GroupBox2.ResumeLayout(False)
- CType(Me.dgrk, System.ComponentModel.ISupportInitialize).EndInit()
- Me.ResumeLayout(False)
- End Sub
- #End Region
- Public bl As Boolean
- Public lsweb As New jxcmanage
- Public dslocal As DataSet = lsweb.returndataset("select 日期,票号,结算方式,客户编号,客户名称,金额,应付金额,操作员 from wz_rk_fk", "wz_rk_fk")
- Public dslocals As DataSet = lsweb.returndataset("select 序号,药品编号,药品名称,药品规格,单位,进价,数量,金额,批号,有效期,包装,产地,批发价,零售价,建议价,最低价,日期,票号,客户编号,客户名称,货位,结算,操作员 from wz_rk", "wz_rk")
- Public Function getinfo(ByVal strqueryid As String) As String
- Dim strOrderId As String
- strOrderId = strqueryid
- Return strOrderId
- End Function
- Private Sub txtCustNumber_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles txtCustNumber.KeyDown
- If e.KeyCode = Keys.Enter Then
- Dim dlg As frmQuery = New frmQuery
- dlg.PYM = Me.getinfo(txtCustNumber.Text)
- If dlg.PYM = "" Then
- ErrorProvider1.SetError(txtCustNumber, "不能为空,请输入查询码!")
- Else
- dlg.ShowDialog()
- ErrorProvider1.SetError(txtCustNumber, "")
- End If
- Dim CustIdvalue As String
- CustIdvalue = dlg.GetInfo("客户编号")
- If CustIdvalue Is Nothing Then
- ErrorProvider1.SetError(txtCustNumber, "或没有查到记录,请重新开始!")
- Else
- Dim runSqlQuery As String
- runSqlQuery = "select * from wz_kh where 客户编号='" & CustIdvalue & "'"
- 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
- txtCustNumber.Text = dv(0)("客户编号")
- txtCustName.Text = dv(0)("客户名称")
- cboJs.Focus()
- ErrorProvider1.SetError(txtCustNumber, "")
- End If
- End If
- End Sub
- Private Sub txtNumber_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles txtNumber.KeyDown
- If e.KeyCode = Keys.Enter Then
- Dim dlg As frmMedQuery = New frmMedQuery
- dlg.PYM = Me.getinfo(txtNumber.Text)
- If dlg.PYM = "" Then
- ErrorProvider1.SetError(txtNumber, "不能为空,请输入查询码!")
- Else
- dlg.ShowDialog()
- ErrorProvider1.SetError(txtNumber, "")
- End If
- Dim medIdvalue As String
- medIdvalue = dlg.GetInfo("药品编号")
- If medIdvalue Is Nothing Then
- ErrorProvider1.SetError(txtNumber, "不能为空,请输入查询码!或没有查到记录,请重新开始!")
- 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
- txtNumber.Text = dv(0)("药品编号")
- txtName.Text = dv(0)("药品名称")
- txtRule.Text = dv(0)("药品规格")
- txtUnit.Text = dv(0)("单位")
- txtPrice.Text = dv(0)("单价")
- txtAvaid.Text = dv(0)("有效期")
- 'txtPackage.Text = dv(0)("包装")
- txtAddress.Text = dv(0)("产地")
- txtPprice.Text = dv(0)("批发价")
- txtLprice.Text = dv(0)("零售价")
- ErrorProvider1.SetError(txtNumber, "")
- End If
- txtPrice.Focus()
- End If
- End Sub
- Public Sub add()
- dslocals.Clear()
- txtCustNumber.Text() = ""
- txtCustNumber.Enabled = True
- txtCustNumber.ReadOnly = False
- cboJs.Enabled = True
- cboHw.Enabled = True
- txtdate.Enabled = True
- txtCustNumber.Focus()
- txtCustName.Text() = ""
- txtdate.Value() = Today().ToString()
- If tbrTh.Enabled = False Then
- txtBillNumber.Text = lsweb.selectbill("TH").ToString
- txtBillNumber.ForeColor = System.Drawing.Color.Red
- txtCount.ForeColor = System.Drawing.Color.Red
- Else
- txtBillNumber.Text = lsweb.selectbill("RK").ToString
- txtBillNumber.ForeColor = System.Drawing.Color.Black
- txtCount.ForeColor = System.Drawing.Color.Black
- End If
- txtNo.Text = 1
- cboJs.Text = ""
- txtNumber.Text = ""
- txtName.Text() = ""
- txtRule.Text() = ""
- txtUnit.Text() = ""
- txtPrice.Text() = ""
- txtCount.Text() = ""
- 'txtMoney.Text() = ""
- txtPackage.Text() = ""
- txtBatch.Text() = ""
- txtAvaid.Text() = ""
- txtAddress.Text() = ""
- txtPprice.Text() = CStr(0)
- txtLprice.Text() = CStr(0)
- txtJprice.Text() = CStr(0)
- txtZprice.Text() = CStr(0)
- End Sub
- Public Sub tbnEnable(ByVal strboolean As String, ByVal tbr As ToolBar)
- If strboolean = "tbrAdd.Enabled = True" Then
- tbrSave.Enabled = False
- tbrPrint.Enabled = False
- tbrExit.Enabled = True
- tbrTh.Enabled = True
- ElseIf strboolean = "tbrAdd.Enabled = False" Then
- tbrAdd.Enabled = False
- tbrSave.Enabled = True
- tbrPrint.Enabled = False
- tbrExit.Enabled = True
- tbrTh.Enabled = False
- ElseIf strboolean = "tbrSave.Enabled = True" Then
- tbrAdd.Enabled = False
- tbrPrint.Enabled = False
- tbrExit.Enabled = True
- tbrTh.Enabled = True
- ElseIf strboolean = "tbrSave.Enabled = False" Then
- tbrSave.Enabled = False
- tbrAdd.Enabled = True
- tbrPrint.Enabled = True
- tbrExit.Enabled = True
- tbrTh.Enabled = True
- ElseIf strboolean = "tbrTh.Enabled = True" Then
- tbrSave.Enabled = True
- tbrAdd.Enabled = True
- tbrPrint.Enabled = True
- tbrExit.Enabled = True
- ElseIf strboolean = "tbrTh.Enabled = False" Then
- tbrTh.Enabled = False
- tbrSave.Enabled = False
- tbrAdd.Enabled = True
- tbrPrint.Enabled = False
- tbrExit.Enabled = True
- End If
- End Sub
- Private Sub save()
-
- Dim dr As DataRow = dslocal.Tables("wz_rk_fk").NewRow()
- dr("票号") = Me.txtBillNumber.Text.Trim
- dr("客户编号") = Me.txtCustNumber.Text.Trim
- dr("客户名称") = Me.txtCustName.Text.Trim
- dr("日期") = Me.txtdate.Value
- dr("结算方式") = Me.cboJs.Text.Trim
- dr("操作员") = Me.txtSzy.Text.Trim
- dr("金额") = Me.txtSum.Text.Trim
- If Me.cboJs.Text = "记账" Or Me.cboJs.Text = "支票" Then
- dr("应付金额") = Me.txtSum.Text.Trim
- Else
- dr("应付金额") = 0
- End If
- dslocal.Tables("wz_rk_fk").Rows.Add(dr)
- If lsweb.updatedataset("select 序号,药品编号,药品名称,药品规格,单位,进价,数量,金额,批号,有效期,包装,产地,批发价,零售价,建议价,最低价,日期,票号,客户编号,客户名称,货位,结算,操作员 from wz_rk", "wz_rk", dslocals, DataRowState.Added) = True And lsweb.updatedataset("select 日期,票号,结算方式,客户编号,客户名称,金额,应付金额,操作员 from wz_rk_fk", "wz_rk_fk", dslocal, DataRowState.Added) = True Then
- MessageBox.Show("入库信息成功保存!", "提示", MessageBoxButtons.OK)
- Else
- MessageBox.Show("入库信息保存失败!", "提示", MessageBoxButtons.AbortRetryIgnore)
- End If
- txtCustNumber.ReadOnly = False
- txtCustNumber.Text() = ""
- txtCustNumber.Focus()
- txtCustName.ReadOnly = False
- txtdate.Enabled = True
- txtBillNumber.ReadOnly = True
- txtNo.ReadOnly = True
- cboJs.Enabled = True
- cboJs.Text = ""
- cboHw.Enabled = True
- cboHw.Text = ""
- End Sub
- Private Sub frmrk_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
- dslocals.Clear()
- dgrk.DataSource = dslocals.Tables("wz_rk").DefaultView
- Dim dslocalmm As DataSet = lsweb.returndataset("select 操作员 from wz_mm", "wz_mm")
- Dim hwdr As System.Data.SqlClient.SqlDataReader
- hwdr = lsweb.returnDataReader("select 货位 from wz_hw")
- Do While hwdr.Read()
- cboHw.Items.Add(hwdr("货位"))
- Loop
- txtdate.Value() = Today().ToString()
- tbrAdd.Enabled = True
- tbrSave.Enabled = False
- tbrPrint.Enabled = False
- tbrQuery.Enabled = True
- tbrExit.Enabled = True
- Dim frmloginer As New frmLogin
- txtSzy.Text = frmloginer.struser
- txtdate.Value = Today.ToString
- End Sub
- Private Sub txtZprice_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles txtZprice.KeyDown
- If Not IsNumeric(txtZprice.Text) Or txtZprice.Text = String.Empty Then
- ErrorProvider1.SetError(txtZprice, "不是数值类型且不能为空。")
- txtZprice.Focus()
- Else
- If e.KeyCode = Keys.Enter Then
- Static i As Int16
- If dslocals.Tables("wz_rk").Rows.Count < 1 Then
- i = 1
- Else
- i = i + 1
- End If
- txtNo.Text = CStr(i)
- Dim dr As DataRow = dslocals.Tables("wz_rk").NewRow()
- dr("序号") = CInt(Me.txtNo.Text.Trim)
- dr("药品编号") = Me.txtNumber.Text.Trim
- dr("药品名称") = Me.txtName.Text.Trim
- dr("药品规格") = Me.txtRule.Text.Trim
- dr("单位") = Me.txtUnit.Text.Trim
- dr("进价") = CDec(Me.txtPrice.Text.Trim)
- dr("数量") = Me.txtCount.Text.Trim
- dr("金额") = CDec(Me.txtPrice.Text.Trim) * CInt(Me.txtCount.Text.Trim)
- dr("批号") = Me.txtBatch.Text.Trim
- dr("有效期") = Me.txtAvaid.Text.Trim
- dr("包装") = Me.txtPackage.Text.Trim
- dr("产地") = Me.txtAddress.Text.Trim
- dr("批发价") = Me.txtPprice.Text.Trim
- dr("零售价") = Me.txtLprice.Text.Trim
- dr("建议价") = CInt(Me.txtJprice.Text.Trim)
- dr("最低价") = CInt(Me.txtZprice.Text.Trim)
- dr("日期") = Me.txtdate.Text.Trim
- dr("票号") = Me.txtBillNumber.Text.Trim
- dr("客户编号") = Me.txtCustNumber.Text.Trim
- dr("客户名称") = Me.txtCustName.Text.Trim
- dr("货位") = Me.cboHw.Text.Trim
- dr("结算") = Me.cboJs.Text.Trim
- dr("操作员") = Me.txtSzy.Text.Trim
- dslocals.Tables("wz_rk").Rows.Add(dr)
- CalTotalMoney()
- txtNumber.Focus()
- clear()
- End If
- ErrorProvider1.SetError(txtZprice, "")
- End If
- dgrk.DataSource = dslocals.Tables("wz_rk").DefaultView
- End Sub
- Private Sub clear()
- txtCustNumber.ReadOnly = True
- txtCustName.ReadOnly = True
- txtdate.Enabled = False
- txtBillNumber.ReadOnly = True
- txtNo.ReadOnly = True
- cboJs.Enabled = False
- cboHw.Enabled = False
- txtNumber.Text = ""
- txtName.Text() = ""
- txtRule.Text() = ""
- txtUnit.Text() = ""
- txtPrice.Text() = 0.0
- txtCount.Text() = 0
- txtMoney.Text() = 0.0
- txtPackage.Text() = ""
- txtBatch.Text() = ""
- txtAvaid.Text() = ""
- txtAddress.Text() = ""
- txtPprice.Text() = CStr(0.0)
- txtLprice.Text() = CStr(0.0)
- txtJprice.Text() = CStr(0.0)
- txtZprice.Text() = CStr(0.0)
- End Sub
- Private Sub clearAll()
- txtCustNumber.ReadOnly = True
- txtCustName.ReadOnly = True
- txtCustName.Text = ""
- txtSum.Text = ""
- txtdate.Enabled = False
- txtBillNumber.ReadOnly = True
- txtNo.ReadOnly = True
- cboJs.Enabled = False
- cboHw.Enabled = False
- txtNumber.Text = ""
- txtName.Text() = ""
- txtRule.Text() = ""
- txtUnit.Text() = ""
- txtPrice.Text() = 0.0
- txtCount.Text() = 0
- txtMoney.Text() = 0.0
- txtPackage.Text() = ""
- txtBatch.Text() = ""
- txtAvaid.Text() = ""
- txtAddress.Text() = ""
- txtPprice.Text() = CStr(0.0)
- txtLprice.Text() = CStr(0.0)
- txtJprice.Text() = CStr(0.0)
- txtZprice.Text() = CStr(0.0)
- End Sub
- Private Sub cboJs_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles cboJs.KeyDown
- If e.KeyCode = Keys.Enter Then
- cboHw.Focus()
- End If
- End Sub
- Private Sub cboHw_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles cboHw.KeyDown
- If e.KeyCode = Keys.Enter Then
- txtNumber.Focus()
- End If
- End Sub
- Private Sub txtPrice_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles txtPrice.KeyDown
- If e.KeyCode = Keys.Enter Then
- txtCount.Focus()
- End If
- End Sub
- Private Sub txtCount_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles txtCount.KeyDown
- If e.KeyCode = Keys.Enter Then
- If txtCount.Text = String.Empty Then
- txtCount_Validating(Nothing, Nothing)
- Else
- CalMxMoney()
- txtPackage.Focus()
- End If
- End If
- End Sub
- Private Sub CalTotalMoney()
- If dslocals.Tables("wz_rk").Rows.Count = 0 Then
- Me.txtMoney.Text = 0
- End If
- Dim money As String = ""
- Dim dtotal As Double = 0
- For Each dr As DataRow In dslocals.Tables("wz_rk").Rows
- money = dr("金额")
- dtotal = dtotal + CType(money.Trim, Double)
- txtSum.Text = dtotal.ToString.Trim
- Next
- End Sub
- Private Sub txtPackage_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles txtPackage.KeyDown
- If e.KeyCode = Keys.Enter Then
- txtBatch.Focus()
- End If
- End Sub
- Private Sub txtBatch_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles txtBatch.KeyDown
- If e.KeyCode = Keys.Enter Then
- txtAvaid.Focus()
- End If
- End Sub
- Private Sub txtAvaid_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles txtAvaid.KeyDown
- If e.KeyCode = Keys.Enter Then
- txtAddress.Focus()
- End If
- End Sub
- Private Sub txtAddress_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles txtAddress.KeyDown
- If e.KeyCode = Keys.Enter Then
- txtJprice.Focus()
- End If
- End Sub
- Private Sub txtJprice_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles txtJprice.KeyDown
- If e.KeyCode = Keys.Enter Then
- txtZprice.Focus()
- End If
- End Sub
- Private Sub tbrRk_ButtonClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.ToolBarButtonClickEventArgs) Handles tbrRk.ButtonClick
- Select Case e.Button.Text
- Case "添加"
- 'bool = False
- 'Dim frminstancer As New frmrk
- 'frminstancer.Show()
- 'Me.Hide()
- add()
- tbnEnable("tbrAdd.Enabled = False", tbrRk)
- Case "保存"
- If Me.txtSum.Text = String.Empty Then
- MessageBox.Show("不能保存记录,数据不完整!", "提示:", MessageBoxButtons.OK)
- Else
- save()
- tbnEnable("tbrSave.Enabled = False", tbrRk)
- clearAll()
- bl = False
- End If
- Case "打印"
- Dim frmviewrker As New frmviewrk
- frmviewrker.rkbillnumber = txtBillNumber.Text
- frmviewrker.Show()
- Case "查询"
- Dim frmrkqueryer As New frmRkQuery
- frmrkqueryer.Show()
- Case "退货"
- bl = True
- tbnEnable("tbrTh.Enabled = False", tbrRk)
- Case "退出"
- Me.Close()
- End Select
- End Sub
- Private Sub CalMxMoney()
- Dim price As Double = CType(txtPrice.Text.Trim, Double)
- Dim count As Int16 = CInt(txtCount.Text.Trim)
- Me.txtMoney.Text = (price * count).ToString
- End Sub
- Private Sub txtCount_Validating(ByVal sender As Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles txtCount.Validating
- If bl = True Then
- If Not IsNumeric(txtCount.Text) Or txtCount.Text = String.Empty Or CDec(txtCount.Text) > 0 Then
- ErrorProvider1.SetError(txtCount, "不是数值类型且不能为空,数量不能大于零!")
- txtCount.Focus()
- Else
- ErrorProvider1.SetError(txtCount, "")
- End If
- Else
- If Not IsNumeric(txtCount.Text) Or txtCount.Text = String.Empty Or CDec(txtCount.Text) < 0 Then
- ErrorProvider1.SetError(txtCount, "不是数值类型且不能为空,数量不能小于零!")
- txtCount.Focus()
- Else
- ErrorProvider1.SetError(txtCount, "")
- End If
- End If
- End Sub
- Private Sub txtPrice_Validating(ByVal sender As Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles txtPrice.Validating
- If Not IsNumeric(txtPrice.Text) Or txtPrice.Text = String.Empty Then
- ErrorProvider1.SetError(txtPrice, "不是数值类型且不能为空。")
- e.Cancel = True
- Else
- ErrorProvider1.SetError(txtPrice, "")
- End If
- End Sub
- Private Sub txtBatch_Validating(ByVal sender As Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles txtBatch.Validating
- If txtBatch.Text = String.Empty Then
- ErrorProvider1.SetError(txtBatch, "不能为空。")
- e.Cancel = True
- Else
- ErrorProvider1.SetError(txtBatch, "")
- End If
- End Sub
- Private Sub txtAvaid_Validating(ByVal sender As Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles txtAvaid.Validating
- If txtAvaid.Text = String.Empty Then
- ErrorProvider1.SetError(txtAvaid, "不能为空。")
- e.Cancel = True
- Else
- ErrorProvider1.SetError(txtAvaid, "")
- End If
- End Sub
- Private Sub txtAddress_Validating(ByVal sender As Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles txtAddress.Validating
- If txtAddress.Text = String.Empty Then
- ErrorProvider1.SetError(txtAddress, "不能为空。")
- e.Cancel = True
- Else
- ErrorProvider1.SetError(txtAddress, "")
- End If
- End Sub
- Private Sub txtJprice_Validating(ByVal sender As Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles txtJprice.Validating
- If Not IsNumeric(txtJprice.Text) Or txtJprice.Text = String.Empty Then
- ErrorProvider1.SetError(txtJprice, "不是数值类型且不能为空。")
- e.Cancel = True
- Else
- ErrorProvider1.SetError(txtJprice, "")
- End If
- End Sub
- Private Sub txtZprice_Validating(ByVal sender As Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles txtZprice.Validating
- If Not IsNumeric(txtZprice.Text) Or txtZprice.Text = String.Empty Then
- ErrorProvider1.SetError(txtZprice, "不是数值类型且不能为空。")
- e.Cancel = True
- Else
- ErrorProvider1.SetError(txtZprice, "")
- End If
- End Sub
- Private Sub txtPackage_Validating(ByVal sender As Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles txtPackage.Validating
- If txtPackage.Text = String.Empty Then
- ErrorProvider1.SetError(txtPackage, "不能为空。")
- e.Cancel = True
- Else
- ErrorProvider1.SetError(txtPackage, "")
- End If
- End Sub
- Private Sub frmrk_Closed(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Closed
- If txtBillNumber.Text <> String.Empty And tbrSave.Enabled = True Then
- lsweb.cancelbill(txtBillNumber.Text.Trim)
- End If
- End Sub
- Private Sub txtNumber_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtNumber.TextChanged
- End Sub
- End Class