BMS-HOSxP Community
HOSxP => แจ้งปัญหา / ขอความช่วยเหลือ => ข้อความที่เริ่มโดย: pramanut ที่ กันยายน 01, 2006, 01:27:09 AM
-
ได้สร้าง custom report เรื่อง waiting time แล้วเมื่อเรียกช่วงวันที่มากขึ้นจาก parameter เดิมที่กำหนด แล้วพบข้อความ 'Range check error' ไม่ทราบว่าเกิดจากสาเหตุอะไร แก้ไขอย่างไรครับ ของคุณครับ
select s.hn, s.vstdate, s.vsttime, s.service3 as sendpt2screen, s.service4 as startscreen ,
s.service11 as send2doctor, s.service5 as startexam,s.service12 as finishexam,
sec_to_time(time_to_sec(service4)-time_to_sec(service3)) as waitforscreen,
sec_to_time(time_to_sec(service11)-time_to_sec(service4)) as timetoscreen,
sec_to_time(time_to_sec(service5)-time_to_sec(service11)) as waitforexamine,
sec_to_time(time_to_sec(service12)-time_to_sec(service5)) as timetoexamine,
sec_to_time(time_to_sec(service12)-time_to_sec(service3)) as timefromvsttime2finishexam,
sec_to_time(time_to_sec(service12)-time_to_sec(service3)) as timefromvsttime2finishexam2
from service_time s
where s.vstdate between '2006-06-27' and '2006-06-27'
and s.service3 is not null and s.service4 is not null and
s.service5 is not null and s.service11 is not null and s.service12 is not null and
s.service3 >= '06:00:00' and s.service12 <='16:00:30' and
s.service11>=s.service4 and s.service5>=s.service11 and s.service12>=s.service5
-
เรียน อ.ชัยพร ช่วยแนะนำด้วยครับ
-
ไม่ทราบว่ามีบัญหากับช่วงวันที่มันไม่มีข้อมูลหรือเปล่าครับ
-
มีข้อมูลครับ อาจารย์
-
ในการนำ Query ไปสร้างเป็น Custom report หาก parameter ที่ใส่มีเครื่องหมาย colon (เช่นข้อความในรูปแบบของเวลา) ให้ใช้เครื่องหมาย - แทนเครื่องหมาย colon ก่อนครับ ดังนั้นเวลาทำรายงานจะไม่เห็นข้อมูล แต่เวลานำมาใช้จะเห็นข้อมูลครับ
-
เรียน อ.ชัยพร เปลี่ยน '06:00:00' เป็น '06-00-00' แล้วใน report designer เมื่อเข้า HOSXP แล้วยังพบข้อความ 'Range check error' เหมือนเดิมครับ ต้องแก้ไขอะไรอีกหรือไม่ (หมายเหตุ กำหนด parameter เฉพาะวันที่ครับ เวลาไม่ได้กำหนด) ขอบคุณครับ
-
ยังพบปัญหาเช่นเดิมครับ (fileversion 2.49.7.43 รพ.กาญจนดิษฐ์)
-
ผมเคยเจอครับ..ปัญหาเป็นตรงที่ ช่วงระยะเวลาวันที่ครับผม..ลองเปลี่ยนช่วงวันที่ที่มีข้อมูลดูครับ..หมายถึง ช่วงระยะเวลาที่ใช้งานโปรแกรมดู... ไม่ก็ลองเอาไฟล์นี้ไปทดสอบดูครับ..โหลดมาจากของ อ.อ๊อด เอาไปเขียนภาษาไทยเพิ่ม เอาไปเปลี่ยนช่วงวันที่มา..