123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
- <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
- <xhtml:head>
- <xhtml:title>약품사용량 통계</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <statslist/>
- <statstoplist>
- <item>
- <engnm/>
- <orddeptcd/>
- <osumval/>
- <isumval/>
- <total/>
- </item>
- </statstoplist>
- </main>
- <send>
- <srchfromdd/>
- <srchtodd/>
- <globalinstance>
- <instance1/>
- </globalinstance>
- <suppdeptcd/>
- <srchioflag/>
- <formflag/>
- <drugflag1/>
- <drugflag2/>
- <srchdeptcd/>
- <srchdrid/>
- <drugflag1all/>
- <drugflag2all/>
- <deptinfo>
- <deptflag/>
- </deptinfo>
- <baseinfo>
- <spcldrug/>
- <efcycd/>
- </baseinfo>
- <srchdata>
- <drugcd/>
- </srchdata>
- <srchwardcd/>
- </send>
- <init>
- </init>
- <hidden>
- <srchinfo>
- <wardcd/>
- <wardnm/>
- </srchinfo>
- <baseinfo>
- <spcldrug>
- <A0006/>
- </spcldrug>
- </baseinfo>
- <receivedrugcd>/root/send/srchdata/drugcd</receivedrugcd>
- <orddept>
- <dept/>
- </orddept>
- <receiveefcy>/root/send/baseinfo/efcycd</receiveefcy>
- </hidden>
- <temp>
- <srchinfo>
- <ward/>
- </srchinfo>
- <receivedata>
- <receiveref/>
- <srchflag/>
- <srchcnts/>
- <drugkind/>
- </receivedata>
- </temp>
- </root>
- </instance>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
- <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
- <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
-
- aezfSetSuppDeptcd();
- // 진료과/진료의 조회
- submit("TRPMOCOM01");
- astfAddCombo("/root/init", "orddeptcd", "cd,nm", ",전체");
-
- cmb_orddept.dispatch("xforms-value-changed");
-
- var rdo_children = rdo_formcd.children;
- rdo_children.item(1).attribute("disable") = true;
- model.setValue("/root/send/suppdeptcd", model.getValue("/root/send/globalinstance/instance1"));
- model.setValue("/root/send/srchfromdd", getCurrentDate());
- model.setValue("/root/send/srchtodd", getCurrentDate());
- model.setValue("/root/send/srchioflag", "전체");
- model.setValue("/root/send/formflag", "D");
- model.setValue("/root/send/drugflag1", "재원 퇴원");
- model.setValue("/root/send/drugflag2", "원내 원외");
- model.setValue("/root/send/drugflag1all", "전체");
- model.setValue("/root/send/drugflag2all", "전체");
-
- makeReportPreview(0,150,1195,570);
-
- //병동 Combo 조회
- model.setValue("/root/send/deptinfo/deptflag", "W");
- submit("TRADT10203");
- astfAddCombo("/root/hidden/deptlist", "ward", "wardcd,wardnm", "T,전체");
- /*
- // 진료과세팅
- zbcfGetDeptCodeList(getUserInfo("dutplceinstcd"), "orduseyn", "D", "/root/hidden/orddept"); //부서코드 콤보조회
- if ( model.instances(0).selectSingleNode("/root/hidden/orddept/dept") != null) {
- astfAddCombo("/root/hidden/orddept","dept","deptcd,depthngnm",",전체");
- }
- */
- //특별약품구분
- zbcfGetCodeList( new Array("A0006"), new Array("/root/hidden/baseinfo/spcldrug" ));
- astfAddCombo("/root/hidden/baseinfo/spcldrug", "A0006", "cdid,cdnm", ",전체");
- model.refresh();
-
- ]]>
- </script>
- <submission id="TRZBC00101"/>
- <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRADS00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/statslist"/>
- <submission id="TRADS00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/statslist"/>
- <submission id="TRADT10203" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/deptinfo" replace="instance" resultref="/root/hidden/deptlist"/>
- <submission id="TRPMOCOM01" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/hidden/session" replace="instance" resultref="/root/init"/>
- <submission id="TRADS00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/statstoplist"/>
- </model>
- </xhtml:head>
- <xhtml:body pagewidth="1211" pageheight="784" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
- <line id="line1" class="line_1" style="x1:0px; y1:135px; x2:1195px; y2:135px; "/>
- <group id="group1" style="left:0px; top:10px; width:1195px; height:110px; vertical-align:top; ">
- <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1193px; height:110px; background-color:#fffbf2; border-color:#ffd799; "/>
- <line id="line2" class="line_4" style="x1:1110px; y1:5px; x2:1110px; y2:105px; "/>
- <button id="btn_sea" class="btn1_letter2" navindex="4" style="left:1125px; top:40px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- ipt_drugcd.value = ipt_drugcd.value.toUpperCase();
- model.setValue("/root/send/srchwardcd", model.getValue("/root/temp/srchinfo/ward"));
- model.refresh();
- /*
- 통계양식에 따라 submit 변경
-
- D : 진료과별
- R : 병동별
- E : 효능별
- S : 특별약품분류별
- T : 상위과별 // 20121130_상위과별 순으로 조회
- */
- if ( model.getValue("/root/send/formflag") == 'S' ) {
- grd_toplist.visible = false;
- btn_excel.visible = false;
- if(submit("TRADS00101")){
- exeReportPreview("RPADS00102", "XMLSTR", "/root/main/statslist/item");
- }
- } else if ( model.getValue("/root/send/formflag") == 'E' ) {
- grd_toplist.visible = false;
- btn_excel.visible = false;
- if(submit("TRADS00102")){
- exeReportPreview("RPADS00103", "XMLSTR", "/root/main/statslist/item");
- }
- } else if ( model.getValue("/root/send/formflag") == 'T' ) { // 20121130_상위과별
- removeReportPreview();
- if(submit("TRADS00103")){
- grd_toplist.visible = true;
- btn_excel.visible = true;
- //exeReportPreview("RPADS00104", "XMLSTR", "/root/main/statslist/item");
- }
- } else {
- grd_toplist.visible = false;
- btn_excel.visible = false;
- //병동별집계 이면서 병동을 선택하지 않을시 에러보이기
- if ( model.getValue("/root/send/formflag") == 'R' && model.getValue("/root/send/srchwardcd") == "" ) {
- alert('조회할 병동을 선택하세요');
- return ;
- }
-
- if(submit("TRADS00101")){
- exeReportPreview("RPADS00101", "XMLSTR", "/root/main/statslist/item");
- }
- }
-
- ]]>
- </script>
- </button>
- <caption id="caption2" class="search_name" style="left:15px; top:30px; width:86px; height:17px; ">조회기간 :</caption>
- <input id="ipt_fromdd" ref="/root/send/srchfromdd" class="input_default" navindex="1" inputtype="date" format="yyyy-mm-dd" style="left:110px; top:30px; width:100px; height:19px; "/>
- <input id="ipt_todd" ref="/root/send/srchtodd" class="input_default" navindex="2" inputtype="date" format="yyyy-mm-dd" style="left:228px; top:30px; width:100px; height:19px; "/>
- <caption id="caption5" class="search_no_b" style="left:213px; top:30px; width:12px; height:17px; ">~</caption>
- <select1 id="combo1" ref="/root/send/srchioflag" class="combo_search" appearance="minimal" style="left:110px; top:5px; width:100px; height:19px; ">
- <choices>
- <item>
- <label>전체</label>
- <value>전체</value>
- </item>
- <item>
- <label>병동약국</label>
- <value>병동</value>
- </item>
- <item>
- <label>외래약국</label>
- <value>외래</value>
- </item>
- <item>
- <label>특수조제실</label>
- <value>특조</value>
- </item>
- </choices>
- </select1>
- <caption id="caption3" class="search_name" style="left:15px; top:6px; width:86px; height:17px; ">조제장소 :</caption>
- <caption id="caption4" class="search_name" style="left:390px; top:5px; width:86px; height:17px; ">통계양식 :</caption>
- <caption id="caption7" class="search_name" style="left:390px; top:30px; width:86px; height:17px; ">처방구분 :</caption>
- <select1 id="rdo_formcd" ref="/root/send/formflag" class="radio_search" appearance="full" cellspacing="10" cols="6" overflow="visible" style="left:485px; top:5px; width:550px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>진료과별</label>
- <value>D</value>
- </item>
- <item>
- <label>진료과별 의사제외</label>
- <value>B</value>
- </item>
- <item>
- <label>병동별</label>
- <value>R</value>
- </item>
- <item>
- <label>효능별</label>
- <value>E</value>
- </item>
- <item>
- <label>특별약품분류별</label>
- <value>S</value>
- </item>
- <item>
- <label>상위과별</label>
- <value>T</value>
- </item>
- </choices>
- </select1>
- <select id="chk_drugflag1" ref="/root/send/drugflag1" overflow="visible" appearance="full" cols="2" style="left:484px; top:28px; width:96px; height:22px; border-style:none; ">
- <choices>
- <item>
- <label>재원</label>
- <value>재원</value>
- </item>
- <item>
- <label>퇴원</label>
- <value>퇴원</value>
- </item>
- <!-- <item>
- <label>외래</label>
- <value>외래</value>
- </item>-->
- </choices>
- </select>
- <select id="chk_drugflag1all" ref="/root/send/drugflag1all" overflow="visible" appearance="full" cols="3" style="left:625px; top:28px; width:50px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value>전체</value>
- </item>
- </choices>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(model.getValue("/root/send/drugflag1all") == "전체")
- {
- chk_drugflag1.select(0);
- chk_drugflag1.select(1);
- //chk_drugflag1.select(2);
- }
- else
- {
- chk_drugflag1.deselect(0);
- chk_drugflag1.deselect(1);
- //chk_drugflag1.deselect(2);
- }
- ]]>
- </script>
- </select>
- <select id="chk_drugflag2" ref="/root/send/drugflag2" overflow="visible" appearance="full" cols="3" style="left:693px; top:28px; width:92px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>원내</label>
- <value>원내</value>
- </item>
- <item>
- <label>원외</label>
- <value>원외</value>
- </item>
- </choices>
- </select>
- <select id="chk_drugflag2all" ref="/root/send/drugflag2all" overflow="visible" appearance="full" cols="3" style="left:788px; top:28px; width:50px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value>전체</value>
- </item>
- </choices>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(model.getValue("/root/send/drugflag2all") == "전체")
- {
- chk_drugflag2.select(0);
- chk_drugflag2.select(1);
- chk_drugflag_dis.select(0);
- }
- else
- {
- chk_drugflag2.deselect(0);
- chk_drugflag2.deselect(1);
- chk_drugflag_dis.deselect(0);
- }
- ]]>
- </script>
- </select>
- <select id="chk_drugflag_dis" disabled="true" overflow="visible" appearance="full" cols="1" style="left:572px; top:28px; width:55px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>외래</label>
- <value>외래</value>
- </item>
- </choices>
- </select>
- <caption id="caption8" class="search_name" style="left:15px; top:55px; width:86px; height:17px; ">병동 :</caption>
- <caption id="caption9" class="search_name" style="left:15px; top:80px; width:86px; height:17px; ">효능분류 :</caption>
- <caption id="caption10" class="search_name" style="left:390px; top:55px; width:86px; height:17px; ">진료과 :</caption>
- <caption id="caption11" class="search_name" style="left:390px; top:80px; width:86px; height:17px; ">특별약품 :</caption>
- <caption id="caption12" class="search_name" style="left:730px; top:55px; width:88px; height:17px; ">주치의 :</caption>
- <caption id="caption13" class="search_name" style="left:730px; top:80px; width:86px; height:17px; ">특정코드 :</caption>
- <input id="input2" ref="/root/send/baseinfo/efcycd" class="input_search" disabled="false" style="left:110px; top:80px; width:250px; height:19px; "/>
- <select1 id="cmb_orddept" ref="/root/send/srchdeptcd" class="combo_search" appearance="minimal" style="left:485px; top:55px; width:170px; height:19px; ">
- <choices>
- <!--
- <itemset nodeset="/root/hidden/orddept/dept">
- <label ref="depthngnm"/>
- <value ref="deptcd"/>
- </itemset>
- -->
- <itemset nodeset="/root/init/orddeptcd">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- cmb_orddr.choices.itemset.attribute("nodeset") = "/root/init/orddrid[dp = '"+ cmb_orddept.value +"']";
- model.setValue("/root/send/srchdrid","");
- cmb_orddr.refresh();
- ]]>
- </script>
- </select1>
- <select1 id="combo2" ref="/root/send/baseinfo/spcldrug" class="combo_search" disabled="false" appearance="minimal" showvalue="true" style="left:485px; top:80px; width:240px; height:19px; ">
- <choices>
- <itemset nodeset="/root/hidden/baseinfo/spcldrug/A0006">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="cmb_orddr" ref="/root/send/srchdrid" class="combo_search" appearance="minimal" style="left:820px; top:55px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/orddrid">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- <button id="button3" class="icon_search" disabled="false" style="left:365px; top:80px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- setParameter("textval", "Y");
- modal("SPADB61400",0,100,150,"SPADB61400","/root/hidden/receiveefcy","/root/hidden/receiveref");
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="button4" class="icon_search" disabled="false" style="left:1025px; top:80px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/temp/receivedata/receiveref", model.getValue("/root/hidden/receivedrugcd"));
- model.setValue("/root/temp/receivedata/srchflag", "");
- model.setValue("/root/temp/receivedata/srchcnts", "");
- model.setValue("/root/temp/receivedata/drugkind","");
- // 약품코드 검색
- modal("SPADB60100",0,100,150,"SPADB60100","/root/temp/receivedata","/root/temp/receivedata");
- ]]>
- </script>
- </button>
- <input id="ipt_drugcd" ref="/root/send/srchdata/drugcd" class="input_search" disabled="false" style="left:820px; top:80px; width:196px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- ipt_drugcd.value = ipt_drugcd.value.toUpperCase();
- ipt_drugcd.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- inputEnterKey("btn_sea","DOMActivate");
- ]]>
- </script>
- </input>
- <input id="ipt_wardnm" ref="/root/hidden/srchinfo/wardnm" class="input_search" disabled="true" style="left:110px; top:55px; width:250px; height:19px; "/>
- <button id="button5" class="icon_search" visibility="visible" style="left:365px; top:55px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- if(chk_ward.visible==true){
- chk_ward.visible = false;
- }else {
- chk_ward.visible = true;
-
- }
-
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_wardcd" ref="/root/hidden/srchinfo/wardcd" class="input_search" visibility="hidden" style="left:320px; top:75px; width:140px; height:19px; "/>
- <line id="line3" class="line_4" style="x1:685px; y1:25px; x2:685px; y2:50px; "/>
- </group>
- <select id="chk_ward" ref="/root/temp/srchinfo/ward" class="checkbox_search" visibility="hidden" overflow="visible" appearance="full" cols="8" direction="downacross" sep="," style="left:110px; top:85px; width:110px; height:15px; background-color:#e5eae9; border-style:none; ">
- <choices>
- <itemset nodeset="/root/hidden/deptlist/ward">
- <label ref="wardnm"/>
- <value ref="wardcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- //if(isSearchString(model.getValue("/root/temp/srchinfo/ward"),"T")){
- if(chk_ward.mouseRow == 0 && chk_ward.mouseCol == 0 ){
- if(isSearchString(model.getValue("/root/temp/srchinfo/ward"),"T")){
- var ward = "";
- for(var i = 1; i <= getNodesetCount("/root/hidden/deptlist/ward"); i++){
- if(ward != "" && i <= getNodesetCount("/root/hidden/deptlist/ward")) ward += ",";
- ward += model.getValue("/root/hidden/deptlist/ward["+i+"]/wardcd");
- }
- model.setValue("/root/temp/srchinfo/ward", ward);
- } else {
- //ipt_wardcd.value = "";
- //ipt_wardnm.value = "";
- model.setValue("/root/temp/srchinfo/ward", "");
- }
- model.refresh();
- }
- if(isSearchString(model.getValue("/root/temp/srchinfo/ward"),"T")){
- ipt_wardcd.value = chk_ward.value.substr(2,chk_ward.value.length);
- ipt_wardnm.value = chk_ward.label.substr(3,chk_ward.label.length);
- } else {
- ipt_wardcd.value = chk_ward.value;
- ipt_wardnm.value = chk_ward.label;
- }
- //input3.refresh();
- //검사실 체크박스 감추기
- //chk_excuroom.visible = false;
- ]]>
- </script>
- </select>
- <datagrid id="grd_toplist" nodeset="/root/main/statstoplist/item" visibility="hidden" caption="약품코드^약품이름^진료과^원외 사용량^원내 사용량^총 사용량" colsep="^" colwidth="106, 182, 142, 100, 100, 100" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:150px; width:760px; height:580px; ">
- <col ref="drugcd" style="text-align:left; "/>
- <col ref="engnm" style="text-align:left; "/>
- <col ref="orddeptcd" style="text-align:center; "/>
- <col ref="osumval" style="text-align:center; "/>
- <col ref="isumval" style="text-align:center; "/>
- <col ref="total" style="text-align:center; "/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_toplist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <button id="btn_excel" class="btn2_letter2" navindex="37" visibility="hidden" style="left:855px; top:40px; width:42px; height:19px; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var file = window.fileDialog("save","","false","","xls","Excel Files(*.xls)|*.xls");
- grd_toplist.saveExcel(file);
- ]]>
- </script>
- </button>
- </group>
- <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:200px; height:14px; ">약품사용량 통계</caption>
- </group>
- </xhtml:body>
- </xhtml:html>
|