BMS-HOSxP Community
HOSxP => แจ้งปัญหา / ขอความช่วยเหลือ => ข้อความที่เริ่มโดย: wiphusit ที่ กรกฎาคม 17, 2013, 20:46:37 PM
-
select o.hn,max(o.vstdate)as vstdate,o.fbs
from opdscreen o
inner join clinicmember c on c.hn=o.hn and c.clinic=001
where o.vstdate between "2012-10-01" and "2012-10-10"
and o.fbs <>""
-
อยู่ใน clinicmember แล้ว
-
มันไม่ update ครับต้องเข้าไปบันทึกทีละรายถึงจะ update
น่าจะมีปุ่มให้ recalc ครับ
-
lab_fbs_code :=GetSQLStringData('select lab_items_code from lab_items '+
' where lab_items_name=(select sys_value from sys_var where sys_name="lab_link_fbs" limit 1)');
Value := GetSQLIntegerData('select lo.lab_order_result from lab_head lh '+
' left outer join lab_order lo on lo.lab_order_number=lh.lab_order_number '+
' where lo.lab_items_code= "'+lab_fbs_code+'" '+
' and lh.order_date between "'+ds1+'" and "'+ds2+'" '+
' and lh.hn="' +DBPipeline['hn'] + '" order by order_date desc limit 1');
-
ขอบคุณครับ