123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?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>종속처방</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <prcp>
- <prcplist>
- <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/>
- <insukind/>
- <specdrid/>
- <anticncrprtlno/>
- <anticncrdayno/>
- <druglnkno/>
- <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/>
- </prcplist>
- </prcp>
- </main>
- <init>
- <prcpkindcd/>
- <prcpclscd/>
- <prcpstatcd/>
- <hosinprcpresncd/>
- <payflagcd/>
- <orddept/>
- </init>
- <prcptemp/>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-model-construct-done">
- <![CDATA[
- zbcfGetCodeList(new Array("M0003", "M0005", "M0011", "M0037", "M0029" ),
- new Array("/root/init/prcpkindcd","/root/init/prcpclscd","/root/init/prcpstatcd","/root/init/hosinprcpresncd", "/root/init/payflagcd"));
-
- grd_prcplist.rowstyle(1, "data", "background-color") = "#ffffcc";
- model.refresh();
- ]]>
- </script>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="post"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
- <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
- </xhtml:head>
- <xhtml:body pagewidth="1000" pageheight="660">
- <datagrid id="grd_prcplist" nodeset="/root/main/prcp/prcplist" dragmode="true" dropmode="true" caption="^상태^분류^종류^처방코드^처방명^총용량^단위^수량^단위^횟수^일수^용법/검체^MIX^급비^전달^원내외^시행부서^희망일자^선택진료^등록일시^등록자^전달" colsep="^" colwidth="38, 55, 0, 50, 80, 250, 45, 37, 37, 37, 40, 37, 106, 38, 44, 40, 50, 100, 100, 60, 120, 80" dataheight="23" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheight="23" rowsep="|" selectionmode="byrow" tooltip="true" navindex="1" style="left:7px; top:21px; width:986px; height:607px; focus-rect:hidden; ">
- <col checkvalue="I,N" ref="status" type="checkbox" visibility="hidden" style="left:0px; top:23px; width:38px; height:23px; text-align:center; word-wrap:word; ">
- <choices>
- <item>
- <label>검색</label>
- <value>S</value>
- </item>
- <item>
- <label>신규</label>
- <value>I</value>
- </item>
- <item>
- <label>삭제</label>
- <value>D</value>
- </item>
- <item>
- <label>D/C</label>
- <value>C</value>
- </item>
- <item>
- <label>-</label>
- <value>-</value>
- </item>
- </choices>
- </col>
- <col disabled="true" ref="prcpstatcd" type="combo" style="left:38px; top:23px; width:55px; height:23px; text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/prcpstatcd/M0011">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="prcpclscd" type="combo" style="left:93px; top:23px; width:0px; height:23px; text-align:left; ">
- <choices>
- <itemset nodeset="/root/init/prcpclscd/M0005">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="prcpkindcd" type="combo" style="left:93px; top:23px; width:0px; height:23px; text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/prcpkindcd/M0003">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="prcpcd" type="output" style="left:93px; top:23px; width:80px; height:23px; text-align:left; "/>
- <col ref="prcpnm" style="left:173px; top:23px; width:250px; height:23px; text-align:left; "/>
- <col ref="prcpvol" style="left:423px; top:23px; width:45px; height:23px; text-align:center; "/>
- <col ref="prcpvolunitnm" style="left:468px; top:23px; width:37px; height:23px; text-align:center; "/>
- <col ref="prcpqty" format="#.###" maxlength=".3" style="left:505px; top:23px; width:37px; height:23px; text-align:center; "/>
- <col ref="prcpqtyunitnm" style="left:542px; top:23px; width:37px; height:23px; text-align:center; "/>
- <col ref="prcptims" style="left:579px; top:23px; width:40px; height:23px; text-align:center; "/>
- <col ref="prcpdayno" style="left:619px; top:23px; width:37px; height:23px; text-align:center; "/>
- <col checkvalue="Y,N" ref="drugmthdspccdnm" type="output" style="left:656px; top:23px; width:75px; height:23px; "/>
- <col ref="prcpmixno" style="left:731px; top:23px; width:38px; height:23px; "/>
- <col disabled="true" ref="payflagcd" type="combo" style="left:769px; top:23px; width:44px; height:23px; ">
- <choices>
- <itemset nodeset="/root/init/payflagcd/M0029">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="prcpdelivefact" style="left:813px; top:23px; width:40px; height:23px; "/>
- <col disabled="true" ref="hosinhosoutflag" type="combo" style="left:853px; top:23px; width:50px; height:23px; text-align:center; ">
- <choices>
- <item>
- <label>원내</label>
- <value>I</value>
- </item>
- <item>
- <label>원외</label>
- <value>O</value>
- </item>
- <item>
- <label/>
- <value/>
- </item>
- </choices>
- </col>
- <col disabled="true" ref="prcpexecdeptcd" type="combo" visibility="hidden" style="left:903px; top:23px; width:100px; height:23px; text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/orddept/dept">
- <label ref="depthngnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- </col>
- <col ref="prcphopedd" format="yyyy-mm-dd" style="left:1003px; top:23px; width:100px; height:23px; text-align:center; "/>
- <col ref="choiordflag" style="left:1103px; top:23px; width:60px; height:23px; text-align:center; ">
- <choices/>
- </col>
- <col ref="rgstdt" format="yyyy-mm-dd hh:mm:ss" style="left:1163px; top:23px; width:100px; height:23px; text-align:center; "/>
- <col ref="rgstridnm" style="left:1263px; top:23px; width:100px; height:23px; text-align:center; "/>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if ( grd_prcplist.row == 1 ) {
- if ( grd_prcplist.col == grd_prcplist.colref("status")) {
- var status = model.getValue ( "/root/main/prcp/prcplist/status" );
- for ( var i = 2; i < grd_prcplist.rows; i++ ) {
- model.setValue ( "/root/main/prcp/prcplist[" + i + "]/status", status );
- }
- }
- }
- ]]>
- </script>
- </datagrid>
- <line id="line5" class="line_1" style="x1:7px; y1:17px; x2:992px; y2:18px; "/>
- <caption id="caption1" class="tit_2" style="left:12px; top:0px; width:289px; height:14px; ">종속처방으로 묶으시겠습니까 ?</caption>
- <button id="button1" class="btn4_letter6" style="left:829px; top:635px; width:104px; height:22px; ">
- <caption>종속처방묶음</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var srcNodeList = model.instances(0).selectNodes( "/root/main/prcp/prcplist" );
- var inclprcpno = eval(opener.model.getValue ( "/root/init/inclprcpno")) + 1;
- var inclprcpcd = opener.javascript.getParameter ( "SPMMO14300_inclprcpcd" );
- var prcpgenrflag = opener.model.getValue ( "/root/patflag/list/prcpgenrflag" );
- var prcpclscd = "";
- for ( var i =1; i< grd_prcplist.rows; i++ ) {
- if ( model.getValue ( "/root/main/prcp/prcplist[" + i + "]/status" ) == "I" ) {
- prcpclscd = model.getValue ( "/root/main/prcp/prcplist[" + i + "]/prcpclscd" );
- model.setValue ( "/root/main/prcp/prcplist[" + i + "]/inclprcpno", inclprcpno );
- model.setValue ( "/root/main/prcp/prcplist[" + i + "]/inclprcpcd", inclprcpcd );
- //외래일경우 약, 주사 에 원내처방사유 검사 수술처리에 사용
- if ( prcpclscd == "A2" || prcpclscd == "A4" || prcpclscd == "A6" ){
- if ( prcpgenrflag == "O" ) {
- model.setValue ( "/root/main/prcp/prcplist[" + i + "]/hosinhosoutflag", "I" );//원내
- model.setValue ( "/root/main/prcp/prcplist[" + i + "]/hosinprcpresncd", "55" );//원내처방사유(원내처방사유 검사 수술처리에 사용)
- }
- model.setValue ( "/root/main/prcp/prcplist[" + i + "]/precureprcpflag", "Y" );//선처치여부
- }
- var openerRow = model.getValue ( "/root/main/prcp/prcplist[" + i + "]/prcprefseq" );
- var srcSingleNode = opener.model.instances(0).selectSingleNode( "/root/main/prcp/prcplist[" + openerRow + "]" );
- var destNode = opener.model.instances(0).selectSingleNode( "/root/main/prcp" );
- //복사할 노드를 오프너의 특정노드에 replace 한다.
- destNode.replaceChild( srcNodeList.item(i-1).cloneNode(true), srcSingleNode);
- opener.model.setValue ( "/root/init/inclprcpno", inclprcpno );
- }
- }
-
- opener.model.refresh();
- window.close();
- ]]>
- </script>
- </button>
- <button id="button2" class="btn4_letter2" style="left:935px; top:635px; width:56px; height:22px; ">
- <caption>취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- window.close();
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|