123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955 |
- <?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>
- <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/>
- </narclist>
- </narclist>
- </main>
- <send>
- <srchinfo/>
- <srchcond>
- <deptflag/>
- <wardcd/>
- </srchcond>
- <narcinfo>
- <srchinfo/>
- <narclist/>
- <userinfo/>
- </narcinfo>
- <userinfo>
- <userid/>
- </userinfo>
- <dutdeptinfo>
- <deptcd/>
- </dutdeptinfo>
- </send>
- <init>
- <execdeptlist>
- <dept>
- <deptcd/>
- <deptnm/>
- </dept>
- </execdeptlist>
- </init>
- <hidden>
- <narc_dept/>
- </hidden>
- <temp>
- <srchinfo>
- <narcflag>T</narcflag>
- <timeflag>2</timeflag>
- <fst_dd/>
- <last_dd/>
- <srchpid/>
- <srchward/>
- <srchroomcd/>
- <barcode/>
- <drugkind/>
- <srchioflag/>
- <mypat/>
- <narcstat>T</narcstat>
- <rtnflag/>
- <rtnendflag/>
- <rtnstat/>
- <cnclflag/>
- <cnclstat/>
- <srchroot/>
- <srchid/>
- <drugdeptcd/>
- <srchdrugdeptflag/>
- <srchpatnm/>
- <srchdutplcecd/>
- <srchdutplcenm/>
- <chkdutdept/>
- <chkprcpno/>
- <drugdeptnm/>
- <prtab/>
- <nodeliveflag/>
- <dschdrugyn/>
- <injectflag/>
- </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>
- <bind id="bind1" ref="/root/main/narclist/narclist/narcstat" readonly="../pid != ''"/>
- <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/SMADT30400.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="TRADT30403" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/userinfo" replace="instance" resultref="/root/temp/userinfo"/>
- <submission id="TRADT30404" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchcond" replace="instance" resultref="/root/temp/room"/>
- <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="TRADT30105" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchinfo"/>
- <bind id="bind2" ref="/root/main/narclist/narclist/cnclstat" readonly="../pid != ''"/>
- <bind id="bind3" ref="/root/main/narclist/narclist/rtnstat" readonly="../pid != ''"/>
- <submission id="TRADT30407" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/hidden" resultref="/root/init/execdeptlist"/>
- <submission id="TRADT30108" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchinfo" resultref="/root/main/rtnprntlist"/>
- </model>
- <script type="javascript">
- <![CDATA[
- /* @group : 간호마약향정처방관리 엑셀다운
- * @ver : 2008.10.09
- * @by :
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 엑셀 저장
- */
- function fExeSaveToExcel(){
- var fileName = window.fileDialog("save", ",", false, "간호마약향정처방관리"+getCurrentDate(), "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
-
- if (fileName != "")
- {
- grd_narclist.saveExcel(fileName);
- }
- }
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1194;" style="border-width:0; 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:180px; height:14px; ">간호 마약/향정약 처방관리</caption>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
- <group id="group2" style="left:0px; top:0px; width:1195px; height:125px; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1193px; height:120px; background-color:#fffbf2; border-color:#ffd799; "/>
- <input id="input8" ref="/root/temp/srchinfo/srchpid" class="input_search" autonext="false" maxlength="10" style="left:770px; top:96px; width:100px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(model.getValue("/root/temp/srchinfo/srchpid") == ""){
- model.setValue("/root/temp/srchinfo/srchpatnm", "");
- model.refresh();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- if(event.keyCode == "13") {
- setInputNodeCurText();
- model.setValue("/root/temp/srchinfo/srchward", ""); //환자번호로 조회시 부서정보 null처리_20090509_SMY
- model.setValue("/root/temp/srchinfo/srchroomcd", ""); //환자번호로 조회시 병실정보 null처리_20090509_SMY
- fGetNarcData();
- }
- ]]>
- </script>
- </input>
- <input id="input9" ref="/root/temp/srchinfo/barcode" class="input_search" imemode="alpha" style="left:770px; top:36px; width:130px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- if(event.keyCode == "13") {
- input9.disabled=true;
- setInputNodeCurText();
- fChgBarcode();
- input9.disabled=false;
- model.setFocus("input9");
- }
- ]]>
- </script>
- </input>
- <line id="line13" class="line_4" style="x1:1120px; y1:5px; x2:1120px; y2:85px; border-color:#ffe4bb; border-left-style:solid; "/>
- <select1 id="combo2" ref="/root/temp/srchinfo/timeflag" class="combo_s_essential" appearance="minimal" style="left:110px; 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>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(combo2.value == "5") {
- checkbox1.value = "Y";
- checkbox1.dispatch("xforms-value-changed");
- }
- ]]>
- </script>
- </select1>
- <button id="button61" class="icon_search" visibility="hidden" style="left:1070px; top:95px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- modal("SPPMC02500", "1","150", "150", "SPPMC02500", "/root/temp/patinfo", "/root/send");
- model.setValue("/root/temp/srchinfo/pid" ,model.getValue("/root/temp/patinfo/pid"));
- model.setValue("/root/temp/srchinfo/patnm",model.getValue("/root/temp/patinfo/hngnm"));
- ]]>
- </script>
- </button>
- <caption id="caption4" style="left:335px; top:8px; width:20px; height:20px; vertical-align:middle; ">~</caption>
- <select1 id="rdo_narcflag" ref="/root/temp/srchinfo/narcflag" class="radio_search" visibility="visible" appearance="full" cols="3" rows="1" overflow="visible" style="left:965px; top:40px; width:135px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value>T</value>
- </item>
- <item>
- <label>마약</label>
- <value>M</value>
- </item>
- <item>
- <label>향정</label>
- <value>H</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- //fBtnDisable();
- if(model.getValue("/root/temp/srchinfo/narcflag") == "H") {
- chk_nodelive.visible = true;
- chk_rtnendflag.visible = false;
- if(model.getValue("/root/temp/srchinfo/srchioflag") == "O") {
- combo2.select(2);//향정외래일때 실시일자
- } else {
- combo2.select(1); //그외 적용일자
- }
- }else {
- chk_nodelive.visible = false;
- chk_rtnendflag.visible = true;
- combo2.select(1); //그외 적용일자
- }
-
- ]]>
- </script>
- </select1>
- <caption id="caption7" class="search_name" style="left:671px; top:37px; width:88px; height:17px; ">바 코 드 :</caption>
- <input id="input3" ref="/root/temp/srchinfo/last_dd" class="input_search" inputtype="date" style="left:350px; top:8px; width:100px; height:19px; "/>
- <line id="line4" class="line_2" style="x1:10px; y1:60px; x2:1115px; y2:60px; "/>
- <line id="line5" class="line_2" style="x1:10px; y1:30px; x2:1115px; y2:30px; "/>
- <caption id="caption9" class="search_name" style="left:15px; top:9px; width:86px; height:17px; ">조회구간 :</caption>
- <input id="input5" ref="/root/temp/srchinfo/fst_dd" class="input_search" inputtype="date" appearance="input" style="left:230px; top:8px; width:100px; height:19px; "/>
- <output id="output2" ref="/root/temp/srchinfo/srchpatnm" class="output_search" visibility="visible" style="left:875px; top:95px; width:75px; height:19px; "/>
- <button id="btn_sea" class="btn1_letter2" style="left:1125px; top:35px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetNarcData();
- ]]>
- </script>
- </button>
- <caption id="caption8" class="search_name" style="left:15px; top:37px; width:90px; height:17px; ">상 태 :</caption>
- <caption id="caption2" class="search_name" style="left:671px; top:96px; width:86px; height:17px; ">등록번호 :</caption>
- <caption id="caption10" class="search_name" style="left:671px; top:66px; width:88px; height:17px; ">간 호 사 :</caption>
- <output id="output1" ref="/root/temp/userinfo/userinfo/usernm" class="output_search" style="left:875px; top:65px; width:75px; height:19px; "/>
- <output id="input1" ref="/root/temp/srchinfo/srchid" class="output_search" autonext="false" appearance="output" maxlength="10" style="left:770px; top:65px; width:100px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- if(event.keyCode == "13") {
- setInputNodeCurText();
- fChgUserID();
- }
- ]]>
- </script>
- </output>
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- if (event.keyCode==123){
- radio4.visible=true;
- }
- ]]>
- </script>
- <select1 id="radio4" ref="/root/temp/srchinfo/srchioflag" class="radio_search" appearance="full" cols="3" rows="1" overflow="visible" style="left:770px; top:7px; width:110px; 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>
- <switch id="switch2" style="left:15px; top:89px; width:640px; height:26px; border-color:#fffbf2; border-width:0; border-style:none; ">
- <case id="case3" selected="true" style="background-color:#fffbf2; border-color:#fffbf2; border-width:0; border-style:none; ">
- <select1 id="combo1" ref="/root/temp/srchinfo/srchward" appearance="minimal" cols="2" editmode="inputsearch" style="left:95px; top:5px; 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>
- <select1 id="combo3" ref="/root/temp/srchinfo/srchroomcd" appearance="minimal" style="left:355px; top:5px; 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="caption3" class="search_name" style="left:293px; top:7px; width:70px; height:17px; ">병실 :</caption>
- <caption id="caption6" class="search_name" style="left:0px; top:7px; width:90px; height:17px; ">부 서 :</caption>
- <caption id="cap_n003" ref="/root/temp/drugdeptinfo/checkdept/deptnm" style="left:478px; top:5px; width:160px; height:18px; ">소화기센터내시경실</caption>
- <select id="checkbox3" ref="/root/temp/srchinfo/srchdrugdeptflag" overflow="visible" appearance="full" style="left:460px; top:6px; width:135px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label/>
- <value>Y</value>
- </item>
- </choices>
- </select>
- </case>
- <case id="case4" style="background-color:#fffbf2; border-color:#fffbf2; border-width:0; border-style:none; ">
- <caption id="caption1" class="search_name" style="left:0px; top:7px; width:90px; height:17px; ">부 서 :</caption>
- <select1 id="combo4" ref="/root/temp/srchinfo/srchdutplcecd" appearance="minimal" cols="2" editmode="inputsearch" showvalue="true" style="left:100px; top:5px; width:265px; height:19px; ">
- <choices>
- <itemset nodeset="/root/temp/dutdeptinfo/dept">
- <label ref="deptnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- </select1>
- </case>
- </switch>
- <select1 id="rdo_drugkind" ref="/root/temp/srchinfo/drugkind" class="radio_search" appearance="full" cols="3" rows="1" overflow="visible" style="left:886px; top:8px; width:135px; 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="caps_drugkind" class="search_name" style="left:671px; top:9px; width:86px; height:17px; ">조회구분 :</caption>
- <line id="line1" class="line_2" style="x1:10px; y1:90px; x2:1115px; y2:90px; "/>
- <select id="checkbox1" ref="/root/temp/srchinfo/cnclflag" overflow="visible" appearance="full" style="left:402px; top:37px; width:80px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>반환대상만</label>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(model.getValue("/root/temp/srchinfo/cnclflag") == "Y"){
- rdo_cncl.disabled = false;
- model.setValue("/root/temp/srchinfo/cnclstat", "T");
- // rdo_rtn.disabled = true;
- // model.setValue("/root/temp/srchinfo/rtnflag", "");
- // model.setValue("/root/temp/srchinfo/rtnstat", "");
- model.setValue("/root/temp/srchinfo/narcstat", "");
- } else {
- rdo_cncl.disabled =true;
- model.setValue("/root/temp/srchinfo/cnclstat", "");
-
- if(model.getValue("/root/temp/srchinfo/rtnflag") != "Y") {
- model.setValue("/root/temp/srchinfo/narcstat", "T");
- }
- }
- model.refresh();
- ]]>
- </script>
- </select>
- <select id="checkbox2" ref="/root/temp/srchinfo/rtnflag" overflow="visible" appearance="full" style="left:487px; top:37px; width:80px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>반납대상만</label>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(model.getValue("/root/temp/srchinfo/rtnflag") == "Y"){
- rdo_rtn.disabled = false;
- model.setValue("/root/temp/srchinfo/rtnstat", "T");
- // rdo_cncl.disabled = true;
- // model.setValue("/root/temp/srchinfo/cnclflag", "");
- // model.setValue("/root/temp/srchinfo/cnclstat", "");
- model.setValue("/root/temp/srchinfo/narcstat", "");
- } else {
- rdo_rtn.disabled =true;
- model.setValue("/root/temp/srchinfo/rtnstat", "");
-
- if(model.getValue("/root/temp/srchinfo/cnclflag") != "Y") {
- model.setValue("/root/temp/srchinfo/narcstat", "T");
- }
- }
- model.refresh();
- ]]>
- </script>
- </select>
- <select1 id="rdo_cncl" ref="/root/temp/srchinfo/cnclstat" appearance="full" cols="4" overflow="visible" style="left:110px; top:65px; width:260px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value>T</value>
- </item>
- <item>
- <label>반환대상</label>
- <value>0</value>
- </item>
- <item>
- <label>반환신청</label>
- <value>1</value>
- </item>
- <item>
- <label>반환확인</label>
- <value>2</value>
- </item>
- </choices>
- </select1>
- <select1 id="rdo_rtn" ref="/root/temp/srchinfo/rtnstat" appearance="full" cols="4" overflow="visible" style="left:380px; top:65px; width:260px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value>T</value>
- </item>
- <item>
- <label>반납대상</label>
- <value>0</value>
- </item>
- <item>
- <label>반납신청</label>
- <value>1</value>
- </item>
- <item>
- <label>반납확인</label>
- <value>2</value>
- </item>
- </choices>
- </select1>
- <select1 id="rdo_narc" ref="/root/temp/srchinfo/narcstat" appearance="full" cols="6" rows="1" overflow="visible" style="left:110px; top:37px; width:280px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value>T</value>
- </item>
- <item>
- <label>미신청</label>
- <value>1</value>
- </item>
- <item>
- <label>불출신청</label>
- <value>2</value>
- </item>
- <item>
- <label>불출</label>
- <value>5</value>
- </item>
- <item>
- <label>부서확인</label>
- <value>6</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.setValue("/root/temp/srchinfo/cnclflag","");
- model.setValue("/root/temp/srchinfo/cnclstat","");
- model.setValue("/root/temp/srchinfo/rtnflag","");
- model.setValue("/root/temp/srchinfo/rtnstat","");
- rdo_cncl.disabled = true;
- rdo_rtn.disabled = true;
-
- if(model.getValue("/root/temp/srchinfo/narcstat") == "T"){
- chk_rtnendflag.disabled = false;
- }else{
- chk_rtnendflag.disabled = true;
- model.setValue("/root/temp/srchinfo/rtnendflag","");
- }
-
- model.refresh();
- ]]>
- </script>
- </select1>
- <output id="output3" ref="/root/temp/srchinfo/drugdeptnm" class="output_search" style="left:955px; top:65px; width:155px; height:19px; "/>
- <select id="chk_rtnendflag" ref="/root/temp/srchinfo/rtnendflag" visibility="hidden" overflow="visible" appearance="full" style="left:572px; top:37px; width:95px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>반환종료포함</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- <select id="chk_injectflag" ref="/root/temp/srchinfo/injectflag" visibility="hidden" overflow="visible" appearance="full" style="left:886px; top:8px; width:95px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>미투약</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- <select id="chk_nodelive" ref="/root/temp/srchinfo/nodeliveflag" visibility="hidden" overflow="visible" appearance="full" style="left:572px; top:37px; width:80px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>미불출만</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- <select id="chk_dschdrugyn" ref="/root/temp/srchinfo/dschdrugyn" overflow="visible" appearance="full" style="left:1090px; top:95px; width:100px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>퇴원마약포함</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- <select id="checkbox4" ref="/root/temp/srchinfo/mypat" overflow="visible" appearance="full" style="left:1000px; top:98px; width:60px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>내환자</label>
- <value>M</value>
- </item>
- </choices>
- </select>
- </group>
- <button id="btn_drug" class="btn5_letter4" style="left:882px; top:128px; width:64px; height:19px; ">
- <caption>불출신청</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fNarcActing("drug");
- ]]>
- </script>
- </button>
- <button id="button1" class="btn5_letter4" style="left:1038px; top:128px; width:64px; height:19px; ">
- <caption>부서확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fNarcActing("acpt");
- ]]>
- </script>
- </button>
- <button id="btn_drugcncl" class="btn5_letter6" style="left:949px; top:128px; width:86px; height:19px; ">
- <caption>불출신청취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fNarcActing("drugcncl");
- ]]>
- </script>
- </button>
- <button id="button3" class="btn5_letter6" style="left:1105px; top:128px; width:86px; height:19px; ">
- <caption>반납/반환신청</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fNarcActing("rtn");
- ]]>
- </script>
- </button>
- <button id="button4" class="btn5_letter4" visibility="hidden" style="left:740px; top:128px; width:64px; height:19px; ">
- <caption>반환신청</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fNarcActing("rtn");
- ]]>
- </script>
- </button>
- <switch id="switch1" style="left:0px; top:150px; width:1193px; height:592px; ">
- <case id="case1" selected="true">
- <datagrid id="grd_narclist" nodeset="/root/main/narclist/narclist" class="datagrid2" backcoloralternate="#f0f0f0" caption="^PRN^D/C^병실^환자명^등록번호^불출상태^반환상태^잔량반납
상태^투약기록^적용일자^투약번호^수행부서^처방코드^처방명^1회 용량^1회 용량^1회 수량^1회 수량^횟수^일수^간호수행^간호수행^간호수행^간호수행^약제반환/반납^약제반환/반납^약제반환/반납^약제반환/반납^주증상^처방일시^처방의^투약일시^투약자^반환처방일시^반환의^불출신청일시^불출신청자^조제완료일시^조제약사^수령일시^수령담당자^부서확인일시^부서확인자^반환신청일시^반환신청자^반환확인일시^반환확인
약사^반납신청일시^반납신청자^반납확인일시^반납확인
약사^drugdd^drugno^ioflag^prcpno^prcphistno^instcd^narcflag^orddd^ward^prcpgenrflag^prcpkindcd^issdeptcdnm^fstrgstdt^drugseqno^erprcpflag^prcpdt^hospnm1^hospnm2^inclprcpcd^issdeptcd^rcissdeptcd^rcprcpexecdeptcd^rcwardcd^rcroomcd^hprntdt^deptchgyn^prcpgenrflag^prcpkindcd|^PRN^D/C^병실^환자명^등록번호^불출상태^반환상태^잔량반납
상태^투약기록^적용일자^투약번호^수행부서^처방코드^처방명^1회 용량^1회 용량^1회 수량^1회 수량^횟수^일수^잔량^잔량^반환량^반환량^잔량^잔량^반환량^반환량^주증상^처방일시^처방의^투약일시^투약자^반환처방일시^반환의^불출신청일시^불출신청자^조제완료일시^조제약사^수령일시^수령담당자^부서확인일시^부서확인자^반환신청일시^반환신청자^반환확인일시^반환확인
약사^반납신청일시^반납신청자^반납확인일시^반납확인
약사^drugdd^drugno^ioflag^prcpno^prcphistno^instcd^narcflag^orddd^ward^prcpgenrflag^prcpkindcd^issdeptcdnm^fstrgstdt^drugseqno^erprcpflag^prcpdt^hospnm1^hospnm2^inclprcpcd^issdeptcd^rcissdeptcd^rcprcpexecdeptcd^rcwardcd^rcroomcd^hprntdt^deptchgyn^prcpgenrflag^prcpkindcd" colsep="^" colwidth="26, 34, 30, 40, 47, 64, 60, 65, 65, 33, 70, 41, 70, 72, 139, 40, 30, 40, 30, 24, 24, 34, 28, 34, 27, 34, 30, 34, 30, 40, 100, 65, 100, 65, 100, 65, 100, 65, 100, 65, 100, 62, 100, 65, 100, 66, 100, 65, 100, 65, 100, 65, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" explorerbar="sort" frozencols="13" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:0px; width:1190px; height:588px; ">
- <col checkvalue="Y,N" ref="sel" type="checkbox"/>
- <col ref="prnyn" style="text-align:center; "/>
- <col ref="dcyn" style="text-align:center; "/>
- <col ref="roomcd" style="text-align:center; "/>
- <col ref="patnm" style="text-align:center; "/>
- <col ref="pid" style="text-align:center; "/>
- <col ref="narcstat" type="combo" style="text-align:center; ">
- <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="drugrec" style="text-align:center; "/>
- <col ref="prcpdd" format="yyyy/mm/dd" style="text-align:center; "/>
- <col ref="drugno" style="text-align:center; "/>
- <col ref="issdeptcdnm" style="text-align:center; "/>
- <col ref="prcpcd"/>
- <col ref="drugnm"/>
- <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" style="text-align:right; "/>
- <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="fstrgstdt" format="yyyy/mm/dd hh:nn" style="text-align:center; "/>
- <col ref="orddrnm" style="text-align:center; "/>
- <col ref="execdt" format="yyyy/mm/dd hh:nn" style="text-align:center; "/>
- <col ref="execrnm" style="text-align:center; "/>
- <col ref="rtnprcpdt" format="yyyy/mm/dd hh:nn" style="text-align:center; "/>
- <col ref="rtnorddrnm" style="text-align:center; "/>
- <col ref="reqdt" format="yyyy/mm/dd hh:nn" style="text-align:center; "/>
- <col ref="reqidnm" style="text-align:center; "/>
- <col ref="drugdt" format="yyyy/mm/dd hh:nn" style="text-align:center; "/>
- <col ref="drugidnm" style="text-align:center; "/>
- <col ref="delivedt" format="yyyy/mm/dd hh:nn" style="text-align:center; "/>
- <col ref="deliveidnm" style="text-align:center; "/>
- <col ref="acptdt" format="yyyy/mm/dd hh:nn" style="text-align:center; "/>
- <col ref="acptidnm" style="text-align:center; "/>
- <col ref="rtnappdt" format="yyyy/mm/dd hh:nn" style="text-align:center; "/>
- <col ref="rtnappidnm" style="text-align:center; "/>
- <col ref="rtncnfmdt" format="yyyy/mm/dd hh:nn" style="text-align:center; "/>
- <col ref="rtncnfmidnm" style="text-align:center; "/>
- <col ref="spredt" format="yyyy/mm/dd hh:nn" style="text-align:center; "/>
- <col ref="spreidnm" style="text-align:center; "/>
- <col ref="sprecnfmdt" format="yyyy/mm/dd hh:nn" style="text-align:center; "/>
- <col ref="sprecnfmidnm" style="text-align:center; "/>
- <col ref="drugdd" visibility="hidden"/>
- <col ref="drugno" visibility="hidden"/>
- <col ref="ioflag" visibility="hidden"/>
- <col ref="prcpno" type="input" visibility="hidden"/>
- <col ref="prcphistno" visibility="hidden"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="narcflag" visibility="hidden"/>
- <col ref="orddd" visibility="hidden"/>
- <col ref="ward" visibility="hidden"/>
- <col ref="prcpgenrflag" visibility="hidden"/>
- <col ref="prcpkindcd" visibility="hidden"/>
- <col ref="issdeptcdnm" visibility="hidden"/>
- <col ref="fstrgstdt" visibility="hidden"/>
- <col ref="drugseqno" visibility="hidden"/>
- <col ref="erprcpflag" visibility="hidden"/>
- <col ref="prcpdt" visibility="hidden"/>
- <col ref="hospnm1" visibility="hidden"/>
- <col ref="hospnm2" visibility="hidden"/>
- <col ref="inclprcpcd" visibility="hidden"/>
- <col ref="issdeptcd" visibility="hidden"/>
- <col ref="rcissdeptcd" visibility="hidden"/>
- <col ref="rcprcpexecdeptcd" visibility="hidden"/>
- <col ref="rcwardcd" visibility="hidden"/>
- <col ref="rcroomcd" visibility="hidden"/>
- <col ref="hprntdt" visibility="hidden"/>
- <col ref="deptchgyn" visibility="hidden"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- // 더블클릭시 해당 환자의 정보만을 조회토록
- if(grd_narclist.iscell(event.target) ){
- model.setValue("/root/temp/srchinfo/srchpid",model.getValue("/root/main/narclist/narclist["+(grd_narclist.row-1)+"]/pid"));
- model.setValue("/root/temp/srchinfo/srchpatnm",model.getValue("/root/main/narclist/narclist["+(grd_narclist.row-1)+"]/patnm"));
- model.setValue("/root/temp/srchinfo/chkprcpno",model.getValue("/root/main/narclist/narclist["+(grd_narclist.row-1)+"]/prcpno"));
- //model.refresh();
- fGetNarcData();
- //환자별 조회라면 체크 표시
- fChkPatSearch();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if ( grd_narclist.row ==0 ){
- for(var i=grd_narclist.fixedRows; i < grd_narclist.rows; i++){
- if ( grd_narclist.isReadOnly( i, grd_narclist.colRef("sel") )==true ) {
- model.setValue("/root/main/narclist/narclist["+(i-1)+"]/sel","N");
- }
- }
- model.refresh();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_narclist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- </case>
- </switch>
- <caption id="caption5" style="left:30px; top:130px; width:100px; height:20px; ">수술중 처방</caption>
- </group>
- <group id="group4" scroll="auto" style="left:0px; top:757px; width:1195px; height:27px; ">
- <button id="btn_excel" class="btn2_letter4" style="left:1125px; top:5px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (grd_narclist.rows>2) {
- fExeSaveToExcel();
- }
- ]]>
- </script>
- </button>
- <button id="btn_print" class="btn6_letter4" style="left:1042px; top:3px; width:80px; height:22px; ">
- <caption>출 력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if( grd_narclist.rows != 0){
- exeReportPreview("RPADT30400", "XMLSTR", "", "", "false","","","","","false");
- }
- ]]>
- </script>
- </button>
- <button id="button5" class="btn6_letter6" style="left:819px; top:3px; width:104px; height:22px; ">
- <caption>잔여마약관리</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- modal("SMADT30200");
- ]]>
- </script>
- </button>
- <button id="button6" class="btn6_letter7" style="left:689px; top:3px; width:115px; height:22px; ">
- <caption>내시경마약관리</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- open("SMADT30901");
- ]]>
- </script>
- </button>
- </group>
- <caption id="caption42" class="color_9" style="left:10px; top:145px; width:15px; height:15px; "/>
- <button id="button8" class="btn6_letter6" style="left:934px; top:760px; width:104px; height:22px; ">
- <caption>반환반납장부</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.makeValue("/root/send/srchcond/narcflag", model.getValue("/root/temp/srchinfo/narcflag"));
- model.makeValue("/root/temp/srchinfo/srchdeptcd", model.getValue("/root/temp/srchinfo/drugdeptcd"));
- model.makeValue("/root/temp/srchinfo/nodeliveflag", "");
-
- model.copyNode("/root/send/srchinfo","/root/temp/srchinfo");
- model.setValue("/root/send/srchinfo/cnclflag","Y");
- model.setValue("/root/send/srchinfo/cnclstat","T");
- model.setValue("/root/send/srchinfo/rtnflag","Y");
- model.setValue("/root/send/srchinfo/rtnstat","T");
- // model.setValue("/root/send/srchinfo/pid", "");
- // model.setValue("/root/send/srchinfo/srchdrugno", "");
- model.setValue("/root/send/srchinfo/narcstat", "");
- model.makeValue("/root/send/srchinfo/usernm", getUserName());
- //submit("TRADT30402");
- submit("TRADT30108");
-
- if(model.getValue("root/main/rtnprntlist/prntlist/pid") != "") {
- if ( model.getValue("/root/temp/srchinfo/narcflag") =="H"){
- exeReportPreview("RFADT30103", "XMLSTR", "", "", "true","","","","","true");
- } else {
- exeReportPreview("RFADT30101", "XMLSTR", "", "", "true","","","","","true");
- }
- }
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|