BMS-HOSxP Community

HOSxP => แจ้งปัญหา / ขอความช่วยเหลือ => ข้อความที่เริ่มโดย: prinn ที่ เมษายน 27, 2010, 16:33:37 PM

หัวข้อ: ช่วยด้วยครับ ติ๊ก พิมพ์ summary discharge แล้ว error ครับ
เริ่มหัวข้อโดย: prinn ที่ เมษายน 27, 2010, 16:33:37 PM
ในหน้าจอ จำหน่ายผู้ป่วย ผมติ๊กพิมพ์ summary discharge เลือกเครื่องพิมพ์และฟอร์มแล้ว
ลอง preview ได้ครับ
แต่พอบันทึก หลังจากลง discharge มันขึ้น error แบบนี้ครับ

(http://img101.imageshack.us/img101/3600/27042553163027.png)

ใครเคยเจอมั่งครับ แก้ยังไงดี ลองหาดูในเว็บนี้ เจออาการคล้าย ๆ ก็ลองแก้ตามแล้วก็ไม่ได้ครับ
อาจารย์ช่วยทีครับ
หัวข้อ: Re: ช่วยด้วยครับ ติ๊ก พิมพ์ summary discharge แล้ว error ครับ
เริ่มหัวข้อโดย: doramon ที่ เมษายน 27, 2010, 16:35:50 PM
hosxp version ไหนครับ

ดูจาก error ต้องส่งฟอร์ม ขึ้นมาด้วยครับ

ต้องปรับ sql ใหม่
หัวข้อ: Re: ช่วยด้วยครับ ติ๊ก พิมพ์ summary discharge แล้ว error ครับ
เริ่มหัวข้อโดย: prinn ที่ เมษายน 28, 2010, 09:01:30 AM
hosxp version 53.3.31 ครับ
แนบฟอร์ม ที่ใช้มาด้วยครับ ขอบคุณครับ
หัวข้อ: Re: ช่วยด้วยครับ ติ๊ก พิมพ์ summary discharge แล้ว error ครับ
เริ่มหัวข้อโดย: prinn ที่ เมษายน 28, 2010, 09:53:42 AM
ลองไล่ดูใน sql trac แล้วเจอตัวนี้ครับ
INSERT INTO ksklog (ksklog_id,logtime,loginname,tablename,modifytype,detail,old_delta,new_delta,log_id,computer_name) VALUES (126226,'2010-04-28 09:36:09','harin','ERROR','RB-PRINT','Report Module Has Been Crash with message [SQL Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near \'declare @xid char(100)\r\ndeclare @rn char(100)\r\ndeclare @dchdo',NULL,NULL,NULL,'ADMIN-ONE')
insert into replicate_log (`event_time`,`client`,`sql`) values (current_timestamp,'ADMIN-ONE','INSERT INTO ksklog (ksklog_id,logtime,loginname,tablename,modifytype,detail,old_delta,new_delta,log_id,computer_name) VALUES (126226,\'2010-04-28 09:36:09\',\'harin\',\'ERROR\',\'RB-PRINT\',\'Report Module Has Been Crash with message [SQL Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near \\\'declare @xid char(100)\\r\\ndeclare @rn char(100)\\r\\ndeclare @dchdo\',NULL,NULL,NULL,\'ADMIN-ONE\')')
select * from reporttemplate where name='WARD-DISCHARGE1'
select * from reporttemplate where name='WARD-DISCHARGE1'


ไม่ทราบ WARD-DISCHARGE1 มีไว้ทำไรเหรอครับ เพราะเข้าไปดูใน report design ก็ขึ้น error แบบที่แนบด้านบนเลยครับ
หัวข้อ: Re: ช่วยด้วยครับ ติ๊ก พิมพ์ summary discharge แล้ว error ครับ
เริ่มหัวข้อโดย: prinn ที่ เมษายน 28, 2010, 12:01:53 PM
ได้แล้วครับ
แก้ไข form ward-discharge1 ให้เป็นแบบเดียวกับ custom report ไม่รู้จะมีผลกับตัวอื่นหรือปล่าว แต่ก็ใช้งานได้แล้วครับ

ขอบคุณน้องอาร์ม รพร.ด่านซ้ายครับ ที่ให้คำชี้แนะ
หัวข้อ: Re: ช่วยด้วยครับ ติ๊ก พิมพ์ summary discharge แล้ว error ครับ
เริ่มหัวข้อโดย: wirachai ที่ มิถุนายน 19, 2013, 15:30:54 PM
รบกวนขอรายละเอียดหน่อยครับว่าต้องไปแก้ไขอย่างไร
หัวข้อ: Re: ช่วยด้วยครับ ติ๊ก พิมพ์ summary discharge แล้ว error ครับ
เริ่มหัวข้อโดย: mslangu ที่ พฤศจิกายน 12, 2013, 16:08:24 PM
อยากพิมพ์เหมือนกันครับ ไม่ทราบว่าเงื่อนไขขึ้นอยู่กับตัวใดบ้างครับ เลือกฟอร์มแล้วขึ้นกระดาษเปล่าครับผม
หัวข้อ: Re: ช่วยด้วยครับ ติ๊ก พิมพ์ summary discharge แล้ว error ครับ
เริ่มหัวข้อโดย: mslangu ที่ พฤศจิกายน 12, 2013, 16:21:36 PM
ฟอร์มที่สั่งพิมพ์ครับ