=? and g.FYRQ <=? order by d.JJYS ]]>

12

93

93

=? and g.FYTIME <=? order by d.JJYS ]]>

12

93

93

=? and g.FYRQ <=? union all select b.yzxpkey,b.yzmc,c.wzgg,a.YZSL,a.TYSL,f.ZHXS,c.JBDW,f.RKDW,d.JJYS,d.JJKS,f.FYZL,e.jbdj,b.YPYZJBJG,f.dwview,g.FYTIME FYRQ,e.YXQ,e.PH,c.ZCZH,c.wzcs,rkd.GYS from HIS_MMS_ZYFYMXB a left join HIS_YZ_MXB b on a.YZMX=b.PKEY and a.JGID=b.JGID left join HIS_MMS_WZZD c on a.YZXPKEY=c.WZBM left join HIS_JZ_BASEINFO d on a.JZPKEY=d.pkey and a.JGID=d.JGID left join HIS_KSKC_PC e on a.KSKCPCPKEY=e.pkey and a.JGID=e.JGID left join HIS_SFX f on a.yzxpkey=f.bm and a.JGID=f.JGID left join HIS_MMS_ZYFYZB g on a.FYBPKEY=g.pkey and a.JGID=g.JGID left join HIS_MMS_KC_RKD_MX rkmx on e.pkey=rkmx.KSKC_PC_PKEY and e.JGID=rkmx.JGID left join HIS_MMS_KC_RKD rkd on rkmx.djh=rkd.djh and rkmx.JGID=rkd.JGID where a.JGID=? #ypbm# and g.FYTIME >=? and g.FYTIME <=? ) ORDER BY JJYS ]]>

12

93

93

12

93

93

select '' 编码, '' 耗材名称, '' 规格, '' 单位数量,'' 单位, '' 成本单价, '' 成本金额, '' 零售单价 ,'' 零售金额, '' 单价差额, '' 总金额差, '' 医生,'' 科室, '' 费用类别,'' 有效期,'' 批次,'' 批准文号,'' 生产厂家,'' 供应商 from dual where 1=2 select '' 编码, '' 耗材名称, '' 规格, '' 单位数量,'' 单位,'' 成本金额, '' 零售金额, '' 总金额差, '' 组织结构,'' 费用类别,'' 有效期,'' 批次,'' 注册证号,'' 生产厂家,'' 供应商 from dual where 1=2 =? and g.FYRQ <=? union all select b.yzxpkey,b.yzmc,c.WZGG,a.yzsl,a.tysl,(nvl(a.YZSL,0)-nvl(a.TYSL,0)) fysl,(nvl(a.YZSL,0)-nvl(a.TYSL,0))*e.jbdj cbje,(nvl(a.YZSL,0)-nvl(a.TYSL,0))* b.YPYZJBJG xsje,f.ZHXS,c.JBDW,f.RKDW,d.JJYS,f.FYZL,f.dwview,e.YXQ,e.PH,c.ZCZH,c.WZCS,rkd.GYS from HIS_MMS_ZYFYMXB a left join HIS_YZ_MXB b on a.YZMX=b.PKEY and a.JGID=b.JGID left join HIS_MMS_WZZD c on a.YZXPKEY=c.WZBM left join HIS_JZ_BASEINFO d on a.JZPKEY=d.pkey and a.JGID=d.JGID left join HIS_KSKC_PC e on a.KSKCPCPKEY=e.pkey and a.JGID=e.JGID left join HIS_SFX f on a.yzxpkey=f.bm and a.JGID=f.JGID left join HIS_MMS_ZYFYZB g on a.FYBPKEY=g.pkey and a.JGID=g.JGID left join HIS_MMS_KC_RKD_MX rkmx on e.pkey=rkmx.KSKC_PC_PKEY and e.JGID=rkmx.JGID left join HIS_MMS_KC_RKD rkd on rkmx.djh=rkd.djh and rkmx.JGID=rkd.JGID where a.JGID=? #ypbm# and g.FYTIME >=? and g.FYTIME <=? ) group by yzxpkey,yzmc,WZGG,ZHXS,JBDW,RKDW,JJYS,FYZL,dwview,yxq,ph,ZCZH,WZCS,GYS ORDER BY JJYS ]]>

12

93

93

12

93

93

=? and g.FYTIME <=? ) group by yzxpkey,yzmc,WZGG,ZHXS,JBDW,RKDW,JJYS,FYZL,dwview,yxq,ph,ZCZH,WZCS,GYS ORDER BY JJYS ]]>

12

93

93

=? and g.FYRQ <=? ) group by yzxpkey,yzmc,WZGG,ZHXS,JBDW,RKDW,JJYS,FYZL,dwview,YXQ,PH,ZCZH,WZCS,GYS ORDER BY JJYS ]]>

12

93

93

