BMS-HOSxP Community

HOSxP => Report Exchange => ข้อความที่เริ่มโดย: Auing ที่ เมษายน 28, 2009, 11:47:19 AM

หัวข้อ: สิทธิผู้ป่วยใน Summary RG 501
เริ่มหัวข้อโดย: Auing ที่ เมษายน 28, 2009, 11:47:19 AM
ผมลองแก้ไขเพื่อที่จะแสดงสิทธิการรักษาในใบ Summay ของผู้ป่วยใน  แต่ทำใน  Report Designer  สิทธิของผู้ป่วยโชว์แต่เวลาสั่งพิมพ์ไม่โชว์มันเกิดอะไรขึ้นครับขออาจารย์ทั้งหลายชี้แนะด้วยครับ  ขอบคุณครับ

select p.*,i.*,n.*,pt.pttype,pt.name,n.pttypeno
from patient p, ipt i,an_stat n,pttype pt
where i.hn=p.hn and p.pttype=pt.pttype and i.an="500000346" and i.an=n.an
หัวข้อ: Re: สิทธิผู้ป่วยใน Summary RG 501
เริ่มหัวข้อโดย: pop_hosxp ที่ เมษายน 28, 2009, 12:26:56 PM
ลองแก้เป็นแบบนี้ครับ

select p.*,i.*,n.*,pt.pttype,pt.name,n.pttypeno
from patient p, ipt i,an_stat n,pttype pt
where i.hn=p.hn and i.pttype=pt.pttype and i.an="500000346" and i.an=n.an
หัวข้อ: Re: สิทธิผู้ป่วยใน Summary RG 501
เริ่มหัวข้อโดย: Auing ที่ เมษายน 28, 2009, 13:35:54 PM
select p.*,i.*,n.*,pt.pttype,pt.name,n.pttypeno
from patient p, ipt i,an_stat n,pttype pt
where i.hn=p.hn and i.pttype=pt.pttype and i.an="500000346" and i.an=n.an
[/quote]




//////////////
ยังเหมือนเดิมครับเวลาพิมพ์ไม่ยอมออก แต่ใน  Report desig  ออก
ลองแก้เป็นแบบนี้ครับ
หัวข้อ: Re: สิทธิผู้ป่วยใน Summary RG 501
เริ่มหัวข้อโดย: bbb3 ที่ เมษายน 28, 2009, 13:50:06 PM
งั้นลองเอาฟอร์มนี้ไปปรับดูครับ
หัวข้อ: Re: สิทธิผู้ป่วยใน Summary RG 501
เริ่มหัวข้อโดย: Khuad ที่ เมษายน 28, 2009, 14:04:04 PM
select p.*,i.*,n.*,pt.pttype,pt.name,n.pttypeno
from patient p, ipt i,an_stat n,pttype pt
where i.hn=p.hn and i.pttype=pt.pttype and i.an="500000346" and i.an=n.an


//////////////
ยังเหมือนเดิมครับเวลาพิมพ์ไม่ยอมออก แต่ใน  Report desig  ออก
ลองแก้เป็นแบบนี้ครับ

... แก้คำสั่งผิดที่ครับ   ต้องไปแก้คำสั่งในตัวรายงาน ที่แท็ป Calc ของ KSK ReportBuilder ครับ...

... ที่  procedure GlobalOnCreate;   ตรง ChangeReportSQL   ผมลองแก้ให้แล้วลองทดสอบดูนะครับ ...  :D ...
หัวข้อ: Re: สิทธิผู้ป่วยใน Summary RG 501
เริ่มหัวข้อโดย: Auing ที่ เมษายน 29, 2009, 08:47:55 AM
ขอบคุณครับสำหรับทุกๆคำตอบที่แนะนำและแก้ไข... :D :D ;)