parent
5399fbb39e
commit
edc23aba23
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1 +1 @@ |
||||
<?xml version="1.0" encoding="UTF-8"?>
<window size="927,550" title="合理用药" controlbutton="false,false,true">
<DxTitlePanel id="titlePanel1" text-align="left" title="合理用药" size="100,100" unit="%,%">
<DxDataGrid id="dbgrid1" ds1="kssdao" size="100,100" unit="%,%" showfoot1="true" location="0,0" tabindex="0" >
<column calc="true" fieldname="no" cellcolor="true" type="SERIALNUMBER_CELL" align="center" width="30">序号</column>
<column fieldname="指标名称" width="300" sort="true" >指标名称</column>
<column fieldname="指标数据" width="124" sort="true" >指标数据</column>
</DxDataGrid>
</DxTitlePanel>
<datasource>
<!-- <dao id="kjlypnum" type="1">
<sql>
select distinct count(yzxpkey) num from (select distinct yzmxb.yzxpkey from HIS_YB_JSB a
left join HIS_YB_DJ dj on a.JGID=dj.JGID and a.MDTRT_ID=dj.MDTRT_ID and a.IPT_NO=dj.IPT_NO
left join HIS_YB_SCMX c on a.JGID=c.JGID and c.IPT_OTP_NO=a.IPT_NO and c.MDTRT_ID=a.MDTRT_ID and c.SETL_ID=a.SETL_ID left join HIS_SFZD_SFXMXB sfxmxb on c.FEEDETL_SN=sfxmxb.pkey and c.JGID=sfxmxb.JGID left join HIS_YZ_MXB yzmxb on sfxmxb.YZMX=yzmxb.pkey and sfxmxb.JGID=yzmxb.JGID right join HIS_YPXX ypxx on sfxmxb.sfx=ypxx.bm left join HIS_JZ_BASEINFO f on yzmxb.jzpkey=f.pkey and yzmxb.JGID=f.JGID left join HIS_HZINFO g on yzmxb.hzpkey=g.pkey and yzmxb.JGID=g.JGID
where f.JZLX='M' and (yzmxb.yzlb ='01' or yzmxb.yzlb ='02' or yzmxb.yzlb ='03') and a.CXZT='0' and nvl(ypxx.ISKJY,0)=1 and a.JGID=? and f.jjrq between ? and ? )
</sql>
<fields>
<f name="num" type="8" />
</fields>
<parameter>
<p>12</p>
<p>93</p>
<p>93</p>
</parameter>
</dao> -->
<dao id="kjlypnum" type="1">
<sql><![CDATA[
SELECT
COUNT(1) num
FROM
(
SELECT
DISTINCT mx.SFX
FROM
HIS_GAT_YPCF_MXB mx
LEFT JOIN HIS_GAT_YPCF_ZB zb ON
mx.ZBPKEY = zb.PKEY
LEFT JOIN HIS_JZ_BASEINFO jz ON
zb.JGID = jz.JGID
AND zb.JZPKEY = jz.PKEY
LEFT JOIN HIS_YB_JSB js ON
zb.JGID = js.JGID
AND zb.IPT_NO = js.IPT_NO
WHERE
zb.JGID = ?
AND mx.GZFL LIKE 'KSS%'
AND zb.CFLX = '0'
--AND js.CXZT = '0'
AND zb.CFRQ >= ?
AND zb.CFRQ <= ?
)
]]></sql>
<fields>
<f name="num" type="8" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<!-- <dao id="kjlypnum_jzrq" type="1">
<sql><![CDATA[
SELECT
COUNT(1) num
FROM
(
SELECT
DISTINCT mx.SFX
FROM
HIS_GAT_YPCF_MXB mx
LEFT JOIN HIS_GAT_YPCF_ZB zb ON
mx.ZBPKEY = zb.PKEY
LEFT JOIN HIS_JZ_BASEINFO jz ON
zb.JGID = jz.JGID
AND zb.JZPKEY = jz.PKEY
LEFT JOIN HIS_YB_JSB js ON
zb.JGID = js.JGID
AND zb.IPT_NO = js.IPT_NO
WHERE
zb.JGID = ?
AND mx.GZFL LIKE 'KSS%'
AND zb.CFLX = '0'
AND js.CXZT = '0'
AND jz.jjrq >= ?
AND jz.jjrq <= ?
)
]]></sql>
<fields>
<f name="num" type="8" />
</fields>
<parameter>
<p>12</p>
<p>93</p>
<p>93</p>
</parameter>
</dao> -->
<dao id="kjlypnum_sfrq" type="1">
<sql><![CDATA[
SELECT
COUNT(1) num
FROM
(
SELECT
DISTINCT mx.SFX
FROM
HIS_GAT_YPCF_MXB mx
LEFT JOIN HIS_GAT_YPCF_ZB zb ON
mx.ZBPKEY = zb.PKEY
LEFT JOIN HIS_JZ_BASEINFO jz ON
zb.JGID = jz.JGID
AND zb.JZPKEY = jz.PKEY
LEFT JOIN HIS_YB_JSB js ON
zb.JGID = js.JGID
AND zb.IPT_NO = js.IPT_NO
WHERE
zb.JGID = ?
AND mx.GZFL LIKE 'KSS%'
AND zb.CFLX = '0'
AND js.CXZT = '0'
AND js.SETL_TIME >=?
AND js.SETL_TIME <=?
)
]]></sql>
<fields>
<f name="num" type="8" />
</fields>
<parameter>
<p>12</p>
<p>93</p>
<p>93</p>
</parameter>
</dao>
</datasource>
</window> |
||||
<?xml version="1.0" encoding="UTF-8"?>
<window size="927,550" title="合理用药" controlbutton="false,false,true">
<DxTitlePanel id="titlePanel1" text-align="left" title="合理用药" size="100,100" unit="%,%">
<DxDataGrid id="dbgrid1" ds1="kssdao" size="100,100" unit="%,%" showfoot1="true" location="0,0" tabindex="0" >
<column calc="true" fieldname="no" cellcolor="true" type="SERIALNUMBER_CELL" align="center" width="30">序号</column>
<column fieldname="指标名称" width="300" sort="true" >指标名称</column>
<column fieldname="指标数据" width="124" sort="true" >指标数据</column>
</DxDataGrid>
</DxTitlePanel>
<datasource>
<!-- <dao id="kjlypnum" type="1">
<sql>
select distinct count(yzxpkey) num from (select distinct yzmxb.yzxpkey from HIS_YB_JSB a
left join HIS_YB_DJ dj on a.JGID=dj.JGID and a.MDTRT_ID=dj.MDTRT_ID and a.IPT_NO=dj.IPT_NO
left join HIS_YB_SCMX c on a.JGID=c.JGID and c.IPT_OTP_NO=a.IPT_NO and c.MDTRT_ID=a.MDTRT_ID and c.SETL_ID=a.SETL_ID left join HIS_SFZD_SFXMXB sfxmxb on c.FEEDETL_SN=sfxmxb.pkey and c.JGID=sfxmxb.JGID left join HIS_YZ_MXB yzmxb on sfxmxb.YZMX=yzmxb.pkey and sfxmxb.JGID=yzmxb.JGID right join HIS_YPXX ypxx on sfxmxb.sfx=ypxx.bm left join HIS_JZ_BASEINFO f on yzmxb.jzpkey=f.pkey and yzmxb.JGID=f.JGID left join HIS_HZINFO g on yzmxb.hzpkey=g.pkey and yzmxb.JGID=g.JGID
where f.JZLX='M' and (yzmxb.yzlb ='01' or yzmxb.yzlb ='02' or yzmxb.yzlb ='03') and a.CXZT='0' and nvl(ypxx.ISKJY,0)=1 and a.JGID=? and f.jjrq between ? and ? )
</sql>
<fields>
<f name="num" type="8" />
</fields>
<parameter>
<p>12</p>
<p>93</p>
<p>93</p>
</parameter>
</dao> -->
<dao id="kjlypnum" type="1">
<sql><![CDATA[
SELECT
COUNT(1) num
FROM
(
SELECT
DISTINCT mx.SFX
FROM
HIS_GAT_YPCF_MXB mx
LEFT JOIN HIS_GAT_YPCF_ZB zb ON
mx.ZBPKEY = zb.PKEY
LEFT JOIN HIS_JZ_BASEINFO jz ON
zb.JGID = jz.JGID
AND zb.JZPKEY = jz.PKEY
WHERE
zb.JGID = ?
AND mx.GZFL LIKE 'KSS%'
AND zb.CFLX = '0'
AND zb.CFRQ >= ?
AND zb.CFRQ <= ?
)
]]></sql>
<fields>
<f name="num" type="8" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<!-- <dao id="kjlypnum_jzrq" type="1">
<sql><![CDATA[
SELECT
COUNT(1) num
FROM
(
SELECT
DISTINCT mx.SFX
FROM
HIS_GAT_YPCF_MXB mx
LEFT JOIN HIS_GAT_YPCF_ZB zb ON
mx.ZBPKEY = zb.PKEY
LEFT JOIN HIS_JZ_BASEINFO jz ON
zb.JGID = jz.JGID
AND zb.JZPKEY = jz.PKEY
LEFT JOIN HIS_YB_JSB js ON
zb.JGID = js.JGID
AND zb.IPT_NO = js.IPT_NO
WHERE
zb.JGID = ?
AND mx.GZFL LIKE 'KSS%'
AND zb.CFLX = '0'
AND js.CXZT = '0'
AND jz.jjrq >= ?
AND jz.jjrq <= ?
)
]]></sql>
<fields>
<f name="num" type="8" />
</fields>
<parameter>
<p>12</p>
<p>93</p>
<p>93</p>
</parameter>
</dao> -->
<dao id="kjlypnum_sfrq" type="1">
<sql><![CDATA[
SELECT
COUNT(1) num
FROM
(
SELECT
DISTINCT mx.SFX
FROM
HIS_GAT_YPCF_MXB mx
LEFT JOIN HIS_GAT_YPCF_ZB zb ON
mx.ZBPKEY = zb.PKEY
LEFT JOIN HIS_JZ_BASEINFO jz ON
zb.JGID = jz.JGID
AND zb.JZPKEY = jz.PKEY
LEFT JOIN HIS_MZJS_MZFPZB fp ON
zb.JGID = fp.JGID
AND fp.GLZDBPKEY = zb.ZDZBPKEY
WHERE
zb.JGID = ?
AND mx.GZFL LIKE 'KSS%'
AND zb.CFLX = '0'
AND fp.sfrq >=? AND fp.sfrq <=?
)
]]></sql>
<fields>
<f name="num" type="8" />
</fields>
<parameter>
<p>12</p>
<p>93</p>
<p>93</p>
</parameter>
</dao>
</datasource>
</window> |
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1,3 +1,3 @@ |
||||
<?xml version="1.0" encoding="UTF-8"?>
<window size="927,550" title="医生抗生素药品使用统计" controlbutton="false,false,true">
<DxDIVGrid bkcolor="255,255,255" class="LayoutManager" location="0,0" size="100,100" unit="%,%">
<row height="40" unit="px">
<col>
<DxPanelBar id="panelBar1" border-bottom="1px solid #b8ced7" border-top="1px solid #b8ced7" size="100,38" unit="%">
<item align="left" autoExtend="false">
<DxLabel id="label1" size="60,13" title="常用时段" />
<DxComboBox id="combobox1" size="140,28" />
</item>
<item align="left" autoExtend="false">
<DxLabel id="label2" size="60,13" title="开始日期" />
<DxDateTimePick id="datetimepicker1" size="140,28" type="datetime" />
</item>
<item align="left" autoExtend="false">
<DxLabel id="label3" size="60,13" title="结束日期" />
<DxDateTimePick id="datetimepicker2" size="140,28" type="datetime" />
</item>
<item align="left" autoExtend="false">
<DxLabel id="label4" size="35,13" title="医院" />
<DxComboBox id="dblookupcombobox1" size="140,28" />
</item>
</DxPanelBar>
</col>
</row>
<row height="40" unit="px">
<col>
<DxPanelBar id="panelBar2" size="100,38" unit="%">
<item align="left">
<DxLabel id="label4" size="96,13" title="类型" />
<DxComboBox id="combobox2" size="80,28" />
</item>
<item align="left">
<DxLabel id="label4" size="96,13" title="方式"/>
<DxComboBox id="combobox3" size="100,28" />
</item>
<item align="left" command="select" image="/resources/normal/query.png" title="查询" type="button" />
<item align="left" command="reset" image="/resources/normal/reset.png" title="重置" type="button" />
<item align="left" command="export" image="/resources/normal/export.png" color="#ffffff" bkcolor="#009688" title="导出" type="button" />
</DxPanelBar>
</col>
</row>
<row height="99">
<col>
<DxDataGrid ds="kjlypMxDaoNew" id="dbgrid1" showfoot="true" size="100,100" unit="%,%">
<column fieldname="医生" type="LABEL_CELL" footexp="合计" width="120">下嘱医生</column>
<column fieldname="药品名称" type="LABEL_CELL" width="200">药品名称</column>
<column fieldname="规格" type="LABEL_CELL" width="200">规格</column>
<column fieldname="数量" type="LABEL_CELL" footexp="$sum(数量)" width="120" align="right">数量</column>
<column fieldname="金额" type="LABEL_CELL" footexp="$sum(金额)" width="120" align="right">金额</column>
<column fieldname="等效数量" type="LABEL_CELL" width="120" align="right">等效数量</column>
<column fieldname="DDD值" type="LABEL_CELL" width="120" align="right">DDD值</column>
<column fieldname="DDDs" type="LABEL_CELL" footexp="$sum(DDDs)" width="120" align="right">DDDs</column>
<column fieldname="" calc="true" type="LABEL_CELL"></column>
</DxDataGrid>
</col>
</row>
</DxDIVGrid>
<dxselectcontroler id="s1"> |
||||
<s ctrid="popgrid1" col="YZXZKS" ctrtype="DxPopGridText" coltype="12" isvalue="true" bjgx="=" /> |
||||
</dxselectcontroler>
<datasource>
<!-- <dao id="kjlypMxDao" log="true" type="1">
<sql><![CDATA[
select
y.name 医生,yzmxb.yzmc 药品名称,ypxx.GG 规格,ypxx.DXSL as 等效数量,sum(sfxmxb.SFXSL) as 数量,sum(sfxmxb.SFXZFY) as 金额,min(ypxx.DDD) as DDD值,trunc(sum(sfxmxb.SFXSL*ypxx.DXSL/nvl(ypxx.DDD,1)),2) as DDDs
from HIS_YB_JSB a
left join HIS_YB_DJ dj on a.JGID=dj.JGID and a.MDTRT_ID=dj.MDTRT_ID and a.IPT_NO=dj.IPT_NO
left join HIS_YB_SCMX c on a.JGID=c.JGID and c.IPT_OTP_NO=a.IPT_NO and c.MDTRT_ID=a.MDTRT_ID and c.SETL_ID=a.SETL_ID
left join HIS_SFZD_SFXMXB sfxmxb on c.FEEDETL_SN=sfxmxb.pkey and c.JGID=sfxmxb.JGID
left join HIS_YZ_MXB yzmxb on sfxmxb.YZMX=yzmxb.pkey and sfxmxb.JGID=yzmxb.JGID
left join HIS_YPXX ypxx on sfxmxb.sfx=ypxx.bm left join HIS_JZ_BASEINFO f on yzmxb.jzpkey=f.pkey and yzmxb.JGID=f.JGID
left join HIS_HZINFO g on yzmxb.hzpkey=g.pkey and yzmxb.JGID=g.JGID
left join MAIN_YHXX y ON yzmxb.YZXZYS=y.USERACCOUNT
left join MAIN_KS ks ON yzmxb.jgid=ks.jgid AND ks.DPTID=yzmxb.YZXZKS
where (yzmxb.yzlb ='01' or yzmxb.yzlb ='02' or yzmxb.yzlb ='03') and a.CXZT='0' AND nvl(ypxx.ISKJY,0)=1
and a.JGID=?
and a.JZLX like ?
and a.SETL_TIME between ? and ?
group by y.name,yzmxb.yzmc,ypxx.GG,ypxx.DXSL
]]></sql>
<fields>
<f name="医生" type="12" />
<f name="药品名称" type="12" />
<f name="规格" type="12" />
<f name="等效数量" type="12" />
<f name="数量" type="12" />
<f name="金额" type="12" />
<f name="DDD值" type="12" />
<f name="DDDs" type="12" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>93</p>
<p>93</p>
</parameter>
</dao> -->
<dao id="kjlypMxDaoNew" log="true" type="1">
<sql><![CDATA[
SELECT
b.CFYS 医生,
a.SFXMC 药品名称,
yp.GG 规格,
yp.DXSL 等效数量,
SUM(a.SFXSL) 数量,
SUM(a.SFXZJE) 金额,
yp.DDD DDD值,
SUM(a.KSS_DDDS) DDDs
FROM
HIS_GAT_YPCF_MXB a
LEFT JOIN HIS_YPXX yp ON
a.SFX = yp.BM
LEFT JOIN HIS_GAT_YPCF_ZB b ON
a.ZBPKEY = b.PKEY
WHERE
b.JGID =?
AND b.JZLX like ?
AND b.CFRQ >=?
AND b.CFRQ <=?
AND a.GZFL LIKE 'KSS%'
GROUP BY
b.CFYS,
a.SFXMC,
yp.GG,
yp.DXSL,
yp.DDD
]]></sql>
//医生,药品名称,规格,等效数量,数量,金额,DDD值,DDDS
<fields>
<f name="医生" type="12" />
<f name="药品名称" type="12" />
<f name="规格" type="12" />
<f name="等效数量" type="8" />
<f name="数量" type="4" />
<f name="金额" type="4" />
<f name="DDD值" type="8" />
<f name="DDDS" type="4" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="kjlypMxDaoNew_sfrq" log="true" type="1">
<sql><![CDATA[
SELECT
b.CFYS 医生,
a.SFXMC 药品名称,
yp.GG 规格,
yp.DXSL 等效数量,
SUM(a.SFXSL) 数量,
SUM(a.SFXZJE) 金额,
yp.DDD DDD值,
SUM(a.KSS_DDDS) DDDs
FROM
HIS_GAT_YPCF_MXB a
LEFT JOIN HIS_YPXX yp ON
a.SFX = yp.BM
LEFT JOIN HIS_GAT_YPCF_ZB b ON
a.ZBPKEY = b.PKEY
LEFT JOIN HIS_YB_JSB js ON
b.JGID =js.JGID AND b.IPT_NO =js.IPT_NO AND js.CXZT ='0'
WHERE
b.JGID =?
AND b.JZLX like ?
AND js.SETL_TIME >=?
AND js.SETL_TIME <=?
AND a.GZFL LIKE 'KSS%'
GROUP BY
b.CFYS,
a.SFXMC,
yp.GG,
yp.DXSL,
yp.DDD
]]></sql>
//医生,药品名称,规格,等效数量,数量,金额,DDD值,DDDS
<fields>
<f name="医生" type="12" />
<f name="药品名称" type="12" />
<f name="规格" type="12" />
<f name="等效数量" type="8" />
<f name="数量" type="4" />
<f name="金额" type="4" />
<f name="DDD值" type="8" />
<f name="DDDS" type="4" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>93</p>
<p>93</p>
</parameter>
</dao>
</datasource>
</window> |
||||
</dxselectcontroler>
<datasource>
<!-- <dao id="kjlypMxDao" log="true" type="1">
<sql><![CDATA[
select
y.name 医生,yzmxb.yzmc 药品名称,ypxx.GG 规格,ypxx.DXSL as 等效数量,sum(sfxmxb.SFXSL) as 数量,sum(sfxmxb.SFXZFY) as 金额,min(ypxx.DDD) as DDD值,trunc(sum(sfxmxb.SFXSL*ypxx.DXSL/nvl(ypxx.DDD,1)),2) as DDDs
from HIS_YB_JSB a
left join HIS_YB_DJ dj on a.JGID=dj.JGID and a.MDTRT_ID=dj.MDTRT_ID and a.IPT_NO=dj.IPT_NO
left join HIS_YB_SCMX c on a.JGID=c.JGID and c.IPT_OTP_NO=a.IPT_NO and c.MDTRT_ID=a.MDTRT_ID and c.SETL_ID=a.SETL_ID
left join HIS_SFZD_SFXMXB sfxmxb on c.FEEDETL_SN=sfxmxb.pkey and c.JGID=sfxmxb.JGID
left join HIS_YZ_MXB yzmxb on sfxmxb.YZMX=yzmxb.pkey and sfxmxb.JGID=yzmxb.JGID
left join HIS_YPXX ypxx on sfxmxb.sfx=ypxx.bm left join HIS_JZ_BASEINFO f on yzmxb.jzpkey=f.pkey and yzmxb.JGID=f.JGID
left join HIS_HZINFO g on yzmxb.hzpkey=g.pkey and yzmxb.JGID=g.JGID
left join MAIN_YHXX y ON yzmxb.YZXZYS=y.USERACCOUNT
left join MAIN_KS ks ON yzmxb.jgid=ks.jgid AND ks.DPTID=yzmxb.YZXZKS
where (yzmxb.yzlb ='01' or yzmxb.yzlb ='02' or yzmxb.yzlb ='03') and a.CXZT='0' AND nvl(ypxx.ISKJY,0)=1
and a.JGID=?
and a.JZLX like ?
and a.SETL_TIME between ? and ?
group by y.name,yzmxb.yzmc,ypxx.GG,ypxx.DXSL
]]></sql>
<fields>
<f name="医生" type="12" />
<f name="药品名称" type="12" />
<f name="规格" type="12" />
<f name="等效数量" type="12" />
<f name="数量" type="12" />
<f name="金额" type="12" />
<f name="DDD值" type="12" />
<f name="DDDs" type="12" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>93</p>
<p>93</p>
</parameter>
</dao> -->
<dao id="kjlypMxDaoNew" log="true" type="1">
<sql><![CDATA[
SELECT
b.CFYS 医生,
a.SFXMC 药品名称,
yp.GG 规格,
yp.DXSL 等效数量,
SUM(a.SFXSL) 数量,
SUM(a.SFXZJE) 金额,
yp.DDD DDD值,
SUM(a.KSS_DDDS) DDDs
FROM
HIS_GAT_YPCF_MXB a
LEFT JOIN HIS_YPXX yp ON
a.SFX = yp.BM
LEFT JOIN HIS_GAT_YPCF_ZB b ON
a.ZBPKEY = b.PKEY
WHERE
b.JGID =?
AND b.JZLX like ?
AND b.CFRQ >=?
AND b.CFRQ <=?
AND a.GZFL LIKE 'KSS%'
GROUP BY
b.CFYS,
a.SFXMC,
yp.GG,
yp.DXSL,
yp.DDD
]]></sql>
//医生,药品名称,规格,等效数量,数量,金额,DDD值,DDDS
<fields>
<f name="医生" type="12" />
<f name="药品名称" type="12" />
<f name="规格" type="12" />
<f name="等效数量" type="8" />
<f name="数量" type="4" />
<f name="金额" type="4" />
<f name="DDD值" type="8" />
<f name="DDDS" type="4" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="kjlypMxDaoNew_sfrq" log="true" type="1">
<sql><![CDATA[
SELECT
b.CFYS 医生,
a.SFXMC 药品名称,
yp.GG 规格,
yp.DXSL 等效数量,
SUM(a.SFXSL) 数量,
SUM(a.SFXZJE) 金额,
yp.DDD DDD值,
SUM(a.KSS_DDDS) DDDs
FROM
HIS_GAT_YPCF_MXB a
LEFT JOIN HIS_YPXX yp ON
a.SFX = yp.BM
LEFT JOIN HIS_GAT_YPCF_ZB b ON
a.ZBPKEY = b.PKEY
LEFT JOIN HIS_MZJS_MZFPZB fp ON
b.JGID = fp.JGID
AND fp.GLZDBPKEY = b.ZDZBPKEY
WHERE
b.JGID =?
AND b.JZLX like ?
AND fp.sfrq >=?
AND fp.sfrq <=?
AND a.GZFL LIKE 'KSS%'
GROUP BY
b.CFYS,
a.SFXMC,
yp.GG,
yp.DXSL,
yp.DDD
]]></sql>
//医生,药品名称,规格,等效数量,数量,金额,DDD值,DDDS
<fields>
<f name="医生" type="12" />
<f name="药品名称" type="12" />
<f name="规格" type="12" />
<f name="等效数量" type="8" />
<f name="数量" type="4" />
<f name="金额" type="4" />
<f name="DDD值" type="8" />
<f name="DDDS" type="4" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>93</p>
<p>93</p>
</parameter>
</dao>
</datasource>
</window> |
Loading…
Reference in new issue