ผู้เขียน หัวข้อ: เรียก custom report เรื่อง waiting time แล้วพบปัญหา  (อ่าน 7856 ครั้ง)

0 สมาชิก และ 1 บุคคลทั่วไป กำลังดูหัวข้อนี้

pramanut

  • บุคคลทั่วไป
เรียก custom report เรื่อง waiting time แล้วพบปัญหา
« เมื่อ: กันยายน 01, 2006, 01:27:09 AM »
0
ได้สร้าง 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

ออฟไลน์ tpramanut

  • Newbie
  • *
  • กระทู้: 9
  • Respect: +1
    • ดูรายละเอียด
Re: เรียก custom report เรื่อง waiting time แล้วพบปัญหา
« ตอบกลับ #1 เมื่อ: กันยายน 09, 2006, 07:01:50 AM »
0
เรียน อ.ชัยพร ช่วยแนะนำด้วยครับ
 

doramon

  • บุคคลทั่วไป
Re: เรียก custom report เรื่อง waiting time แล้วพบปัญหา
« ตอบกลับ #2 เมื่อ: กันยายน 09, 2006, 07:56:42 AM »
0
ไม่ทราบว่ามีบัญหากับช่วงวันที่มันไม่มีข้อมูลหรือเปล่าครับ

ออฟไลน์ tpramanut

  • Newbie
  • *
  • กระทู้: 9
  • Respect: +1
    • ดูรายละเอียด
Re: เรียก custom report เรื่อง waiting time แล้วพบปัญหา
« ตอบกลับ #3 เมื่อ: กันยายน 09, 2006, 08:04:00 AM »
0
มีข้อมูลครับ อาจารย์
 

ออฟไลน์ manoi

  • Hero Member
  • *****
  • กระทู้: 8,669
  • Respect: +170
    • ดูรายละเอียด
    • HOSxP Community Center
Re: เรียก custom report เรื่อง waiting time แล้วพบปัญหา
« ตอบกลับ #4 เมื่อ: กันยายน 09, 2006, 18:02:25 PM »
0
ในการนำ Query ไปสร้างเป็น Custom report หาก parameter ที่ใส่มีเครื่องหมาย colon (เช่นข้อความในรูปแบบของเวลา) ให้ใช้เครื่องหมาย - แทนเครื่องหมาย colon ก่อนครับ ดังนั้นเวลาทำรายงานจะไม่เห็นข้อมูล แต่เวลานำมาใช้จะเห็นข้อมูลครับ
HOSxP Project Manager / Cheif Developer / BMS MD

ออฟไลน์ tpramanut

  • Newbie
  • *
  • กระทู้: 9
  • Respect: +1
    • ดูรายละเอียด
Re: เรียก custom report เรื่อง waiting time แล้วพบปัญหา
« ตอบกลับ #5 เมื่อ: กันยายน 10, 2006, 09:45:49 AM »
0
เรียน อ.ชัยพร เปลี่ยน '06:00:00' เป็น '06-00-00' แล้วใน report designer เมื่อเข้า HOSXP แล้วยังพบข้อความ 'Range check error' เหมือนเดิมครับ ต้องแก้ไขอะไรอีกหรือไม่ (หมายเหตุ กำหนด parameter เฉพาะวันที่ครับ เวลาไม่ได้กำหนด) ขอบคุณครับ
 

ออฟไลน์ tpramanut

  • Newbie
  • *
  • กระทู้: 9
  • Respect: +1
    • ดูรายละเอียด
Re: เรียก custom report เรื่อง waiting time แล้วพบปัญหา
« ตอบกลับ #6 เมื่อ: กันยายน 13, 2006, 03:20:12 AM »
0
ยังพบปัญหาเช่นเดิมครับ (fileversion 2.49.7.43 รพ.กาญจนดิษฐ์)
 

ออฟไลน์ SBR10993

  • Full Member
  • ***
  • กระทู้: 182
  • อะจ๊ากกก..ย่ะ ย่ะ..
  • Respect: +1
    • ดูรายละเอียด
Re: เรียก custom report เรื่อง waiting time แล้วพบปัญหา
« ตอบกลับ #7 เมื่อ: กันยายน 13, 2006, 04:00:58 AM »
+1
ผมเคยเจอครับ..ปัญหาเป็นตรงที่ ช่วงระยะเวลาวันที่ครับผม..ลองเปลี่ยนช่วงวันที่ที่มีข้อมูลดูครับ..หมายถึง ช่วงระยะเวลาที่ใช้งานโปรแกรมดู... ไม่ก็ลองเอาไฟล์นี้ไปทดสอบดูครับ..โหลดมาจากของ อ.อ๊อด เอาไปเขียนภาษาไทยเพิ่ม เอาไปเปลี่ยนช่วงวันที่มา..
Mr.kanchit Pinitmontree
NongBualamphu Prov.Pub.Health
implimented on 14-07-2006 individual