parent
9c5883ea97
commit
52d629fc13
@ -1,5 +1,5 @@ |
||||
<?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>
<item align="left">
<DxLabel id="label4" size="96,13" title="类型"/>
<DxComboBox id="combobox2" size="80,28" />
</item>
</DxPanelBar>
</col>
</row>
<row height="40" unit="px">
<col>
<DxPanelBar id="panelBar2" size="100,38" unit="%">
<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="kjlypMxDao" id="dbgrid1" showfoot="true" size="100,100" unit="%,%">
<column calc="true" fieldname="no" type="SERIALNUMBER_CELL" align="center" width="40">序号</column>
<column fieldname="标示" type="LABEL_CELL" width="120">标示</column>
<column fieldname="处方号" type="LABEL_CELL" width="120">处方号</column>
<column fieldname="发药日期" type="LABEL_CELL" width="120">发药日期</column>
<column fieldname="患者姓名" type="LABEL_CELL" width="120">患者姓名</column>
<column fieldname="性别" type="LABEL_CELL" width="120">性别</column>
<column fieldname="年龄" type="LABEL_CELL" width="120">年龄</column>
<column fieldname="临床诊断" type="LABEL_CELL" width="120">临床诊断</column>
<column fieldname="药品名称" type="LABEL_CELL" width="120">药品名称</column>
<column fieldname="规格" type="LABEL_CELL" width="120">规格</column>
<column fieldname="剂量" type="LABEL_CELL" width="120">剂量</column>
<column fieldname="用药数量" type="LABEL_CELL" width="120">用药数量</column>
<column fieldname="科室" type="LABEL_CELL" width="120">科室</column>
<column fieldname="医生姓名" type="LABEL_CELL" width="120">医生姓名</column>
</DxDataGrid>
</col>
</row>
</DxDIVGrid>
<dxselectcontroler id="s1"> |
||||
<?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>
<item align="left">
<DxLabel id="label4" size="96,13" title="类型"/>
<DxComboBox id="combobox2" size="80,28" />
</item>
</DxPanelBar>
</col>
</row>
<row height="40" unit="px">
<col>
<DxPanelBar id="panelBar2" size="100,38" unit="%">
<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="kjlypMxDao" id="dbgrid1" showfoot="true" size="100,100" unit="%,%">
<column calc="true" fieldname="no" type="SERIALNUMBER_CELL" align="center" width="40">序号</column>
<column fieldname="标示" type="LABEL_CELL" width="120">标示</column>
<column fieldname="处方号" type="LABEL_CELL" width="120">处方号</column>
<column fieldname="发药日期" type="DATETIMESHOW_CELL" datetimetype="datetime" width="120">发药日期</column>
<column fieldname="患者姓名" type="LABEL_CELL" width="120">患者姓名</column>
<column fieldname="性别" type="LABEL_CELL" width="120">性别</column>
<column fieldname="年龄" type="LABEL_CELL" width="120">年龄</column>
<column fieldname="临床诊断" type="LABEL_CELL" width="120">临床诊断</column>
<column fieldname="药品名称" type="LABEL_CELL" width="120">药品名称</column>
<column fieldname="规格" type="LABEL_CELL" width="120">规格</column>
<column fieldname="剂量" type="LABEL_CELL" width="120">剂量</column>
<column fieldname="用药数量" type="LABEL_CELL" width="120">用药数量</column>
<column fieldname="科室" type="LABEL_CELL" width="120">科室</column>
<column fieldname="医生姓名" type="LABEL_CELL" width="120">医生姓名</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 distinct '门诊' 标示,yzmxb.CFH 处方号,mzfyzb.FYRQ 发药日期,g.XM 患者姓名,g.XB 性别,g.NL 年龄,dj.DSCG_MAINDIAG_NAME 临床诊断,yzmxb.yzmc 药品名称,ypxx.GG 规格,YZMXB.YZJL 剂量,yzmxb.YZSL 用药数量,dj.ADM_DEPT_NAME 科室,y.name 医生姓名
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_YFFY_MZFYZB mzfyzb on sfxmxb.ZDZBPKEY=mzfyzb.ZDZBPKEY and sfxmxb.JGID=mzfyzb.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
dj.DSCG_MAINDIAG_NAME 临床诊断,yzmxb.yzmc 药品名称,ypxx.GG 规格,YZMXB.YZJL 剂量,yzmxb.YZSL 用药数量,dj.ADM_DEPT_NAME 科室,y.name 医生姓名
dj.DSCG_MAINDIAG_NAME 临床诊断,yzmxb.yzmc 药品名称,ypxx.GG 规格,YZMXB.YZJL 剂量,yzmxb.YZSL 用药数量,dj.ADM_DEPT_NAME 科室,y.name 医生姓名
dj.DSCG_MAINDIAG_NAME 临床诊断,yzmxb.yzmc 药品名称,ypxx.GG 规格,YZMXB.YZJL 剂量,yzmxb.YZSL 用药数量,dj.ADM_DEPT_NAME 科室,y.name 医生姓名
dj.DSCG_MAINDIAG_NAME 临床诊断,yzmxb.yzmc 药品名称,ypxx.GG 规格,YZMXB.YZJL 剂量,yzmxb.YZSL 用药数量,dj.ADM_DEPT_NAME 科室,y.name 医生姓名
from HIS_YB_JSB a
dj.DSCG_MAINDIAG_NAME 临床诊断,yzmxb.yzmc 药品名称,ypxx.GG 规格,YZMXB.YZJL 剂量,yzmxb.YZSL 用药数量,dj.ADM_DEPT_NAME 科室,y.name 医生姓名
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
dj.DSCG_MAINDIAG_NAME 临床诊断,yzmxb.yzmc 药品名称,ypxx.GG 规格,YZMXB.YZJL 剂量,yzmxb.YZSL 用药数量,dj.ADM_DEPT_NAME 科室,y.name 医生姓名
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
dj.DSCG_MAINDIAG_NAME 临床诊断,yzmxb.yzmc 药品名称,ypxx.GG 规格,YZMXB.YZJL 剂量,yzmxb.YZSL 用药数量,dj.ADM_DEPT_NAME 科室,y.name 医生姓名
left join HIS_SFZD_SFXMXB sfxmxb on c.FEEDETL_SN=sfxmxb.pkey and c.JGID=sfxmxb.JGID
dj.DSCG_MAINDIAG_NAME 临床诊断,yzmxb.yzmc 药品名称,ypxx.GG 规格,YZMXB.YZJL 剂量,yzmxb.YZSL 用药数量,dj.ADM_DEPT_NAME 科室,y.name 医生姓名
left join HIS_YFFY_MZFYZB mzfyzb on sfxmxb.ZDZBPKEY=mzfyzb.ZDZBPKEY and sfxmxb.JGID=mzfyzb.JGID
dj.DSCG_MAINDIAG_NAME 临床诊断,yzmxb.yzmc 药品名称,ypxx.GG 规格,YZMXB.YZJL 剂量,yzmxb.YZSL 用药数量,dj.ADM_DEPT_NAME 科室,y.name 医生姓名
left join HIS_YZ_MXB yzmxb on sfxmxb.YZMX=yzmxb.pkey and sfxmxb.JGID=yzmxb.JGID
dj.DSCG_MAINDIAG_NAME 临床诊断,yzmxb.yzmc 药品名称,ypxx.GG 规格,YZMXB.YZJL 剂量,yzmxb.YZSL 用药数量,dj.ADM_DEPT_NAME 科室,y.name 医生姓名
left join HIS_YPXX ypxx on sfxmxb.sfx=ypxx.bm
dj.DSCG_MAINDIAG_NAME 临床诊断,yzmxb.yzmc 药品名称,ypxx.GG 规格,YZMXB.YZJL 剂量,yzmxb.YZSL 用药数量,dj.ADM_DEPT_NAME 科室,y.name 医生姓名
left join HIS_JZ_BASEINFO f on yzmxb.jzpkey=f.pkey and yzmxb.JGID=f.JGID
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
from HIS_YB_JSB a
from HIS_YB_JSB a
dj.DSCG_MAINDIAG_NAME 临床诊断,yzmxb.yzmc 药品名称,ypxx.GG 规格,YZMXB.YZJL 剂量,yzmxb.YZSL 用药数量,dj.ADM_DEPT_NAME 科室,y.name 医生姓名
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
from HIS_YB_JSB a
from HIS_YB_JSB a
.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.GZFL,0) IN ('DX','FS','J1','J2','MZ','TS')
and a.JGID=? and a.JZLX like 'ZY'
and a.SETL_TIME between ? and ?
]]></sql>
<fields>
<f name="标示" type="12" />
<f name="处方号" type="12" />
<f name="发药日期" type="93" />
<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="剂量" type="12" />
<f name="用药数量" type="12" />
<f name="科室" type="12" />
<f name="医生姓名" type="12" />
</fields>
<parameter>
<p>12</p>
<p>93</p>
<p>93</p>
<p>12</p>
<p>93</p>
<p>93</p>
</parameter>
</dao>
</datasource>
</window> |
||||
<datasource>
<dao id="kjlypMxDao" log="true" type="1">
<sql><![CDATA[
select distinct '门诊' 标示,yzmxb.CFH 处方号,mzfyzb.FYRQ 发药日期,g.XM 患者姓名,g.XB 性别,g.NL 年龄,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
from HIS_YB_JSB a
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
from HIS_YB_JSB a
left join HIS_SFZD_SFXMXB sfxmxb on c.FEEDETL_SN=sfxmxb.pkey and c.JGID=sfxmxb.JGID
from HIS_YB_JSB a
left join HIS_YFFY_MZFYZB mzfyzb on sfxmxb.ZDZBPKEY=mzfyzb.ZDZBPKEY and sfxmxb.JGID=mzfyzb.JGID
from HIS_YB_JSB a
left join HIS_YZ_MXB yzmxb on sfxmxb.YZMX=yzmxb.pkey and sfxmxb.JGID=yzmxb.JGID
from HIS_YB_JSB a
left join HIS_YPXX ypxx on sfxmxb.sfx=ypxx.bm
from HIS_YB_JSB a
left join HIS_JZ_BASEINFO f on yzmxb.jzpkey=f.pkey and yzmxb.JGID=f.JGID
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_DJ dj on a.JGID=dj.JGID and a.MDTRT_ID=dj.MDTRT_ID and a.IPT_NO=dj.IPT_NO
dj.DSCG_MAINDIAG_NAME 临床诊断,yzmxb.yzmc 药品名称,ypxx.GG 规格,YZMXB.YZJL 剂量,yzmxb.YZSL 用药数量,dj.ADM_DEPT_NAME 科室,y.name 医生姓名
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
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_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_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_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_SFZD_SFXMXB sfxmxb on c.FEEDETL_SN=sfxmxb.pkey and c.JGID=sfxmxb.JGID
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_YFFY_MZFYZB mzfyzb on sfxmxb.ZDZBPKEY=mzfyzb.ZDZBPKEY and sfxmxb.JGID=mzfyzb.JGID
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_YZ_MXB yzmxb on sfxmxb.YZMX=yzmxb.pkey and sfxmxb.JGID=yzmxb.JGID
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_YPXX ypxx on sfxmxb.sfx=ypxx.bm
and a.SETL_TIME between ? and ?
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
dj.DSCG_MAINDIAG_NAME 临床诊断,yzmxb.yzmc 药品名称,ypxx.GG 规格,YZMXB.YZJL 剂量,yzmxb.YZSL 用药数量,dj.ADM_DEPT_NAME 科室,y.name 医生姓名
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
from HIS_YB_JSB a
from HIS_YB_JSB a
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
from HIS_YB_JSB a
left join HIS_SFZD_SFXMXB sfxmxb on c.FEEDETL_SN=sfxmxb.pkey and c.JGID=sfxmxb.JGID
from HIS_YB_JSB a
from HIS_YB_JSB a
left join HIS_YZ_MXB yzmxb on sfxmxb.YZMX=yzmxb.pkey and sfxmxb.JGID=yzmxb.JGID
from HIS_YB_JSB a
left join HIS_YPXX ypxx on sfxmxb.sfx=ypxx.bm
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_YB_DJ dj on a.JGID=dj.JGID and a.MDTRT_ID=dj.MDTRT_ID and a.IPT_NO=dj.IPT_NO
from HIS_YB_JSB a
left join HIS_HZINFO g on a.hzpkey=g.pkey and a.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.GZFL,0) IN ('DX','FS','J1','J2','MZ','TS')
and a.JGID=? and a.JZLX like 'ZY'
and a.SETL_TIME between ? and ?
]]></sql>
<fields>
<f name="标示" type="12" />
<f name="处方号" type="12" />
<f name="发药日期" type="93" />
<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="剂量" type="12" />
<f name="用药数量" type="12" />
<f name="科室" type="12" />
<f name="医生姓名" type="12" />
</fields>
<parameter>
<p>12</p>
<p>93</p>
<p>93</p>
<p>12</p>
<p>93</p>
<p>93</p>
</parameter>
</dao>
</datasource>
</window> |
Loading…
Reference in new issue