BMS-HOSxP Community
HOSxP => แจ้งปัญหา / ขอความช่วยเหลือ => ข้อความที่เริ่มโดย: border ที่ กุมภาพันธ์ 10, 2008, 09:10:43 AM
-
เวลาส่งคนไข้ตรวจที่ห้องบัตร จะขึ้น system massege ทุกคนเลยครับ ไม่ทราบว่าน่าจะเกิดจากสาเหตุใดได้บ้าง และจะแก้ไขอย่างไรครับ
-
ลองทำตามนี้ครับ ;D
-
ลองทำ serial check แล้ว ทำการ check มันขึ้นเตือนเหมือนว่ามีตารางซ้ำมากกว่า 1 ตาราง และ ก็ repair แล้ว แต่ก็ยังเป็นปัญหาเหมือนเดิม
-
ลองใช้คำสั่งนี้รันดูครับ (แก้รูปด้านบน)
update serial set serial_no = (select max(opd_regist_sendlist_id) from opd_regist_sendlist )
where name = 'opd_regist_sendlist_id'
-
ลองรันคำสั่ง แล้ว ก็ยัง error อยู่ครับ
-
อันนี้แก้อีกตัวหนึ่งจากรูปบนสุด
update serial set serial_no = (select max(seq_id) from ovst_seq )
where name = 'ovst_seq_id'
-
ยังมีอาการเหมือนเดิมครับ ??? มืดแปดด้านเลยครับงานนี้ ยังไงก็ขอบคุณ อ.nuttawut นะครับ ที่คอยช่วยเหลือ และผมก็ยังรอความช่วยเหลืออยู่นะครับ
-
ไม่ทราบว่าแก้แล้วมัน error ตารางเดิมหรือเปล่าครับ
-
ยัง error ตารางเดิมอยู่ครับ อ.อ๊อด
System Message
SQL Error: Duplicate entry '23347' for key 2
select * from ovst_seq where vn = '510210160906'
-
ลองส่ง Result จาก 2 คำสั่งนี้มาให้ดูหน่อย
select max(seq_id) from ovst_seq
select serial_no from serial where name = 'seq_id'
และได้ลองใช้ คำสั่งนี้หรือยัง
update serial set serial_no = (select max(seq_id) from ovst_seq ) where name = 'ovst_seq_id'
-
ผลลัพธ์จากคำสั่ง
select max(seq_id) from ovst_seq
select serial_no from serial where name = 'seq_id'
ปัญหาตอนนี้ นอกจากเวลาส่งตรวจแล้ว ขึ้น error ห้องตรวจจะสั่ง x-ray ไม่ผ่าน ต้องเขียน note ให้ จนท.เอ็กซเรย์ เป็นคนสั่งเอง ครับ
-
select max(seq_id) from ovst_seq
select * from serial where name = 'ovst_seq_id'
และ
update serial set serial_no = (select max(seq_id) from ovst_seq ) where name = 'ovst_seq_id'
ลองดูครับ
-
error ห้อง x-ray เวลาสั่งรายการ x-ray
-
select max(xn) from xray_report
และ
select * from serial where name = 'xray_xn'
ลองดูก่อนครับ ว่าผลลัพธ์เป็นอย่างไร
-
ใช้คำสั่งนี้ครับ
update serial set serial_no = (select max(seq_id) from ovst_seq ) where name = 'ovst_seq_id'
-
อาการ error massege ที่ห้องบัตร ใช้ได้แล้วครับ ขอบคุณครับ ตอนนี้ยังมีปัญหาที่ห้อง x-ray ผมส่งผลลัพธ์จากคำสั่ง มาให้ดู
-
update serial set serial_no = (select max(xn) from xray_report ) where name = 'xray_xn'
และรบกวน อ.MN ตรวจสอบ ปุ่ม Serial Check ให้ด้วยครับ
ขอบคุณครับ
-
ขอบคุณทุกท่านครับ ตอนนี้ใช้งานได้ปกติแล้วครับ วันหลัง ถ้ามีปัญหาจะรบกวนใหม่ครับ