123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722 |
- <?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>
- <prcp>
- </prcp>
- <srcprcp>
- </srcprcp>
- <prcpresult/>
- <divprcp>
- </divprcp>
- <divpreprcp>
- </divpreprcp>
- </main>
- <send>
- <data>
- <prcplist/>
- </data>
- </send>
- <hidden/>
- <init>
- <cond1>Y</cond1>
- </init>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- //nodeList = instance1.selectNodes("/root/main/srcprcp/prcplist");
- //rCSV = getNodeListCSV(nodeList);
- //model.setValue("/root/send/data/prcplist",rCSV);
- //model.copyNode ( "/root/send/data/prcplist", "/root/main/srcprcp" );
- //submit("TRADB62401");
-
- model.removeNodeset ( "/root/main/srcprcp/prcplist" );
- var openerPrcplist = opener.model.instances(0).selectNodes( "/root/main/prcp/prcplist" ); //의사처방 저장데이터
- for(var i = 0; i < openerPrcplist.length; i++) {
- model.instances(0).selectSingleNode( "/root/main/srcprcp" ).appendChild(openerPrcplist.item(i).cloneNode(true));
- }
-
- var chk="";
- var destNode1 = model.instances(0).selectSingleNode( "/root/main/divprcp" );
- var srcNode1 ;
- var destNode2 = model.instances(0).selectSingleNode( "/root/main/divpreprcp" );
- var srcNode2 ;
- var temp;
- var chktemp="";
-
- var prcpNode = model.instances(0).selectSingleNode( "/root/main/prcp/prcplist" );
- var srcPrcpNode = model.instances(0).selectSingleNode( "/root/main/srcprcp/prcplist" );
- for ( var i = 1 ; i <= prcpNode.length;i++){ //저함량 배수처방 체크. 표시
- temp = model.getValue("/root/main/prcp/prcplist["+i+"]/tempcol11").split("|");
- if ( temp[0]== "N" ){
- if ( chktemp != model.getValue("/root/main/prcp/prcplist["+i+"]/tempcol11")){
- chktemp = model.getValue("/root/main/prcp/prcplist["+i+"]/tempcol11");
- for ( var j = 1; j<=srcPrcpNode.length ; j++){
- if ( temp[1] == model.getValue("/root/main/srcprcp/prcplist["+j+"]/prcpcd")
- && temp[2] == model.getValue("/root/main/srcprcp/prcplist["+j+"]/drugmthdspccd")
- && parseFloat(temp[3]) == parseFloat(model.getValue("/root/main/srcprcp/prcplist["+j+"]/prcpvol"))){
- srcNode2 = model.instances(0).selectSingleNode( "/root/main/srcprcp/prcplist["+j+"]" );
- destNode2.appendChild( srcNode2.cloneNode(true));
- }
- }
- }
- srcNode1 = model.instances(0).selectSingleNode( "/root/main/prcp/prcplist["+i+"]" );
- destNode1.appendChild( srcNode1.cloneNode(true));
- chk="Y";
- }
- }
-
- model.refresh();
-
- var chktemp="";
- var divPrcpNode = model.instances(0).selectSingleNode( "/root/main/divprcp/prcplist" );
- for ( var i = 1 ; i <= prcpNode.length;i++){ //저함량 배수처방 체크. 표시
- temp = model.getValue("/root/main/prcp/prcplist["+i+"]/tempcol11").split("|");
-
- if ( temp[0]== "N" ){
- if ( chktemp != model.getValue("/root/main/prcp/prcplist["+i+"]/tempcol11")){
- chktemp = model.getValue("/root/main/prcp/prcplist["+i+"]/tempcol11");
- for ( var j = 1; j<=divPrcpNode.length ; j++){
- temp2 = model.getValue("/root/main/divprcp/prcplist["+j+"]/tempcol11").split("|");
-
- if ( temp2[1] == temp[1] && temp2[2] == temp[2] ){
- model.setValue("/root/main/divprcp/prcplist["+j+"]/hosinhosoutflag", model.getValue("/root/main/prcp/prcplist["+i+"]/hosinhosoutflag"));
- model.setValue("/root/main/divprcp/prcplist["+j+"]/prcpexecdeptcd", model.getValue("/root/main/prcp/prcplist["+i+"]/prcpexecdeptcd"));
- model.setValue("/root/main/divprcp/prcplist["+j+"]/prcpgenrflag", model.getValue("/root/main/prcp/prcplist["+i+"]/prcpgenrflag"));
- model.setValue("/root/main/divprcp/prcplist["+j+"]/issdeptcd", model.getValue("/root/main/prcp/prcplist["+i+"]/issdeptcd"));
- model.setValue("/root/main/divprcp/prcplist["+j+"]/pampkspec", model.getValue("/root/main/prcp/prcplist["+i+"]/pampkspec"));
- model.setValue("/root/main/divprcp/prcplist["+j+"]/specdrid", model.getValue("/root/main/prcp/prcplist["+i+"]/specdrid"));
- if (model.getValue("/root/main/prcp/prcplist["+i+"]/spynpy1") !=""){
- model.makeValue("/root/main/divprcp/prcplist["+j+"]/spynpy1", model.getValue("/root/main/prcp/prcplist["+i+"]/spynpy1"));
- } else {
- model.makeValue("/root/main/divprcp/prcplist["+j+"]/spynpy1", model.getValue("/root/main/prcp/prcplist["+i+"]/insukind"));
- }
- model.setValue("/root/main/divprcp/prcplist["+j+"]/lowdrugresncd", "N"); // 디폴트로 처방 변경.
- }
- }
- }
- chk="Y";
- }
- }
- model.refresh();
-
- /*
- for ( var i = 0 ; i < grd_prcplist.rows;i++){ //저함량 배수처방 체크. 표시
- temp = model.getValue("/root/main/prcp/prcplist["+i+"]/tempcol11").split("|");
-
- if ( temp[0]== "N" ){
- if ( chktemp != model.getValue("/root/main/prcp/prcplist["+i+"]/tempcol11")){
- chktemp = model.getValue("/root/main/prcp/prcplist["+i+"]/tempcol11");
- for ( var j = 0; j<=grd_targetprcplist.rows ; j++){
- if ( model.getValue("/root/main/srcprcp/prcplist["+j+"]/prcpcd") == temp[1] && model.getValue("/root/main/srcprcp/prcplist["+j+"]/drugmthdspccd") == temp[2] ){
- srcNode2 = model.instances(0).selectSingleNode( "/root/main/srcprcp/prcplist["+j+"]" );
- destNode2.appendChild( srcNode2.cloneNode(true));
- }
- }
- }
- srcNode1 = model.instances(0).selectSingleNode( "/root/main/prcp/prcplist["+i+"]" );
- destNode1.appendChild( srcNode1.cloneNode(true));
- chk="Y";
- }
- }
- model.refresh();
-
- var chktemp="";
- for ( var i = 0 ; i < grd_prcplist.rows;i++){ //저함량 배수처방 체크. 표시
- temp = model.getValue("/root/main/prcp/prcplist["+i+"]/tempcol11").split("|");
-
- if ( temp[0]== "N" ){
- if ( chktemp != model.getValue("/root/main/prcp/prcplist["+i+"]/tempcol11")){
- chktemp = model.getValue("/root/main/prcp/prcplist["+i+"]/tempcol11");
- for ( var j = 0; j<grd_divprcp.rows ; j++){
- temp2 = model.getValue("/root/main/divprcp/prcplist["+j+"]/tempcol11").split("|");
-
- if ( temp2[1] == temp[1] && temp2[2] == temp[2] ){
- model.setValue("/root/main/divprcp/prcplist["+j+"]/hosinhosoutflag", model.getValue("/root/main/prcp/prcplist["+i+"]/hosinhosoutflag"));
- model.setValue("/root/main/divprcp/prcplist["+j+"]/prcpexecdeptcd", model.getValue("/root/main/prcp/prcplist["+i+"]/prcpexecdeptcd"));
- model.setValue("/root/main/divprcp/prcplist["+j+"]/prcpgenrflag", model.getValue("/root/main/prcp/prcplist["+i+"]/prcpgenrflag"));
- model.setValue("/root/main/divprcp/prcplist["+j+"]/issdeptcd", model.getValue("/root/main/prcp/prcplist["+i+"]/issdeptcd"));
- model.setValue("/root/main/divprcp/prcplist["+j+"]/pampkspec", model.getValue("/root/main/prcp/prcplist["+i+"]/pampkspec"));
- model.setValue("/root/main/divprcp/prcplist["+j+"]/specdrid", model.getValue("/root/main/prcp/prcplist["+i+"]/specdrid"));
- if (model.getValue("/root/main/prcp/prcplist["+i+"]/spynpy1") !=""){
- model.makeValue("/root/main/divprcp/prcplist["+j+"]/spynpy1", model.getValue("/root/main/prcp/prcplist["+i+"]/spynpy1"));
- } else {
- model.makeValue("/root/main/divprcp/prcplist["+j+"]/spynpy1", model.getValue("/root/main/prcp/prcplist["+i+"]/insukind"));
- }
- model.setValue("/root/main/divprcp/prcplist["+j+"]/lowdrugresncd", "N"); // 디폴트로 처방 변경.
- }
- }
- }
- chk="Y";
- }
- }
- model.refresh();
- */
-
- /*
- if ( chk=="Y" ){ //저함량 배수 처방 존재시
- //model.refresh();
- //window.left= 400;
- //window.top= 300;
- //window.visible=true;
- //window.height = 420;
- //window.width= 860;
- //window.style="left:800; right:400; width:820; height:400;";
-
- } else {
-
- opener.model.removenode("/root/main/prcp");
- var destNode = opener.model.instances(0).selectSingleNode( "/root/main" );
- var srcNode = model.instances(0).selectSingleNode( "/root/main/prcp" );
- destNode.appendChild( srcNode );
-
- //opener.model.refresh();
- //window.close();
- }
- */
-
- ]]>
- </script>
- <submission id="TRADB62401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" replace="instance" resultref="/root/main/prcp"/>
- <script type="javascript" ev:event="xforms-model-construct-done">
- <![CDATA[
- //처방화면 초기화시 일일 용량으로 할지 1회 용량으로 할지에 따라서 보여지는 컬럼값 변경
- // DB에 저장된 병원기준값을 가지고 와서 보여주는 컬럼을 셋팅한다.
- var colHidnValue = grdBaseColHidn("D");
- grdBaseColHidn(colHidnValue, "grd_divprcp", 45, "prcpvol", "prcpqty", "drprcpetc7", "drprcpetc8", 37);
- ]]>
- </script>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
- <script type="javascript" src="../../../emr/commonweb/js/EMRCommon.js"/>
- <script type="javascript" src="../../../ast/commonweb/js/AST.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/SMMMO00100.js"/>
- <script type="javascript" src="../../../emr/prcpmngtweb/js/SMMMO00110.js"/>
- <script type="javascript" src="../../../com/signweb/js/ZES001.js"/>
- </xhtml:head>
- <xhtml:body pagewidth="850" pageheight="390" guideline="1,864;2,452;2,387;" style="font-size:11pt; margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
- <switch id="switch1" style="left:5px; top:5px; width:820px; height:360px; ">
- <case id="case1" selected="true">
- <caption id="caption1" class="tit_2" style="left:5px; top:5px; width:80px; height:13px; vertical-align:middle; ">원처방</caption>
- <caption id="caption2" class="tit_2" style="left:5px; top:176px; width:80px; height:13px; vertical-align:middle; ">변경처방</caption>
- <caption id="caption3" style="left:90px; top:176px; width:340px; height:15px; ">원처방대로 처방시는 아래 사유를 변경하십시오.</caption>
- <bool id="bool_cond1" checkvalue="Y,N" overflow="visible" appearance="full" ref="/root/init/cond1" style="left:725px; top:176px; width:20px; height:20px; border-style:none; "/>
- <caption id="caption4" style="left:745px; top:176px; width:50px; height:20px; ">일괄적용</caption>
- <datagrid id="grd_divpreprcp" nodeset="/root/main/divpreprcp/prcplist" caption="^상태^분류^종류^처방코드^처방명^1회용량^1회용량^1회수량^1회수량^횟수^일수^급비^용법/검체^MIX^전달^원내외^시행부서^희망일자^선택진료^등록일시^등록자" colsep="^" colwidth="38, 55, 50, 55, 80, 217, 45, 27, 37, 27, 40, 37, 60, 207, 38, 40, 50, 100, 100, 60, 80, 80" dataheight="23" ellipsis="true" mergecellsfixedrows="bycolrec" rowheight="23" rowsep="|" tooltip="true" navindex="1" style="left:0px; top:20px; width:795px; height:155px; focus-rect:hidden; ">
- <col disabled="true" ref="status" type="combo" style="left:0px; top:23px; width:38px; height:23px; text-align:center; word-wrap:word; focus-rect:visible; ">
- <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>
- <item>
- <label>수정</label>
- <value>U</value>
- </item>
- </choices>
- </col>
- <col disabled="true" ref="prcpstatcd" type="combo" visibility="hidden" style="text-align:center; focus-rect:visible; ">
- <choices>
- <itemset nodeset="/root/init/prcpstatcd/M0011">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="prcpclscd" type="combo" visibility="hidden" style="text-align:left; focus-rect:visible; ">
- <choices>
- <itemset nodeset="/root/init/prcpclscd/M0005">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col class="gridcombo" ref="prcpkindcd" type="combo" visibility="hidden" style="text-align:center; focus-rect:visible; ">
- <choices>
- <itemset nodeset="/root/init/prcpkindcd/M0003">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="prcpcd" type="output" style="text-align:left; focus-rect:visible; "/>
- <col ref="prcpnm" type="output" style="text-align:left; focus-rect:visible; "/>
- <col ref="drprcpetc7" type="output" format="#.#" maxlength="5.3" style="text-align:center; focus-rect:visible; "/>
- <col ref="prcpvolunitnm" type="output" style="text-align:center; focus-rect:visible; "/>
- <col ref="drprcpetc8" type="output" format="#.#" maxlength="5.3" style="text-align:center; focus-rect:visible; "/>
- <col ref="prcpqtyunitnm" style="text-align:center; focus-rect:visible; "/>
- <col ref="prcptims" type="output" format="#" style="text-align:center; focus-rect:visible; "/>
- <col ref="prcpdayno" type="output" format="#" style="text-align:center; focus-rect:visible; "/>
- <col ref="payflagcd" type="combo" visibility="hidden">
- <choices>
- <itemset nodeset="/root/init/payflagcd/M0029">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="drugmthdspccdnm" type="output" visibility="visible" style="focus-rect:visible; "/>
- <col ref="prcpmixno" visibility="visible" style="focus-rect:visible; "/>
- <col ref="prcpdelivefact" visibility="hidden" style="focus-rect:visible; "/>
- <col disabled="true" ref="hosinhosoutflag" type="combo" visibility="hidden" style="text-align:center; focus-rect:visible; ">
- <choices>
- <item>
- <label>원내</label>
- <value>I</value>
- </item>
- <item>
- <label>원외</label>
- <value>O</value>
- </item>
- <item>
- <label/>
- <value/>
- </item>
- </choices>
- </col>
- <col class="gridcombo" disabled="true" ref="prcpexecdeptcd" type="combo" visibility="hidden" style="focus-rect:visible; ">
- <choices>
- <itemset nodeset="/root/orddept/dept">
- <label ref="depthngnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- </col>
- <col ref="prcphopedd" type="inputdate" visibility="hidden" format="yyyy-mm-dd" style="text-align:center; focus-rect:visible; "/>
- <col checkvalue="Y,N" ref="choiordflag" type="checkbox" visibility="hidden" style="focus-rect:visible; "/>
- <col ref="rgsttm" visibility="hidden" format="yyyy-mm-dd"/>
- <col ref="rgstridnm" visibility="hidden"/>
- </datagrid>
- <datagrid id="grd_divprcp" nodeset="/root/main/divprcp/prcplist" caption="^상태^분류^종류^처방코드^처방명^1회용량^1회용량^1회용량^1회수량^1회수량^1회수량^횟수^일수^급비^용법/검체^MIX^전달^원내외^시행부서^희망일자^선택진료^등록일시^등록자^사유^직접입력" colsep="^" colwidth="38, 55, 50, 55, 80, 216, 45, 45, 27, 37, 37, 27, 40, 37, 60, 153, 38, 40, 50, 100, 100, 60, 80, 80, 245, 234" dataheight="23" ellipsis="true" mergecellsfixedrows="bycolrec" rowheight="23" rowsep="|" tooltip="true" navindex="1" style="left:0px; top:195px; width:795px; height:155px; focus-rect:hidden; ">
- <col disabled="true" ref="status" type="combo" style="left:0px; top:23px; width:38px; height:23px; text-align:center; word-wrap:word; focus-rect:visible; ">
- <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>
- <item>
- <label>수정</label>
- <value>U</value>
- </item>
- </choices>
- </col>
- <col disabled="true" ref="prcpstatcd" type="combo" visibility="hidden" style="text-align:center; focus-rect:visible; ">
- <choices>
- <itemset nodeset="/root/init/prcpstatcd/M0011">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="prcpclscd" type="combo" visibility="hidden" style="text-align:left; focus-rect:visible; ">
- <choices>
- <itemset nodeset="/root/init/prcpclscd/M0005">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col class="gridcombo" ref="prcpkindcd" type="combo" visibility="hidden" style="text-align:center; focus-rect:visible; ">
- <choices>
- <itemset nodeset="/root/init/prcpkindcd/M0003">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="prcpcd" type="output" style="text-align:left; focus-rect:visible; "/>
- <col ref="prcpnm" type="output" style="text-align:left; focus-rect:visible; "/>
- <col ref="prcpvol" type="output" format="#.#" maxlength="5.3" style="text-align:center; focus-rect:visible; "/>
- <col ref="drprcpetc7" type="output" format="#.#" maxlength="5.3" style="text-align:center; focus-rect:visible; "/>
- <col ref="prcpvolunitnm" type="output" style="text-align:center; focus-rect:visible; "/>
- <col ref="prcpqty" type="output" format="#.#" maxlength="5.3" style="text-align:center; focus-rect:visible; "/>
- <col ref="drprcpetc8" type="output" format="#.#" maxlength="5.3" style="text-align:center; focus-rect:visible; "/>
- <col ref="prcpqtyunitnm" style="text-align:center; focus-rect:visible; "/>
- <col ref="prcptims" type="output" format="#" style="text-align:center; focus-rect:visible; "/>
- <col ref="prcpdayno" type="output" format="#" style="text-align:center; focus-rect:visible; "/>
- <col ref="payflagcd" type="combo" visibility="hidden">
- <choices>
- <itemset nodeset="/root/init/payflagcd/M0029">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="drugmthdspccdnm" type="output" visibility="hidden" style="focus-rect:visible; "/>
- <col ref="prcpmixno" visibility="hidden" style="focus-rect:visible; "/>
- <col ref="prcpdelivefact" visibility="hidden" style="focus-rect:visible; "/>
- <col disabled="true" ref="hosinhosoutflag" type="combo" visibility="hidden" style="text-align:center; focus-rect:visible; ">
- <choices>
- <item>
- <label>원내</label>
- <value>I</value>
- </item>
- <item>
- <label>원외</label>
- <value>O</value>
- </item>
- <item>
- <label/>
- <value/>
- </item>
- </choices>
- </col>
- <col class="gridcombo" disabled="true" ref="prcpexecdeptcd" type="combo" visibility="hidden" style="focus-rect:visible; ">
- <choices>
- <itemset nodeset="/root/orddept/dept">
- <label ref="depthngnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- </col>
- <col ref="prcphopedd" type="inputdate" visibility="hidden" format="yyyy-mm-dd" style="text-align:center; focus-rect:visible; "/>
- <col checkvalue="Y,N" ref="choiordflag" type="checkbox" visibility="hidden" style="focus-rect:visible; "/>
- <col ref="rgsttm" visibility="hidden" format="yyyy-mm-dd"/>
- <col ref="rgstridnm" visibility="hidden"/>
- <col ref="lowdrugresncd" type="combo">
- <choices>
- <item>
- <label>-변경처방사용</label>
- <value>N</value>
- </item>
- <item>
- <label>용량 조절(titration) 중인 의약품</label>
- <value>A</value>
- </item>
- <item>
- <label>환자의 자가 조절이 필요한 의약품</label>
- <value>B</value>
- </item>
- <item>
- <label>투여시기 마다 1회 투약량을 달리하는 경우</label>
- <value>C</value>
- </item>
- <item>
- <label>처방전 발행의사에게 고함량 의약품으로의 처방변경이 불가능함</label>
- <value>D</value>
- </item>
- <item>
- <label>기타 환자상태 등 고려 배수 조제가 불가피한 경우</label>
- <value>E</value>
- </item>
- </choices>
- </col>
- <col ref="lowdrugresnetcfact" type="input" visibility="hidden"/>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if ( grd_divprcp.col == grd_divprcp.colRef("lowdrugresncd") ){
- var cond1 = model.getValue("/root/init/cond1");
- var temp = model.getValue("/root/main/divprcp/prcplist["+(grd_divprcp.row)+"]/tempcol11");
- var lowdrugresncd = model.getValue("/root/main/divprcp/prcplist["+(grd_divprcp.row)+"]/lowdrugresncd");
- var lowdrugresnetcfact = model.getValue("/root/main/divprcp/prcplist["+(grd_divprcp.row)+"]/lowdrugresnetcfact");
-
- var srcNodeList = model.instances(0).selectNodes("/root/main/divprcp/prcplist" );
- for ( var i =1; i<= srcNodeList.length;i++){ //원처방 사유 선택시
- if (("Y" == cond1) || (temp == model.getValue("/root/main/divprcp/prcplist["+i+"]/tempcol11"))){
- model.setValue("/root/main/divprcp/prcplist["+i+"]/lowdrugresncd", lowdrugresncd);
- model.setValue("/root/main/divprcp/prcplist["+i+"]/lowdrugresnetcfact", lowdrugresnetcfact);
- }
- }
- model.refresh();
- }
- ]]>
- </script>
- </datagrid>
- </case>
- <case id="case2">
- <datagrid id="grd_targetprcplist" nodeset="/root/main/srcprcp/prcplist" caption="^상태^분류^종류^처방코드^처방명^총용량^총용량^수량^수량^횟수^일수^급비^용법/검체^MIX^전달^원내외^시행부서^희망일자^선택진료^등록일시^등록자" colsep="^" colwidth="38, 55, 50, 55, 80, 260, 45, 27, 37, 27, 40, 37, 60, 153, 38, 40, 50, 100, 100, 60, 80, 80" dataheight="23" ellipsis="true" mergecellsfixedrows="bycolrec" rowheight="23" rowsep="|" tooltip="true" navindex="1" style="left:0px; top:0px; width:795px; height:155px; focus-rect:hidden; ">
- <col disabled="true" ref="status" type="combo" style="left:0px; top:23px; width:38px; height:23px; text-align:center; word-wrap:word; focus-rect:visible; ">
- <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>
- <item>
- <label>수정</label>
- <value>U</value>
- </item>
- </choices>
- </col>
- <col disabled="true" ref="prcpstatcd" type="combo" visibility="hidden" style="text-align:center; focus-rect:visible; ">
- <choices>
- <itemset nodeset="/root/init/prcpstatcd/M0011">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="prcpclscd" type="combo" visibility="hidden" style="text-align:left; focus-rect:visible; ">
- <choices>
- <itemset nodeset="/root/init/prcpclscd/M0005">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col class="gridcombo" ref="prcpkindcd" type="combo" style="text-align:center; focus-rect:visible; ">
- <choices>
- <itemset nodeset="/root/init/prcpkindcd/M0003">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="prcpcd" type="input" style="text-align:left; focus-rect:visible; "/>
- <col ref="prcpnm" type="input" style="text-align:left; focus-rect:visible; "/>
- <col ref="prcpvol" type="input" format="#.#" maxlength="5.3" style="text-align:center; focus-rect:visible; "/>
- <col ref="prcpvolunitnm" type="output" style="text-align:center; focus-rect:visible; "/>
- <col ref="prcpqty" type="input" format="#.#" maxlength="5.3" style="text-align:center; focus-rect:visible; "/>
- <col ref="prcpqtyunitnm" style="text-align:center; focus-rect:visible; "/>
- <col ref="prcptims" type="input" format="#" style="text-align:center; focus-rect:visible; "/>
- <col ref="prcpdayno" type="input" format="#" style="text-align:center; focus-rect:visible; "/>
- <col ref="payflagcd" type="combo">
- <choices>
- <itemset nodeset="/root/init/payflagcd/M0029">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="drugmthdspccdnm" type="output" style="focus-rect:visible; "/>
- <col ref="prcpmixno" style="focus-rect:visible; "/>
- <col ref="prcpdelivefact" style="focus-rect:visible; "/>
- <col disabled="true" ref="hosinhosoutflag" type="combo" style="text-align:center; focus-rect:visible; ">
- <choices>
- <item>
- <label>원내</label>
- <value>I</value>
- </item>
- <item>
- <label>원외</label>
- <value>O</value>
- </item>
- <item>
- <label/>
- <value/>
- </item>
- </choices>
- </col>
- <col class="gridcombo" disabled="true" ref="prcpexecdeptcd" type="combo" style="focus-rect:visible; ">
- <choices>
- <itemset nodeset="/root/orddept/dept">
- <label ref="depthngnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- </col>
- <col ref="prcphopedd" type="inputdate" format="yyyy-mm-dd" style="text-align:center; focus-rect:visible; "/>
- <col checkvalue="Y,N" ref="choiordflag" type="checkbox" style="focus-rect:visible; "/>
- <col ref="rgsttm" visibility="hidden" format="yyyy-mm-dd"/>
- <col ref="rgstridnm" visibility="hidden"/>
- </datagrid>
- <datagrid id="grd_prcplist" nodeset="/root/main/prcp/prcplist" caption="^상태^분류^종류^처방코드^처방명^총용량^총용량^수량^수량^횟수^일수^급비^용법/검체^MIX^전달^원내외^시행부서^희망일자^선택진료^등록일시^등록자" colsep="^" colwidth="38, 55, 50, 55, 80, 260, 45, 27, 37, 27, 40, 37, 60, 153, 38, 40, 50, 100, 100, 60, 80, 80" dataheight="23" ellipsis="true" mergecellsfixedrows="bycolrec" rowheight="23" rowsep="|" tooltip="true" navindex="1" style="left:0px; top:165px; width:795px; height:155px; focus-rect:hidden; ">
- <col disabled="true" ref="status" type="combo" style="left:0px; top:23px; width:38px; height:23px; text-align:center; word-wrap:word; focus-rect:visible; ">
- <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>
- <item>
- <label>수정</label>
- <value>U</value>
- </item>
- </choices>
- </col>
- <col disabled="true" ref="prcpstatcd" type="combo" visibility="hidden" style="text-align:center; focus-rect:visible; ">
- <choices>
- <itemset nodeset="/root/init/prcpstatcd/M0011">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="prcpclscd" type="combo" visibility="hidden" style="text-align:left; focus-rect:visible; ">
- <choices>
- <itemset nodeset="/root/init/prcpclscd/M0005">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col class="gridcombo" ref="prcpkindcd" type="combo" style="text-align:center; focus-rect:visible; ">
- <choices>
- <itemset nodeset="/root/init/prcpkindcd/M0003">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="prcpcd" type="input" style="text-align:left; focus-rect:visible; "/>
- <col ref="prcpnm" type="input" style="text-align:left; focus-rect:visible; "/>
- <col ref="prcpvol" type="input" format="#.#" maxlength="5.3" style="text-align:center; focus-rect:visible; "/>
- <col ref="prcpvolunitnm" type="output" style="text-align:center; focus-rect:visible; "/>
- <col ref="prcpqty" type="input" format="#.#" maxlength="5.3" style="text-align:center; focus-rect:visible; "/>
- <col ref="prcpqtyunitnm" style="text-align:center; focus-rect:visible; "/>
- <col ref="prcptims" type="input" format="#" style="text-align:center; focus-rect:visible; "/>
- <col ref="prcpdayno" type="input" format="#" style="text-align:center; focus-rect:visible; "/>
- <col ref="payflagcd" type="combo">
- <choices>
- <itemset nodeset="/root/init/payflagcd/M0029">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="drugmthdspccdnm" type="output" style="focus-rect:visible; "/>
- <col ref="prcpmixno" style="focus-rect:visible; "/>
- <col ref="prcpdelivefact" style="focus-rect:visible; "/>
- <col disabled="true" ref="hosinhosoutflag" type="combo" style="text-align:center; focus-rect:visible; ">
- <choices>
- <item>
- <label>원내</label>
- <value>I</value>
- </item>
- <item>
- <label>원외</label>
- <value>O</value>
- </item>
- <item>
- <label/>
- <value/>
- </item>
- </choices>
- </col>
- <col class="gridcombo" disabled="true" ref="prcpexecdeptcd" type="combo" style="focus-rect:visible; ">
- <choices>
- <itemset nodeset="/root/orddept/dept">
- <label ref="depthngnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- </col>
- <col ref="prcphopedd" type="inputdate" format="yyyy-mm-dd" style="text-align:center; focus-rect:visible; "/>
- <col checkvalue="Y,N" ref="choiordflag" type="checkbox" style="focus-rect:visible; "/>
- <col ref="rgsttm" visibility="hidden" format="yyyy-mm-dd"/>
- <col ref="rgstridnm" visibility="hidden"/>
- </datagrid>
- </case>
- </switch>
- <button id="button23" class="btn4_letter2" style="left:770px; top:366px; width:56px; height:22px; ">
- <caption>확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var iRow=0;
-
- var temp ="";
- var arrTempcol11;
-
- for ( var i =0; i< grd_divprcp.rows ;i++){
- if (model.getValue("/root/main/divprcp/prcplist["+i+"]/prcpcd") !=""){
- arrTempcol11 = (model.getValue("/root/main/divprcp/prcplist["+i+"]/tempcol11") ).split("|");
- if ( model.getValue("/root/main/divprcp/prcplist["+i+"]/lowdrugresncd") !="N" && model.getValue("/root/main/divprcp/prcplist["+i+"]/lowdrugresncd") !="" ) {
- //원처방 사유 선택시
- for ( var k = 0; k< opener.grd_prcplist.rows; k++){ //변경 처방 제거
- if ( arrTempcol11[1] == opener.model.getValue("/root/main/prcp/prcplist["+k+"]/prcpcd" )){
- iRow =k;
- }
- }
-
- //원처방으로 추가
- opener.model.setValue("/root/main/prcp/prcplist["+iRow+"]/lowdrugresncd", model.getValue("/root/main/divprcp/prcplist["+i+"]/lowdrugresncd"));
- opener.model.setValue("/root/main/prcp/prcplist["+iRow+"]/lowdrugresnetcfact", model.getValue("/root/main/divprcp/prcplist["+i+"]/lowdrugresnetcfact"));
- } else { //변경처방사용시
- for ( var j = 0; j< opener.grd_prcplist.rows; j++){ //변경 처방 제거
- if ( arrTempcol11[1]== opener.model.getValue("/root/main/prcp/prcplist["+j+"]/prcpcd" ) ){
- opener.grd_prcplist.deleteRow(j,false);
- iRow =j;
- }
- }
-
- //원처방으로 추가
- var destNode = opener.model.instances(0).selectSingleNode( "/root/main/prcp" );
- if( opener.grd_prcplist.rows > 1 && iRow != 0) { // CP 처방 화면에서 검색 행이 없어서 에러 발생함. 수정. 2012.09.13 엄영만
- model.duplicate( destNode, "/root/main/divprcp/prcplist" + "[" + (i) + "]", "*[" + (iRow) + "]");
- } else {
- model.duplicate( destNode, "/root/main/divprcp/prcplist" + "[" + (i) + "]");
- }
- }
- }
- }
- opener.model.refresh();
- window.close();
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|