BMS-HOSxP Community
HOSxP => แจ้งปัญหา / ขอความช่วยเหลือ => ข้อความที่เริ่มโดย: prinn ที่ เมษายน 27, 2010, 16:33:37 PM
-
ในหน้าจอ จำหน่ายผู้ป่วย ผมติ๊กพิมพ์ summary discharge เลือกเครื่องพิมพ์และฟอร์มแล้ว
ลอง preview ได้ครับ
แต่พอบันทึก หลังจากลง discharge มันขึ้น error แบบนี้ครับ
(http://img101.imageshack.us/img101/3600/27042553163027.png)
ใครเคยเจอมั่งครับ แก้ยังไงดี ลองหาดูในเว็บนี้ เจออาการคล้าย ๆ ก็ลองแก้ตามแล้วก็ไม่ได้ครับ
อาจารย์ช่วยทีครับ
-
hosxp version ไหนครับ
ดูจาก error ต้องส่งฟอร์ม ขึ้นมาด้วยครับ
ต้องปรับ sql ใหม่
-
hosxp version 53.3.31 ครับ
แนบฟอร์ม ที่ใช้มาด้วยครับ ขอบคุณครับ
-
ลองไล่ดูใน 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 แบบที่แนบด้านบนเลยครับ
-
ได้แล้วครับ
แก้ไข form ward-discharge1 ให้เป็นแบบเดียวกับ custom report ไม่รู้จะมีผลกับตัวอื่นหรือปล่าว แต่ก็ใช้งานได้แล้วครับ
ขอบคุณน้องอาร์ม รพร.ด่านซ้ายครับ ที่ให้คำชี้แนะ
-
รบกวนขอรายละเอียดหน่อยครับว่าต้องไปแก้ไขอย่างไร
-
อยากพิมพ์เหมือนกันครับ ไม่ทราบว่าเงื่อนไขขึ้นอยู่กับตัวใดบ้างครับ เลือกฟอร์มแล้วขึ้นกระดาษเปล่าครับผม
-
ฟอร์มที่สั่งพิมพ์ครับ