123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407 |
- <?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>
- <sumlist>
- <suminfo>
- <groupcd/>
- <prcpcd/>
- <prcpnm/>
- <sumqty/>
- </suminfo>
- </sumlist>
- <prcplist>
- <prcpinfo>
- <flag1/>
- <flag2/>
- <flag3/>
- <pid/>
- <hngnm/>
- <orddeptcd/>
- <wardcd/>
- <groupcd/>
- <prcpcd/>
- <prcpnm/>
- <prcpqty/>
- <prcptims/>
- <prcpdayno/>
- <totqty/>
- <prcpdd/>
- <rtndd/>
- </prcpinfo>
- </prcplist>
- <sumterm>
- <suminfo>
- <sumflag/>
- <sumdt/>
- <sumfromdd/>
- <sumfromtm/>
- <sumtodd/>
- <sumtotm/>
- <sumnm/>
- </suminfo>
- </sumterm>
- </main>
- <send>
- <srchdata>
- <deptflag/>
- <drugflag>1 2</drugflag>
- <prcpflag>1 2 3</prcpflag>
- <srchfromdd/>
- <srchtodd/>
- <srchorddeptcd/>
- <srchprcpcd/>
- <udsflag>N</udsflag>
- <prcpkindcd/>
- <sumdt/>
- <srchorddeptflag/>
- <sumdeptcd/>
- <dutplcecd/>
- </srchdata>
- </send>
- <init>
- <orddept>
- <dept>
- <chk/>
- <deptcd/>
- <depthngnm/>
- <orddeptflag/>
- </dept>
- </orddept>
- </init>
- <hidden/>
- <temp>
- <ret/>
- <prntinfo>
- <sumflagnm>주사</sumflagnm>
- <wardnm>외래주사실</wardnm>
- <sumfromdd>20070901</sumfromdd>
- <sumfromtm>0000</sumfromtm>
- <sumtodd>20070930</sumtodd>
- <sumtotm>2400</sumtotm>
- </prntinfo>
- <prntprcpinfo>
- <suminfo>
- <prcpcd/>
- <prcpnm/>
- <prcpflag/>
- <sumqty/>
- </suminfo>
- </prntprcpinfo>
- <deptcd/>
- <sumdeptcd>
- <deptcd>
- <deptcd/>
- </deptcd>
- </sumdeptcd>
- <userinfo>
- <userinfo>
- <userid/>
- <usernm/>
- <userdeptcd/>
- <userdeptnm/>
- </userinfo>
- </userinfo>
- </temp>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- grd_deptlist.fixedcellcheckbox(0,0) = true;
- model.setValue("/root/send/srchdata/srchfromdd", getCurrentDate());
- model.setValue("/root/send/srchdata/srchtodd", getCurrentDate());
- model.refresh();
-
- /*if ( model.getValue("/root/temp/deptcd") !=""){
- grd_deptlist.visible=false;
- }*/
- /* 사용자부서 가져오기 */
- model.setValue("/root/temp/userinfo/userinfo/userdeptcd", getUserInfo("dutplcecd"));
- model.setValue("/root/temp/userinfo/userinfo/userdeptnm", getUserInfo("dutplcenm"));
-
- model.setValue("/root/send/srchdata/dutplcecd", getUserInfo("dutplcecd"));
- //submit("TRADT10335");
- submit("TRADT10321");
-
- model.setValue("/root/send/srchdata/sumdeptcd", model.getValue("/root/temp/sumdeptcd/deptcd/deptcd"));
- //submit("TRADT10324");
-
- model.removeNodeset("/root/main/prcplist/prcpinfo");
- model.setValue("/root/send/srchdata/srchorddeptcd", model.getValue("/root/init/orddept/dept/deptcd"));
- model.setValue("/root/send/srchdata/srchorddeptflag", model.getValue("/root/init/orddept/dept/orddeptflag"));
- submit("TRADT10322");
-
- if(model.getValue("/root/init/orddept/dept/orddeptflag") == "W") {
- caption5.visible = true;
- rdo_prcp.visible = true;
- } else {
- caption5.visible = false;
- rdo_prcp.visible = false;
- }
-
- ]]>
- </script>
- <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/departmentcodeweb/js/ZSD001.js"/>
- <submission id="TRADT10321" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdata" replace="instance" resultref="/root/init/orddept"/>
- <submission id="TRADT10322" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdata" replace="instance" resultref="/root/main/sumlist"/>
- <submission id="TRADT10323" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdata" replace="instance" resultref="/root/main/prcplist"/>
- <submission id="TRADT10324" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdata" replace="instance" resultref="/root/main/sumterm"/>
- <submission id="TRADT10325" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdata" replace="instance" resultref="/root/main/sumlist"/>
- <submission id="TRADT10326" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdata" replace="instance" resultref="/root/init/orddept"/>
- <submission id="TRADT10327" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdata" replace="instance" resultref="/root/main/prcplist"/>
- <submission id="TRADT10329" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdata" replace="instance" resultref="/root/temp/prntprcpinfo"/>
- <submission id="TXADT10321" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdata" replace="instance" resultref="/root/temp/ret"/>
- <submission id="TXADT10322" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdata" replace="instance" add="bottom" resultref="/root/temp/ret"/>
- <submission id="TRADT10335" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdata" resultref="/root/temp/sumdeptcd"/>
- </model>
- </xhtml:head>
- <xhtml:body guideline="1,1194;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:1194px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">약국 집계 조회/출력</caption>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:40px; width:1195px; height:744px; ">
- <datagrid id="grd_prcplist" nodeset="/root/main/prcplist/prcpinfo" caption="구분^구분^구분^등록번호^환자명^진료과^병동^Group코드^처방코드^처방명^1일수량^횟수^일수^불출수량^처방적용일자^처방등록일시^반환일시" colsep="^" colwidth="38, 48, 36, 73, 45, 60, 41, 82, 90, 201, 49, 36, 33, 59, 80, 100, 100" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:380px; top:72px; width:814px; height:668px; ">
- <col ref="flag1"/>
- <col ref="flag2"/>
- <col ref="flag3"/>
- <col ref="pid"/>
- <col ref="hngnm"/>
- <col ref="orddeptnm"/>
- <col ref="roomcd"/>
- <col ref="groupcd" visibility="visible"/>
- <col ref="prcpcd"/>
- <col ref="prcpnm"/>
- <col ref="prcpqty" style="text-align:right; "/>
- <col ref="prcptims"/>
- <col ref="prcpdayno" style="text-align:right; "/>
- <col ref="totqty" style="text-align:right; "/>
- <col ref="prcpdd" format="yyyy-mm-dd"/>
- <col format="yyyy-mm-dd hh:nn:ss"/>
- <col ref="rtndd" format="yyyy-mm-dd hh:nn:ss"/>
- </datagrid>
- <line id="line1" class="line_1" style="x1:0px; y1:67px; x2:1194px; y2:67px; "/>
- <datagrid id="grd_deptlist" nodeset="/root/init/orddept/dept" visibility="hidden" caption="^코드^부서" colsep="^" colwidth="25, 93, 234" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowsep="|" style="left:455px; top:230px; width:375px; height:245px; ">
- <col checkvalue="Y,N" ref="chk" type="checkbox"/>
- <col ref="deptcd"/>
- <col ref="depthngnm"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- model.setValue("/root/send/srchdata/srchorddeptcd", model.getValue("/root/init/orddept/dept["+grd_deptlist.row+"]/deptcd"));
- model.setValue("/root/send/srchdata/srchorddeptflag", model.getValue("/root/init/orddept/dept["+grd_deptlist.row+"]/orddeptflag"));
- submit("TRADT10325");
-
- model.setValue("/root/send/srchdata/srchprcpcd", model.getValue("/root/main/sumlist/suminfo[1]/prcpcd"));
- submit("TRADT10327");
- ]]>
- </script>
- </datagrid>
- <datagrid id="grd_sumlist" nodeset="/root/main/sumlist/suminfo" class="datagrid" caption="Group코드^처방코드^처방명^총불출수량" colsep="^" colwidth="80, 80, 120, 70" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:2px; top:72px; width:375px; height:668px; ">
- <col ref="groupcd"/>
- <col ref="prcpcd"/>
- <col ref="prcpnm"/>
- <col ref="sumqty" style="text-align:right; "/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(isDataCell()) {
- model.setValue("/root/send/srchdata/srchprcpcd", model.getValue("/root/main/sumlist/suminfo["+grd_sumlist.row+"]/prcpcd"));
- submit("TRADT10323");
- // 20100319 황세원 수정
- model.refresh();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_sumlist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- </group>
- <group id="group4" scroll="auto" style="left:0px; top:13px; width:1195px; height:27px; ">
- <button id="button1" class="btn6_letter5" visibility="visible" style="left:230px; top:5px; width:92px; height:22px; ">
- <caption>집계표출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- //model.setValue("/root/send/srchdata/srchorddeptcd", model.getValue("/root/init/orddept/dept["+i+"]/deptcd"));
- //model.setValue("/root/temp/prntinfo/wardnm", model.getValue("/root/init/orddept/dept["+i+"]/depthngnm"));
- //submit("TRADT10329");
- model.removeNodeset("/root/temp/prntprcpinfo");
- model.makeNode("/root/temp/prntprcpinfo");
- model.copyNode( "/root/temp/prntprcpinfo", "/root/main/sumlist");
- model.setValue("/root/temp/prntinfo/sumfromdd", model.getValue("/root/send/srchdata/srchfromdd"));
- model.setValue("/root/temp/prntinfo/sumtodd", model.getValue("/root/send/srchdata/srchtodd"));
- model.refresh();
- for(var i = 1 ; i <= getNodesetCount("/root/temp/prntprcpinfo/suminfo") ; i++) {
- model.setValue("/root/temp/prntprcpinfo/suminfo["+i+"]/wardnm",model.getValue("/root/init/orddept/dept/depthngnm"));
- }
- model.refresh();
-
- exeReportPreview("RPADT10301", "XMLSTR", "", "", "true","","","","","true");
-
-
- //exeReportPreview("RPADT10300", "XML", "/root/send/srchdata");
- //exeReportPreview("RPADT10300", "XMLSTR", "", "", "true","","","","","true");
- ]]>
- </script>
- </button>
- <button id="button3" class="btn6_letter6" visibility="hidden" style="left:575px; top:0px; width:104px; height:22px; ">
- <caption>Fill List출력</caption>
- </button>
- <button id="button4" class="btn3_letter6" style="left:0px; top:5px; width:104px; height:22px; ">
- <caption>수액집계조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //부서별약품집계조회(수액집계조회) 화면을 통해 수액집계조회 호출하는 경우 "마감시간관리"설정 불가하도록 처리 (2009.05.27 JJE)
- //var curScrnId = getScreenID();
- //setParameter("SMADT11000_openerscrnid", curScrnId);
- setParameter("SMADT11000_openerauth", "R");
- open("SMADT11000",0,20,150,"SMADT11000","/root/send/srchdata/srchorddeptcd","/root/send/srchorddeptcd");
- ]]>
- </script>
- </button>
- <button id="button6" class="btn6_letter6" visibility="hidden" style="left:687px; top:0px; width:104px; height:22px; ">
- <caption>환자별검수지</caption>
- </button>
- <button id="button7" class="btn6_letter4" visibility="hidden" style="left:795px; top:0px; width:80px; height:22px; ">
- <caption>네임카드</caption>
- </button>
- <button id="button5" class="btn4_letter4" visibility="hidden" style="left:1115px; top:5px; width:80px; height:22px; ">
- <caption>집계취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if ( messageBox("집계취소를 ","Q004")==6 ) {
- submit("TXADT10322");
- submit("TRADT10324");
- }
- ]]>
- </script>
- </button>
- <button id="button2" class="btn3_letter7" style="left:110px; top:5px; width:116px; height:22px; ">
- <caption>집계시간별조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- open("SMADT10900",0,20,150,"SMADT10900","","");
- ]]>
- </script>
- </button>
- </group>
- <group id="group2" style="left:0px; top:40px; width:1194px; height:65px; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:1px; width:1194px; height:64px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption1" class="search_name" style="left:5px; top:11px; width:90px; height:17px; ">조회구간 :</caption>
- <caption id="caption4" class="search_name" style="left:315px; top:10px; width:70px; height:17px; ">구분1 :</caption>
- <caption id="caption5" class="search_name" style="left:660px; top:10px; width:70px; height:17px; ">구분2 :</caption>
- <select id="checkbox1" ref="/root/send/srchdata/drugflag" class="checkbox_search" overflow="visible" appearance="full" cols="5" style="left:435px; top:14px; width:135px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>약</label>
- <value>1</value>
- </item>
- <item>
- <label>주사</label>
- <value>2</value>
- </item>
- </choices>
- </select>
- <select id="checkbox3" ref="/root/send/srchdata/prcpflag" class="checkbox_search" overflow="visible" appearance="full" cols="5" style="left:753px; top:35px; width:200px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>일반</label>
- <value>1</value>
- </item>
- <item>
- <label>선처치</label>
- <value>2</value>
- </item>
- <item>
- <label>Set처방</label>
- <value>3</value>
- </item>
- </choices>
- </select>
- <button id="btn_sea" class="btn1_letter2" style="left:1125px; top:10px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- model.removeNodeset("/root/main/prcplist/prcpinfo");
- model.setValue("/root/send/srchdata/srchorddeptcd", model.getValue("/root/init/orddept/dept/deptcd"));
- model.setValue("/root/send/srchdata/srchorddeptflag", model.getValue("/root/init/orddept/dept/orddeptflag"));
- submit("TRADT10322");
-
- if(model.getValue("/root/init/orddept/dept/orddeptflag") == "W") {
- caption5.visible = true;
- rdo_prcp.visible = true;
- } else {
- caption5.visible = false;
- rdo_prcp.visible = false;
- }
- ]]>
- </script>
- </button>
- <input id="ipt_sumdt1" ref="/root/send/srchdata/srchfromdd" class="input_default" inputtype="date" style="left:98px; top:11px; width:95px; height:19px; "/>
- <input id="ipt_sumdt2" ref="/root/send/srchdata/srchtodd" class="input_default" inputtype="date" style="left:210px; top:11px; width:95px; height:19px; "/>
- <caption id="caption32" style="left:197px; top:10px; width:15px; height:20px; vertical-align:middle; ">~</caption>
- <select1 id="radio1" ref="/root/send/srchdata/udsflag" appearance="full" cols="1" rows="2" vcellspacing="8" overflow="visible" style="left:385px; top:10px; width:50px; height:50px; border-style:none; ">
- <choices>
- <item>
- <label>일반</label>
- <value>N</value>
- </item>
- <item>
- <label>UDS</label>
- <value>U</value>
- </item>
- </choices>
- </select1>
- <select id="checkbox4" ref="/root/send/srchdata/drugflag" class="checkbox_search" overflow="visible" appearance="full" cols="5" style="left:433px; top:38px; width:175px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>PTP</label>
- <value>3</value>
- </item>
- <item>
- <label>주사</label>
- <value>4</value>
- </item>
- <item>
- <label>외용,수제</label>
- <value>5</value>
- </item>
- </choices>
- </select>
- <caption id="caption3" class="search_name" style="left:660px; top:35px; width:70px; height:17px; ">구분3 :</caption>
- <caption id="caption2" class="search_name" style="left:5px; top:40px; width:90px; height:17px; ">부 서 :</caption>
- <output id="otp_userdeptnm" ref="/root/temp/userinfo/userinfo/userdeptnm" style="left:95px; top:39px; width:280px; height:19px; "/>
- <select id="rdo_prcp" ref="/root/send/srchdata/prcpkindcd" overflow="visible" appearance="full" cols="4" style="left:752px; top:10px; width:233px; height:25px; border-style:none; ">
- <choices>
- <item>
- <label>정규</label>
- <value>R</value>
- </item>
- <item>
- <label>추가</label>
- <value>A</value>
- </item>
- <item>
- <label>응급</label>
- <value>E</value>
- </item>
- <item>
- <label>Admission</label>
- <value>M</value>
- </item>
- </choices>
- </select>
- </group>
- </xhtml:body>
- </xhtml:html>
|