BMS-HOSxP Community
HOSxP => แจ้งปัญหา / ขอความช่วยเหลือ => ข้อความที่เริ่มโดย: mixer_79 ที่ สิงหาคม 06, 2011, 14:57:55 PM
-
ช่วยดูฟอร์มพิมพ์ใบIMAGE LABหน่อย ครับ ตามรูป ครับ
1.ผมออกแบบใน report Designer แล้วลอง preview ดู ก็ออกมาตามที่ออกแบบ แต่เมื่อเข้าไปพิมพ์ฟอร์มที่ออกแบบในหน้ารายงานห้องแล็บ กลับไม่ออก หน้าฟอร์มให้ เป็นเพราะอะไรครับ ช่วยแนะนำด้วยครับ
2. ในฟอร์มตัวนี้ผมอยากให้มันออกทุกหน้าที่เราสแกน แต่ผมทำแล้วออกหน้าเดียว พยาบาลทำแบบ subreport แต่ยังไม่เก่งเลยทำไม่ได้ อ.ท่านใดทำได้ช่วยแนะนำหน่อยนะครับ...
ขอบคุณครับ
-
UP... ;D ;D
-
ลองเอาไปปรับใช้อยู่นะครับ
-
อ.อาร์ม ครับ ถ้าในกรณีที่มีการสแกนใน1visit มากกว่า1ภาพ อ.อาร์มช่วยทำให้หน่อยได้ไหมครับ ผมเขียนแล้ว..งง นะครับ.
ขอบคุณล่วงหน้าครับ..
-
เขียนแบบนี้ครับ
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
-
ขอบคุณครับ อ.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');
-
ขอขอบคุณ อ.MN และอ.อาร์ม มากครับ..
-
ผมปรับ รูปแบบนิดหน่อย ครับ ต่อยอดจากอาจารย์
ลองเอาไปใช้ดูครับ