123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256 |
- <?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>
- <alertinfo>
- <pid/>
- <cretno/>
- <orddd/>
- <ordtype/>
- <limno/>
- <limhistno/>
- <cpgappno/>
- <alertstatcd/>
- <title/>
- <alertoffyn/>
- <stepno/>
- <stepnm/>
- <fromtm/>
- <termtm/>
- <limtm/>
- <status/>
- </alertinfo>
- <alertlist/>
- <prcp/>
- </main>
- <send>
- <reqdata/>
- </send>
- <tmp>
- <info>
- <pid/>
- <cretno/>
- <orddd/>
- <ordtype/>
- <limno/>
- <limhistno/>
- <cpgappno/>
- <alertstatcd/>
- <title/>
- <alertoffyn/>
- <stepno/>
- <stepnm/>
- <fromtm/>
- <termtm/>
- <limtm/>
- <status/>
- </info>
- </tmp>
- <init>
- <prcpstatcd/>
- </init>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- zbcfGetCodeList( new Array("M0011"), new Array("/root/init/prcpstatcd") );
-
- // pid ▦ cretno ▦ orddd ▦ ordtype ▦ limno ▦ limhistno ▦ cpgappno ▦ alertstatcd ▦ title ▦ alertoffyn ▦ stepno ▦ stepnm
-
- alertData = opener.javascript.getParameter("alertdata_SMMMP00800");
- var sData = alertData.split("▩");
- var tData = null;
-
- for( var i=0; i<sData.length-1; i++ ){
- tData = sData[i].split("▦");
-
- pid = tData[0];
- cretno = tData[1];
- ordtype = tData[2];
- orddd = tData[3];
- limno = tData[4];
- limhistno = tData[5];
- cpgappno = tData[6];
- alertstatcd = tData[7];
- title = tData[8];
- alertoffyn = tData[9];
- stepno = tData[10];
- stepnm = tData[11];
-
- model.setValue("/root/tmp/info/pid", pid);
- model.setValue("/root/tmp/info/cretno", cretno);
- model.setValue("/root/tmp/info/orddd", orddd);
- model.setValue("/root/tmp/info/ordtype", ordtype);
- model.setValue("/root/tmp/info/limno", limno);
- model.setValue("/root/tmp/info/limhistno", limhistno);
- model.setValue("/root/tmp/info/cpgappno", cpgappno);
- model.setValue("/root/tmp/info/alertstatcd", alertstatcd);
- model.setValue("/root/tmp/info/title", title);
- model.setValue("/root/tmp/info/alertoffyn", alertoffyn);
- model.setValue("/root/tmp/info/stepno", stepno);
- model.setValue("/root/tmp/info/stepnm", stepnm);
- model.setValue("/root/tmp/info/status", "-");
-
- copyNodeListType("/root/main/alertlist", "/root/tmp/info", "after", model, model);
- }
-
- model.refresh();
-
- grd_alertinfo.select(1, 1, 1, grd_alertinfo.cols) = true;
- grd_alertinfo.isselected(1) = true;
- grd_alertinfo.row = grd_alertinfo.selectedRow(0);
-
- model.removeNodeset("/root/main/alertinfo/info");
- fGetLimTMList(grd_alertinfo.row);
- fCnfmLimAttr();
- ]]>
- </script>
- <submission id="TRMMP03301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/alertinfo" resultref="/root/main/prcp"/>
- <submission id="TXMMP00810" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript">
- <![CDATA[
- var pid = "";
- var cretno = "";
- var orddd = "";
- var ordtype = "";
- var alertData = "";
- var alertstatcd = "";
- var limno = "";
- var limhistno = "";
- var title = "";
- var alertoffyn = "";
- var cpgappno = "";
- var stepno = "";
- var stepnm = "";
-
-
- function fGetLimTMList( iRow ){
- model.copyNode("/root/main/alertinfo", "/root/main/alertlist/info["+ iRow +"]");
- submit( "TRMMP03301", true );
-
- var fromtm = instance1.selectSingleNode("/root/main/prcp/liminfo/fromtm");
- var termtm = instance1.selectSingleNode("/root/main/prcp/liminfo/termtm");
- var unitflag = instance1.selectSingleNode("/root/main/prcp/liminfo/limtmunitflag");
- var limtm = instance1.selectSingleNode("/root/main/prcp/liminfo/limtm");
-
- if( limtm != null ){
- if( unitflag.text == "H" ) var unitnm = "시간";
- else var unitnm = "분";
- model.setValue("/root/main/alertinfo/fromtm", fromtm.text);
- model.setValue("/root/main/alertinfo/termtm", termtm.text + unitnm);
- model.setValue("/root/main/alertinfo/limtm", limtm.text);
- }else{
- model.setValue("/root/main/alertinfo/fromtm", "");
- model.setValue("/root/main/alertinfo/termtm", "");
- model.setValue("/root/main/alertinfo/limtm", "");
- }
- //model.removeNodeset("/root/main/prcp/liminfo");
- cap_termtm.refresh();
- cap_rmntm.refresh();
- }
-
- function fCnfmLimAttr(){
- model.removeNodeset("/root/send/reqdata");
- model.makeNode("/root/send/reqdata");
-
- var statusFlag = "";
- if(model.getValue("/root/main/alertinfo/alertstatcd") == "I" ){
- statusFlag = "W";
- }else if(model.getValue("/root/main/alertinfo/alertstatcd") == "T" ){
- statusFlag = "E";
- }
- model.setValue("/root/main/alertinfo/alertstatcd", statusFlag);
- model.setValue("/root/main/alertinfo/status", "U");
- model.copyNode("/root/send/reqdata", "/root/main/alertinfo");
- model.makeValue("/root/send/reqdata/attrflagcd", "3"); //1:모니터링, 2:스크리닝, 3:제한시간, 4:문진
-
- if( submit("TXMMP00810", false) ){
- var limno = model.getValue("/root/main/alertinfo/limno");
- var limhistno = model.getValue("/root/main/alertinfo/limhistno");
- opener.window.javascript.setParameter("alertstatcd_TRMMP03300", "E");
- model.setValue("/root/main/alertlist/info[limno='" + limno + "']/status", statusFlag);
- }
- /*
- if( instance1.selectNodes("/root/main/alertlist/info[status!='E']").length == 0 ){
- window.close();
- }else{
- //model.removeNodeset("/root/main/alertlist/info[" + grd_alertinfo.row + "]");
- grd_alertinfo.refresh();
- //grd_alertinfo.select(1, 1, 1, grd_alertinfo.cols) = true;
- //grd_alertinfo.isselected(1) = true;
- //grd_alertinfo.row = grd_alertinfo.selectedRow(0);
- //grd_alertinfo.dispatch("onclick");
- }
- */
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="516" pageheight="500" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <caption id="caption22" class="tit_2" style="left:5px; top:4px; width:121px; height:13px; ">기준</caption>
- <group id="group_biz" style="left:0px; top:20px; width:500px; height:455px; ">
- <line id="line4" class="line_1" style="x1:0px; y1:0px; x2:498px; y2:1px; "/>
- <caption id="caption3" class="hand" style="left:0px; top:415px; width:481px; height:28px; ">
- <![CDATA[위의 처방들은 [ ] 내인 [ ] 까지
- Acting 되어야 합니다.]]>
- </caption>
- <line id="line7" class="line_3" style="x1:0px; y1:407px; x2:498px; y2:407px; "/>
- <line id="line1" class="line_1" style="x1:0px; y1:138px; x2:498px; y2:139px; "/>
- <datagrid id="grd_alertinfo" nodeset="/root/main/alertlist/info" autoresize="true" caption="스텝명^내용" colsep="^" colwidth="130, 349" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:4px; width:498px; height:96px; ">
- <col ref="stepnm"/>
- <col ref="title"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var iRow = grd_alertinfo.row;
- if( iRow > 0 && iRow <= grd_alertinfo.rows ){
- model.removeNodeset("/root/main/alertinfo/info");
- fGetLimTMList(iRow);
- fCnfmLimAttr();
- }
- ]]>
- </script>
- </datagrid>
- <datagrid id="grd_prcplist" nodeset="/root/main/prcp/prcplist" caption="상태^처방코드^처방명" colsep="^" colwidth="75, 87, 316" mergecellsfixedrows="bycolrec" rowsep="|" tooltip="true" style="left:0px; top:142px; width:498px; height:265px; ">
- <col disabled="true" ref="prcpstatcd" type="combo">
- <choices>
- <itemset nodeset="/root/init/prcpstatcd/M0011">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="prcpcd"/>
- <col ref="prcpnm"/>
- </datagrid>
- <caption id="cap_rmntm" ref="/root/main/alertinfo/limtm" style="left:242px; top:412px; width:150px; height:20px; font-weight:bolder; color:#ff0000; "/>
- <line id="line2" class="line_3" style="x1:0px; y1:100px; x2:498px; y2:100px; "/>
- <caption id="cap_termtm" ref="/root/main/alertinfo/termtm" style="left:120px; top:412px; width:65px; height:20px; font-weight:bolder; color:#ff0000; "/>
- </group>
- <caption id="caption1" class="tit_2" style="left:0px; top:141px; width:121px; height:13px; ">미수행 처방</caption>
- <button id="btn_close" class="btn4_letter2" style="left:444px; top:476px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- window.close();
- ]]>
- </script>
- </button>
- <button id="btn_cnfm" class="btn4_letter2" visibility="hidden" style="left:387px; top:476px; width:56px; height:22px; ">
- <caption>확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fCnfmLimAttr();
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|