=? and g.FYRQ <=? union all select b.yzxpkey,b.yzmc,c.WZGG,a.yzsl,a.tysl,(nvl(a.YZSL,0)-nvl(a.TYSL,0)) fysl,(nvl(a.YZSL,0)-nvl(a.TYSL,0))*e.jbdj cbje,(nvl(a.YZSL,0)-nvl(a.TYSL,0))* b.YPYZJBJG xsje,f.ZHXS,c.JBDW,f.RKDW,d.JJKS,f.FYZL,f.dwview,e.YXQ,e.PH,c.ZCZH,c.WZCS,rkd.GYS from HIS_MMS_ZYFYMXB a left join HIS_YZ_MXB b on a.YZMX=b.PKEY and a.JGID=b.JGID left join HIS_MMS_WZZD c on a.YZXPKEY=c.WZBM left join HIS_JZ_BASEINFO d on a.JZPKEY=d.pkey and a.JGID=d.JGID left join HIS_KSKC_PC e on a.KSKCPCPKEY=e.pkey and a.JGID=e.JGID left join HIS_SFX f on a.yzxpkey=f.bm and a.JGID=f.JGID left join HIS_MMS_ZYFYZB g on a.FYBPKEY=g.pkey and a.JGID=g.JGID left join HIS_MMS_KC_RKD_MX rkmx on e.pkey=rkmx.KSKC_PC_PKEY and e.JGID=rkmx.JGID left join HIS_MMS_KC_RKD rkd on rkmx.djh=rkd.djh and rkmx.JGID=rkd.JGID where a.JGID=? #ypbm# and g.FYTIME >=? and g.FYTIME <=? ) group by yzxpkey,yzmc,WZGG,ZHXS,JBDW,RKDW,JJKS,FYZL,dwview,YXQ,PH,ZCZH,WZCS,GYS ORDER BY JJKS ]]>

12

93

93

12

93

93

=? and g.FYTIME <=? ) group by yzxpkey,yzmc,WZGG,ZHXS,JBDW,RKDW,JJKS,FYZL,dwview,YXQ,PH,ZCZH,WZCS,GYS ORDER BY JJKS ]]>

12

93

93

=? and g.FYRQ <=? ) group by yzxpkey,yzmc,WZGG,ZHXS,JBDW,RKDW,JJKS,FYZL,dwview,YXQ,PH,ZCZH,WZCS,GYS ORDER BY JJKS ]]>

12

93

93

= ? and rkd.ZDRQ <=? order by a.djh,a.pkey ]]> PKEYJGID

12

93

93

select '' 科室,'' 采购日期, '' 编码, '' 耗材名称, '' 规格, '' 单位数量,'' 包装,'' 进价, '' 进货金额, '' 有效期,'' 批次,'' 注册证号,'' 生产厂家,'' 供应商,'' 单据号,'' 制单人 from dual where 1=2 select '' 编码, '' 耗材名称, '' 规格, '' 单位数量,'' 包装,'' 注册证号,'' 生产厂家,'' 供应商,'' 单据号 from dual where 1=2 =? and fpb.SFRQ <=? union all select b.yzxpkey,b.yzmc,c.wzgg,a.YZSL,a.TYSL,f.ZHXS,c.JBDW,f.RKDW,d.JJYS,d.JJKS,f.FYZL,e.jbdj,b.YPYZJBJG,f.dwview,g.FYTIME FYRQ,e.YXQ,e.PH,c.ZCZH,c.wzcs,rkd.GYS from HIS_MMS_ZYFYMXB a left join HIS_YZ_MXB b on a.YZMX=b.PKEY and a.JGID=b.JGID left join HIS_MMS_WZZD c on a.YZXPKEY=c.WZBM left join HIS_JZ_BASEINFO d on a.JZPKEY=d.pkey and a.JGID=d.JGID left join HIS_KSKC_PC e on a.KSKCPCPKEY=e.pkey and a.JGID=e.JGID left join HIS_SFX f on a.yzxpkey=f.bm and a.JGID=f.JGID left join HIS_MMS_ZYFYZB g on a.FYBPKEY=g.pkey and a.JGID=g.JGID left join HIS_MMS_KC_RKD_MX rkmx on e.pkey=rkmx.KSKC_PC_PKEY and e.JGID=rkmx.JGID left join HIS_MMS_KC_RKD rkd on rkmx.djh=rkd.djh and rkmx.JGID=rkd.JGID right join HIS_SFZD_YZMXB h on b.pkey=h.yzmx and b.JGID=h.JGID left join HIS_MZJS_MZFPZB fpb on h.ZDZBPKEY=fpb.GLZDBPKEY and h.JGID=fpb.JGID where a.JGID=? #ypbm# and fpb.SFRQ >=? and fpb.SFRQ <=? ) ORDER BY JJYS ]]>

12

93

93

12

93

93

=? and fpb.SFRQ <=? order by d.JJYS ]]>

12

93

93

=? and fpb.SFRQ <=? order by d.JJYS ]]>

12

93

93

