ภาคผนวก ก การต ดต งโปรแกรม
|
|
- Spencer Carroll
- 5 years ago
- Views:
Transcription
1 ภาคผนวก
2 ภาคผนวก ก การต ดต งโปรแกรม
3 โปรแกรม Visual Basic.Net ข นตอนการต ดต งโปรแกรม Visual Basic.Net (Visual Studio.net 2008) 1. ใส แผ นโปรแกรม Visual Studio.net 2008 ลงใน CD-Rom Drive 2. รอให โปรแกรมท าการต ดต งโดยอ ตโนม ต (Auto Run) แต ถ าโปรแกรมอ ตโนม ต ไม ท างานก ให ด บเบ ล คล กไฟล Setup.exe จากแผ น CD 3. คล กท Install Visual Studio 2008 โปรแกรมจะเร มต ดต งเม อมาถ งหน าจอ Product Number and User ID ให ใส รห สลงทะเบ ยน CD-Key ลงไปให ถ กต อง 3. ให คล ก Change or Remove Visual Studio 2008
4 4. เม อเรากด Change or Remove Visual Studio 2008 จะข นด งร ป ให เรากด Next > 5. ให เราเล อก I have read and accept the license terms. จากน นให เราเล อก Next >
5 6. ให เราเล อก Full แล ว คล กท Install 7. จากน นให เรารอจนกว าโปรแกรมจะลงเสร จ
6
7 ภาคผนวก ข SOURCE CODE
8 Source Code ช อ Co Public Class Co Public Shared Conn As String = "Data Source= ;Initial Catalog= db;user id= ;password= ;integrated Security=false End Class Source Code ช อ login Public Class login1 Public Shared id As String Public Shared name As String Public Shared sty As String Public Shared ttype As String Property log_id() As String Get Return End Get Set(ByVal d As String) id = d End Set End Property Property log_name() As String Get Return name End Get Set(ByVal n As String) name = n End Set End Property Property log_type() As String Get Return ttype End Get Set(ByVal x As String) ttype = x End Set End Property Property log_sty() As String Get Return sty End Get Set(ByVal s As String) sty = s End Set End Property End Class
9 Source Code ช อ LoginForm1 Imports System.Data Imports system.data.sqlclient Public Class LoginForm1 Dim conn As SqlConnection Dim x As New login1 Public str As String Private Sub LoginForm1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load conn = New SqlConnection conn.connectionstring = Co.Conn UsernameTextBox.Focus() Private Sub OK_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OK.Click LoginC() Sub LoginC() Dim s As New SqlCommand("SELECT * from employee where username='" & UsernameTextBox.Text & "' and password='" & PasswordTextBox.Text & "'", conn) Dim s1 As SqlDataReader = s.executereader s1.read() x.log_id = s1.item("emp_id") x.log_name = s1.item("emp_fname") & " " & s1.item("emp_lname") x.log_sty = "emp" x.log_type = "ประเภทผ ใช งาน : พน กงาน" index.show() index.button4.enabled = False index.ระบบตรวจรกษาtoolstripmenuitem.enabled = False index.ขอมลบคลากรtoolstripmenuitem.enabled = False index.ขอมลแพทยtoolstripmenuitem.enabled = False Me.Hide() Catch Dim se As New SqlCommand("SELECT * from doctor where doctor_user='" & UsernameTextBox.Text & "' and doctor_pw='" & PasswordTextBox.Text & "'", conn) Dim se1 As SqlDataReader = se.executereader se1.read() x.log_id = se1.item("doctor_id") x.log_name = se1.item("doctor_fname") & " " & se1.item("doctor_lname") x.log_sty = "doctor" x.log_type = "ประเภทผ ใช งาน : แพทย " index.show()
10 Me.Hide() Catch MsgBox("ช อเข าใช หร อรห สผ านไม ถ กต อง") End End Private Sub Cancel_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Cancel.Click Me.Close() Private Sub PasswordTextBox_KeyDown(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles PasswordTextBox.KeyDown If e.keycode = Keys.Enter Then LoginC() Private Sub UsernameTextBox_KeyDown(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles UsernameTextBox.KeyDown If e.keycode = Keys.Enter Then LoginC() End Class
11 Source Code ช อ appointment Imports System.Data Imports System.Data.SqlClient Public Class appointment Dim conn As SqlConnection Private Sub appointment_load(byval sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load conn = New SqlConnection conn.connectionstring = Co.Conn TextBox8.Text = TimeOfDay id() load_app() conteload_app() Sub conteload_app() With DataGridView1.Columns(0).HeaderText = "รห สน ด".Columns(0).Width = 80.Columns(1).HeaderText = "รห สผ ป วย".Columns(1).Width = 80.Columns(2).HeaderText = "รห สหมอ".Columns(2).Width = 80.Columns(3).HeaderText = "ว นท น ด".Columns(3).Width = 140.Columns(4).HeaderText = "เวลา".Columns(4).Width = 80.Columns(5).HeaderText = "สาเหต ".Columns(5).Width = 200 End With Sub id() Dim y As New SqlCommand("SELECT max(app_id) from appointment", conn) Dim SaleId As String = y.executescalar() SaleId = Mid(SaleId, 1, 2) & (Mid(SaleId, 4, 4) + 1).ToString("00000") TextBox1.Text = SaleId Catch TextBox1.Text = "AP00001" End Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click show_doctor.show() show_doctor.textbox1.text = 0
12 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click show_sicker.show() show_sicker.textbox1.text = 0 Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click Dim s As New SqlCommand("SELECT * from doctor where doctor_id='" & TextBox2.Text & "'", conn) Dim s1 As SqlDataReader = s.executereader s1.read() TextBox3.Text = s1.item("doctor_fname") & " " & s1.item("doctor_lname") Catch MsgBox("ไม พบข อม ลน ") TextBox3.Text = "" End Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click Dim s As New SqlCommand("SELECT * from sicker where sicker_id='" & TextBox5.Text & "'", conn) Dim s1 As SqlDataReader = s.executereader s1.read() TextBox4.Text = s1.item("sicker_fname") & " " & s1.item("sicker_lname") Catch MsgBox("ไม พบข อม ลน ") TextBox4.Text = "" End Sub load_app() Dim sebook As New SqlDataAdapter("SELECT app_id,sicker_id,doctor_id,app_date,app_time,app_memo from appointment ", conn) Dim se As DataSet = New DataSet() sebook.fill(se, "ho") DataGridView1.DataSource = se DataGridView1.DataMember = "ho"
13 Private Sub Button5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button5.Click Dim nas As New SqlCommand("INSERT INTO appointment VALUES('" & TextBox1.Text & "','" & TextBox2.Text & "','" & DateTimePicker2.Text & "','" & TextBox8.Text & "','" & TextBox5.Text & "','" & TextBox6.Text & "')", conn) nas.executenonquery() load_app() id() clea() Sub clea() TextBox5.Text = "" TextBox4.Text = "" TextBox2.Text = "" TextBox3.Text = "" TextBox6.Text = "" Private Sub DataGridView1_CellClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles DataGridView1.CellClick If e.rowindex = -1 Then Exit Sub With DataGridView1() TextBox1.Text =.Rows.Item(e.RowIndex).Cells(0).Value.ToString() TextBox5.Text =.Rows.Item(e.RowIndex).Cells(1).Value.ToString() TextBox2.Text =.Rows.Item(e.RowIndex).Cells(2).Value.ToString() TextBox6.Text =.Rows.Item(e.RowIndex).Cells(5).Value.ToString() DateTimePicker2.Text =.Rows.Item(e.RowIndex).Cells(3).Value.ToString() TextBox8.Text =.Rows.Item(e.RowIndex).Cells(4).Value.ToString() Dim s As New SqlCommand("SELECT * from sicker where sicker_id='" & TextBox5.Text & "'", conn) Dim s1 As SqlDataReader = s.executereader s1.read() TextBox4.Text = s1.item("sicker_fname") & " " & s1.item("sicker_lname") Button6.Enabled = True Catch TextBox4.Text = "" id() TextBox8.Text = TimeOfDay Button5.Enabled = True Button6.Enabled = False End
14 Dim s2 As SqlDataReader = ss.executereader s2.read() TextBox3.Text = s2.item("doctor_fname") & " " & s2.item("doctor_lname") Button5.Enabled = True Button6.Enabled = True Catch TextBox3.Text = "" id() TextBox8.Text = TimeOfDay Button5.Enabled = True Button6.Enabled = False End End With Private Sub ComboBox1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ComboBox1.SelectedIndexChanged If ComboBox1.Text = "ตามว นท " Then DateTimePicker3.Visible = True TextBox7.Visible = False Else DateTimePicker3.Visible = False TextBox7.Visible = True Private Sub TextBox7_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox7.TextChanged Dim sebook As New SqlDataAdapter("SELECT app_id,sicker_id,doctor_id,app_date,app_time,app_memo from appointment where sicker_id like'%" & TextBox7.Text & "%'", conn) Dim se As DataSet = New DataSet() sebook.fill(se, "ho") DataGridView1.DataSource = se DataGridView1.DataMember = "ho" Private Sub DateTimePicker3_ValueChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles DateTimePicker3.ValueChanged Dim sebook As New SqlDataAdapter("SELECT app_id,sicker_id,doctor_id,app_date,app_time,app_memo from appointment where app_date='" & DateTimePicker3.Text & "'", conn) Dim se As DataSet = New DataSet() sebook.fill(se, "ho") DataGridView1.DataSource = se DataGridView1.DataMember = "ho"
15 Private Sub Button6_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button6.Click Form_make_appointment.TextBox1.Text = TextBox1.Text Form_make_appointment.TextBox2.Text = TextBox4.Text Form_make_appointment.MdiParent = index Form_make_appointment.Show() Private Sub Button8_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button8.Click If DataGridView1.RowCount = 0 Then Else Dim ast As String = DataGridView1.Item(0, DataGridView1.CurrentRow.Index).Value If MessageBox.Show("ค ณต องการลบรห สน ด " & ast.trim() & " หร อไม?", "ค าย นย น", MessageBoxButtons.YesNo) = Windows.Forms.DialogResult.Yes Then Dim cmd = New SqlCommand("delete appointment where app_id = '" & ast.trim() & "'") cmd.connection = conn cmd.executenonquery() TextBox8.Text = TimeOfDay id() load_app() conteload_app() Private Sub Button7_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button7.Click id() clea() End Class
16 Source Code ช อ doctor Imports System.Data Imports System.Data.SqlClient Public Class doctor Dim conn As SqlConnection Private Sub doctor_load(byval sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load conn = New SqlConnection conn.connectionstring = Co.Conn id() load_doc() Button4.Enabled = True ComboBox1.SelectedIndex = 0 Sub id() Dim y As New SqlCommand("SELECT max(doctor_id) from doctor", conn) Dim SaleId As String = y.executescalar() SaleId = Mid(SaleId, 1, 2) & (Mid(SaleId, 4, 4) + 1).ToString("00000") TextBox1.Text = SaleId Catch TextBox1.Text = "DT00001" End Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click id() conteload_doc() Button4.Enabled = True clae() ComboBox1.SelectedIndex = 0 Sub load_doc() Dim sebook As New SqlDataAdapter("SELECT doctor_id,doctor_fname,doctor_lname,doctor_deegree from doctor ", conn) Dim se As DataSet = New DataSet() sebook.fill(se, "ho") DataGridView1.DataSource = se DataGridView1.DataMember = "ho" conteload_doc() Sub conteload_doc() With DataGridView1.Columns(0).HeaderText = "รห ส".Columns(0).Width = 90.Columns(1).HeaderText = "ช อ".Columns(1).Width = 100
17 .Columns(2).HeaderText = "สก ล".Columns(2).Width = 100.Columns(3).HeaderText = "การศ กษา".Columns(3).Width = 170 End With Sub clae() TextBox2.Text = "" TextBox3.Text = "" TextBox4.Text = "" TextBox5.Text = "" TextBox6.Text = "" TextBox10.Text = "" TextBox7.Text = "" Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click If TextBox2.Text = "" Then MessageBox.Show("กร ณากรอกช อแพทย ก อน", "ผ ดพลาด", MessageBoxButtons.OK, MessageBoxIcon.Exclamation) Else Dim n As New SqlCommand("INSERT INTO doctor VALUES('" & TextBox1.Text & "','" & TextBox2.Text & "','" & TextBox3.Text & "','" & TextBox4.Text & "','" & TextBox5.Text & "','" & ComboBox1.Text & "','" & TextBox6.Text & "','" & TextBox10.Text & "','" & TextBox7.Text & "')", conn) n.executenonquery() id() load_doc() conteload_doc() Button4.Enabled = True clae() ComboBox1.SelectedIndex = 0 Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click Dim u As New SqlCommand("UPDATE doctor SET doctor_fname='" & TextBox2.Text & "',doctor_lname='" & TextBox3.Text & "',doctor_deegree='" & TextBox4.Text & "',doctor_address='" & TextBox5.Text & "',doctor_sex='" & ComboBox1.Text & "',doctor_tall='" & TextBox6.Text & "',doctor_user='" & TextBox10.Text & "',doctor_pw='" & TextBox7.Text & "' where doctor_id='" & TextBox1.Text & "'", conn) u.executenonquery() load_doc() id() clae() Button4.Enabled = True Button2.Enabled = False Button3.Enabled = False
18 Private Sub DataGridView1_CellClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles DataGridView1.CellClick If e.rowindex = -1 Then Exit Sub With DataGridView1() TextBox1.Text =.Rows.Item(e.RowIndex).Cells(0).Value.ToString() TextBox2.Text =.Rows.Item(e.RowIndex).Cells(1).Value.ToString() TextBox3.Text =.Rows.Item(e.RowIndex).Cells(2).Value.ToString() TextBox4.Text =.Rows.Item(e.RowIndex).Cells(3).Value.ToString() Dim s As New SqlCommand("SELECT * from doctor where doctor_id='" & TextBox1.Text & "'", conn) Dim s1 As SqlDataReader = s.executereader s1.read() TextBox5.Text = s1.item("doctor_address") ComboBox1.Text = s1.item("doctor_sex") TextBox6.Text = s1.item("doctor_tall") TextBox10.Text = s1.item("doctor_user") TextBox7.Text = s1.item("doctor_pw") Button4.Enabled = False Button2.Enabled = True Button3.Enabled = True Catch Button4.Enabled = True Button2.Enabled = False Button3.Enabled = False id() clae() End End With Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click If MessageBox.Show("ค ณต องการลบรห สหมอ " & TextBox1.Text & " หร อไม?", "ค าย นย น", MessageBoxButtons.YesNo) = Windows.Forms.DialogResult.Yes Then Dim d As New SqlCommand("DELETE FROM doctor where doctor_id='" & TextBox1.Text & "'", conn) d.executenonquery() id() load_doc() clae() Button4.Enabled = True Button2.Enabled = False
19 Button3.Enabled = False Private Sub Button5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button5.Click Dim sebook As New SqlDataAdapter("SELECT doctor_id,doctor_fname,doctor_lname,doctor_deegree from doctor where doctor_id like'%" & TextBox11.Text & "%' or doctor_fname like'%" & TextBox11.Text & "%' or doctor_lname like'%" & TextBox11.Text & "%'", conn) Dim se As DataSet = New DataSet() sebook.fill(se, "ho") DataGridView1.DataSource = se DataGridView1.DataMember = "ho" End Class
20 Source Code ช อ emp Imports System.Data Imports System.Data.SqlClient Public Class emp Dim conn As SqlConnection Private Sub emp_load(byval sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load conn = New SqlConnection conn.connectionstring = Co.Conn id() load_emp() Button1.Enabled = True ComboBox1.SelectedIndex = 0 ComboBox2.SelectedIndex = 0 Sub id() Dim y As New SqlCommand("SELECT max(emp_id) from employee", conn) Dim SaleId As String = y.executescalar() SaleId = Mid(SaleId, 1, 2) & (Mid(SaleId, 4, 4) + 1).ToString("00000") TextBox1.Text = SaleId Catch TextBox1.Text = "EM00001" End Sub load_emp() Dim sebook As New SqlDataAdapter("SELECT emp_id,emp_fname,emp_lname,emp_codepeople from employee ", conn) Dim se As DataSet = New DataSet() sebook.fill(se, "ho") DataGridView1.DataSource = se DataGridView1.DataMember = "ho" conteload_emp() Sub conteload_emp() With DataGridView1.Columns(0).HeaderText = "รห ส".Columns(0).Width = 80.Columns(1).HeaderText = "ช อ".Columns(1).Width = 100.Columns(2).HeaderText = "นามสก ล".Columns(2).Width = 100.Columns(3).HeaderText = "เลขท บ ตรประชาชน".Columns(3).Width = 157 End With
21 Sub clae() TextBox2.Text = "" TextBox3.Text = "" ComboBox1.Text = "" ComboBox2.Text = "" TextBox4.Text = "" TextBox5.Text = "" TextBox6.Text = "" TextBox7.Text = "" TextBox8.Text = "" TextBox9.Text = "" MaskedTextBox1.Text = "" TextBox10.Text = "" TextBox11.Text = "" Private Sub Button5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button5.Click id() load_emp() clae() Button1.Enabled = True Button2.Enabled = False Button3.Enabled = False ComboBox1.SelectedIndex = 0 ComboBox2.SelectedIndex = 0 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim n As New SqlCommand("INSERT INTO employee VALUES('" & TextBox1.Text & "','" & TextBox2.Text & "','" & TextBox3.Text & "','" & ComboBox1.Text & "','" & ComboBox2.Text & "','" & TextBox4.Text & "','" & TextBox5.Text & "','" & TextBox6.Text & "','" & TextBox7.Text & "','" & TextBox8.Text & "','" & TextBox9.Text & "','" & MaskedTextBox1.Text & "','" & TextBox11.Text & "','" & TextBox10.Text & "')", conn) n.executenonquery() id() load_emp() clae() Button1.Enabled = True Button2.Enabled = False Button3.Enabled = False Private Sub DataGridView1_CellClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles DataGridView1.CellClick If e.rowindex = -1 Then Exit Sub
22 With DataGridView1() TextBox1.Text =.Rows.Item(e.RowIndex).Cells(0).Value.ToString() TextBox2.Text =.Rows.Item(e.RowIndex).Cells(1).Value.ToString() TextBox3.Text =.Rows.Item(e.RowIndex).Cells(2).Value.ToString() MaskedTextBox1.Text =.Rows.Item(e.RowIndex).Cells(3).Value.ToString() Dim s As New SqlCommand("SELECT * from employee where emp_id='" & TextBox1.Text & "'", conn) Dim s1 As SqlDataReader = s.executereader s1.read() ComboBox1.Text = s1.item("emp_edu") ComboBox2.Text = s1.item("department") TextBox4.Text = s1.item("emp_address") TextBox5.Text = s1.item("emp_tumbon") TextBox6.Text = s1.item("emp_amper") TextBox7.Text = s1.item("emp_city") TextBox8.Text = s1.item("emp_zipcode") TextBox9.Text = s1.item("emp_tel") TextBox11.Text = s1.item("password") TextBox10.Text = s1.item("username") Button1.Enabled = False Button2.Enabled = True Button3.Enabled = True Catch Button1.Enabled = True Button2.Enabled = False Button3.Enabled = False id() load_emp() clae() End End With Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click Dim u As New SqlCommand("UPDATE employee SET emp_fname='" & TextBox2.Text & "',emp_lname='" & TextBox3.Text & "',emp_edu='" & ComboBox1.Text & "',department='" & ComboBox2.Text & "',emp_address='" & TextBox4.Text & "',emp_tumbon='" & TextBox5.Text & "',emp_amper='" & TextBox6.Text & "',emp_city='" & TextBox7.Text & "',emp_zipcode='" & TextBox8.Text & "',emp_tel='" & TextBox9.Text & "',emp_codepeople='" & MaskedTextBox1.Text & "',password='" & TextBox11.Text & "',username='" & TextBox10.Text & "' where emp_id='" & TextBox1.Text & "'", conn) u.executenonquery() id() load_emp()
23 clae() Button1.Enabled = True Button2.Enabled = False Button3.Enabled = False Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click If MessageBox.Show("ค ณต องการลบรห สพน กงาน " & TextBox1.Text & " หร อไม? ", "ค าย นย น", MessageBoxButtons.YesNo) = Windows.Forms.DialogResult.Yes Then Dim d As New SqlCommand("DELETE FROM employee where emp_id='" & TextBox1.Text & "'", conn) d.executenonquery() id() load_emp() clae() Button1.Enabled = True Button2.Enabled = False Button3.Enabled = False Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click Dim sebook As New SqlDataAdapter("SELECT emp_id,emp_fname,emp_lname,emp_codepeople from employee where emp_id like'%" & TextBox12.Text & "%' or emp_fname like'%" & TextBox12.Text & "%' or emp_lname like'%" & TextBox12.Text & "%'", conn) Dim se As DataSet = New DataSet() sebook.fill(se, "ho") DataGridView1.DataSource = se DataGridView1.DataMember = "ho" conteload_emp() End Class
24 Source Code ช อ index Public Class index Dim x As New login1 Public Sub ExitChi() Dim form As System.Windows.Forms.Form For Each form In Me.MdiChildren form.close() Next form Private Sub ขอมลผปวยToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ขอมลผปวย ToolStripMenuItem.Click ExitChi() patient.mdiparent = Me patient.show() patient.windowstate = FormWindowState.Maximized Private Sub ขอมลแพทยToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ขอมลแพทย ToolStripMenuItem.Click ExitChi() doctor.mdiparent = Me doctor.show() doctor.windowstate = FormWindowState.Maximized Private Sub ขอมลบคลากรToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ขอมลบคลากร ToolStripMenuItem.Click ExitChi() emp.mdiparent = Me emp.show() emp.windowstate = FormWindowState.Maximized Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Me.Close() LoginForm1.Show() Private Sub ขอมลยาToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ขอมลยาToolStripMenuItem.Click ExitChi() medicine.mdiparent = Me medicine.show() medicine.windowstate = FormWindowState.Maximized
25 Private Sub ระบบตรวจรกษาToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ระบบตรวจรกษา ToolStripMenuItem.Click ExitChi() preservation.mdiparent = Me preservation.show() preservation.windowstate = FormWindowState.Maximized Private Sub ระบบจายยาToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ระบบจายยา ToolStripMenuItem.Click ExitChi() take_medicine.mdiparent = Me take_medicine.show() take_medicine.windowstate = FormWindowState.Maximized Private Sub ระบบนดหมายผปวยToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ระบบนดหมายผปวย ToolStripMenuItem.Click ExitChi() appointment.mdiparent = Me appointment.show() appointment.windowstate = FormWindowState.Maximized Private Sub รายงานวสดและยาToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles รายงานวสดและยา ToolStripMenuItem.Click ExitChi() Form_CrystalReport_medicine.MdiParent = Me Form_CrystalReport_medicine.Show() Form_CrystalReport_medicine.WindowState = FormWindowState.Maximized Private Sub index_load(byval sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load ToolStripStatusLabel4.Text = "ผ ใช งาน : " + x.log_name ToolStripStatusLabel2.Text = Date.Now.Date ToolStripStatusLabel3.Text = x.log_type Private Sub index_formclosing(byval sender As System.Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles MyBase.FormClosing LoginForm1.Dispose() Private Sub รายงานขอมลผปวยToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles รายงานขอมลผปวย ToolStripMenuItem.Click ExitChi() Form_showAllPatient.MdiParent = Me Form_showAllPatient.Show() Form_showAllPatient.WindowState = FormWindowState.Maximized
26 Private Sub รายงานนดหมายToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles รายงานนดหมายToolStripMenuItem.Click ExitChi() Form_showAllAppointment.MdiParent = Me Form_showAllAppointment.Show() Form_showAllAppointment.WindowState = FormWindowState.Maximized Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click LoginForm1.Dispose() Private Sub ตวแทนจ าหนายToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ตวแทนจ าหนาย ToolStripMenuItem.Click ExitChi() Order.MdiParent = Me Order.Show() Order.WindowState = FormWindowState.Maximized Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click If x.log_sty = "emp" Then ExitChi() patient.mdiparent = Me patient.show() patient.windowstate = FormWindowState.Maximized Else ExitChi() queue_doc.mdiparent = Me queue_doc.show() queue_doc.windowstate = FormWindowState.Maximized Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click ExitChi() preservation.mdiparent = Me preservation.show() preservation.windowstate = FormWindowState.Maximized Private Sub Button6_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button6.Click ExitChi() medicine.mdiparent = Me medicine.show() medicine.windowstate = FormWindowState.Maximized Private Sub Button7_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button7.Click LoginForm1.Dispose() Private Sub รายงานการรกษาToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles รายงานการรกษา ToolStripMenuItem.Click ExitChi()
27 Form_showHeal.MdiParent = Me Form_showHeal.Show() Form_showHeal.WindowState = FormWindowState.Maximized Private Sub Button5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button5.Click ExitChi() take_medicine.mdiparent = Me take_medicine.show() take_medicine.windowstate = FormWindowState.Maximized End Class Source Code ช อ medicine Imports System.Data Imports System.Data.SqlClient Public Class medicine Dim conn As SqlConnection Private Sub medicine_load(byval sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load conn = New SqlConnection conn.connectionstring = Co.Conn id() load_med() Button5.Enabled = True ComboBox1.SelectedIndex = 0 ComboBox2.SelectedIndex = 0 Sub id() Dim y As New SqlCommand("SELECT max(med_id) from medicine", conn) Dim SaleId As String = y.executescalar() SaleId = Mid(SaleId, 1, 2) & (Mid(SaleId, 4, 4) + 1).ToString("00000") TextBox1.Text = SaleId Catch TextBox1.Text = "MC00001" End Sub load_med()
28 Dim sebook As New SqlDataAdapter("SELECT * from medicine", conn) Dim se As DataSet = New DataSet() se.clear() sebook.fill(se, "ho") DataGridView1.DataSource = se DataGridView1.DataMember = "ho" conteload_med() Sub conteload_med() With DataGridView1.Columns(0).HeaderText = "รห สยา".Columns(0).Width = 90.Columns(1).HeaderText = "ประเภทยา".Columns(1).Width = 90.Columns(2).HeaderText = "ช อยา".Columns(2).Width = 120.Columns(3).HeaderText = "ว นท ผล ต".Columns(3).Width = 100.Columns(4).HeaderText = "ว นท หมดอาย ".Columns(4).Width = 100.Columns(5).HeaderText = "ค ณสมบ ต ".Columns(5).Width = 100.Columns(6).HeaderText = "บร ษ ทท ผล ต".Columns(6).Width = 100.Columns(7).HeaderText = "ราคา/หน วย".Columns(7).Width = 80.Columns(8).HeaderText = "จ านวน".Columns(8).Width = 60.Columns(9).HeaderText = "หน วย".Columns(9).Width = 50 End With Sub clae() TextBox2.Text = "" TextBox3.Text = "" TextBox4.Text = "" TextBox5.Text = "" TextBox7.Text = "" Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click id() clae() Button5.Enabled = True Button2.Enabled = False Button3.Enabled = False ComboBox1.SelectedIndex = 0 ComboBox2.SelectedIndex = 0
29 Private Sub Button5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button5.Click If TextBox2.Text = "" Then MsgBox("กร ณาใส ช อยาก อน") Else If conn.state = ConnectionState.Closed Then Dim n As New SqlCommand("INSERT INTO medicine VALUES('" & TextBox1.Text & "','" & ComboBox1.Text & "','" & TextBox2.Text & "','" & DateTimePicker1.Text & "','" & DateTimePicker2.Text & "','" & TextBox3.Text & "','" & TextBox4.Text & "','" & TextBox5.Text & "','" & TextBox7.Text & "','" & ComboBox2.Text & "')", conn) n.executenonquery() id() load_med() clae() Button5.Enabled = True Button2.Enabled = False Button3.Enabled = False ComboBox1.SelectedIndex = 0 ComboBox2.SelectedIndex = 0 Catch ex As Exception MsgBox("กร ณาตรวจสอบราคาและจ านวน ") End Private Sub DataGridView1_CellClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles DataGridView1.CellClick If e.rowindex = -1 Then Exit Sub With DataGridView1() TextBox1.Text =.Rows.Item(e.RowIndex).Cells(0).Value.ToString() ComboBox1.Text =.Rows.Item(e.RowIndex).Cells(1).Value.ToString() TextBox2.Text =.Rows.Item(e.RowIndex).Cells(2).Value.ToString() DateTimePicker1.Text =.Rows.Item(e.RowIndex).Cells(3).Value.ToString() DateTimePicker2.Text =.Rows.Item(e.RowIndex).Cells(4).Value.ToString() TextBox3.Text =.Rows.Item(e.RowIndex).Cells(5).Value.ToString() TextBox4.Text =.Rows.Item(e.RowIndex).Cells(6).Value.ToString() TextBox5.Text =.Rows.Item(e.RowIndex).Cells(7).Value.ToString() TextBox7.Text =.Rows.Item(e.RowIndex).Cells(8).Value.ToString() ComboBox2.Text =.Rows.Item(e.RowIndex).Cells(9).Value.ToString()
30 If TextBox2.Text = "" Then id() clae() Button5.Enabled = True Button2.Enabled = False Button3.Enabled = False Else Button5.Enabled = False Button2.Enabled = True Button3.Enabled = True End With Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click Dim u As New SqlCommand("UPDATE medicine SET med_trype='" & ComboBox1.Text & "',med_name='" & TextBox2.Text & "',date_mfd='" & DateTimePicker1.Text & "',date_exp='" & DateTimePicker2.Text & "',med_pro='" & TextBox3.Text & "',company='" & TextBox4.Text & "',med_price='" & TextBox5.Text & "',unit='" & TextBox7.Text & "',division='" & ComboBox2.Text & "' where med_id='" & TextBox1.Text & "'", conn) u.executenonquery() load_med() id() clae() Button5.Enabled = False Button2.Enabled = True Button3.Enabled = True Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click If MessageBox.Show("ค ณต องการลบรห สยา " & TextBox1.Text & " หร อไม?", "ค าย นย น", MessageBoxButtons.YesNo) = Windows.Forms.DialogResult.Yes Then Dim d As New SqlCommand("DELETE FROM medicine where med_id='" & TextBox1.Text & "'", conn) d.executenonquery() load_med() id() clae() Button5.Enabled = False Button2.Enabled = True Button3.Enabled = True
31 Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click Dim sebook As New SqlDataAdapter("SELECT * from medicine where med_id like'%" & TextBox11.Text & "%' or med_trype like'%" & TextBox11.Text & "%' or med_name like'%" & TextBox11.Text & "%'", conn) Dim se As DataSet = New DataSet() sebook.fill(se, "ho") DataGridView1.DataSource = se DataGridView1.DataMember = "ho" conteload_med() Private Sub TextBox5_KeyPress(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles TextBox5.KeyPress If (e.keychar < Chr(48) Or e.keychar > Chr(57)) And e.keychar <> Chr(8) Then e.handled = True Private Sub TextBox7_KeyPress(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles TextBox7.KeyPress If (e.keychar < Chr(48) Or e.keychar > Chr(57)) And e.keychar <> Chr(8) Then e.handled = True End Class
32 Source Code ช อ Order Imports System.Data.Sql Imports System.Data.SqlClient Public Class Order Dim conn As SqlConnection Dim price As Single Dim unit As Integer Sub id() If conn.state = ConnectionState.Closed Then Dim y As New SqlCommand("SELECT max(order_id) from Order_detail", conn) Dim SaleId As String = y.executescalar() SaleId = Mid(SaleId, 1, 2) & (Mid(SaleId, 4, 4) + 1).ToString("00000") TextBox2.Text = SaleId Catch TextBox2.Text = "OR00001" End Sub ida() If conn.state = ConnectionState.Closed Then Dim y As New SqlCommand("SELECT max(agent_id) from Agent_medicine", conn) Dim SaleId As String = y.executescalar() SaleId = Mid(SaleId, 1, 2) & (Mid(SaleId, 4, 4) + 1).ToString("0000") TextBox7.Text = SaleId Catch TextBox7.Text = "AG0001" End Private Sub Order_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load conn = New SqlConnection conn.connectionstring = Co.Conn id() ida() load_agent() Sub load_agent() Dim sebook As New SqlDataAdapter("SELECT * from Agent_medicine", conn)
33 Dim se As DataSet = New DataSet() se.clear() sebook.fill(se, "ho") DataGridView1.DataSource = se DataGridView1.DataMember = "ho" contex1() Sub contex1() With DataGridView1.Columns(0).HeaderText = "รห สต วแทน".Columns(0).Width = 90.Columns(1).HeaderText = "ช อต วแทน".Columns(1).Width = 200.Columns(2).HeaderText = "บร ษ ท".Columns(2).Width = 100.Columns(3).HeaderText = "ท อย ".Columns(3).Width = 250.Columns(4).HeaderText = "เบอร โทรต ดต อ".Columns(4).Width = 120 End With Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click id() Private Sub Button7_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button7.Click bqtton7() Sub bqtton7() show_medicine.x1 = 1 show_medicine.show() Private Sub Button8_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button8.Click If TextBox10.Text = "" Then MessageBox.Show("กร ณาเล อกรายการยาก อน", "ผ ดพลาด", MessageBoxButtons.OK, MessageBoxIcon.Exclamation) ElseIf TextBox12.Text = "" Or TextBox3.Text = "" Then MessageBox.Show("ตรวจสอบจ านวนและราคาช อ", "ผ ดพลาด", MessageBoxButtons.OK, MessageBoxIcon.Exclamation) TextBox12.Focus() Else Dim dgvrow As New DataGridViewRow Dim dgvcell As DataGridViewCell
34 dgvcell = New DataGridViewTextBoxCell() dgvcell.value = TextBox10.Text dgvrow.cells.add(dgvcell) dgvcell = New DataGridViewTextBoxCell() dgvcell.value = TextBox11.Text dgvrow.cells.add(dgvcell) dgvcell = New DataGridViewTextBoxCell() dgvcell.value = TextBox12.Text dgvrow.cells.add(dgvcell) dgvcell = New DataGridViewTextBoxCell() dgvcell.value = TextBox15.Text dgvrow.cells.add(dgvcell) dgvcell = New DataGridViewTextBoxCell() dgvcell.value = TextBox3.Text dgvrow.cells.add(dgvcell) DataGridView2.Rows.Add(dgvRow) Label4.Text = Integer.Parse(Label4.Text) + Integer.Parse(DataGridView2.Rows.Item(DataGridView2.RowCount - 1).Cells(4).Value) TextBox13.Text = Format(Integer.Parse(Label4.Text), "#,0") TextBox12.Text = "" TextBox10.Text = "" TextBox11.Text = "" TextBox15.Text = "" TextBox3.Text = "" Catch ex As Exception MsgBox("ผ ดพลาด") End Private Sub Button9_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button9.Click If DataGridView2.RowCount() = 0 Then MsgBox("ไม ม ข อม ลให ลบ") Else Label4.Text = Integer.Parse(Label4.Text) - Integer.Parse(DataGridView2.Rows.Item(DataGridView2.CurrentRow.Index).Cells (4).Value) DataGridView2.Rows.RemoveAt(DataGridView2.CurrentRow.Index) TextBox13.Text = Format(Integer.Parse(Label4.Text), "#,0") Private Sub Button5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button5.Click ida() Clr()
35 Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click If conn.state = ConnectionState.Closed Then Dim cmd As New SqlCommand("insert into Agent_medicine values ('" & TextBox7.Text & "','" & TextBox6.Text & "','" & TextBox5.Text & "','" & TextBox4.Text & "','" & TextBox9.Text & "')", conn) cmd.executenonquery() ida() load_agent() Catch ex As Exception MsgBox("บ นท กไม ได ผ ดพลาด") End Private Sub DataGridView1_CellClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles DataGridView1.CellClick If e.rowindex = -1 Then Exit Sub With DataGridView1() TextBox7.Text =.Rows.Item(e.RowIndex).Cells(0).Value.ToString() TextBox6.Text =.Rows.Item(e.RowIndex).Cells(1).Value.ToString() TextBox5.Text =.Rows.Item(e.RowIndex).Cells(2).Value.ToString() TextBox4.Text =.Rows.Item(e.RowIndex).Cells(3).Value.ToString() TextBox9.Text =.Rows.Item(e.RowIndex).Cells(4).Value.ToString() End With Sub Clr() TextBox6.Text = "" TextBox5.Text = "" TextBox4.Text = "" TextBox9.Text = "" Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click If MessageBox.Show("ค ณต องการลบรห สต วแทน " & TextBox7.Text & " หร อไม?", "ค าย นย น", MessageBoxButtons.YesNo) = Windows.Forms.DialogResult.Yes Then Dim d As New SqlCommand("DELETE FROM Agent_medicine where Agent_id='" & TextBox7.Text & "'", conn) d.executenonquery() load_agent() ida() Clr()
36 Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click Dim d As New SqlCommand("update Agent_medicine set Agent_name = '" & TextBox6.Text & "',Agent_company = '" & TextBox5.Text & "',Agent_address = '" & TextBox4.Text & "',Agent_tel = '" & TextBox9.Text & "' where Agent_id='" & TextBox7.Text & "'", conn) d.executenonquery() load_agent() ida() Clr() Private Sub Button6_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button6.Click searchorder() Sub searchorder() Dim sebook As New SqlDataAdapter("SELECT * from Agent_medicine " & _ "where Agent_id like'%" & TextBox8.Text & "%' or Agent_name like'%" & TextBox8.Text & "%' or Agent_tel like'%" & TextBox8.Text & "%' or Agent_company like'%" & TextBox8.Text & "%'", conn) Dim se As DataSet = New DataSet() sebook.fill(se, "ho") DataGridView1.DataSource = se DataGridView1.DataMember = "ho" contex1() Private Sub TextBox8_KeyDown(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles TextBox8.KeyDown If e.keycode = Keys.Enter Then searchorder() Private Sub Button10_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button10.Click bqtton71() Sub bqtton71() show_agent.show()
37 Private Sub Button11_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button11.Click Dim cmd As New SqlCommand Dim chk = 0 If TextBox14.Text = "" Then MessageBox.Show("กร ณาเล อกต วแทนจ าหน าย", "ผ ดพลาด", MessageBoxButtons.OK, MessageBoxIcon.Exclamation) Else For i As Integer = 0 To DataGridView2.Rows.Count() - 1 cmd = New SqlCommand("insert into Order_detail values (@1,@2,@3,@4,@5,@6)") cmd.parameters.add("@1", SqlDbType.VarChar).Value = TextBox2.Text cmd.parameters.add("@2", SqlDbType.VarChar).Value = DataGridView2.Rows(i).Cells(0).Value cmd.parameters.add("@3", SqlDbType.VarChar).Value = TextBox14.Text cmd.parameters.add("@4", SqlDbType.VarChar).Value = DataGridView2.Rows(i).Cells(2).Value cmd.parameters.add("@5", SqlDbType.VarChar).Value = DataGridView2.Rows(i).Cells(4).Value cmd.parameters.add("@6", SqlDbType.VarChar).Value = Label4.Text cmd.connection = conn If conn.state = ConnectionState.Closed Then chk = cmd.executenonquery() Catch ex As SqlException MessageBox.Show("ไม สามารถส งข อม ลได กร ณาตรวจสอบด อ กคร ง " + ex.tostring, "ผ ดพลาด", MessageBoxButtons.OK, MessageBoxIcon.Exclamation) End Next If chk <> 0 Then MessageBox.Show("บ นท ก Order : " & TextBox2.Text & " แล ว", "ส าเร จ", MessageBoxButtons.OK, MessageBoxIcon.Information) DataGridView2.Rows.Clear() TextBox13.Text = "0" Label4.Text = "0" Form_Order.TextBox1.Text = TextBox2.Text Form_Order.MdiParent = index Form_Order.Show() id() Private Sub Button12_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button12.Click
38 xload_agent() Sub xload_agent() If TextBox17.Text = "" Then MessageBox.Show("ตรวจสอบรห สการส งซ อ", "ผ ดพลาด", MessageBoxButtons.OK, MessageBoxIcon.Exclamation) Else If conn.state = ConnectionState.Closed Then Dim sebook As New SqlDataAdapter("SELECT Order_detail.*,Agent_medicine.Agent_name from Order_detail,Agent_medicine where Order_id = '" & TextBox17.Text & "' and Order_doc_id = Agent_id", conn) Dim se As DataSet = New DataSet() se.clear() sebook.fill(se, "ho") DataGridView3.DataSource = se DataGridView3.DataMember = "ho" TextBox18.Text = se.tables(0).rows(0).item(7) Label23.Text = se.tables(0).rows(0).item(6) Catch ex As Exception End contex2() If DataGridView3.RowCount = 0 Then clr_edit_order() Sub contex2() With DataGridView3.Columns(0).Visible = False.Columns(1).HeaderText = "รห สส งซ อ".Columns(1).Width = 100.Columns(2).HeaderText = "รห สยา".Columns(2).Width = 100.Columns(3).HeaderText = "รห สต วแทน".Columns(3).Width = 100.Columns(4).HeaderText = "จ านวน".Columns(4).Width = 100.Columns(5).HeaderText = "ราคา".Columns(5).Width = 90.Columns(6).Visible = False.Columns(7).Visible = False End With
39 Private Sub TextBox17_KeyDown(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles TextBox17.KeyDown If e.keycode = Keys.Enter Then xload_agent() Private Sub DataGridView3_CellClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles DataGridView3.CellClick If e.rowindex = -1 Then Exit Sub With DataGridView3() TextBox19.Text =.Rows.Item(e.RowIndex).Cells(2).Value.ToString() TextBox20.Text =.Rows.Item(e.RowIndex).Cells(3).Value.ToString() TextBox21.Text =.Rows.Item(e.RowIndex).Cells(4).Value.ToString() TextBox22.Text =.Rows.Item(e.RowIndex).Cells(5).Value.ToString() End With Private Sub Button14_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button14.Click If conn.state = ConnectionState.Closed Then If DataGridView3.RowCount = 0 Or TextBox19.Text = "" Then MessageBox.Show("ย งไม ได เล อกรายการ", "ผ ดพลาด", MessageBoxButtons.OK, MessageBoxIcon.Exclamation) Else Dim cmd As New SqlCommand("delete Order_detail where Order_run conn) cmd.parameters.add("@1", SqlDbType.VarChar).Value = DataGridView3.Rows.Item(DataGridView3.CurrentRow.Index).Cells(0).Value.ToS tring() cmd.executenonquery() MessageBox.Show("ลบรายการยารห ส " & DataGridView3.Rows.Item(DataGridView3.CurrentRow.Index).Cells(2).Value.ToS tring() & " แล ว", "ส าเร จ", MessageBoxButtons.OK, MessageBoxIcon.Information) clr_edit_order() Catch ex As Exception MessageBox.Show("ไม สามารถส งข อม ลได ", "ผ ดพลาด", MessageBoxButtons.OK, MessageBoxIcon.Exclamation) End xload_agent() id() Sub clr_edit_order() TextBox19.Text = "" TextBox20.Text = "" TextBox21.Text = "" TextBox22.Text = ""
40 Private Sub TextBox12_KeyPress(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles TextBox12.KeyPress If (e.keychar < Chr(48) Or e.keychar > Chr(57)) And e.keychar <> Chr(8) Then e.handled = True Private Sub TextBox3_KeyPress(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles TextBox3.KeyPress If (e.keychar < Chr(48) Or e.keychar > Chr(57)) And e.keychar <> Chr(8) Then e.handled = True Private Sub Button15_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button15.Click If conn.state = ConnectionState.Closed Then If DataGridView3.RowCount = 0 Or TextBox19.Text = "" Then MessageBox.Show("ย งไม ได เล อกรายการ", "ผ ดพลาด", MessageBoxButtons.OK, MessageBoxIcon.Exclamation) Else Dim cmd As New SqlCommand("update Order_detail set Order_med_id=@2,Order_doc_id=@3,Order_unit=@4,Order_price=@5 where Order_run conn) cmd.parameters.add("@1", SqlDbType.VarChar).Value = DataGridView3.Rows.Item(DataGridView3.CurrentRow.Index).Cells(0).Value.ToS tring() cmd.parameters.add("@2", SqlDbType.VarChar).Value = TextBox19.Text cmd.parameters.add("@3", SqlDbType.VarChar).Value = TextBox20.Text cmd.parameters.add("@4", SqlDbType.VarChar).Value = TextBox21.Text cmd.parameters.add("@5", SqlDbType.VarChar).Value = TextBox22.Text cmd.executenonquery() MessageBox.Show("แก ไขแล ว", "ส าเร จ", MessageBoxButtons.OK, MessageBoxIcon.Information) clr_edit_order() cmd = New SqlCommand("update Order_detail set Order_total=(select sum(order_price) from Order_detail where Order_id =@1 ) where Order_id =@1", conn) cmd.parameters.add("@1", SqlDbType.VarChar).Value = TextBox17.Text cmd.executenonquery() Catch ex As Exception
41 MessageBox.Show("ย งไม ได เล อกรายการ", "ผ ดพลาด", MessageBoxButtons.OK, MessageBoxIcon.Exclamation) End xload_agent() Private Sub Button13_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button13.Click show_order.mdiparent = index show_order.show() Private Sub Button17_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button17.Click If TextBox17.Text = "" Then MessageBox.Show("กร ณาเล อกรห สใบส งซ อ", "ผ ดพลาด", MessageBoxButtons.OK, MessageBoxIcon.Exclamation) Else Form_Order.TextBox1.Text = TextBox17.Text Form_Order.MdiParent = index Form_Order.Show() Private Sub Button16_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button16.Click Dim cmd As New SqlCommand Dim chk = 0 If TextBox17.Text = "" Then MessageBox.Show("กร ณาเล อกรห สใบส งซ อ", "ผ ดพลาด", MessageBoxButtons.OK, MessageBoxIcon.Exclamation) Else For i As Integer = 0 To DataGridView3.Rows.Count() - 1 cmd = New SqlCommand("update medicine set unit = unit+@2 where med_id =@1") cmd.parameters.add("@1", SqlDbType.VarChar).Value = DataGridView3.Rows(i).Cells(2).Value cmd.parameters.add("@2", SqlDbType.VarChar).Value = DataGridView3.Rows(i).Cells(4).Value cmd.connection = conn If conn.state = ConnectionState.Closed Then chk = cmd.executenonquery() Catch ex As SqlException MessageBox.Show("ไม สามารถส งข อม ลได กร ณาตรวจสอบด อ กคร ง " + ex.tostring, "ผ ดพลาด", MessageBoxButtons.OK, MessageBoxIcon.Exclamation) End Next If chk <> 0 Then
42 MessageBox.Show("เพ มจ านวนยาในสต อกแล ว", "ส าเร จ", MessageBoxButtons.OK, MessageBoxIcon.Information) DataGridView3.DataSource = Nothing TextBox17.Text = "" TextBox18.Text = "" clr_edit_order() Label23.Text = "0" End Class Source Code ช อ patient Imports System.Data Imports System.Data.SqlClient Public Class patient Dim conn As SqlConnection Dim log As New login1 Dim chkhn As String Dim login As New LoginForm1 Public str_checkfromlog As String Private Sub patient_load(byval sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load conn = New SqlConnection conn.connectionstring = Co.Conn id() id1() x() qx() Sub qx() conn = New SqlConnection conn.connectionstring = Co.Conn Dim sebook As New SqlDataAdapter("SELECT Q_id,Q_name,Q_date,Q_status,Q_hn from Queue where Q_status = 'รอตรวจ' ", conn) Dim se As DataSet = New DataSet() sebook.fill(se, "ho") DataGridView2.DataSource = se DataGridView2.DataMember = "ho" contex2()
43 Sub contex2() With DataGridView2 End With.Columns(0).HeaderText = "ล าด บค ว".Columns(0).Width = 70.Columns(1).HeaderText = "ช อ - นามสก ล".Columns(1).Width = 135.Columns(2).DefaultCellStyle.Format = "F".Columns(2).HeaderText = "ว น".Columns(2).Width = 150.Columns(3).HeaderText = "สถานะ".Columns(3).Width = 80.Columns(4).Visible = False Sub id() Dim y As New SqlCommand("SELECT max(sicker_id) from sicker", conn) Dim SaleId As String = y.executescalar() SaleId = Mid(SaleId, 1, 2) & (Mid(SaleId, 4, 4) + 1).ToString("00000") TextBox1.Text = SaleId chkhn = SaleId Catch TextBox1.Text = "HN00001" End Sub id1() Dim y As New SqlCommand("SELECT max(card_id) from sicker", conn) Dim SaleId As String = y.executescalar() SaleId = Mid(SaleId, 1, 2) & (Mid(SaleId, 4, 4) + 1).ToString("00000") TextBox2.Text = SaleId Catch TextBox2.Text = "CR00001" End Sub x() Dim sebook As New SqlDataAdapter("SELECT sicker_id,sicker_fname,sicker_lname,sicker_codepeople from sicker ", conn) Dim se As DataSet = New DataSet() sebook.fill(se, "ho") DataGridView1.DataSource = se DataGridView1.DataMember = "ho"
44 contex() Sub contex() With DataGridView1.Columns(0).HeaderText = "รห ส".Columns(0).Width = 80.Columns(1).HeaderText = "ช อ".Columns(1).Width = 130.Columns(2).HeaderText = "นามสก ล".Columns(2).Width = 130.Columns(3).HeaderText = "เลขท บ ตรประชาชน".Columns(3).Width = 130 End With Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim n As New SqlCommand("INSERT INTO sicker VALUES('" & TextBox1.Text & "','" & TextBox2.Text & "','" & TextBox3.Text & "','" & TextBox4.Text & "','" & TextBox5.Text & "','" & TextBox6.Text & "','" & TextBox7.Text & "','" & TextBox8.Text & "','" & TextBox9.Text & "','" & TextBox10.Text & "','" & MaskedTextBox1.Text & "')", conn) n.executenonquery() x() id() id1() wash() Sub wash() TextBox3.Text = "" TextBox4.Text = "" TextBox5.Text = "" TextBox6.Text = "" TextBox7.Text = "" TextBox8.Text = "" TextBox9.Text = "" TextBox10.Text = "" MaskedTextBox1.Text = ""
45 Private Sub Button5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button5.Click Button6.Enabled = False Button2.Enabled = False Button3.Enabled = False Button1.Enabled = True id() id1() wash() Private Sub DataGridView1_CellClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles DataGridView1.CellClick Button9.Enabled = True If conn.state = ConnectionState.Closed Then If e.rowindex = -1 Then Exit Sub With DataGridView1() TextBox1.Text =.Rows.Item(e.RowIndex).Cells(0).Value.ToString() TextBox3.Text =.Rows.Item(e.RowIndex).Cells(1).Value.ToString() TextBox4.Text =.Rows.Item(e.RowIndex).Cells(2).Value.ToString() MaskedTextBox1.Text =.Rows.Item(e.RowIndex).Cells(3).Value.ToString() Dim s As New SqlCommand("SELECT * from sicker where sicker_id='" & TextBox1.Text & "'", conn) Dim s1 As SqlDataReader = s.executereader s1.read() TextBox2.Text = s1.item("card_id") TextBox5.Text = s1.item("sicker_address") TextBox6.Text = s1.item("sicker_tumbon") TextBox7.Text = s1.item("sicker_amper") TextBox8.Text = s1.item("sicker_city") TextBox9.Text = s1.item("sicker_zipcod") TextBox10.Text = s1.item("sicker_tel") Button6.Enabled = True Button2.Enabled = True Button3.Enabled = True Button1.Enabled = False Catch wash() TextBox2.Text = "" Button6.Enabled = False Button2.Enabled = False Button3.Enabled = False Button1.Enabled = True End
46 End With Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click Dim u As New SqlCommand("UPDATE sicker SET sicker_fname='" & TextBox3.Text & "',sicker_lname='" & TextBox4.Text & "',sicker_address='" & TextBox5.Text & "',sicker_tumbon='" & TextBox6.Text & "',sicker_amper='" & TextBox7.Text & "',sicker_city='" & TextBox8.Text & "',sicker_zipcod='" & TextBox9.Text & "',sicker_tel='" & TextBox10.Text & "',sicker_codepeople='" & MaskedTextBox1.Text & "' where sicker_id='" & TextBox1.Text & "'", conn) u.executenonquery() x() id() id1() wash() Button6.Enabled = False Button2.Enabled = False Button3.Enabled = False Button1.Enabled = True Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click Dim sebook As New SqlDataAdapter("SELECT sicker_id,sicker_fname,sicker_lname,sicker_codepeople from sicker where sicker_id like'%" & TextBox11.Text & "%' or sicker_fname like'%" & TextBox11.Text & "%' or sicker_codepeople like'%" & TextBox11.Text & "%'", conn) Dim se As DataSet = New DataSet() sebook.fill(se, "ho") DataGridView1.DataSource = se DataGridView1.DataMember = "ho" contex() Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click If MessageBox.Show("ค ณต องการลบรห สผ ป วย " & TextBox1.Text & " หร อไม?", "ค าย นย น", MessageBoxButtons.YesNo) = Windows.Forms.DialogResult.Yes Then Dim d As New SqlCommand("DELETE FROM sicker where sicker_id='" & TextBox1.Text & "'", conn)
Source Code ช อ frmcar
122 Source Code ช อ frmcar Imports System.Data Imports System.Data.SqlClient Imports System.Globalization Public Class frmcar Dim ds, ds1, dsc As New DataSet Dim hit As DataGridView.HitTestInfo Dim N As
More informationก Microsoft Visual Studio 2008
ก 58 ก ก ก ก ก 58 59 ก Microsoft Visual Studio 2008 1. DVD ก MSVS2008 ก MSVS2008 ก ก MSVS2008 ก ก 180 DVD DVD ก MSVS2008 ก ก Install Visual Studio 2008 2. ก ก ก ก ก Next 3. ก ก Options Page ก Custom ก
More informationโปรแกรมช วยทดสอบหม อแปลงกระแส
โปรแกรมช วยทดสอบหม อแปลงกระแส 1.เมน ของโปรแกรม ภาพท 1 หน าเมน ของโปรแกรม Public Class frmmain Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
More informationว ธ การต ดต ง Symantec Endpoint Protection
ว ธ การต ดต ง Symantec Endpoint Protection 1. Download File ส าหร บการต ดต ง 2. Install Symantec Endpoint Protection Manager 3. Install License 4. Install Symantec Endpoint Protection Client to Server
More informationChapter 4. Introducing Oracle Database XE 11g R2. Oracle Database XE is a great starter database for:
Oracle Database XE is a great starter database for: Chapter 4 Introducing Oracle Database XE 11g R2 Developers working on PHP, Java,.NET, XML, and Open Source applications DBAs who need a free, starter
More informationC Programming
204216 -- C Programming Chapter 9 Character Strings Adapted/Assembled for 204216 by Areerat Trongratsameethong A First Book of ANSI C, Fourth Edition Objectives String Fundamentals Library Functions Input
More informationภาคผนวก ก. Source Code
ภาคผนวก ภาคผนวก ก. Source Code 154 155 Source Code ช อ Empbook Option Explicit On Option Strict On Imports System.data Imports System.Data.OleDb Public Class Empbook Dim Book_status As Integer = 1 'ęğŀşľłŀăăő
More informationWhat s Hot & What s New from Microsoft ส มล อน นตธนะสาร Segment Marketing Manager
What s Hot & What s New from Microsoft ส มล อน นตธนะสาร Segment Marketing Manager 1 โปรแกรมท น าสนใจส าหร บไตรมาสน Crisis Turing Point II Oct-Dec 09 Windows 7 งานเป ดต วสาหร บล กค าท วไป, Paragon Hall,
More informationDO NOT COPY AMIT PHOTOSTUDIO
AMIT PHOTOSTUDIO These codes are provided ONLY for reference / Help developers. And also SUBMITTED IN PARTIAL FULFILLMENT OF THE REQUERMENT FOR THE AWARD OF BACHELOR OF COMPUTER APPLICATION (BCA) All rights
More informationLAMPIRAN. Universitas Sumatera Utara
LAMPIRAN 1. Modul Imports System.Data Imports System.Data.OleDb Module Module1 Public conn As OleDbConnection Public CMD As OleDbCommand Public DS As New DataSet Public DA As OleDbDataAdapter Public RD
More informationVerified by Visa Activation Service For Cardholder Manual. November 2016
Verified by Visa Activation Service For Cardholder Manual November 2016 Table of Contents Contents Registration for Card Holder verification on ACS... 3 1. Direct Activation... 4 2. Changing personal information
More informationChapter 9: Virtual-Memory Management Dr. Varin Chouvatut. Operating System Concepts 8 th Edition,
Chapter 9: Virtual-Memory Management Dr. Varin Chouvatut, Silberschatz, Galvin and Gagne 2010 Chapter 9: Virtual-Memory Management Background Demand Paging Copy-on-Write Page Replacement Allocation of
More informationโปรแกรมท น าสนใจส าหร บไตรมาสน
แคมเปญ และก จกรรมทางการตลาด (ต ลาคม ธ นวาคม 2552) โปรแกรมท น าสนใจส าหร บไตรมาสน Crisis Turing Point II Oct-Dec 09 Windows 7 งานเป ดต วสาหร บล กค าท วไป, Paragon Hall, 31 Oct -1 Nov งานเป ดต วสาหร บล กค
More informationC Programming
204216 -- C Programming Chapter 5 Repetition Adapted/Assembled for 204216 by Areerat Trongratsameethong Objectives Basic Loop Structures The while Statement Computing Sums and Averages Using a while Loop
More informationISI Web of Science. SciFinder Scholar. PubMed ส บค นจากฐานข อม ล
2.3.3 Search Chem. Info. in Journal ส บค นจากฐานข อม ล - ฐานข อม ลท รวบรวมข อม ลของ journal จากหลาย ๆ แหล ง ISI http://portal.isiknowledge.com/portal.cgi/ SciFinder ต องต ดต งโปรแกรมพ เศษ และสม ครสมาช
More informationCPE 426 Computer Networks. Chapter 5: Text Chapter 23: Support Protocols
CPE 426 Computer Networks Chapter 5: Text Chapter 23: Support Protocols 1 TOPICS สร ปเร อง IP Address Subnetting Chapter 23: Supporting Protocols ARP: 23.1-23.7 ใช ส าหร บหา HW Address(MAC Address) ICMP:
More informationFundamentals of Database Systems
204222 - Fundamentals of Database Systems Chapter 24 Database Security Adapted for 204222 by Areerat Trongratsameethong Copyright 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Outline
More informationVB.NET Programs. ADO.NET (insert, update, view records)
ADO.NET (insert, update, view records) VB.NET Programs Database: Student Table : Studtab (adno, name, age, place) Controls: DataGridView, Insert button, View button, Update button, TextBox1 (for Admission
More informationChapter 3 Outline. Relational Model Concepts. The Relational Data Model and Relational Database Constraints Database System 1
Chapter 3 Outline 204321 - Database System 1 Chapter 3 The Relational Data Model and Relational Database Constraints The Relational Data Model and Relational Database Constraints Relational Model Constraints
More informationCourse: Project Management Learning world class business project management skills
Course: Project Management Learning world class business project management skills Duration: 5 Days (9:00 16:00) Description: Your ability as a project manager to demonstrate best practices in project
More information"!#... )*! "!# )+, -./ 01 $
Email engauday@hotmail.com! "!#... $ %&'... )*! "!# )+, -./ 01 $ ) 1+ 2#3./ 01 %.. 7# 89 ; )! 5/< 3! = ;, >! 5 6/.?
More informationLab 10: Structs and Enumeration
Lab 10: Structs and Enumeration There is one more way to create your own value types in C#. You can use the struct keyword. A struct (short for structure) can have its own fields, methods, and constructors
More informationINPUT Input point Measuring cycle Input type Disconnection detection Input filter
2 = TEMPERATURE CONTROLLER PAPERLESS RECORDER หน าจอเป น Touch Sceen 7-Inch LCD เก บข อม ลผ าน SD Card และ USB Memory ร บ Input เป น TC/RTD/DC Voltage/DC Current ร บ Input 6 Channel ช วงเวลาในการอ านส
More informationC16 Visual Basic Net Programming
C16 Visual Basic Net Programming Student ID Student Name Date - Module Tutor - 1 P a g e Report Contents Introduction... 2 Software Development Process... 3 Self Reflection... 6 References... 6 Appendices...
More informationElse. End If End Sub End Class. PDF created with pdffactory trial version
Dim a, b, r, m As Single Randomize() a = Fix(Rnd() * 13) b = Fix(Rnd() * 13) Label1.Text = a Label3.Text = b TextBox1.Clear() TextBox1.Focus() Private Sub Button2_Click(ByVal sender As System.Object, ByVal
More informationจาวา : Threads สมชาย ประส ทธ จ ตระก ล
จาวา : Threads สมชาย ประส ทธ จ ตระก ล Threads A thread == A virtual CPU Threads == Virtual CPUs sharing the same memory space running virtually at the same time Java supports multithreading Typically used
More informationVisual Basic: Opdracht Structuur
Visual Basic: Opdracht Structuur HoofdMenu.vb SubMenu_Kwadraat.vb Form1.vb Form2.vb Submenu_Som.vb Form3.vb Form4.vb SubMenu_Gem.vb Form5.vb Form6.vb Form10.vb SubMenu_Naam.vb Form7.vb Form11.vb Form8.vb
More informationร จ กก บ MySQL Cluster
ร จ กก บ MySQL Cluster ก ตต ร กษ ม วงม งส ข (Kittirak Moungmingsuk) kittirak@clusterkit.co.th May 19, 2012 @ossfestival #11 `whoami` A part of team at Cluster Kit Co.,Ltd. Since 2007. Adjacent Lecturer
More informationCrystal Report & Crystal Server 2016
Crystal Report & Crystal Server 206 Crystal Report เป นเคร องม อในการสร าง Report ท ม จ ดเด นในความสามารถเช อมต อฐานข อม ลท หลากหลาย เพ อนำา เอาข อม ลมาใช สร างรายงานสำาหร บการใช งานท วไปในงานธ รก จ ประจำาว
More informationเคร องว ดระยะด วยแสงเลเซอร แบบม อถ อ ย ห อ Leica DISTO ร น D110 (Bluetooth Smart) ประเทศสว ตเซอร แลนด
เคร องว ดระยะด วยแสงเลเซอร แบบม อถ อ ย ห อ Leica DISTO ร น D110 (Bluetooth Smart) ประเทศสว ตเซอร แลนด 1. ค ณล กษณะ 1.1 เป นเคร องว ดระยะทางด วยแสงเลเซอร แบบม อถ อ 1.2 ความถ กต องในการว ดระยะทางไม เก น
More informationBroken Characters Identification for Thai Character Recognition Systems
Broken Characters Identification for Thai Character Recognition Systems NUCHAREE PREMCHAISWADI*, WICHIAN PREMCHAISWADI* UBOLRAT PACHIYANUKUL**, SEINOSUKE NARITA*** *Faculty of Information Technology, Dhurakijpundit
More informationChapter 8: Memory- Management Strategies Dr. Varin Chouvatut
Part I: Overview Part II: Process Management Part III : Storage Management Chapter 8: Memory- Management Strategies Dr. Varin Chouvatut, Silberschatz, Galvin and Gagne 2010 Chapter 8: Memory Management
More informationLooking forward to a successful coopertation : TEIN
Space Krenovation Park : SKP Looking forward to a successful coopertation : TEIN Geo-Informatics and Space Technology Development Agency : GISTDA Space Krenovation Park @ Chonburi 1 Mission TC/TM House
More informationแผนการสอนว ชา การเข ยนโปรแกรมคอมพ วเตอร 2 (Computer Programming 2) ภาคการศ กษา 1 ป การศ กษา 2559
แผนการสอนว ชา 01076235 การเข ยนโปรแกรมคอมพ วเตอร 2 (Computer Programming 2) ภาคการศ กษา 1 ป การศ กษา 2559 ค าอธ บายรายว ชา หล กการโปรแกรมเช งว ตถ เมธอด คลาส การซ อนสารสนเทศและการส บทอด อ ลกอร ท มพ นฐานการเร
More informationThe New Effective Tool for Data Migration from Old PACS (Rogan) to New PACS (Fuji Synapse) with Integrated Thai Patient Names
The New Effective Tool for Data Migration from Old PACS (Rogan) to New PACS (Fuji Synapse) with Integrated Thai Patient Names Thanongchai Siriapisith MD*, Trongtum Tongdee MD* * Department of Radiology,
More informationกองว ชาประว ต ศาสตร ส วนการศ กษา โรงเร ยนนายร อยพระจ ลจอมเกล า 18 ต ลาคม พ.ศ. 2549
บ ญช ด ชน เอกสารเก ยวก บประเทศไทยจากส าน กหอจดหมายเหต แห งชาต สหร ฐอเมร กา RG 226 Entry 153 A Records of the Office of Strategic Services: Washington Director's Office พ.ท.ผศ.ดร. ศรศ กร ช สว สด ผ รวบรวม
More informationMember Management System
Member Management System These codes are provided ONLY for reference / Help developers. And also SUBMITTED IN PARTIAL FULFILLMENT OF THE REQUERMENT FOR THE AWARD OF BACHELOR OF COMPUTER APPLICATION (BCA)
More informationMr.Khaled Anwar ( )
The Rnd() function generates random numbers. Every time Rnd() is executed, it returns a different random fraction (greater than or equal to 0 and less than 1). If you end execution and run the program
More informationร ปแบบใหม ของการต ดต อส อสารไร สาย
ร ปแบบใหม ของการต ดต อส อสารไร สาย ค ณล กษณะของต วระบบ Motorola Wireless Canopy เป นอ ปกรณ ส อสารไร สายท ออกแบบมาเพ อการร บส งข อม ลแบบความเร วส ง (Broadband) โดยปราศจากส ญญาณรบกวนต างๆ โดยใช ความถ ย าน
More informationIn this tutorial we will create a simple calculator to Add/Subtract/Multiply and Divide two numbers and show a simple message box result.
Simple Calculator In this tutorial we will create a simple calculator to Add/Subtract/Multiply and Divide two numbers and show a simple message box result. Let s get started First create a new Visual Basic
More informationExample: How to create a shape from SpecialShapeFactory.
Example: How to create a shape from SpecialShapeFactory. // Create the Cross Shape ArrayList linelist = new ArrayList(); pointlist.add(new Point2D.Double(420.0,152.0)); pointlist.add(new
More informationIS311. Data Structures and Java Collections
IS311 Data Structures and Java Collections 1 Algorithms and Data Structures Algorithm Sequence of steps used to solve a problem Operates on collection of data Each element of collection -> data structure
More informationDAFTAR PUSTAKA. Bojic, Paul, 2008, Business Information System. Pearson Education Ltd., England
DAFTAR PUSTAKA Bojic, Paul, 2008, Business Information System. Pearson Education Ltd., England Elib.unikom.ac.id, SQL Server, 27 April 2014. Jogiyanto. 2005. Analisis & Desain Sistem Informasi : Pendekatan
More informationPRICE LIST Video Transmission Fiber Optic Cable TEL: (May 2015) HD-AHD CCTV System
COMMUNICATION PRODUCTS Video Transmission Fiber Optic Cable PRICE LIST 2015 HD-AHD CCTV System HD-CVI CCTV System HD-TVI CCTV System Analog CCTV System (May 2015) www.facebook.com/bismonthailand TEL: 0-2563-5000
More informationCollections IS311. The Collections Framework. Type Trees for Collections. Java Collections Framework (ต อ)
IS311 Java Collections Framework (ต อ) Collections Collections are holders that let you store and organize objects in useful ways for efficient access. In the package java.util, there are interfaces and
More informationIS311. Java Collections Framework (ต อ)
IS311 Java Collections Framework (ต อ) 1 Collections Collections are holders that let you store and organize objects in useful ways for efficient access. In the package java.util, there are interfaces
More informationบทท 4 ข นตอนการทดลอง
บทท 4 ข นตอนการทดลอง ในบทน จะท าการทดลองในส วนของซ นเซอร ว ดอ ณหภ ม เพ อผลท ได มาใช ในการเข ยน โปรแกรมและท าโครงงานให ได ประส ทธ ภาพข น 4.1 การทดสอบระบบเซ นเซอร ว ตถ ประสงค การทดลอง ว ตถ ประสงค ของการทดลองน
More informationThe Clustering Technique for Thai Handwritten Recognition
The Clustering Technique for Thai Handwritten Recognition Ithipan Methasate, Sutat Sae-tang Information Research and Development Division National Electronics and Computer Technology Center National Science
More informationObjectives. After completing this topic, the students will: Understand of the concept of polymorphism Know on How to implement 2 types of polymorphism
Polymorphism Objectives After completing this topic, the students will: Understand of the concept of polymorphism Know on How to implement 2 types of polymorphism Definition Polymorphism provides the ability
More informationภาคผนวก ก Coding VPN IPSec Site-to-Site
ภาคผนวก 30 ภาคผนวก ก Coding VPN IPSec Site-to-Site Router HQ (R-HQ) hostname R-HQ ip dhcp excluded-address 172.16.100.1 172.16.100.99 ip dhcp excluded-address 172.16.100.200 172.16.100.254 ip dhcp excluded-address
More informationRevision for Final Examination (Second Semester) Grade 9
Revision for Final Examination (Second Semester) Grade 9 Name: Date: Part 1: Answer the questions given below based on your knowledge about Visual Basic 2008: Question 1 What is the benefit of using Visual
More informationLifeLink Life Insurance System For ALMAO
LifeLink Life Insurance System For ALMAO R.M.N.P.B. Ratnayake BIT Registration Number: R004702 Index Number: 0047023 Supervisor s Name: Prasanna Weerakoon Submission Month: November Submission Year: 2017
More informationSpecifications 14TB 12TB 10TB 8TB 6TB 4TB 3TB 2TB 1TB
SEAGATE Internal Harddisk Drive Skyhawk : 3.5 ส นค า ร บประก น 3 ป Smart. Safe. Secure. : Seagate Surveillance-Optimized Storage Seagate SkyHawkค ม ครบ เพ อ อนาคต Hard disk ส าหร บกล องวงจรป ดโดยเฉพาะ
More informationAn SMS-Based Fault Dispatching System: An Additional Utilisation of a Mobile Phone Infrastructure
Walailak J Sci & Tech 2004; 1(2):107-118. 107 An SMS-Based Fault Dispatching System: An Additional Utilisation of a Mobile Phone Infrastructure Wattanapong KURDTHONGMEE 1 and Pongwirat KEMAPANMANAS 2 School
More informationSEARCH STRATEGIES KANOKWATT SHIANGJEN COMPUTER SCIENCE SCHOOL OF INFORMATION AND COMMUNICATION TECHNOLOGY UNIVERSITY OF PHAYAO
SEARCH STRATEGIES KANKWATT SHIANGJEN CMPUTER SCIENCE SCHL F INFRMATIN AND CMMUNICATIN TECHNLGY UNIVERSITY F PHAYA Search Strategies Uninformed Search Strategies (Blind Search): เป นกลย ทธ การ ค นหาเหม
More informationFOR 240 Homework Assignment 4 Using DBGridView and Other VB Controls to Manipulate Database Introduction to Computing in Natural Resources
FOR 240 Homework Assignment 4 Using DBGridView and Other VB Controls to Manipulate Database Introduction to Computing in Natural Resources This application demonstrates how a DataGridView control can be
More informationToday Topics. Artificial Intelligent??? Artificial Intelligent??? Intelligent Behaviors. Intelligent Behavior (Con t) 20/07/52
Today Topics Artificial Intelligent Applications Opas Wongtaweesap (Aj OaT) Intelligent Information Systems Development and Research Laboratory Centre Faculty of Science, Silpakorn University Webpage :
More informationParallel K-means Clustering Algorithm on NOWs
243 Parallel K-means Clustering Algorithm on NOWs Sanpawat Kantabutra and Alva L. Couch Department of Computer Science Tufts University, Medford, Massachusetts, 02155, USA http://www.cs.tufts.edu/~{sanpawat,
More informationCATALOGUE N1506TH
CATALOGUE 06-07 N1506TH Copper cabling solution 2 types of connection for maximum choice BTNET offers a wide range of products to make copper wiring. It includes patch panels, patch cords, cables to make
More informationJavaScript Framework: AngularJS
บทท 8 JavaScript Framework: AngularJS ว ชา เทคโนโลย เว บ (รห สว ชา 04-06-204) ว ตถ ประสงค การเร ยนร เพ อให ผ เร ยนม ความร ความเข าใจเก ยวก บ JavaScript Framework: AngularJS เพ อให ผ เร ยนสามารถนาเสนอการดาเน
More information2017 PROGRAM PORTFOLIO
NSTDA Academy National Science and Development Agency,Yothee Office, 73/1 Rama 6 Road Payathai, Ratchathewi, Bangkok 10400, Thailand, Tel: 66 2644 8150 ต อ 81886-7, Fax: 66 2644 8110, www.nstdaacademy.com
More informationGlossary. Mathematics Glossary. Elementary School Level. English Thai
Elementary School Level Glossary Mathematics Glossary English Thai Translation of Mathematics Terms Based on the Coursework for Mathematics Grades 3 to 5. This glossary is to PROVIDE PERMITTED TESTING
More informationIMS1906: Business Software Fundamentals Tutorial exercises Week 5: Variables and Constants
IMS1906: Business Software Fundamentals Tutorial exercises Week 5: Variables and Constants These notes are available on the IMS1906 Web site http://www.sims.monash.edu.au Tutorial Sheet 4/Week 5 Please
More informationC# winforms gridview
C# winforms gridview using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms;
More informationI/O. Output. Input. Input ของจาวา จะเป น stream จะอ าน stream ใช คลาส Scanner. standard input. standard output. standard err. command line file.
I/O and Exceptions I/O Input standard input keyboard (System.in) command line file Output standard output Screen (System.out) standard err file System.err Input ของจาวา จะเป น stream จะอ าน stream ใช คลาส
More informationIS311 Programming Concepts 2/59. AVA Exception Handling Jการจ ดการส งผ ดปรกต
1 IS311 Programming Concepts 2/59 AVA Exception Handling Jการจ ดการส งผ ดปรกต 2 Introduction Users have high expectations for the code we produce. Users will use our programs in unexpected ways. Due to
More informationS.2 Computer Literacy Question-Answer Book
S.2 C.L. Half-yearly Examination (2012-13) 1 12-13 S.2 C.L. Question- Answer Book Hong Kong Taoist Association Tang Hin Memorial Secondary School 2012-2013 Half-yearly Examination S.2 Computer Literacy
More informationBasic computer skills such as using Windows, Internet Explorer, and Microsoft Word. Chapter 1 Introduction to Computers, Programs, and Java
Chapter 5 Methods Basic computer skills such as using Windows, Internet Explorer, and Microsoft Word Chapter 1 Introduction to Computers, Programs, and Java Chapter 2 Primitive Data Types and Operations
More informationภาคผนวก ก การต ดต งโปรแกรม
ภาคผนวก 102 103 ภาคผนวก ก การต ดต งโปรแกรม 104 โปรแกรม AppServ โปรแกรม AppServ เป นโปรแกรมท รวบรวมโปรแกรม Open Source Software หลายๆ อย าง เข าด วยก น โดยภายในโปรแกรม AppServ ประกอบด วยโปรแกรมต างๆ ด งน
More informationว.ว ทย. มข. 45(2) (2560) KKU Sci. J. 45(2) (2017) บทค ดย อ ABSTRACT
ว.ว ทย. มข. 45(2) 418-437 (2560) KKU Sci. J. 45(2) 418-437 (2017) การปร บปร งรห สล บฮ ลล โดยอาศ ยการเข ารห สล บเป นคาบสองช น และการแปรผ นความยาว A Modification of the Hill Cipher Based on Doubly Periodic
More informationForm Connection. Imports System Imports System.Threading Imports System.IO.Ports Imports System.ComponentModel
Form Connection Imports System Imports System.Threading Imports System.IO.Ports Imports System.ComponentModel Public Class connection '------------------------------------------------ Dim myport As Array
More informationPart Picture Description Warranty
Logitech : Keyboard LGT-920-002149 Logitech Classic Keyboard K100 3 320.- LGT-920-002590 Logitech Keyboard K120 - THAI 3 359.- LGT-920-007596 K380 Multi-Device Bluetooth Keyboard - Black 1 1,290.- LGT-920-007597
More informationไอท สำหร บพยำบำลท ไม ใช น กไอท
F ACULTY OF MEDICINE Mar 25, 2016 ไอท สำหร บพยำบำลท ไม ใช น กไอท Major Thanapong Somkijrungroj, MD Retina and Uveitis Specialist Chulalongkorn University Bangkok, Thailand I have no relevant financial
More informationThis PDF was generated in real-time using DynamicPDF; Generator for.net.
TableReport.aspx 1 1 Imports System 2 Imports System.Data 3 Imports System.Data.SqlClient 4 5 Imports cete.dynamicpdf 6
More informationLecture Outline. 1. Semantic Web Technologies 2. A Layered Approach 3. Data Integration
Semantic Web Lecture Outline 1. Semantic Web Technologies 2. A Layered Approach 3. Data Integration Semantic Web Technologies Explicit Metadata Ontologies Logic and Inference Agents 3 On HTML Web content
More informationThailand s Social Media Analysis regarding the Great East Japan Earthquake Investigate target social media candidates
Chapter 4 Thailand s Social Media Analysis regarding the Great East Japan Earthquake Investigate target social media candidates The first evaluation report with the target social media candidates 31 August
More informationLecture 6 Register Transfer Methodology. Pinit Kumhom
Lecture 6 Register Transfer Methodology Pinit Kumhom VLSI Laboratory Dept. of Electronic and Telecommunication Engineering (KMUTT) Faculty of Engineering King Mongkut s University of Technology Thonburi
More information超音波モータ制御プログラムの作成 (v1.2.1)
超音波モータ制御プログラムの作成 (v1.2.1) 2008 年 11 月 28 日 Masaaki MATSUO 構成機器 モータ本体 : フコク ロータリーエンコーダー内蔵型超音波モータ USB-60E モータ制御部 : フコク 位置決制御ドライバ DCONT-3-60 (SD13) コントローラ : Interface 2 軸絶縁パルスモーションコントローラ ( 直線補間エンコーダ入力 5V)
More informationCode: Week 13. Write a Program to perform Money Conversion. Public Class Form1
Write a Program to perform Money Conversion. Week 13 Code: Public Class Form1 Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Dim a As Double a = TextBox1.Text If ComboBox1.SelectedItem
More informationSystem Analysis and Design
System Analysis and Design LAB RECORD-INFS -280/L Information Systems Department University of Nizwa, Sultanate of Oman Table of Contents Task. No: Title Page Nos. Date 1) VB Text box and Message Button
More informationGetting Started Introducción. En Es Kr Th Vn 간단설치가이드 FT (000)
Getting Started Introducción 간단설치가이드 Bắt Đầu. En Es Kr Th Vn FT6-0793 (000) Installing the Printer Remove all the tape. Do not remove the packing material yet. Installation Requirements Auxiliary Tray
More informationVISUAL BASIC PROGRAMMING (44) Technical Task KEY. Regional 2013 TOTAL POINTS (485)
5 Pages VISUAL BASIC PROGRAMMING (44) Technical Task KEY Regional 2013 TOTAL POINTS (485) Graders: Please double-check and verify all scores! Property of Business Professionals of America. May be reproduced
More information10/07/56.
http://www.youtube.com/watch?v=sk2lfgh1c4q 50 Fall in love with Marketing Advertising Branding Graphic Design Marketing Public Relations Telemarketing 1 I m a great lover Hello Marketing I m a great lover
More informationMT7049 การออกแบบและฐานข อม ลบนเว บ
MT7049 การออกแบบและฐานข อม ลบนเว บ 3 (2-2-5) Web Design and Web Database ส พจน เฮงพระพรหม http://home.npru.ac.th/supoj คาอธ บายรายว ชา แนวค ดองค ประกอบของเว บ หล กการออกแบบเว บ การว เคราะห เน อหา การออกแบบโครงสร
More informationChapter 11 Object-Oriented Design Exception and binary I/O can be covered after Chapter 9
Chapter 6 Arrays Chapter 8 Strings Chapter 7 Objects and Classes Chapter 9 Inheritance and Polymorphism GUI can be covered after 10.2, Abstract Classes Chapter 12 GUI Basics 10.2, Abstract Classes Chapter
More informationWEEK 1. Event: Tick: Occurs when the specified timer interval has elapsed and the timer is enabled.
WEEK 1 Timer: A Timer is used to raise an event at user-defined intervals. It is optimized for use in Windows Forms applications. Timer is used to control and manage events that are time related. For example:
More informationLAMPIRAN A-2 : LAPORAN PENJUALAN DOKUMEN KELUARAN
LAMPIRAN A-2 : LAPORAN PENJUALAN DOKUMEN KELUARAN LAMPIRAN A-1 : NOTA DOKUMEN KELUARAN LAMPIRAN B MASUKAN SISTEM BERJALAN LAMPIRAN B-1 : DATA BARANG DOKUMEN MASUKAN LAMPIRAN B-2 : DATA PELANGGAN DOKUMEN
More informationLearning VB.Net. Tutorial 10 Collections
Learning VB.Net Tutorial 10 Collections Hello everyone welcome to vb.net tutorials. These are going to be very basic tutorials about using the language to create simple applications, hope you enjoy it.
More informationการหาเส นทางในเคร อข ายเซ นเซอร ไร สายเคล อนท สาหร บช วการแพทย ด วย ร อ นฟอร สเมนท เล ร นน ง โดยใช ทร สท และเร บพ วเทช น นางสาวญาน นะพ ทธะ
การหาเส นทางในเคร อข ายเซ นเซอร ไร สายเคล อนท สาหร บช วการแพทย ด วย ร อ นฟอร สเมนท เล ร นน ง โดยใช ทร สท และเร บพ วเทช น นางสาวญาน นะพ ทธะ ว ทยาน พนธ น เป นส วนหน งของการศ กษาตามหล กส ตรปร ญญาว ศวกรรมศาสตรมหาบ
More informationGetting Started Introducción Bắt Đầu.
Getting Started Introducción Bắt Đầu. En Es Kr Th Vn FT6-0756 (000) Installing the Printer Remove all the tape. Preparation Do not remove the packing material yet. Installation Requirements Multi-purpose
More informationHealthcare information and integration
Healthcare information and integration Yudthaphon Vichianin, Ph.D. Department of Radiological Technology Faculty of Medical Technology Mahidol University Agenda History of Computer in Medicine HL7 DICOM
More informationTRAINING SCHEDULE 2012
TRAINING SCHEDULE 0 Title -Quality Management Systems (QM) : ISO 00:008 Introduction and Awareness to ISO 00:008,00 8 8 7 8 7 Introduction and Awareness to ISO 00:008 (English version),00 7 Guideline for
More informationif (say==0) { k.commandtext = "Insert into kullanici(k_adi,sifre) values('" + textbox3.text + "','" + textbox4.text + "')"; k.
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Data.SqlClient;
More informationCode: Write a Program for perform Money Conversion. Public Class Form1
Write a Program for perform Money Conversion. Code: Public Class Form1 Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click Dim a As Double a = TextBox1.Text
More informationVISUAL BASIC II CC111 INTRODUCTION TO COMPUTERS
VISUAL BASIC II CC111 INTRODUCTION TO COMPUTERS Intended Learning Objectives Able to build a simple Visual Basic Application. 2 The Sub Statement Private Sub ControlName_eventName(ByVal sender As System.Object,
More informationAdvanced Programming C# Lecture 5. dr inż. Małgorzata Janik
Advanced Programming C# Lecture 5 dr inż. malgorzata.janik@pw.edu.pl Today you will need: Classes #6: Project I 10 min presentation / project Presentation must include: Idea, description & specification
More informationThai Text Localization in Natural Scene Images using Convolutional Neural Network
Thai Text Localization in Natural Scene Images using Convolutional Neural Network Thananop Kobchaisawat * and Thanarat H. Chalidabhongse * Department of Computer Engineering, Chulalongkorn University,
More informationLab 6: Making a program persistent
Lab 6: Making a program persistent In this lab, you will cover the following topics: Using the windows registry to make parts of the user interface sticky Using serialization to save application data in
More informationLearning VB.Net. Tutorial 19 Classes and Inheritance
Learning VB.Net Tutorial 19 Classes and Inheritance Hello everyone welcome to vb.net tutorials. These are going to be very basic tutorials about using the language to create simple applications, hope you
More informationfēnix 3 HR Quick Start Manual...1 ค ม อ Quick Start...27 Panduan Cepat Pengoperasian... 57
fēnix 3 HR Quick Start Manual...1 ค ม อ Quick Start...27 Panduan Cepat Pengoperasian... 57 Important Safety and Product Information WARNING Failure to avoid the following potentially hazardous situations
More information