123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502 |
- <?xml version="1.0" encoding="UTF-8"?>
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.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="">
- <send>
- <cond>
- <cond1/>
- <cond2/>
- <cond3/>
- <cond4/>
- <cond5/>
- <cond6/>
- <cond7/>
- <cond8/>
- <cond9/>
- <cond10/>
- <cond11/>
- <cond13/>
- <cond14/>
- <cond97/>
- <cond98/>
- <cond99/>
- <bCurr/>
- </cond>
- </send>
- <prcpsrch>
- <prcplist>
- <chk/>
- <status/>
- <prcpstatcd/>
- <prcpclscd/>
- <prcpkindcd/>
- <prcpcd/>
- <prcpnm/>
- <prcpvol/>
- <prcpvolunitnm/>
- <prcpqty/>
- <prcpqtyunitnm/>
- <prcptims/>
- <prcpdayno/>
- <drugmthdspccdnm/>
- <prcpmixno/>
- <payflagcd/>
- <prcpdelivefact/>
- <hosinhosoutflag/>
- <prcpexecdeptcd/>
- <prcphopedd/>
- <choiordflag/>
- <rgstdt/>
- <rgstridnm/>
- <testrsltunit/>
- <testrsltcnts/>
- <prcpgenrflag/>
- <prcphistcd/>
- <tempprcpflag/>
- <prcpsetcd/>
- <prcpvolunitflag/>
- <prcpqtyunitflag/>
- <orgprcpqty/>
- <drugspd/>
- <drugspdunitflag/>
- <powdflag/>
- <prnprcpflag/>
- <prepprcpflag/>
- <selfprcpflag/>
- <selfdrugflag/>
- <drugpackflag/>
- <erprcpflag/>
- <precureprcpflag/>
- <nigtprcpflag/>
- <portprcpflag/>
- <fixprcpflag/>
- <anamneflag/>
- <fastprcpflag/>
- <erreadflag/>
- <prcpdirecflag/>
- <tnsuseflag/>
- <tnsfiltflag/>
- <trnptbftestflag/>
- <offictourhealexamflag/>
- <stemcellflag/>
- <angioflagcd/>
- <opansflagcd/>
- <ansttm/>
- <mealcalrcnts/>
- <mealprotcnts/>
- <mealupdtflag/>
- <hosinprcpresncd/>
- <etcprcpresncd/>
- <drugmthdspccd/>
- <issdeptcd/>
- <prcpauthflag/>
- <prcpinptflag/>
- <prcpsignflag/>
- <rateprcpflag/>
- <prcprefseq/>
- <ordreqlnkno/>
- <testreqlnkno/>
- <prcplnkdd/>
- <prcplnkno/>
- <oprsrvno/>
- <tootfact/>
- <clinccmtcnts/>
- <prcpessninptflag/>
- <grupsnglflag/>
- <drugrateqty/>
- <asttestflag/>
- <clincstdyflag/>
- <prtlno/>
- <clincstdycd/>
- <optermcd/>
- <prcpflag/>
- <hscttempprcpflag/>
- <inclprcpcd/>
- <inclprcpno/>
- <pampkspec/>
- <prcppkspec/>
- <calcscormastspec/>
- <drugmastspec/>
- <rateprcpspec/>
- <matrsetprcpspec/>
- <suppdeptspec/>
- <contprcpspec/>
- <etclnkspec/>
- <srchcondcnts/>
- <orgprcpnm/>
- <chkcol/>
- <hsctdelivepos/>
- <hsctlnkno/>
- <etcprcpflag/>
- <aftcertflag/>
- <aftcertdrid/>
- <prcpvalidd/>
- <spynpy1/>
- <specdrid/>
- <specdrnm/>
- <anticncrprtlno/>
- <anticncrdayno/>
- <druglnkno/>
- <rehbprcpcurefreqflag/>
- <dietprcpgenrflag/>
- <irpayflag/>
- <irflag/>
- <procerdietflag/>
- <diagtestconttestintvlflag/>
- <drugindependpackflag/>
- <diagtestconttestbasetm/>
- <diagtestconttestorgtims/>
- <ermediscmngtresncd/>
- <rehbprcpenddd/>
- <matrallsizespecid/>
- <rehbprcpcurepartcd/>
- <lowdrugresncd/>
- <tfdtlcd/>
- <dnorreqlnkno/>
- <subcretno/>
- <exptmthdfact/>
- <lowdrugresnetcfact/>
- <diagtestconttestcdspec/>
- <drprcpetc1/>
- <drprcpetc2/>
- <drprcpetc3/>
- <drprcpetc4/>
- <drprcpetc5/>
- <drprcpetc6/>
- <drprcpetc7/>
- <drprcpetc8/>
- <drprcpetc9/>
- <drprcpetc10/>
- <tempcol1/>
- <tempcol2/>
- <tempcol3/>
- <tempcol4/>
- <tempcol5/>
- <tempcol6/>
- <tempcol7/>
- <tempcol8/>
- <tempcol9/>
- <tempcol10/>
- <tempcol11/>
- <tempcol12/>
- <tempcol13/>
- <tempcol14/>
- <tempcol15/>
- <tempcol16/>
- <tempcol17/>
- <tempcol18/>
- <tempcol19/>
- <tempcol20/>
- <tempcol21/>
- <tempcol22/>
- <tempcol23/>
- <tempcol24/>
- <tempcol25/>
- <rgstdeptcd/>
- <prcpclassnm/>
- </prcplist>
- </prcpsrch>
- <main>
- <patinfo>
- <patinfolist>
- <pid/>
- <hngnm/>
- </patinfolist>
- </patinfo>
- </main>
- </root>
- </instance>
- <submission id="TRMMO00105" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/diaginfo"/>
- <submission id="TRMMO00100" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/prcpsrch"/>
- <submission id="TRMMR00301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/resvlist"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInit();
- ]]>
- </script>
- <bind id="bnd_prcpgenrflag" ref="/root/prcpsrch/prcplist[prcpkindcd != '' and prcphistcd = 'O']/prcpgenrflag" readonly="1=1"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <!--script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/-->
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
- <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
- <script type="javascript" src="../../../emr/prcpmngtweb/js/SMMO00100.js"/>
- <script type="javascript" src="../../../emr/commonweb/js/EMRCommon.js"/>
- <script type="javascript" src="../../../emr/medirecweb/js/MMRCommon.js"/>
- <script type="javascript" src="../../../emr/medirecweb/js/SPMMR09000.js"/>
- </xhtml:head>
- <xhtml:body pagewidth="740" pageheight="760">
- <shape id="roundrect5" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:710px; height:70px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption1" class="search_name" style="left:7px; top:41px; width:99px; height:17px; ">등록번호 :</caption>
- <select1 id="combo1" ref="/root/main/cond/prcpclsflag" visibility="hidden" appearance="minimal" style="left:424px; top:41px; width:224px; height:19px; ">
- <choices>
- <item>
- <label>전체</label>
- <value/>
- </item>
- <item>
- <label>약/주사</label>
- <value>1</value>
- </item>
- <item>
- <label>PRN처방</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>
- <item>
- <label>처치/마취/수술/재료</label>
- <value>7</value>
- </item>
- <item>
- <label>식사</label>
- <value>8</value>
- </item>
- <item>
- <label>선택한 처방만 조회</label>
- <value>10</value>
- </item>
- <item>
- <label>차트형식보기</label>
- <value>11</value>
- </item>
- <item>
- <label>지시처방</label>
- <value>12</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var prcpclsflag = model.getValue("/root/main/cond/prcpclsflag");
- var ordtype = model.getValue("/root/main/cond/ordtype");
- if(prcpclsflag == 10){ //선택한 처방만 조회인 경우
- combo3.visible = true;
- ipt_prcpnm.visible = true;
- }else{ //그 이외의 경우는 hidden
- combo3.visible = false;
- ipt_prcpnm.visible = false;
- }
-
- if (model.getValue("/root/hidden/selfholdchk/hardcd/hardcd") == "Y"){
- if(prcpclsflag != 1 ){
- combo2.disabled = true;
- button7.disabled = true;
- selfchk.disabled = true;
- model.setValue("/root/main/cond/selfchk" ,"N");
- model.setValue("/root/main/cond/selfholdflag" ,"");
- }else if(prcpclsflag == 1){
- combo2.disabled = false;
- button7.disabled = false;
- selfchk.disabled = false;
- model.setValue("/root/main/cond/selfchk" ,"Y");
- model.setValue("/root/main/cond/selfholdflag" ,"1");
- }
- }
- model.refresh();
- ]]>
- </script>
- </select1>
- <caption id="caption2" class="search_name" visibility="hidden" style="left:317px; top:41px; width:169px; height:17px; ">현재 투약중인 약만 조회</caption>
- <caption id="caption3" class="search_name" style="left:317px; top:15px; width:103px; height:17px; ">처방적용일 :</caption>
- <input id="ipt_hngnm" ref="/root/send/cond/cond98" class="input_search" style="left:190px; top:41px; width:90px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- inputEnterKey("btn_patsrch", "DOMActivate");
- ]]>
- </script>
- </input>
- <input id="ipt_todd" ref="/root/send/cond/cond8" class="input_search" inputtype="date" style="left:540px; top:15px; width:97px; height:19px; text-align:center; "/>
- <caption id="caption6" style="left:525px; top:15px; width:25px; height:20px; ">~</caption>
- <select1 id="radio2" ref="/root/send/cond/cond9" disabled="true" appearance="full" cellspacing="15" cols="3" overflow="visible" style="left:97px; top:15px; width:168px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>외래</label>
- <value>O</value>
- </item>
- <item>
- <label>응급</label>
- <value>E</value>
- </item>
- <item>
- <label>입원</label>
- <value>I</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- /*
- var ordtype = model.getValue("/root/main/cond/ordtype");
- if (ordtype == "-") {
- if (model.getValue("/root/hidden/selfholdchk/hardcd/hardcd") == "Y"){
- model.setValue("/root/main/cond/selfchk","Y");
- model.setValue("/root/main/cond/selfholdflag", "1");
- }
- ipt_fromdd.disabled = false;
- ipt_todd.disabled = false;
- cmb_inpthist.disabled = true;
- combo2.disabled = false;
- button7.disabled = false;
- selfchk.disabled = false;
- } else {
- if (model.getValue("/root/hidden/selfholdchk/hardcd/hardcd") == "Y"){
- model.setValue("/root/main/cond/selfchk","N");
- model.setValue("/root/main/cond/selfholdflag", "1");
- }
- ipt_fromdd.disabled = true;
- ipt_todd.disabled = true;
- cmb_inpthist.disabled = false;
- combo2.disabled = true;
- selfchk.disabled = true;
- }
- var pid = model.getValue("/root/main/cond/pid");
- if(pid != ""){
- model.removeNodeset("/root/send/reqdata");
- model.makeValue("/root/send/reqdata/pid", pid);
- model.makeValue("/root/send/reqdata/ordtype", ordtype);
- if(submit("TRMMO14902")){
- var node = model.instances(0).selectNodes("/root/init/patinfo/patinfo");
- if(node.length == 0){
- messageBox("환자정보가", "I004");
- return;
- }
- cmb_inpthist.select(0);
- }
- }
- model.refresh();
- */
- ]]>
- </script>
- </select1>
- <button id="btn_patsrch" class="icon_search" style="left:284px; top:41px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- modal("SPPMC02500");
-
- var sPid = model.getValue("/root/main/patinfo/patinfolist/pid");
- var sHngnm = model.getValue("/root/main/patinfo/patinfolist/hngnm");
- model.setValue("/root/send/cond/cond1" , sPid);
- model.setValue("/root/send/cond/cond98", sHngnm);
- model.refresh();
-
- //btn_reqpatnm.dispatch("DOMActivate");
- ]]>
- </script>
- </button>
- <input id="input2" ref="/root/send/cond/cond1" style="left:96px; top:41px; width:92px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- //inputEnterKey("btn_reqpatnm", "DOMActivate");
- ]]>
- </script>
- </input>
- <caption id="caption7" class="search_name" style="left:7px; top:15px; width:99px; height:17px; ">진료구분 :</caption>
- <input id="ipt_fromdd" ref="/root/send/cond/cond2" class="input_search" inputtype="date" style="left:424px; top:15px; width:97px; height:19px; text-align:center; "/>
- <button id="btn_req" class="btn1_letter2" style="left:649px; top:38px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetPrcpList();
- ]]>
- </script>
- </button>
- <!--
- <datagrid id="grd_prcplist" nodeset="/root/prcpsrch/prcplist[prcpkindcd != '' and prcphistcd != 'C' and prcphistcd != 'L' and prcphistcd != 'E']" caption="선택^처방일자^구분^처방^용법" colsep="^" colwidth="50, 100, 50, 180, 303" mergecellsfixedrows="bycolrec" rowsep="|" style="left:5px; top:80px; width:705px; height:620px; ">
- -->
- <!--
- <datagrid id="grd_prcplist" nodeset="/root/prcpsrch/prcplist[prcpkindcd != '' and prcphistcd = 'O']" caption="선택^처방일자^구분^처방^용법" colsep="^" colwidth="50, 100, 50, 180, 303" mergecellsfixedrows="bycolrec" rowsep="|" style="left:5px; top:80px; width:705px; height:620px; ">
- -->
- <datagrid id="grd_prcplist" nodeset="/root/prcpsrch/prcplist" caption="선택^처방일자^구분^처방^용법" colsep="^" colwidth="50, 100, 50, 180, 303" mergecellsfixedrows="bycolrec" rowsep="|" style="left:5px; top:80px; width:705px; height:620px; ">
- <col checkvalue="Y" ref="chkcol" type="checkbox"/>
- <col ref="tempcol3" format="yyyy-mm-dd" style="text-align:center; "/>
- <col disabled="true" ref="prcpgenrflag" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>입원</label>
- <value>I</value>
- </item>
- <item>
- <label>외래</label>
- <value>O</value>
- </item>
- <item>
- <label>응급</label>
- <value>E</value>
- </item>
- </choices>
- </col>
- <col ref="tempcol6"/>
- <col ref="tempcol7"/>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var bEqual = true;
- var iRow = grd_prcplist.row;
- var bChk = model.getValue(grd_prcplist.nodeset+"["+ iRow+"]/chkcol") == "true"?"true":"false";
- var val = model.getValue(grd_prcplist.nodeset+"["+ iRow+"]/pampkspec");
-
- while (bEqual) {
- iRow++;
- if (val == model.getValue(grd_prcplist.nodeset+"["+ iRow +"]/pampkspec")) {
- model.setValue(grd_prcplist.nodeset+"["+ iRow+"]/chkcol", bChk);
- } else {
- bEqual = false;
- break;
- }
- }
- grd_prcplist.refresh();
- ]]>
- </script>
- </datagrid>
- <button id="btn_cncl" class="btn2_letter2" style="left:670px; top:705px; width:42px; height:19px; ">
- <caption>취소</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fCncl();
- ]]>
- </script>
- </button>
- <button id="btn_cnfm" class="btn2_letter2" style="left:625px; top:705px; width:42px; height:19px; ">
- <caption>확인</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fCnfm();
- ]]>
- </script>
- </button>
- <bool id="bool1" visibility="hidden" checkvalue="Y" ref="/root/send/cond/bCurr" style="left:495px; top:40px; width:55px; height:20px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- alert(bool1.value);
- if (bool1.value != "Y") {
- grd_prcplist.nodeset = "/root/prcpsrch/prcplist[prcpkindcd != '' and prcphistcd != 'C' and prcphistcd != 'L' and prcphistcd != 'E']";
- } else {
- grd_prcplist.nodeset = "/root/prcpsrch/prcplist[prcpkindcd != '' and prcphistcd = 'O']";
- }
- //grd_prcplist.refresh();
- ]]>
- </script>
- </bool>
- </xhtml:body>
- </xhtml:html>
|