📄 frm_ad.vb
字号:
Imports System.Data.OleDb
Imports System.DateTime
Imports System.Math
Public Class frm_ad
Inherits System.Windows.Forms.Form
#Region " Windows Form Designer generated code "
Public Sub New()
MyBase.New()
'This call is required by the Windows Form Designer.
InitializeComponent()
'Add any initialization after the InitializeComponent() call
End Sub
'Form overrides dispose to clean up the component list.
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
'Required by the Windows Form Designer
Private components As System.ComponentModel.IContainer
'NOTE: The following procedure is required by the Windows Form Designer
'It can be modified using the Windows Form Designer.
'Do not modify it using the code editor.
Friend WithEvents Label1 As System.Windows.Forms.Label
Friend WithEvents PictureBox1 As System.Windows.Forms.PictureBox
Friend WithEvents DataGrid1 As System.Windows.Forms.DataGrid
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 Button1 As System.Windows.Forms.Button
Friend WithEvents Button2 As System.Windows.Forms.Button
Friend WithEvents TextBox2 As System.Windows.Forms.TextBox
Friend WithEvents TextBox3 As System.Windows.Forms.TextBox
Friend WithEvents ToolTip1 As System.Windows.Forms.ToolTip
Friend WithEvents Label2 As System.Windows.Forms.Label
Friend WithEvents Timer1 As System.Windows.Forms.Timer
Friend WithEvents ComboBox1 As System.Windows.Forms.ComboBox
Friend WithEvents Label3 As System.Windows.Forms.Label
Friend WithEvents Label9 As System.Windows.Forms.Label
Friend WithEvents TextBox4 As System.Windows.Forms.TextBox
Friend WithEvents ComboBox2 As System.Windows.Forms.ComboBox
Friend WithEvents Button3 As System.Windows.Forms.Button
Friend WithEvents ComboBox3 As System.Windows.Forms.ComboBox
Friend WithEvents ComboBox4 As System.Windows.Forms.ComboBox
Friend WithEvents Label10 As System.Windows.Forms.Label
Friend WithEvents TextBox1 As System.Windows.Forms.TextBox
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
Me.components = New System.ComponentModel.Container
Dim resources As System.Resources.ResourceManager = New System.Resources.ResourceManager(GetType(frm_ad))
Me.Label1 = New System.Windows.Forms.Label
Me.PictureBox1 = New System.Windows.Forms.PictureBox
Me.DataGrid1 = New System.Windows.Forms.DataGrid
Me.Label4 = New System.Windows.Forms.Label
Me.Label5 = New System.Windows.Forms.Label
Me.Label6 = New System.Windows.Forms.Label
Me.Label7 = New System.Windows.Forms.Label
Me.Label8 = New System.Windows.Forms.Label
Me.Button1 = New System.Windows.Forms.Button
Me.Button2 = New System.Windows.Forms.Button
Me.TextBox2 = New System.Windows.Forms.TextBox
Me.TextBox3 = New System.Windows.Forms.TextBox
Me.Button3 = New System.Windows.Forms.Button
Me.ToolTip1 = New System.Windows.Forms.ToolTip(Me.components)
Me.Label2 = New System.Windows.Forms.Label
Me.Timer1 = New System.Windows.Forms.Timer(Me.components)
Me.ComboBox1 = New System.Windows.Forms.ComboBox
Me.Label3 = New System.Windows.Forms.Label
Me.Label9 = New System.Windows.Forms.Label
Me.TextBox4 = New System.Windows.Forms.TextBox
Me.ComboBox2 = New System.Windows.Forms.ComboBox
Me.ComboBox3 = New System.Windows.Forms.ComboBox
Me.ComboBox4 = New System.Windows.Forms.ComboBox
Me.Label10 = New System.Windows.Forms.Label
Me.TextBox1 = New System.Windows.Forms.TextBox
CType(Me.DataGrid1, System.ComponentModel.ISupportInitialize).BeginInit()
Me.SuspendLayout()
'
'Label1
'
Me.Label1.Font = New System.Drawing.Font("Arial Black", 20.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.Label1.ForeColor = System.Drawing.SystemColors.InactiveCaption
Me.Label1.Location = New System.Drawing.Point(40, 16)
Me.Label1.Name = "Label1"
Me.Label1.Size = New System.Drawing.Size(240, 40)
Me.Label1.TabIndex = 0
Me.Label1.Text = "Admission List"
'
'PictureBox1
'
Me.PictureBox1.Cursor = System.Windows.Forms.Cursors.Hand
Me.PictureBox1.Image = CType(resources.GetObject("PictureBox1.Image"), System.Drawing.Image)
Me.PictureBox1.Location = New System.Drawing.Point(8, 8)
Me.PictureBox1.Name = "PictureBox1"
Me.PictureBox1.Size = New System.Drawing.Size(24, 24)
Me.PictureBox1.TabIndex = 1
Me.PictureBox1.TabStop = False
'
'DataGrid1
'
Me.DataGrid1.BackgroundColor = System.Drawing.SystemColors.Info
Me.DataGrid1.DataMember = ""
Me.DataGrid1.HeaderForeColor = System.Drawing.SystemColors.ControlText
Me.DataGrid1.Location = New System.Drawing.Point(16, 72)
Me.DataGrid1.Name = "DataGrid1"
Me.DataGrid1.Size = New System.Drawing.Size(480, 104)
Me.DataGrid1.TabIndex = 2
'
'Label4
'
Me.Label4.Location = New System.Drawing.Point(8, 184)
Me.Label4.Name = "Label4"
Me.Label4.Size = New System.Drawing.Size(72, 16)
Me.Label4.TabIndex = 5
Me.Label4.Text = "Patient Code"
'
'Label5
'
Me.Label5.Location = New System.Drawing.Point(8, 248)
Me.Label5.Name = "Label5"
Me.Label5.Size = New System.Drawing.Size(80, 16)
Me.Label5.TabIndex = 6
Me.Label5.Text = "Date Admitted"
'
'Label6
'
Me.Label6.Location = New System.Drawing.Point(8, 288)
Me.Label6.Name = "Label6"
Me.Label6.Size = New System.Drawing.Size(80, 16)
Me.Label6.TabIndex = 7
Me.Label6.Text = "Time Admitted"
'
'Label7
'
Me.Label7.Location = New System.Drawing.Point(288, 184)
Me.Label7.Name = "Label7"
Me.Label7.Size = New System.Drawing.Size(104, 16)
Me.Label7.TabIndex = 8
Me.Label7.Text = "Patient's Phy-code"
'
'Label8
'
Me.Label8.Location = New System.Drawing.Point(288, 216)
Me.Label8.Name = "Label8"
Me.Label8.Size = New System.Drawing.Size(100, 16)
Me.Label8.TabIndex = 9
Me.Label8.Text = "Patient's Room No"
'
'Button1
'
Me.Button1.BackColor = System.Drawing.SystemColors.ControlLight
Me.Button1.Location = New System.Drawing.Point(120, 320)
Me.Button1.Name = "Button1"
Me.Button1.TabIndex = 10
Me.Button1.Text = "Add to List"
'
'Button2
'
Me.Button2.BackColor = System.Drawing.SystemColors.ControlLight
Me.Button2.Location = New System.Drawing.Point(296, 320)
Me.Button2.Name = "Button2"
Me.Button2.TabIndex = 11
Me.Button2.Text = "Cancel"
'
'TextBox2
'
Me.TextBox2.BackColor = System.Drawing.SystemColors.Info
Me.TextBox2.Location = New System.Drawing.Point(96, 248)
Me.TextBox2.Name = "TextBox2"
Me.TextBox2.TabIndex = 13
Me.TextBox2.Text = ""
'
'TextBox3
'
Me.TextBox3.BackColor = System.Drawing.SystemColors.Info
Me.TextBox3.Location = New System.Drawing.Point(96, 280)
Me.TextBox3.Name = "TextBox3"
Me.TextBox3.TabIndex = 14
Me.TextBox3.Text = ""
'
'Button3
'
Me.Button3.BackColor = System.Drawing.SystemColors.ControlLight
Me.Button3.Location = New System.Drawing.Point(208, 320)
Me.Button3.Name = "Button3"
Me.Button3.TabIndex = 12
Me.Button3.Text = "Clear"
'
'Label2
'
Me.Label2.Location = New System.Drawing.Point(400, 24)
Me.Label2.Name = "Label2"
Me.Label2.TabIndex = 20
'
'Timer1
'
Me.Timer1.Enabled = True
Me.Timer1.Interval = 1000
'
'ComboBox1
'
Me.ComboBox1.BackColor = System.Drawing.SystemColors.Info
Me.ComboBox1.Location = New System.Drawing.Point(424, 216)
Me.ComboBox1.Name = "ComboBox1"
Me.ComboBox1.Size = New System.Drawing.Size(72, 21)
Me.ComboBox1.TabIndex = 21
'
'Label3
'
Me.Label3.Location = New System.Drawing.Point(288, 280)
Me.Label3.Name = "Label3"
Me.Label3.Size = New System.Drawing.Size(72, 16)
Me.Label3.TabIndex = 22
Me.Label3.Text = "Ward Name"
'
'Label9
'
Me.Label9.Location = New System.Drawing.Point(288, 248)
Me.Label9.Name = "Label9"
Me.Label9.Size = New System.Drawing.Size(72, 16)
Me.Label9.TabIndex = 23
Me.Label9.Text = "Ward code"
'
'TextBox4
'
Me.TextBox4.BackColor = System.Drawing.SystemColors.Info
Me.TextBox4.Location = New System.Drawing.Point(392, 280)
Me.TextBox4.Name = "TextBox4"
Me.TextBox4.Size = New System.Drawing.Size(104, 20)
Me.TextBox4.TabIndex = 24
Me.TextBox4.Text = ""
'
'ComboBox2
'
Me.ComboBox2.BackColor = System.Drawing.SystemColors.Info
Me.ComboBox2.Location = New System.Drawing.Point(432, 248)
Me.ComboBox2.Name = "ComboBox2"
Me.ComboBox2.Size = New System.Drawing.Size(64, 21)
Me.ComboBox2.TabIndex = 25
'
'ComboBox3
'
Me.ComboBox3.BackColor = System.Drawing.SystemColors.Info
Me.ComboBox3.Location = New System.Drawing.Point(96, 184)
Me.ComboBox3.Name = "ComboBox3"
Me.ComboBox3.Size = New System.Drawing.Size(104, 21)
Me.ComboBox3.TabIndex = 26
'
'ComboBox4
'
Me.ComboBox4.BackColor = System.Drawing.SystemColors.Info
Me.ComboBox4.Location = New System.Drawing.Point(392, 184)
Me.ComboBox4.Name = "ComboBox4"
Me.ComboBox4.Size = New System.Drawing.Size(104, 21)
Me.ComboBox4.TabIndex = 27
'
'Label10
'
Me.Label10.Location = New System.Drawing.Point(8, 216)
Me.Label10.Name = "Label10"
Me.Label10.Size = New System.Drawing.Size(80, 16)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -