123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583 |
- <?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>Untitle</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <narclist>
- <narclist>
- <sel/>
- <prnyn/>
- <roomcd/>
- <patnm/>
- <pid/>
- <narcstat/>
- <cnclstat/>
- <rtnstat/>
- <returnflag/>
- <returnqty/>
- <returnvol/>
- <drugrec/>
- <prcpdd/>
- <prcpcd/>
- <drugnm/>
- <prcpvol/>
- <dayprcpqty/>
- <pain/>
- <orddrnm/>
- <rtnprcpdt/>
- <rtnorddrnm/>
- <sumdt/>
- <reqdt/>
- <reqidnm/>
- <drugdt/>
- <drugidnm/>
- <delivedt/>
- <deliveidnm/>
- <acptdt/>
- <acptidnm/>
- <rtnappdt/>
- <rtnappidnm/>
- <rtncnfmdt/>
- <rtncnfmidnm/>
- <spreqty/>
- <sprevol/>
- <spredt/>
- <spreidnm/>
- <sprecnfmdt/>
- <sprecnfmidnm/>
- <drugdd/>
- <drugno/>
- <ioflag/>
- <prcpno/>
- <prcphistno/>
- <instcd/>
- <narcflag/>
- <orddd/>
- <ward/>
- <prcpgenrflag/>
- <prcpkindcd/>
- <issdeptcdnm/>
- <fstrgstdt/>
- <rtncnts/>
- </narclist>
- </narclist>
- <list1>
- <item>
- <선택/>
- <nm/>
- <cd/>
- </item>
- </list1>
- <list2>
- <item>
- <pat/>
- <no/>
- <patno/>
- <patnm/>
- <seq/>
- <drugcd/>
- <drugnm/>
- <처방량/>
- <tims/>
- <days/>
- <총량/>
- <잔량/>
- <mthd/>
- <room/>
- <orddeptcd/>
- <drugtt/>
- <nurs/>
- <출고일시/>
- <출고자/>
- <반환자/>
- <반환일시/>
- </item>
- </list2>
- </main>
- <send>
- <srchinfo/>
- <userinfo>
- <userid/>
- </userinfo>
- <dutdeptinfo>
- <deptcd/>
- </dutdeptinfo>
- <srchcond>
- <deptflag/>
- <wardcd/>
- </srchcond>
- <narcinfo>
- <srchinfo/>
- <narclist/>
- <userinfo/>
- </narcinfo>
- </send>
- <init>
- <execdeptlist>
- <dept>
- <deptcd/>
- <deptnm/>
- </dept>
- </execdeptlist>
- </init>
- <hidden/>
- <temp>
- <srchinfo>
- <narcflag>T</narcflag>
- <timeflag>7</timeflag>
- <fst_dd/>
- <last_dd/>
- <srchpid/>
- <srchward/>
- <srchroomcd/>
- <srchioflag/>
- <drugkind/>
- <narcstat/>
- <srchid/>
- <drugdeptcd/>
- <drugdeptnm/>
- <srchpatnm/>
- <srchroomcd/>
- <srchdrugkind/>
- <drugflag/>
- <cnclstat/>
- <rtnstat/>
- <narctypeflag/>
- <srchdutplcecd/>
- <srchdutplcecd/>
- <srchdutplcenm/>
- <cnclflag/>
- <rtnflag/>
- <srchdeptcd/>
- <nurscncl>Y</nurscncl>
- </srchinfo>
- <srchcond>
- <dept>
- <deptcd/>
- <deptnm/>
- </dept>
- </srchcond>
- <room>
- <room>
- <wardroomcdid/>
- <wardroomcdnm/>
- </room>
- </room>
- <userinfo>
- <userinfo>
- <userid/>
- <usernm/>
- <userdeptcd/>
- <userdeptnm/>
- </userinfo>
- </userinfo>
- <patinfo>
- <pid/>
- <hngnm/>
- </patinfo>
- <dutdeptinfo>
- <dept>
- <deptcd/>
- <deptnm/>
- </dept>
- </dutdeptinfo>
- <topinfo/>
- <chkcashinfo>
- <narclist/>
- </chkcashinfo>
- <drugdeptinfo>
- <dept>
- <deptcd/>
- <deptnm/>
- </dept>
- <checkdept>
- <deptnm/>
- <srchdrugdeptflag/>
- </checkdept>
- </drugdeptinfo>
- </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="../../../ast/commonweb/js/AST.js"/>
- <script type="javascript" src="../../../ast/pharmacyweb/js/SMADT30200.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInit();
- ]]>
- </script>
- <submission id="TRADT30401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchcond" replace="instance" resultref="/root/temp/srchcond"/>
- <submission id="TRADT30402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchinfo" replace="instance" resultref="/root/main/narclist"/>
- <submission id="TRADT30404" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchcond" replace="instance" resultref="/root/temp/room"/>
- <submission id="TRADT30403" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/userinfo" replace="instance" resultref="/root/temp/userinfo"/>
- <submission id="TRADT30405" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/dutdeptinfo" replace="instance" resultref="/root/temp/dutdeptinfo"/>
- <submission id="TXADT30401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/narcinfo" replace="instance" resultref="/root/main/narclist"/>
- <submission id="TRADT30407" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/hidden" resultref="/root/init/execdeptlist"/>
- <submission id="TRADT30105" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchinfo"/>
- <submission id="TXADT30101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/narcinfo" replace="instance" resultref="/root/main/narclist"/>
- <submission id="TRADT30108" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchinfo" resultref="/root/main/rtnprntlist"/>
- <submission id="TRADT30112" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchinfo" resultref="/root/main/rtnprntlist"/>
- </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="caption19" class="tit_1" style="left:0px; top:0px; width:185px; height:13px; ">마약/향정 잔여량관리</caption>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:762px; ">
- <datagrid id="grd_narclist" nodeset="/root/main/narclist/narclist" backcoloralternate="#f0f0f0" caption="^병실^환자명^등록번호^불출상태^반환상태^반납상태^적용일자^투약번호^처방코드^처방명^총용량^총용량^1회용량^1회용량^1회수량^1회수량^횟수^일수^잔량^잔량^잔량사유^잔량^신청자^신청일시^확인약사^확인약사" colsep="^" colwidth="20, 46, 62, 60, 62, 56, 54, 67, 40, 67, 146, 25, 30, 40, 27, 29, 30, 31, 31, 42, 27, 100, 0, 52, 113, 56, 103, 55, 88, 100, 100, 100, 100, 100, 100, 100, 100, 100" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:100px; width:1194px; height:655px; ">
- <col checkvalue="Y,N" ref="sel" type="checkbox"/>
- <col ref="roomcd"/>
- <col ref="patnm" visibility="visible"/>
- <col ref="pid"/>
- <col ref="narcstat" type="combo">
- <choices>
- <item>
- <label>미신청</label>
- <value>1</value>
- </item>
- <item>
- <label>불출신청</label>
- <value>2</value>
- </item>
- <item>
- <label>출력완료</label>
- <value>3</value>
- </item>
- <item>
- <label>조제완료</label>
- <value>4</value>
- </item>
- <item>
- <label>불출</label>
- <value>5</value>
- </item>
- <item>
- <label>부서확인</label>
- <value>6</value>
- </item>
- </choices>
- </col>
- <col ref="cnclstat" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>-</label>
- <value/>
- </item>
- <item>
- <label>반환대상</label>
- <value>0</value>
- </item>
- <item>
- <label>반환신청</label>
- <value>1</value>
- </item>
- <item>
- <label>반환확인</label>
- <value>2</value>
- </item>
- <item>
- <label>반환종료</label>
- <value>7</value>
- </item>
- <item>
- <label>미불출</label>
- <value>10</value>
- </item>
- </choices>
- </col>
- <col ref="rtnstat" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>-</label>
- <value/>
- </item>
- <item>
- <label>잔량대상</label>
- <value>0</value>
- </item>
- <item>
- <label>잔량신청</label>
- <value>1</value>
- </item>
- <item>
- <label>잔량확인</label>
- <value>2</value>
- </item>
- <item>
- <label>미불출</label>
- <value>10</value>
- </item>
- </choices>
- </col>
- <col ref="prcpdd" format="yyyy/mm/dd" style="text-align:center; "/>
- <col ref="drugno" style="text-align:center; "/>
- <col ref="prcpcd"/>
- <col ref="drugnm"/>
- <col ref="totdrugqty"/>
- <col ref="prcpqtyunit" style="text-align:left; "/>
- <col ref="prcpvol" style="text-align:right; "/>
- <col ref="prcpvolunit" style="text-align:left; "/>
- <col ref="dayprcpqty" style="text-align:right; "/>
- <col ref="prcpqtyunit" style="text-align:left; "/>
- <col ref="prcptims" style="text-align:center; "/>
- <col ref="prcpdayno" style="text-align:center; "/>
- <col ref="sprevol" type="input" style="text-align:right; "/>
- <col ref="prcpvolunit" style="text-align:left; "/>
- <col ref="rtncnts" type="combo" style="text-align:center; ">
- <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>
- <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>
- </col>
- <col ref="spredinm" style="text-align:center; "/>
- <col ref="spreidnm" style="text-align:center; "/>
- <col ref="spredt" format="yyyy-mm-dd hh-nn" style="text-align:center; "/>
- <col ref="sprecnfmidnm" style="left:1092px; top:23px; width:52px; height:23px; text-align:center; "/>
- <col ref="sprecnfmdt" format="yyyy-mm-dd hh-nn" style="text-align:center; "/>
- <col ref="prcpvolunit" style="text-align:left; "/>
- <col ref="returnvol" style="text-align:right; "/>
- <col ref="prcpvolunit" style="text-align:left; "/>
- <col ref="spreqty" style="text-align:right; "/>
- <col ref="prcpvolunit" style="text-align:left; "/>
- <col ref="returnqty" style="text-align:right; "/>
- <col ref="prcpqtyunit" style="text-align:left; "/>
- <col ref="pain" style="text-align:center; "/>
- <col ref="orddrnm"/>
- <col ref="rtnprcpdt"/>
- <col ref="rtnorddrnm"/>
- <col ref="returnflag"/>
- <col ref="returnqty"/>
- <col ref="returnvol"/>
- </datagrid>
- <group id="group2" style="left:0px; top:0px; width:1195px; height:75px; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:70px; background-color:#fffbf2; border-color:#ffd799; "/>
- <input id="input8" ref="/root/temp/srchinfo/srchpid" class="input_search" navindex="16" autonext="false" maxlength="10" style="left:105px; top:40px; width:100px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- if(event.keyCode == "13") {
- setInputNodeCurText();
- fGetNarcData();
- }
- ]]>
- </script>
- </input>
- <line id="line13" style="x1:1110px; y1:10px; x2:1110px; y2:60px; border-color:#ffe4bb; border-left-style:solid; "/>
- <caption id="caption2" class="search_name" style="left:10px; top:40px; width:86px; height:17px; ">환자번호 :</caption>
- <button id="button61" class="icon_search" style="left:210px; top:40px; width:16px; height:16px; ">
- <caption/>
- </button>
- <select1 id="rdo_drugkind" ref="/root/temp/srchinfo/drugkind" class="radio_search" navindex="6" appearance="full" cellspacing="15" cols="3" rows="1" overflow="visible" style="left:930px; top:43px; width:150px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value>T</value>
- </item>
- <item>
- <label>약</label>
- <value>D</value>
- </item>
- <item>
- <label>주사</label>
- <value>I</value>
- </item>
- </choices>
- </select1>
- <caption id="caption9" class="search_name" style="left:860px; top:10px; width:86px; height:17px; ">구분 :</caption>
- <select1 id="radio5" ref="/root/temp/srchinfo/narcflag" class="radio_search" navindex="5" appearance="full" cellspacing="10" cols="3" rows="1" overflow="visible" style="left:930px; top:10px; width:165px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value>A</value>
- </item>
- <item>
- <label>마약</label>
- <value>M</value>
- </item>
- <item>
- <label>향정</label>
- <value>H</value>
- </item>
- </choices>
- </select1>
- <line id="line5" class="line_2" style="x1:5px; y1:34px; x2:1103; y2:34px; "/>
- <output id="output2" class="output_search" style="left:235px; top:40px; width:100px; height:19px; "/>
- <button id="btn_sea" class="btn1_letter2" navindex="11" style="left:1120px; top:25px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetNarcData();
- ]]>
- </script>
- </button>
- <select1 id="combo2" ref="/root/temp/srchinfo/timeflag" class="combo_s_essential" navindex="1" appearance="minimal" style="left:105px; top:8px; width:100px; height:19px; ">
- <choices>
- <item>
- <label>처방일자</label>
- <value>1</value>
- </item>
- <item>
- <label>적용일자</label>
- <value>2</value>
- </item>
- <item>
- <label>실시일자</label>
- <value>3</value>
- </item>
- <item>
- <label>검사예약일</label>
- <value>4</value>
- </item>
- <item>
- <label>반환저장일자</label>
- <value>5</value>
- </item>
- </choices>
- </select1>
- <caption id="caption1" style="left:330px; top:8px; width:20px; height:20px; vertical-align:middle; ">~</caption>
- <input id="input1" ref="/root/temp/srchinfo/last_dd" class="input_search" navindex="3" inputtype="date" style="left:345px; top:8px; width:100px; height:19px; "/>
- <caption id="caption10" class="search_name" style="left:10px; top:9px; width:86px; height:17px; ">조회구간 :</caption>
- <input id="input2" ref="/root/temp/srchinfo/fst_dd" class="input_search" navindex="2" inputtype="date" appearance="input" style="left:225px; top:8px; width:100px; height:19px; "/>
- <select1 id="combo1" ref="/root/temp/srchinfo/srchdutplcecd" navindex="10" appearance="minimal" cols="2" editmode="inputsearch" style="left:505px; top:43px; width:201px; height:19px; ">
- <choices>
- <itemset nodeset="/root/temp/dutdeptinfo/dept">
- <label ref="deptnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fSrchRoomCD();
- ]]>
- </script>
- </select1>
- <select1 id="radio4" ref="/root/temp/srchinfo/srchioflag" class="radio_search" navindex="4" appearance="full" cellspacing="23" cols="3" rows="1" overflow="visible" style="left:615px; top:12px; width:125px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>외래</label>
- <value>O</value>
- </item>
- <item>
- <label>입원</label>
- <value>I</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fChgIOFlag();
- fGetNarcData();
- ]]>
- </script>
- </select1>
- <caption id="caption6" class="search_name" style="left:730px; top:43px; width:70px; height:17px; ">병실 :</caption>
- <select1 id="combo4" ref="/root/temp/srchinfo/srchroomcd" navindex="9" appearance="minimal" style="left:795px; top:43px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/temp/room/room">
- <label ref="wardroomcdnm"/>
- <value ref="wardroomcdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.setValue("/root/temp/srchinfo/srchpid", "");
- model.setValue("/root/temp/srchinfo/srchpatnm", "");
- // model.setValue("/root/temp/srchinfo/barcode", "");
- model.refresh();
- ]]>
- </script>
- </select1>
- <caption id="caption7" class="search_name" style="left:440px; top:43px; width:90px; height:17px; ">병동 :</caption>
- <select1 id="combo5" ref="/root/temp/srchinfo/srchward" navindex="8" appearance="minimal" cols="2" editmode="inputsearch" style="left:505px; top:43px; width:190px; height:19px; ">
- <choices>
- <itemset nodeset="/root/temp/srchcond/dept">
- <label ref="deptnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fSrchRoomCD();
- ]]>
- </script>
- </select1>
- <caption id="caption3" class="search_name" style="left:515px; top:10px; width:95px; height:17px; ">입원/외래 :</caption>
- </group>
- <button id="button1" class="btn4_letter4" navindex="12" style="left:875px; top:77px; width:80px; height:22px; ">
- <caption>잔량신청</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- for(var i=grd_narclist.fixedRows; i < grd_narclist.rows; i++){
- var sel = model.getValue("/root/main/narclist/narclist["+(i)+"]/sel");
- if(sel == 'Y'){
- model.setValue("/root/main/narclist/narclist["+(i)+"]/rtnstat","1");
- }
- }
- fNarcActing("sprein");
- ]]>
- </script>
- </button>
- <button id="button2" class="btn4_letter6" navindex="13" style="left:955px; top:77px; width:104px; height:22px; ">
- <caption>잔량신청취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fNarcActing("SpreCncl");
- ]]>
- </script>
- </button>
- <button id="button3" class="btn4_letter7" style="left:1060px; top:77px; width:116px; height:22px; ">
- <caption>잔량신청서출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //debugger;
- // submit("TRADT30108");
- model.makeNode("/root/tmp/narclist");
- copyNodesetType("/root/tmp/narclist","/root/main/narclist/narclist[sel ='Y']");
-
- if ( model.getValue("/root/temp/srchinfo/narcflag") =="H"){
- exeReportPreview("RFADT30103", "XMLSTR", "/root/main/narclist/narclist[sel ='Y']", "", "true","","","","","true");
- } else {
- exeReportPreview("RFADT30114", "XMLSTR", "/root/tmp/narclist", "", "true","","","","","true");
- }
- // }
-
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|