BMS-HOSxP Community
HOSxP => แจ้งปัญหา / ขอความช่วยเหลือ => ข้อความที่เริ่มโดย: natch2005 ที่ พฤศจิกายน 27, 2008, 10:16:32 AM
-
ห้องผ่าตัด ต้องการข้อมูลชนิดการผ่าตัดรายวัน เช่น ผ่าตัดใหญ่ กีราย ผ่าตัดเล็กกี่ราย... ผมต้องหาข้อมูลในตารางใหนครับ หาไม่พบครับ
-
ห้องผ่าตัด ต้องการข้อมูลชนิดการผ่าตัดรายวัน เช่น ผ่าตัดใหญ่ กีราย ผ่าตัดเล็กกี่ราย... ผมต้องหาข้อมูลในตารางใหนครับ หาไม่พบครับ
ลองนำไปปรับใช้ดูครับ... ;D
-
ทำไม error syntax ครับ ผมก็เช็คใน navicat แล้วด้วยน่ะ มันไม่ error แต่ไหงในโปรแกรมมันฟ้องอย่างนี้ครับ รบกวนดูให้หน่อยครับ พยามยามอย่างเต็มที่แล้ว อีกอย่างหนึ่งนะครับ ถ้าเราต้องการเปลี่ยน param ที่อยู่ใน report designer ต้องทำอย่างไรครับ เช่น ให้เป็นการเลือกวันที่แทนครับ
-
ลองอันนี้ดูนะครับ natch2005 จิง ๆ แล้วก็ปรับจากของคุณ nuttavut นั่นแหละครับ ;D ;D
-
ทำไม error syntax ครับ ผมก็เช็คใน navicat แล้วด้วยน่ะ มันไม่ error แต่ไหงในโปรแกรมมันฟ้องอย่างนี้ครับ รบกวนดูให้หน่อยครับ พยามยามอย่างเต็มที่แล้ว อีกอย่างหนึ่งนะครับ ถ้าเราต้องการเปลี่ยน param ที่อยู่ใน report designer ต้องทำอย่างไรครับ เช่น ให้เป็นการเลือกวันที่แทนครับ
... รู้สึกว่า parameter ของรายงานมันจะขยับตำแหน่งไปครับ....
...ให้ไปแก้ที่คำสั่งรายงาน ตรงบรรทัดสุดท้าย order by scount desc ปรับตำแหน่งของ parameter ใหม่ให้ตรงกับ desc (อักษรเป็นสีน้ำเงินมีเส้นใต้) แล้ว save รายงาน แล้วลองทดสอบใหม่ครับ...
...ส่วนเรื่องการเปลี่ยน parameter ให้เป็นการเลือกวันที่นั้น รายงานนี้ก็เป็นวันที่อยู่แล้วครับ แต่ถ้าหมายถึงรายงานอื่นๆ ก็มีหลายกรณีครับ อยู่ที่ว่าเรากำหนดที่ไหน เช่น ที่คำสั่งรายงาน หรือในตัวรายงาน .... :D....
-
ห้องผ่าตัด ต้องการข้อมูลชนิดการผ่าตัดรายวัน เช่น ผ่าตัดใหญ่ กีราย ผ่าตัดเล็กกี่ราย... ผมต้องหาข้อมูลในตารางใหนครับ หาไม่พบครับ
ลองนำไปปรับใช้ดูครับ... ;D
ต้องการแก้คำสั่งให้ เรียงจาก ชื่อการผ่าตัดแทน ชนิดการผ่าตัด ต้องแก้คำสั่งยังไงครับ
-
แก้คำสั่งจาก t.name เป็น l.operation_name as name ดังนี้ครับ
changereportsql('select l.operation_type_id,l.operation_name as name,count(*)as scount from operation_list l ,operation_type t '+
' where t.operation_type_id = l.operation_type_id and request_date between "'+formatdatetime('yyyy-mm-dd',rxdate1)+'" and "'+
formatdatetime('yyyy-mm-dd',rxdate2)+'" '+
' group by l.operation_type_id '+
' order by scount desc');
-
แก้คำสั่งจาก t.name เป็น l.operation_name as name ดังนี้ครับ
changereportsql('select l.operation_type_id,l.operation_name as name,count(*)as scount from operation_list l ,operation_type t '+
' where t.operation_type_id = l.operation_type_id and request_date between "'+formatdatetime('yyyy-mm-dd',rxdate1)+'" and "'+
formatdatetime('yyyy-mm-dd',rxdate2)+'" '+
' group by l.operation_type_id '+
' order by scount desc');
changereportsql('select l.operation_type_id,l.operation_name as name,count(*)as scount from operation_list l ,operation_type t '+
' where t.operation_type_id = l.operation_type_id and request_date between "'+formatdatetime('yyyy-mm-dd',rxdate1)+'" and "'+
formatdatetime('yyyy-mm-dd',rxdate2)+'" '+
' group by l.operation_name '+
' order by scount desc');
ต้องเปลี่ยนตรงนี้ด้วยหรือเปล่าครับ (สีแดง)
-
แก้คำสั่งจาก t.name เป็น l.operation_name as name ดังนี้ครับ
changereportsql('select l.operation_type_id,l.operation_name as name,count(*)as scount from operation_list l ,operation_type t '+
' where t.operation_type_id = l.operation_type_id and request_date between "'+formatdatetime('yyyy-mm-dd',rxdate1)+'" and "'+
formatdatetime('yyyy-mm-dd',rxdate2)+'" '+
' group by l.operation_type_id '+
' order by scount desc');
changereportsql('select l.operation_type_id,l.operation_name as name,count(*)as scount from operation_list l ,operation_type t '+
' where t.operation_type_id = l.operation_type_id and request_date between "'+formatdatetime('yyyy-mm-dd',rxdate1)+'" and "'+
formatdatetime('yyyy-mm-dd',rxdate2)+'" '+
' group by l.operation_name '+
' order by scount desc');
ต้องเปลี่ยนตรงนี้ด้วยหรือเปล่าครับ (สีแดง)
ใช่ครับ ตามนั้นเลย ลืมแก้ให้ด้วย ;) ;)