123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881 |
- <?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>
- <rtnlist>
- <rtnlist>
- <sel/>
- <pid/>
- <hngnm/>
- <wardnm/>
- <roomcd/>
- <prcpcd/>
- <prcpnm/>
- <prcpqty/>
- <dayprcpqty/>
- <prcptims/>
- <prcpdayno/>
- <rtnqty/>
- <dayrtnqty/>
- <rtntims/>
- <rtndayno/>
- <rtncnts/>
- <rtncntsunit/>
- <rtnstocqty/>
- <rtnrsn/>
- <rtnnm/>
- <rtndt/>
- <rtncnfmdt/>
- <rgstdt/>
- <prcpdd/>
- <prcpno/>
- <prcphistno/>
- <instcd/>
- <drugdd/>
- <drugno/>
- <ioflag/>
- <prcpclscd/>
- <prcpgenrflag/>
- <prcpkindcd/>
- <rtnflag/>
- <drugflag/>
- <delivecrite/>
- <packvol/>
- <rtndrugtims/>
- <rtndrugdayno/>
- <calcmthdcd/>
- <totdrugqty/>
- <cretno/>
- <drugflagnm/>
- <rtnstocdeptcd/>
- <packunit/>
- <rtnunit/>
- <drugsumdt/>
- <orddeptnm/>
- <orddrnm/>
- <calcmthdcdnm/>
- <delivecritenm/>
- <prcpqty2/>
- <rtnqty2/>
- </rtnlist>
- </rtnlist>
- <prcplist>
- <prcplist>
- <prcpcd/>
- <hngnm/>
- <prcpqty/>
- <prcpqtyunit/>
- <prcptims/>
- <prcpdayno/>
- <prcpmixno/>
- <rtndt/>
- <rtnid/>
- <mthdnm/>
- </prcplist>
- </prcplist>
- <rtngrouplist>
- <rtnlist>
- <prcpcd/>
- <prcpnm/>
- <rtnqty/>
- <rtnstocqty/>
- </rtnlist>
- </rtngrouplist>
- </main>
- <send>
- <srchinfo/>
- <deptinfo>
- <deptflag/>
- </deptinfo>
- <rtninfo>
- <rtnlist/>
- <userinfo>
- <userid/>
- <userdeptcd/>
- </userinfo>
- <srchinfo/>
- </rtninfo>
- <prcpinfo/>
- <userinfo>
- <userid/>
- </userinfo>
- <seldata>
- <pid/>
- <orddd/>
- <cretno/>
- </seldata>
- </send>
- <init/>
- <hidden>
- <ret/>
- </hidden>
- <temp>
- <srchinfo>
- <prcpdd/>
- <ioflag>I</ioflag>
- <rtnflag>1</rtnflag>
- <pid/>
- <patnm/>
- <barcode/>
- <ward/>
- <userid/>
- <rtnflag_all/>
- <drugflag>I</drugflag>
- <spclflag/>
- <chk_spclflag/>
- <srchddflag>R</srchddflag>
- <srchpidonly/>
- <rtnstocdeptcd/>
- <eflag/>
- <prcptodd/>
- <drugkindflag/>
- <drugkindflag_all/>
- <drugcd/>
- <powderflag/>
- <coldflag/>
- <rflag/>
- <indrugno/>
- </srchinfo>
- <deptlist>
- <ward>
- <wardcd/>
- <wardnm/>
- </ward>
- </deptlist>
- <userinfo>
- <userinfo>
- <userid/>
- <usernm/>
- <userdeptcd/>
- <userdeptnm/>
- </userinfo>
- </userinfo>
- <disflag/>
- </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/pharmacyweb/js/SMADT00600.js"/>
- <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInit();
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
-
- // 2008-10-17 전체선택 추가
- function fTotAllSelect() {
- grd_rtnlist.fixedcellischeck(0,0)=false; //grid 캡션의 checkbox clear
- //if ((model.getValue("/root/temp/srchinfo/ioflag")=="I") || (model.getValue("/root/temp/srchinfo/pid") == "" )) {
- // grd_rtnlist.fixedcellcheckbox(0,0) = false;
- //}else{
- grd_rtnlist.fixedcellcheckbox(0,0) = true;
- //}
- }
- ]]>
- </script>
- <submission id="TRADT00601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/deptinfo" replace="instance" resultref="/root/temp/deptlist"/>
- <submission id="TRADT00602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchinfo" replace="instance" resultref="/root/main/rtnlist"/>
- <submission id="TRADT00603" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/prcpinfo" replace="instance" resultref="/root/main/prcplist"/>
- <submission id="TRADT00604" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/userinfo" replace="instance" resultref="/root/temp/userinfo"/>
- <submission id="TRADT00605" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchinfo" replace="instance" resultref="/root/main/rtngrouplist"/>
- <submission id="TRADT00606" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/seldata" replace="instance" resultref="/root/hidden"/>
- <submission id="TXADT00601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/rtninfo" replace="instance" resultref="/root/main/rtnlist"/>
- <submission id="TXADT00602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/rtninfo" replace="instance" resultref="/root/main/rtnlist"/>
- <submission id="TRADT30401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchcond" replace="instance" resultref="/root/temp/srchcond"/>
- <submission id="TRADT30405" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/dutdeptinfo" replace="instance" resultref="/root/temp/dutdeptinfo"/>
- <submission id="TRADT30101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchcond" replace="instance" resultref="/root/temp/srchcond"/>
- <submission id="TRADT01106" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" resultref="/root/init/misdeptlist"/>
- <!--<bind id="bind1" ref="/root/main/rtnlist/rtnlist/rtncnts" readonly="../rtnflag != "1""/>-->
- <!--<bind id="bind2" ref="/root/main/rtnlist/rtnlist/sel" readonly="../rtnflag != "1""/>-->
- </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>
- <caption id="caption12" visibility="hidden" style="left:925px; top:0px; width:268px; height:13px; ">* 퇴원약 반환확인은 병동투약관리에서 하십시요.</caption>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
- <datagrid id="datagrid1" nodeset="/root/main/rtngrouplist/rtnlist" class="datagrid2" caption="처방코드^처방명^계산반환수량^실반환수량^caption1" colsep="^" colwidth="75, 88, 44, 46, 18" mergecellsfixedrows="bycolrec" rowsep="|" style="left:980px; top:125px; width:214px; height:615px; ">
- <col ref="prcpcd"/>
- <col ref="prcpnm"/>
- <col ref="rtnqty" style="text-align:right; "/>
- <col ref="rtnstocqty" style="text-align:right; "/>
- <col ref="allyn" visibility="hidden"/>
- </datagrid>
- <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:5px; top:92px; width:318px; height:30px; background-color:transparent; border-color:#7cbbdd; border-style:solid; "/>
- <caption id="caption51" style="left:108px; top:101px; width:50px; height:14px; vertical-align:middle; ">미처리</caption>
- <caption id="caption53" class="color_2" style="left:170px; top:100px; width:15px; height:15px; vertical-align:middle; "/>
- <group id="group2" style="left:0px; top:3px; width:1195px; height:87px; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:3px; width:1194px; height:82px; background-color:#fffbf2; border-color:#ffd799; "/>
- <select id="checkbox2" ref="/root/temp/srchinfo/rtnflag" class="checkbox_search" overflow="visible" appearance="full" cols="4" rows="1" sep="|" style="left:175px; top:35px; width:170px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>미처리</label>
- <value>1</value>
- </item>
- <item>
- <label>처리</label>
- <value>2</value>
- </item>
- <item>
- <label>의사반환</label>
- <value>3</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fChgRtnFlag();
- ]]>
- </script>
- </select>
- <caption id="caption25" style="left:1085px; top:15px; width:100px; height:13px; ">* 재고반영안됨 *</caption>
- <caption id="caption1" class="search_name" style="left:15px; top:65px; width:86px; height:17px; ">등록번호 :</caption>
- <caption id="caption2" class="search_name" style="left:1008px; top:66px; width:75px; height:17px; ">바코드 :</caption>
- <caption id="caption3" class="search_name" style="left:222px; top:65px; width:75px; height:17px; ">환자명 :</caption>
- <caption id="caption4" class="search_name" style="left:15px; top:10px; width:90px; height:17px; ">조회조건 :</caption>
- <caption id="caption5" class="search_name" style="left:427px; top:35px; width:65px; height:17px; ">구분 :</caption>
- <select1 id="radio2" ref="/root/temp/srchinfo/ioflag" class="radio_search" appearance="full" cols="3" rows="1" overflow="visible" style="left:595px; top:35px; width:95px; 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[
- // 2009.12.03 pymi (s)
- if(radio2.value == "I") {
- model.setValue("/root/temp/srchinfo/eflag", "N");
- caption12.visible = true;
- } else {
- model.setValue("/root/temp/srchinfo/eflag", "Y");
- caption12.visible = false;
- }
- // (e)
- fTotAllSelect(); // 2008-10-17 grid 캡션선택시 전체 선택처리(병동제외)
- fChgIOFlag();
- //fRtnData();
- ]]>
- </script>
- </select1>
- <input id="input1" ref="/root/temp/srchinfo/pid" class="input_search" autonext="false" maxlength="10" style="left:105px; top:64px; width:80px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- // 2008-10-06 event.keyCode=13 정상적으로 실행 안되는 경우가 발생하여 변경
- inputEnterKey("btn_sea","DOMActivate");
- ]]>
- </script>
- </input>
- <input id="input2" ref="/root/temp/srchinfo/prcptodd" class="input_search" visibility="visible" inputtype="date" style="left:343px; top:10px; width:100px; height:19px; "/>
- <caption id="caption7" class="search_name" style="left:35px; top:35px; width:104px; height:17px; ">반납구분 :</caption>
- <input id="input3" ref="/root/temp/srchinfo/patnm" class="input_search" autonext="false" maxlength="30" style="left:298px; top:64px; width:97px; height:19px; "/>
- <input id="input4" ref="/root/temp/srchinfo/barcode" class="input_search" style="left:1085px; top:64px; width:104px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- if(event.keyCode == "13") {
- fTotAllSelect(); // 2008-10-17 grid 캡션선택시 전체 선택처리(병동제외)
- fRtnData();
- }
- ]]>
- </script>
- </input>
- <caption id="caption9" class="search_name" style="left:785px; top:64px; width:86px; height:17px; ">수행부서 :</caption>
- <input id="input5" ref="/root/temp/srchinfo/prcpdd" class="input_search" inputtype="date" style="left:215px; top:10px; width:100px; height:19px; "/>
- <button id="btn_sea" class="btn1_letter2" style="left:860px; top:9px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //2008-10-17 등록번호로만 조회/검색일자구분 추가 Start
- var srchpid = "";
- var srchpidonly = "";
- var srchddflag = "";
-
- srchpid = model.getValue("/root/temp/srchinfo/pid");
- srchpidonly = model.getValue("/root/temp/srchinfo/srchpidonly");
- srchddflag = model.getValue("/root/temp/srchinfo/srchddflag");
-
- if (model.getValue("/root/temp/srchinfo/rtnflag") == "" ) {
- messageBox("반납구분을","C001");
- return;
- }
-
- if (srchpidonly == "Y") {
- if (model.getValue("/root/temp/srchinfo/pid") == "" ) {
- messageBox("등록번호를","C001");
- return;
- }
- } else {
-
- if (srchddflag == "") {
- messageBox("검색일자구분을","C001");
- return;
- }
- if (srchddflag == "O" && model.getValue("/root/temp/srchinfo/prcpdd") == "" ) {
- messageBox("적용일자를","C001");
- return;
- }
-
- if (srchddflag == "R" && model.getValue("/root/temp/srchinfo/prcpdd") == "" ) {
- messageBox("반환일자를","C001");
- return;
- }
- }
- fTotAllSelect();
- //2008-10-17 등록번호로만 조회/검색일자구분 추가 Check End
-
- fRtnData();
- // for (var i=1; i<grd_rtnlist.rows; i++) {
- // if(model.getValue("/root/main/rtnlist/rtnlist["+i+"]/drugflagnm") == "원외"){
- // grd_rtnlist.cellStyle("background-color", i, grd_rtnlist.colRef("drugflagnm")) ="#ffffcc";
- // }
- // }
- model.refresh();
- ]]>
- </script>
- </button>
- <select id="checkbox1" ref="/root/temp/srchinfo/rtnflag_all" overflow="visible" appearance="full" style="left:125px; top:35px; width:45px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value>A</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fChgRtnFlagAll();
- ]]>
- </script>
- </select>
- <select1 id="rdo_drugflag" ref="/root/temp/srchinfo/drugflag" class="radio_search" appearance="full" cols="2" overflow="visible" style="left:695px; top:35px; width:130px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>병동</label>
- <value>I</value>
- </item>
- <item>
- <label>외출/외박</label>
- <value>G</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fTotAllSelect(); // 2008-10-17 grid 캡션선택시 전체 선택처리(병동제외)
- //fRtnData();
- ]]>
- </script>
- </select1>
- <select id="checkbox3" ref="/root/temp/srchinfo/chk_spclflag" overflow="visible" appearance="full" style="left:487px; top:36px; width:105px; 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/chk_spclflag") == "Y"){
- model.setValue("/root/temp/srchinfo/spclflag", "S");
- } else {
- model.setValue("/root/temp/srchinfo/spclflag", "M");
- }
- model.refresh();
- ]]>
- </script>
- </select>
- <select1 id="combo1" ref="/root/temp/srchinfo/srchddflag" visibility="visible" appearance="minimal" style="left:105px; top:10px; width:105px; height:19px; ">
- <choices>
- <item>
- <label>적용일자</label>
- <value>O</value>
- </item>
- <item>
- <label>반환저장일자</label>
- <value>R</value>
- </item>
- <item>
- <label>반환확인일자</label>
- <value>C</value>
- </item>
- <item>
- <label>처방출력일시</label>
- <value>P</value>
- </item>
- <item>
- <label>집계일시</label>
- <value>S</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var ddflag = model.getValue("/root/temp/srchinfo/srchddflag");
-
- if(ddflag == "C") {
- model.setValue("/root/temp/srchinfo/rtnflag", "2" );
- model.setValue("/root/temp/srchinfo/rtnflag_all", "");
- model.refresh();
- checkbox1.disabled = true;
- checkbox2.disabled = true;
- } else {
- checkbox1.disabled = false;
- checkbox2.disabled = false;
- }
- ]]>
- </script>
- </select1>
- <select id="checkbox4" ref="/root/temp/srchinfo/srchpidonly" overflow="visible" appearance="full" style="left:187px; top:66px; width:28px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label/>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //alert (model.getValue("/root/temp/srchinfo/srchpidonly"));
- if(model.getValue("/root/temp/srchinfo/srchpidonly") == "Y") {
- combo1.disabled = true; //검색구분
- input5.disabled = true; //검색일자
- input2.disabled = true; //검색일자
- } else {
- combo1.disabled = false; //검색구분
- input5.disabled = false; //검색일자
- input2.disabled = false; //검색일자
- }
- ]]>
- </script>
- </select>
- <select1 id="combo2" ref="/root/temp/srchinfo/ward" visibility="visible" appearance="minimal" cols="2" editmode="inputsearch" style="left:874px; top:64px; width:121px; 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[
- fTotAllSelect(); // 2008-10-17 grid 캡션선택시 전체 선택처리(병동제외)
- //fRtnData();
- ]]>
- </script>
- </select1>
- <select id="checkbox5" ref="/root/temp/srchinfo/eflag" overflow="visible" appearance="full" style="left:345px; top:35px; width:100px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>반환요청만</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- <caption id="caption18" style="left:315px; top:9px; width:30px; height:25px; font-weight:bold; text-align:center; vertical-align:middle; ">~</caption>
- <select id="checkbox6" ref="/root/temp/srchinfo/drugkindflag" class="checkbox_search" overflow="visible" appearance="full" cols="2" rows="1" sep="|" style="left:515px; top:11px; width:120px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>내외용약</label>
- <value>1</value>
- </item>
- <item>
- <label>주사</label>
- <value>2</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fChgDrugkindFlag();
- ]]>
- </script>
- </select>
- <select id="checkbox7" ref="/root/temp/srchinfo/drugkindflag_all" overflow="visible" appearance="full" style="left:460px; top:11px; width:45px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value>A</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fChgDrugkindFlagAll();
- ]]>
- </script>
- </select>
- <caption id="caption13" class="search_name" style="left:590px; top:65px; width:100px; height:17px; ">약품코드 :</caption>
- <input id="input7" ref="/root/temp/srchinfo/drugcd" class="input_search" autonext="false" maxlength="30" style="left:679px; top:64px; width:90px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- inputEnterKey("btn_sea","DOMActivate");
- ]]>
- </script>
- </input>
- <select id="checkbox8" ref="/root/temp/srchinfo/powderflag" overflow="visible" appearance="full" style="left:645px; top:11px; width:70px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>Powder</label>
- <value>P</value>
- </item>
- </choices>
- </select>
- <select id="checkbox9" ref="/root/temp/srchinfo/coldflag" overflow="visible" appearance="full" style="left:721px; top:11px; width:60px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>냉장약</label>
- <value>COLD</value>
- </item>
- </choices>
- </select>
- <select id="checkbox10" ref="/root/temp/srchinfo/rflag" overflow="visible" appearance="full" style="left:793px; top:11px; width:60px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>정규</label>
- <value>R</value>
- </item>
- </choices>
- </select>
- <caption id="caption14" class="search_name" style="left:410px; top:65px; width:103px; height:17px; ">투약번호 :</caption>
- <input id="input8" ref="/root/temp/srchinfo/indrugno" class="input_search" autonext="false" maxlength="30" style="left:499px; top:64px; width:71px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- inputEnterKey("btn_sea","DOMActivate");
- ]]>
- </script>
- </input>
- </group>
- <caption id="caption55" style="left:188px; top:101px; width:50px; height:14px; vertical-align:middle; ">처리</caption>
- <caption id="caption47" class="cell_2" style="left:10px; top:98px; width:70px; height:20px; vertical-align:middle; ">범 례</caption>
- <caption id="caption49" class="color_0" style="left:90px; top:100px; width:15px; height:15px; vertical-align:middle; "/>
- <datagrid id="grd_prcplist" nodeset="/root/main/prcplist/prcplist" caption="^처방코드^처방명^일수량^1회수량^단위^횟수^일수^Mix^반환일시^반환약사^용법" colsep="^" colwidth="22, 75, 201, 55, 55, 36, 36, 40, 33, 120, 63, 119" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:520px; width:975px; height:220px; ">
- <col ref="prcphistcd"/>
- <col ref="prcpcd"/>
- <col ref="hngnm" style="text-align:left; "/>
- <col ref="prcpqty" format="#.###" style="text-align:right; "/>
- <col ref="prcpqty2" format="#.###" style="text-align:right; "/>
- <col ref="prcpqtyunit" style="text-align:right; "/>
- <col ref="prcptims" style="text-align:right; "/>
- <col ref="prcpdayno" style="text-align:right; "/>
- <col ref="prcpmixno"/>
- <col ref="rtndt" format="yyyy-mm-dd hh:mm:ss"/>
- <col ref="rtnid"/>
- <col ref="mthdnm" style="text-align:left; "/>
- </datagrid>
- <button id="button1" class="btn4_letter4" style="left:810px; top:100px; width:80px; height:22px; ">
- <caption>반환확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/temp/disflag","");
- fSaveRtnList();
- fRtnData();
- ]]>
- </script>
- </button>
- <button id="button2" class="btn4_letter4" style="left:893px; top:100px; width:80px; height:22px; ">
- <caption>반환취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //20090917 이선경 주석
- /*if ( model.getValue("/root/temp/srchinfo/ioflag") =="I" ) {
- messageBox("외래만 처리 가능합니다.", "C004");
- return;
- }
- model.setValue("/root/send/seldata/pid", model.getValue("/root/main/rtnlist/rtnlist["+grd_rtnlist.row+"]/pid"));
- model.setValue("/root/send/seldata/orddd", model.getValue("/root/main/rtnlist/rtnlist["+grd_rtnlist.row+"]/prcpdd"));
- model.setValue("/root/send/seldata/cretno", model.getValue("/root/main/rtnlist/rtnlist["+grd_rtnlist.row+"]/cretno"));
- submit("TRADT00606");
- if ( model.getValue("/root/hidden/ret/calcflag") =="N" ){
- messageBox("수납 완료건이므로 취소 불가능합니다.", "C004");
- return;
- }*/
-
- //20090917 이선경 수정 : 반환취소시 처방상태를 D,C->E로 롤백하진 않고 반환확인자, 반환확인일시만 클리어
- fSaveRtnCancel();
- fRtnData();
- ]]>
- </script>
- </button>
- <caption id="caption8" class="search_name" style="left:959px; top:47px; width:75px; height:17px; ">약사ID :</caption>
- <input id="input6" ref="/root/temp/srchinfo/userid" class="input_search" autonext="false" maxlength="10" style="left:1035px; top:45px; width:69px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fGetUserInfo();
- ]]>
- </script>
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- if(event.keyCode == "13") {
- setInputNodeCurText();
- fGetUserInfo();
- }
- ]]>
- </script>
- </input>
- <output id="output1" ref="/root/temp/userinfo/userinfo/usernm" class="output_search" style="left:1107px; top:45px; width:80px; height:19px; font-weight:bold; text-align:center; "/>
- <output id="output3" ref="/root/temp/userinfo/userinfo/userid" visibility="hidden" style="left:975px; top:85px; width:65px; height:19px; "/>
- <output id="output4" ref="/root/temp/userinfo/userinfo/userdeptcd" visibility="hidden" style="left:975px; top:105px; width:70px; height:19px; "/>
- <caption id="caption10" class="color_5" style="left:230px; top:100px; width:15px; height:15px; vertical-align:middle; "/>
- <caption id="caption11" style="left:253px; top:101px; width:50px; height:14px; vertical-align:middle; ">의사반환</caption>
- <button id="btn_large" class="btn2_letter4" style="left:740px; top:101px; width:64px; height:19px; ">
- <caption>확대보기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if ( grd_rtnlist.attribute("width") == 975){
- grd_rtnlist.attribute("width") =1194;
- btn_large.attribute("text")="축소보기"
- } else {
- grd_rtnlist.attribute("width")=975;
- btn_large.attribute("text")="확대보기"
-
- }
- ]]>
- </script>
- </button>
- <button id="button3" class="btn6_letter2" _auth="X" style="left:1138px; top:100px; width:56px; height:22px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- exeReportPreview("RPADT00601", "XMLSTR", "", "", "true","","","","","true");
- ]]>
- </script>
- </button>
- <button id="button4" class="btn1_letter5" style="left:1045px; top:100px; width:92px; height:22px; ">
- <caption>약품별조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- //2008-10-17 등록번호로만 조회/검색일자구분 추가 Start
- var srchpid = "";
- var srchpidonly = "";
- var srchddflag = "";
-
- srchpid = model.getValue("/root/temp/srchinfo/pid");
- srchpidonly = model.getValue("/root/temp/srchinfo/srchpidonly");
- srchddflag = model.getValue("/root/temp/srchinfo/srchddflag");
- if (srchpidonly == "Y") {
- if (model.getValue("/root/temp/srchinfo/pid") == "" ) {
- messageBox("등록번호를","C001");
- return;
- }
- } else {
-
- if (srchddflag == "") {
- messageBox("검색일자구분을","C001");
- return;
- }
- if (srchddflag == "O" && model.getValue("/root/temp/srchinfo/prcpdd") == "" ) {
- messageBox("적용일자를","C001");
- return;
- }
-
- if (srchddflag == "R" && model.getValue("/root/temp/srchinfo/prcpdd") == "" ) {
- messageBox("반환일자를","C001");
- return;
- }
- }
- fTotAllSelect();
- //2008-10-17 등록번호로만 조회/검색일자구분 추가 Check End
-
- model.removeNodeset("/root/main/prcplist");
- model.copyNode("/root/send/srchinfo","/root/temp/srchinfo");
- submit("TRADT00605");
-
- //조회조건중 수행부서가 값이 있으면 약품별조회후 출력시 함게 출력되도록
- model.makeValue("/root/temp/srchinfo/wardnm", combo2.label);
-
- //해당row에 색깔 처리
- datagrid1.rebuildStyle();
- setRowStyle("datagrid1" , "2" , "Y" , "allyn", "equal" );
-
- ]]>
- </script>
- </button>
- <datagrid id="grd_rtnlist" nodeset="/root/main/rtnlist/rtnlist" class="datagrid2" caption="^원외^등록번호^성명^투약번호^병동^병실^처방코드^처방명^1회수량^수량^수량^횟수^일수^rtnqty^반납
수량^반납
수량^반납
횟수^반납
일수^계산된반환수량^계산된반환수량^실반환량^실반환량^반환량^반환량^실반환
수량^반환사유^반환자^처방입력일시^적용일자^반환일시^반환확인일시^집계일시^진료과^담당의^수가계산방법^불출계산기준^prcpno^prcphistno^instcd^drugdd^ioflag^prcpclscd^prcpgenrflag^prcpkindcd^rtnflag^drugflag^delivecrite^packvol^rtndrugtims^rtndrugdayno^calcmthdcd^totdrugqty^prcpdd^cretno" colsep="^" colwidth="27, 34, 56, 57, 54, 73, 52, 91, 151, 55, 63, 1, 40, 40, 30, 30, 0, 40, 40, 30, 30, 42, 30, 47, 30, 126, 126, 60, 134, 98, 135, 135, 134, 83, 85, 134, 123, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" explorerbar="sortshow" frozencols="9" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:125px; width:975px; height:390px; text-align:center; ">
- <col checkvalue="Y,N" ref="sel" type="checkbox"/>
- <col ref="drugflagnm" style="text-align:center; "/>
- <col ref="pid"/>
- <col ref="hngnm" style="text-align:center; "/>
- <col ref="drugno" style="text-align:center; "/>
- <col ref="wardnm" visibility="hidden"/>
- <col ref="roomcd"/>
- <col ref="prcpcd"/>
- <col ref="prcpnm" style="text-align:left; "/>
- <col ref="prcpqty"/>
- <col ref="dayprcpqty" style="text-align:right; "/>
- <col ref="prcpqty2"/>
- <col ref="prcptims" style="text-align:right; "/>
- <col ref="prcpdayno" style="text-align:right; "/>
- <col ref="rtnqty" visibility="hidden"/>
- <col ref="dayrtnqty" style="text-align:right; "/>
- <col ref="rtnqty" style="text-align:right; "/>
- <col ref="rtntims" style="text-align:right; "/>
- <col ref="rtndayno" style="text-align:right; "/>
- <col ref="rtncnts" format="#.###" style="text-align:right; "/>
- <col ref="packunit" style="text-align:left; "/>
- <col class="gridinput" autonext="false" ref="rtnstocqty" type="input" format="9999" maxlength="4" style="text-align:right; "/>
- <col ref="rtnunit" style="text-align:left; "/>
- <col class="gridinput" autonext="false" ref="rtncnts" type="input" visibility="hidden" format="9999" maxlength="4" style="left:922px; top:32px; width:60px; height:23px; text-align:right; "/>
- <col ref="rtncntsunit" visibility="hidden"/>
- <col ref="rtnstocqty" visibility="hidden" style="text-align:right; "/>
- <col ref="rtnrsn"/>
- <col ref="rtnnm"/>
- <col ref="rgstdt" visibility="visible" format="yyyy-mm-dd hh:mm:ss" style="text-align:center; "/>
- <col ref="drugdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="rtndt" format="yyyy-mm-dd hh:mm:ss"/>
- <col ref="rtncnfmdt" format="yyyy-mm-dd hh:mm:ss"/>
- <col ref="drugsumdt" format="yyyy-mm-dd hh:mm:ss"/>
- <col ref="orddeptnm"/>
- <col ref="orddrnm" style="text-align:center; "/>
- <col ref="calcmthdcdnm" style="text-align:left; "/>
- <col ref="delivecritenm" style="text-align:left; "/>
- <col ref="prcpno" visibility="hidden"/>
- <col ref="prcphistno" visibility="hidden"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="drugdd" visibility="hidden"/>
- <col ref="ioflag" visibility="hidden"/>
- <col ref="prcpclscd" visibility="hidden"/>
- <col ref="prcpgenrflag" visibility="hidden"/>
- <col ref="prcpkindcd" visibility="hidden"/>
- <col ref="rtnflag" visibility="hidden"/>
- <col ref="drugflag" visibility="hidden"/>
- <col ref="delivecrite" visibility="hidden"/>
- <col ref="packvol" visibility="hidden"/>
- <col ref="rtndrugtims" visibility="hidden"/>
- <col ref="rtndrugdayno" visibility="hidden"/>
- <col ref="calcmthdcd" visibility="hidden"/>
- <col ref="totdrugqty" visibility="hidden"/>
- <col ref="prcpdd" visibility="hidden"/>
- <col ref="cretno" visibility="hidden"/>
- <col/>
- <col/>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(model.getValue("/root/main/rtnlist/rtnlist[" + grd_rtnlist.row + "]/rtncnfmdt") != "") {
- //fIptRtnCnts(grd_rtnlist.row);
- }
- ]]>
- </script>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- fGetRtnPrcpData();
- ]]>
- </script>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- // 2008-10-17 전체선택시 반환량 자동 계산되도록 처리.
- /* if (grd_rtnlist.row == 0 && grd_rtnlist.col== 0 ) { //
- for (var i=1; i<grd_rtnlist.rows; i++) {
- grd_rtnlist.row = i;
- grd_rtnlist.col = 0;
- if (model.getValue("/root/main/rtnlist/rtnlist["+i+"]/rtncnfmdt") =="" ){ // 반납처리 안된것만 처리
- if (model.getValue("/root/main/rtnlist/rtnlist["+i+"]/sel")=="Y"){
- grd_rtnlist.rowStatus(i)="2"; //Update상태를 강제로 넣어준다.
- alert("dd");
- }
- //이선경 주석(20090121) 쿼리에서 조회할때 자동계산해서 값을 가져오도록 수정
- //fIptRtnCnts();
- }else{
- model.setValue("/root/main/rtnlist/rtnlist["+i+"]/sel","N");
- grd_rtnlist.rowStatus(i)="0";
- //return;
- }
- }
- }
- model.refresh();*/
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_rtnlist.gridToInstance();
- ]]>
- </script>
- <script type="javascript" ev:event="onmouseup">
- <![CDATA[
- if ( grd_rtnlist.iscell(event.target) && grd_rtnlist.row >0){
- if(grd_rtnlist.col != grd_rtnlist.colRef("sel")){
- for ( var i =1 ; i< grd_rtnlist.rows ;i++){
- model.setValue("/root/main/rtnlist/rtnlist[" + i + "]/sel", "N");
- }
- for ( var i =0 ; i< grd_rtnlist.selectedRows;i++){
-
- if ( grd_rtnlist.isReadOnly(grd_rtnlist.selectedRow(i) , 1) == false ){
- model.setValue("/root/main/rtnlist/rtnlist[" + grd_rtnlist.selectedRow(i) + "]/sel", "Y");
- //grd_rtnlist.rowStatus(i)="2";
- grd_rtnlist.addStatus(i,"update");
- } else {
- model.setValue("/root/main/rtnlist/rtnlist[" + grd_rtnlist.selectedRow(i) + "]/sel", "N");
- //grd_rtnlist.rowStatus(i)="0";
- grd_rtnlist.removeStatus(i,"update");
- }
- }
- }
- model.refresh();
- }
- ]]>
- </script>
- </datagrid>
- <select1 id="combo3" ref="/root/temp/srchinfo/rtnstocdeptcd" appearance="minimal" style="left:605px; top:102px; width:120px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/misdeptlist/deptlist">
- <label ref="deptnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption24" style="left:530px; top:102px; width:74px; height:20px; font-weight:bold; color:#ff0000; ">실입고부서</caption>
- <shape id="roundrect3" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:455px; top:10px; width:175px; height:25px; background-color:transparent; border-color:#aad799; border-style:solid; "/>
- <button id="button5" class="btn4_letter4" style="left:996px; top:14px; width:80px; height:22px; ">
- <caption>폐기처리</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/temp/disflag","Y");
- fSaveRtnList();
- fRtnData();
- ]]>
- </script>
- </button>
- <shape id="roundrect4" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:985px; top:10px; width:205px; height:29px; background-color:transparent; border-color:#aad799; border-style:solid; "/>
- </group>
- <group id="group4" scroll="auto" style="left:0px; top:757px; width:1195px; height:27px; ">
- <button id="btn_prt" class="btn6_letter2" style="left:0px; top:5px; width:56px; height:22px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //1일기준인지 1회기준인지 체크하여 컬럼을 hidden
- var colHidnValue = grdBaseColHidn("D");
- //1회 기준
- if( colHidnValue == "C") {
- model.makeValue("/root/send/srchinfo/prcpqty2chk", "Y");
- }
-
- exeReportPreview("RPADT00602", "XMLSTR", "", "", "true","","","","","true");
- ]]>
- </script>
- </button>
- <button id="button6" class="btn2_letter2" style="left:65px; top:5px; 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_rtnlist.saveExcel(file);
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|