=? and fpb.SFRQ <=? union all select b.yzxpkey,b.yzmc,c.WZGG,a.yzsl,a.tysl,(nvl(a.YZSL,0)-nvl(a.TYSL,0)) fysl,(nvl(a.YZSL,0)-nvl(a.TYSL,0))*e.jbdj cbje,(nvl(a.YZSL,0)-nvl(a.TYSL,0))* b.YPYZJBJG xsje,f.ZHXS,c.JBDW,f.RKDW,d.JJYS,f.FYZL,f.dwview,e.YXQ,e.PH,c.ZCZH,c.WZCS,rkd.GYS from HIS_MMS_ZYFYMXB a left join HIS_YZ_MXB b on a.YZMX=b.PKEY and a.JGID=b.JGID left join HIS_MMS_WZZD c on a.YZXPKEY=c.WZBM left join HIS_JZ_BASEINFO d on a.JZPKEY=d.pkey and a.JGID=d.JGID left join HIS_KSKC_PC e on a.KSKCPCPKEY=e.pkey and a.JGID=e.JGID left join HIS_SFX f on a.yzxpkey=f.bm and a.JGID=f.JGID left join HIS_MMS_ZYFYZB g on a.FYBPKEY=g.pkey and a.JGID=g.JGID left join HIS_MMS_KC_RKD_MX rkmx on e.pkey=rkmx.KSKC_PC_PKEY and e.JGID=rkmx.JGID left join HIS_MMS_KC_RKD rkd on rkmx.djh=rkd.djh and rkmx.JGID=rkd.JGID right join HIS_SFZD_YZMXB h on b.pkey=h.yzmx and b.JGID=h.JGID left join HIS_MZJS_MZFPZB fpb on h.ZDZBPKEY=fpb.GLZDBPKEY and h.JGID=fpb.JGID where a.JGID=? #ypbm# and fpb.SFRQ >=? and fpb.SFRQ <=? ) group by yzxpkey,yzmc,WZGG,ZHXS,JBDW,RKDW,JJYS,FYZL,dwview,yxq,ph,ZCZH,WZCS,GYS ORDER BY JJYS ]]>

12

93

93

12

93

93

=? and fpb.SFRQ <=? ) group by yzxpkey,yzmc,WZGG,ZHXS,JBDW,RKDW,JJYS,FYZL,dwview,yxq,ph,ZCZH,WZCS,GYS ORDER BY JJYS ]]>

12

93

93

=? and fpb.SFRQ <=? ) group by yzxpkey,yzmc,WZGG,ZHXS,JBDW,RKDW,JJYS,FYZL,dwview,YXQ,PH,ZCZH,WZCS,GYS ORDER BY JJYS ]]>

12

93

93

=? and fpb.SFRQ <=? union all select b.yzxpkey,b.yzmc,c.WZGG,a.yzsl,a.tysl,(nvl(a.YZSL,0)-nvl(a.TYSL,0)) fysl,(nvl(a.YZSL,0)-nvl(a.TYSL,0))*e.jbdj cbje,(nvl(a.YZSL,0)-nvl(a.TYSL,0))* b.YPYZJBJG xsje,f.ZHXS,c.JBDW,f.RKDW,d.JJKS,f.FYZL,f.dwview,e.YXQ,e.PH,c.ZCZH,c.WZCS,rkd.GYS from HIS_MMS_ZYFYMXB a left join HIS_YZ_MXB b on a.YZMX=b.PKEY and a.JGID=b.JGID left join HIS_MMS_WZZD c on a.YZXPKEY=c.WZBM left join HIS_JZ_BASEINFO d on a.JZPKEY=d.pkey and a.JGID=d.JGID left join HIS_KSKC_PC e on a.KSKCPCPKEY=e.pkey and a.JGID=e.JGID left join HIS_SFX f on a.yzxpkey=f.bm and a.JGID=f.JGID left join HIS_MMS_ZYFYZB g on a.FYBPKEY=g.pkey and a.JGID=g.JGID left join HIS_MMS_KC_RKD_MX rkmx on e.pkey=rkmx.KSKC_PC_PKEY and e.JGID=rkmx.JGID left join HIS_MMS_KC_RKD rkd on rkmx.djh=rkd.djh and rkmx.JGID=rkd.JGID right join HIS_SFZD_YZMXB h on b.pkey=h.yzmx and b.JGID=h.JGID left join HIS_MZJS_MZFPZB fpb on h.ZDZBPKEY=fpb.GLZDBPKEY and h.JGID=fpb.JGID where a.JGID=? #ypbm# and fpb.SFRQ >=? and fpb.SFRQ <=? ) group by yzxpkey,yzmc,WZGG,ZHXS,JBDW,RKDW,JJKS,FYZL,dwview,YXQ,PH,ZCZH,WZCS,GYS ORDER BY JJKS ]]>

12

93

93

12

93

93

=? and fpb.SFRQ <=? ) group by yzxpkey,yzmc,WZGG,ZHXS,JBDW,RKDW,JJKS,FYZL,dwview,YXQ,PH,ZCZH,WZCS,GYS ORDER BY JJKS ]]>

12

93

93

=? and fpb.SFRQ <=? ) group by yzxpkey,yzmc,WZGG,ZHXS,JBDW,RKDW,JJKS,FYZL,dwview,YXQ,PH,ZCZH,WZCS,GYS ORDER BY JJKS ]]>

12

93

93