A,190.0063,127,10,-7,1 C,128.,190,16,5,0,0,0,0 S,SELECT sum(金额) as 金额 ,sum(自负金额) as 实收金额 FROM sfxm where 发票流水号=^/%1^ T,宋体,9,False,False,False,False,24.98753,7.84377,28.57503,3.175003,^/%4^, T,宋体,9,False,False,False,False,113,109.87716,30.16253,3.175003,^/YEAR^ ^/month^ ^/date^, T,宋体,9,False,False,False,False,102.57509,108.48129,15.87502,3.175003,^金额/cur^, T,宋体,9,False,False,False,False,113,80.69585,17.46252,3.175003,^/user^, T,宋体,9,False,False,False,False,19.72294,17.7626,26.98753,3.175003,NO:^/%1^, T,宋体,9,False,False,False,False,102.87509,15.1459,9.525009,3.175003,^金额/ucase^, A,165.30213,65.94796,10.74335,29,0 C,4,81.8313,0,0,0,0,0,0 S,SELECT left(rtrim(收费项目)+case when 通用名 is null then '' else '/'+通用名 end,22) as 名称,case when m_salelist.单号 is null then sfxm.金额 else m_salelist.金额 end as 金额 ,case when m_salelist.单号 is null then 1 else m_salelist.数量 end as 数量 FROM sfxm left outer join ndxx on ndxx.收费编号 =sfxm.编号 and sfxm.退费戳记=0 left outer join m_salelist on ndxx.单号=m_salelist.单号 where 发票流水号=^/%1^ T,宋体,9,False,False,False,False,1,1.322918,6.350006,3.175003,^名称^, T,宋体,9,False,False,False,False,1,47.322918,6.350006,3.175003,^数量^, T,宋体,9,False,False,False,False,1,58.83545,6.350006,3.175003,^金额/rcur^, A,190.0063,130.0001,-15,-16,0 C,128.,190,16,5,0,0,0,0 S,SELECT 结算名称,垫付金额 FROM menzdfjl inner join menzjsfs on menzdfjl.结算方式=menzjsfs.结算方式 where 发票流水号=^/%1^ T,宋体,9,False,False,False,False,21.98753,160.84377,28.57503,3.175003,^结算名称^:^垫付金额^元, A,190.0063,130.0001,-15,-16,0 C,128.,190,16,5,0,0,0,0 S,SELECT top 1 hzxx.编号 FROM hzxx inner join fp on hzxx.患者流水号=fp.患者流水号 where 发票编号=^/%1^ T,宋体,9,False,False,False,False,15.98753,160.84377,28.57503,3.175003,门诊编号:^编号^,