BMS-HOSxP Community

HOSxP => แจ้งปัญหา / ขอความช่วยเหลือ => ข้อความที่เริ่มโดย: mixer_79 ที่ สิงหาคม 06, 2011, 14:57:55 PM

หัวข้อ: ช่วยดูฟอร์มพิมพ์ใบIMAGE LABหน่อย ครับ
เริ่มหัวข้อโดย: mixer_79 ที่ สิงหาคม 06, 2011, 14:57:55 PM
ช่วยดูฟอร์มพิมพ์ใบIMAGE LABหน่อย ครับ ตามรูป ครับ
1.ผมออกแบบใน report Designer แล้วลอง preview ดู ก็ออกมาตามที่ออกแบบ  แต่เมื่อเข้าไปพิมพ์ฟอร์มที่ออกแบบในหน้ารายงานห้องแล็บ กลับไม่ออก หน้าฟอร์มให้ เป็นเพราะอะไรครับ  ช่วยแนะนำด้วยครับ
 2. ในฟอร์มตัวนี้ผมอยากให้มันออกทุกหน้าที่เราสแกน แต่ผมทำแล้วออกหน้าเดียว พยาบาลทำแบบ subreport แต่ยังไม่เก่งเลยทำไม่ได้ อ.ท่านใดทำได้ช่วยแนะนำหน่อยนะครับ...

ขอบคุณครับ
หัวข้อ: Re: ช่วยดูฟอร์มพิมพ์ใบIMAGE LABหน่อย ครับ
เริ่มหัวข้อโดย: mixer_79 ที่ สิงหาคม 07, 2011, 13:59:00 PM
UP... ;D ;D
หัวข้อ: Re: ช่วยดูฟอร์มพิมพ์ใบIMAGE LABหน่อย ครับ
เริ่มหัวข้อโดย: armds ที่ สิงหาคม 07, 2011, 21:20:08 PM
ลองเอาไปปรับใช้อยู่นะครับ
หัวข้อ: Re: ช่วยดูฟอร์มพิมพ์ใบIMAGE LABหน่อย ครับ
เริ่มหัวข้อโดย: mixer_79 ที่ สิงหาคม 08, 2011, 10:22:22 AM
อ.อาร์ม ครับ ถ้าในกรณีที่มีการสแกนใน1visit มากกว่า1ภาพ อ.อาร์มช่วยทำให้หน่อยได้ไหมครับ ผมเขียนแล้ว..งง นะครับ.

ขอบคุณล่วงหน้าครับ..
หัวข้อ: Re: ช่วยดูฟอร์มพิมพ์ใบIMAGE LABหน่อย ครับ
เริ่มหัวข้อโดย: manoi ที่ สิงหาคม 08, 2011, 10:54:13 AM
เขียนแบบนี้ครับ

select image1 as scan_image from lab_order_image where lab_order_number = xxx and image1 is not null
union
select image2 as scan_image from lab_order_image where lab_order_number = xxx and image2 is not null
select image3 as scan_image from lab_order_image where lab_order_number = xxx and image3 is not null
select image4 as scan_image from lab_order_image where lab_order_number = xxx and image4 is not null
select image5 as scan_image from lab_order_image where lab_order_number = xxx and image5 is not null
หัวข้อ: Re: ช่วยดูฟอร์มพิมพ์ใบIMAGE LABหน่อย ครับ
เริ่มหัวข้อโดย: armds ที่ สิงหาคม 08, 2011, 11:06:26 AM
ขอบคุณครับ อ.mn 
ผมปรับแก้ไขแล้วลองเอาไปทดสอบดูนะครับ

เพิ่มโค้ดนี้ตาม อ.mn  ครับ
ChangeReportSQL(' '+
    ' select image1 as scan_image from lab_order_image where lab_order_number =  "'+GetUserParameter(0)+'" '+
    ' and image1 is not null                                                                         '+
    ' union                                                                                          '+
    ' select image2 as scan_image from lab_order_image where lab_order_number =  "'+GetUserParameter(0)+'" '+
    ' and image2 is not null                                                                         '+
    ' union                                                                                          '+
    ' select image3 as scan_image from lab_order_image where lab_order_number =  "'+GetUserParameter(0)+'" '+
    ' and image3 is not null                                                                         '+
    ' union                                                                                          '+
    ' select image4 as scan_image from lab_order_image where lab_order_number =  "'+GetUserParameter(0)+'" '+
    ' and image4 is not null                                                                         '+
    ' union                                                                                          '+
    ' select image5 as scan_image from lab_order_image where lab_order_number =  "'+GetUserParameter(0)+'" '+
    ' and image5 is not null');
หัวข้อ: Re: ช่วยดูฟอร์มพิมพ์ใบIMAGE LABหน่อย ครับ
เริ่มหัวข้อโดย: mixer_79 ที่ สิงหาคม 08, 2011, 11:43:27 AM
ขอขอบคุณ อ.MN และอ.อาร์ม มากครับ..
หัวข้อ: Re: ช่วยดูฟอร์มพิมพ์ใบIMAGE LABหน่อย ครับ
เริ่มหัวข้อโดย: smrmpo ที่ สิงหาคม 08, 2011, 13:37:51 PM
ผมปรับ รูปแบบนิดหน่อย ครับ ต่อยอดจากอาจารย์

ลองเอาไปใช้ดูครับ