BMS-HOSxP Community

HOSxP => Report Exchange => ข้อความที่เริ่มโดย: patoona49 ที่ กันยายน 27, 2012, 10:14:58 AM

หัวข้อ: เรื่อง code ของ RCPT-FORM ครับ
เริ่มหัวข้อโดย: patoona49 ที่ กันยายน 27, 2012, 10:14:58 AM
มันเป็น SubReport ครับ พอดี Boss อยากให้แสดงรายละเอียดของยานะครับ
มันไม่ออกชื่อรายการยาครับ ออกแต่ราคายาแต่ละรายการ  แต่ค่าบริการอื่นๆออกครบหมดครับ
ไม่ทราบว่าผิดตรงไหน  แนะนำด้วยครับ ???

begin

ChangeDBPipeLineLink1SQL('select a.icode,a.sum_price,a.finance_number,c.billcode,c.billnumber,a.sub_type,a.an, '+
' b.std_group,d.print_detail,concat(s.name," ( ",c.billcode," ) "," ( ",c.billnumber," ) ") as drugitemsname  '+
' from opitemrece a '+
' left outer join income b on a.income=b.income '+

' left outer join s_drugitems s on a.icode=s.icode '+
' left outer join nondrugitems c on s.icode=c.icode '+
' left outer join income_std_group d on b.std_group=d.std_group '+
' where d.print_detail="Y" '+
' order by b.std_group limit 0');

end;
หัวข้อ: Re: เรื่อง code ของ RCPT-FORM ครับ
เริ่มหัวข้อโดย: pop_hosxp ที่ กันยายน 27, 2012, 10:23:12 AM
มันเป็น SubReport ครับ พอดี Boss อยากให้แสดงรายละเอียดของยานะครับ
มันไม่ออกชื่อรายการยาครับ ออกแต่ราคายาแต่ละรายการ  แต่ค่าบริการอื่นๆออกครบหมดครับ
ไม่ทราบว่าผิดตรงไหน  แนะนำด้วยครับ ???

begin

ChangeDBPipeLineLink1SQL('select a.icode,a.sum_price,a.finance_number,c.billcode,c.billnumber,a.sub_type,a.an, '+
' b.std_group,d.print_detail,concat(s.name," ( ",c.billcode," ) "," ( ",c.billnumber," ) ") as drugitemsname  '+
' from opitemrece a '+
' left outer join income b on a.income=b.income '+

' left outer join s_drugitems s on a.icode=s.icode '+
' left outer join nondrugitems c on s.icode=c.icode '+
' left outer join income_std_group d on b.std_group=d.std_group '+
' where d.print_detail="Y" '+
' order by b.std_group limit 0');

end;

ต้องแก้ตรง detail ของ report อีกที่หนึ่งครับ
หัวข้อ: Re: เรื่อง code ของ RCPT-FORM ครับ
เริ่มหัวข้อโดย: patoona49 ที่ กันยายน 27, 2012, 10:52:15 AM
เอางี้ละกันครับ ช่วยดูก็ได้นะครับ ::) ;D