123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226 |
- <?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>Exclusion입력</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <masterinfo>
- </masterinfo>
- <paminfo/>
- <cpexclusionlist/>
- <valurem/>
- </main>
- <hidden>
- <cpgappno/>
- <pid/>
- <orddd/>
- <cretno/>
- <ordtype/>
- <valuflag>3</valuflag>
- <cpgno/>
- <cpghistseq/>
- <cpgflagcd/>
- </hidden>
- <send>
- <reqdata>
- </reqdata>
- <savedata>
- </savedata>
- </send>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-model-construct-done">
- <![CDATA[
- grd_cplist.rowHidden(0) = true;
-
- var cpgflagcd = opener.javascript.getParameter("SMMMO024_cpgflagcd");
- if( cpgflagcd == "02" ){ //CPG
- model.toggle("cpg");
- btn_cnfm.attribute("left") = "384px";
- btn_cncl.visible = true;
- btn_cnfm.refresh();
- btn_cncl.refresh();
-
- cap_desc.attribute("text") = opener.javascript.getParameter("SMMMO024_cpgnm") + cap_desc.attribute("text");
-
- }else{ //"01" (CP)
- model.toggle("cp");
- btn_cnfm.attribute("left") = "442px";
- btn_cncl.visible = false;
- btn_cnfm.refresh();
- btn_cncl.refresh();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- //model.setValue("/root/hidden/cpgappno", opener.javascript.getParameter("cpgappno"));
- grd_cplist.row = 1;
- grd_cplist.dispatch("onclick");
- ]]>
- </script>
- <submission id="TRMMP02501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/masterinfo"/>
- <submission id="TXMMP02501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/main/masterinfo"/>
- </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"/>
- </xhtml:head>
- <xhtml:body pagewidth="517" pageheight="480" guideline="2,480;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="grp_biz" scroll="auto" style="left:0px; top:0px; width:500px; height:441px; ">
- <switch id="switch1" style="left:0px; top:0px; width:500px; height:440px; border-style:hidden; ">
- <case id="cp" selected="true" style="border-style:hidden; ">
- <datagrid id="grd_cplist" nodeset="/root/main/cpexclusionlist/info" caption="caption3" colsep="^" colwidth="481" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:54px; width:495px; height:95px; ">
- <col ref="cpgnm"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- // if (isDataCell() == true) {
- if( grd_cplist.row > 0 && grd_cplist.row <= grd_cplist.rows ){
- model.setValue("/root/hidden/cpgno", model.getValue("/root/main/cpexclusionlist/info["+grd_cplist.row+"]/cpgno"));
- model.setValue("/root/hidden/cpghistseq", model.getValue("/root/main/cpexclusionlist/info["+grd_cplist.row+"]/cpghistseq"));
-
- var pamInfoCvs = getGlobalVariable("paminfo"); //상단정보가 있을 경우는 검색
- if(pamInfoCvs != ""){ //cvs가 ""이 아닌 경우에만 처리함.
- model.removeNodeSet("/root/main/paminfo/list");
- setCSVToNode("/root/main/paminfo", pamInfoCvs);
-
- var ioflag = model.getValue("/root/main/paminfo/list/ioflag");
- var pid = model.getValue("/root/main/paminfo/list/pid");
- var cretno = model.getValue("/root/main/paminfo/list/cretno");
-
- if(ioflag == "O"){
- orddd = model.getValue("/root/main/paminfo/list/orddd");
- }else{
- orddd = model.getValue("/root/main/paminfo/list/indd");
- }
- model.setValue("/root/hidden/pid", pid );
- model.setValue("/root/hidden/orddd", orddd);
- model.setValue("/root/hidden/cretno", cretno);
- model.setValue("/root/hidden/ordtype", ioflag);
- }
-
- model.copyNode("/root/send/reqdata", "/root/hidden");
-
- submit("TRMMP02501");
- }
- // }
- ]]>
- </script>
- </datagrid>
- <caption id="caption1" class="tit_2" style="left:5px; top:2px; width:143px; height:14px; ">Exclusion 사유 입력</caption>
- <caption id="caption2" class="hand" style="left:0px; top:23px; width:495px; height:28px; ">
- <![CDATA[이 환자는 아래의 CP 적용 대상자이지만, CP 적용을 하지 않았습니다.
- Exclusion 대상 CP를 선택하십시오.]]>
- </caption>
- <caption id="caption3" class="hand" style="left:0px; top:161px; width:370px; height:20px; ">Exclusion 사유를 선택하고 저장해 주십시오.</caption>
- <caption id="caption4" class="hand" style="left:0px; top:323px; width:70px; height:20px; ">비고</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:51px; x2:495px; y2:51px; "/>
- <line id="line2" class="line_3" style="x1:0px; y1:150px; x2:495px; y2:150px; "/>
- <line id="line3" class="line_3" style="x1:0px; y1:317px; x2:495px; y2:317px; "/>
- <line id="line4" class="line_3" style="x1:0px; y1:437px; x2:495px; y2:437px; "/>
- <textarea id="txt_etc" ref="/root/main/valurem" overflow="scroll" scroll="auto" style="left:0px; top:344px; width:495px; height:92px; "/>
- <datagrid id="grd_masterinfo" nodeset="/root/main/masterinfo/info" caption="선택^내용" colsep="^" colwidth="38, 406, 100, 100, 100, 100, 100, 100, 100" dataheight="23" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" style="left:0px; top:181px; width:495px; height:135px; ">
- <col ref="check" type="radio"/>
- <col ref="valunm"/>
- <col ref="valuno" visibility="hidden"/>
- <col ref="valuflag" visibility="hidden"/>
- <col ref="histseq" visibility="hidden"/>
- <col ref="pid" visibility="hidden"/>
- <col ref="orddd" visibility="hidden"/>
- <col ref="cretno" visibility="hidden"/>
- <col ref="ordtype" visibility="hidden"/>
- </datagrid>
- <line id="line6" class="line_1" style="x1:0px; y1:178px; x2:495px; y2:178px; "/>
- <line id="line7" class="line_1" style="x1:0px; y1:339px; x2:495px; y2:339px; "/>
- </case>
- <case id="cpg">
- <line id="line5" class="line_1" style="x1:0px; y1:55px; x2:495px; y2:55px; "/>
- <textarea id="textarea1" ref="/root/main/valurem" overflow="scroll" scroll="auto" style="left:0px; top:60px; width:495px; height:376px; "/>
- <line id="line8" class="line_3" style="x1:0px; y1:437px; x2:495px; y2:437px; "/>
- <caption id="cap_title" class="tit_2" style="left:5px; top:2px; width:118px; height:14px; ">미적용 사유 입력</caption>
- <caption id="cap_desc" class="hand" style="left:0px; top:25px; width:495px; height:28px; ">
- <![CDATA[CPG는 평가용 CPG입니다.
- CPG 미적용 사유를 입력하십시오.]]>
- </caption>
- </case>
- </switch>
- </group>
- <group id="grp_btn" scroll="auto" style="left:0px; top:441px; width:501px; height:27px; ">
- <button id="btn_cncl" class="btn4_letter2" visibility="hidden" style="left:442px; top:2px; width:56px; height:22px; ">
- <caption>취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- window.close();
- ]]>
- </script>
- </button>
- <button id="btn_cnfm" class="btn4_letter2" style="left:442px; top:2px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.copyNode("/root/send/savedata", "/root/hidden");
- //model.makeValue("/root/send/savedata/info", grd_masterinfo.getUpdateData());
- var header = "valuno▦valunm▦valuflag▦histseq▦pid▦orddd▦cretno▦ordtype▦check";
- var data = "";
- var nodeList = instance1.selectNodes("/root/main/masterinfo/info" + "[check = 'true']");
-
- //CP별 exclusion 사유를 마스터에 모두 입력하면, CP사유 선택 필수 (2008.10.21 JJE)
- if( nodeList.length < 1 && model.getValue("/root/main/valurem")=="" ){
- messageBox("사유를 선택하지 않았습니다.\n사유를 선택하거나 비고에", "C001"); //C001:입력하십시오, C002:선택하십시오
- //messageBox("사유를", "C002");
- return;
- }
-
- if( nodeList.length < 1 ){
- var pid = opener.model.getValue ("/root/temp/paminfo/list/pid")
- var cretno = opener.model.getValue("/root/temp/paminfo/list/cretno");
- var ordtype = opener.model.getValue("/root/temp/paminfo/list/ioflag");
- if( ordtype == "O" ){
- var orddd = opener.model.getValue("/root/temp/paminfo/list/orddd");
- }else{
- var orddd = opener.model.getValue("/root/temp/paminfo/list/indd");
- }
-
- data = "▩0▦(선택안함)▦3▦0▦" + pid + "▦" + orddd + "▦" + cretno + "▦" + ordtype+ "▦true";
-
- }else{
- for(var i=0; i<nodeList.length; i++){
- var node = nodeList.item(i);
- var valuno = node.selectSingleNode("valuno");
- var valunm = node.selectSingleNode("valunm");
- var valuflag = node.selectSingleNode("valuflag");
- var histseq = node.selectSingleNode("histseq");
- var pid = node.selectSingleNode("pid");
- var orddd = node.selectSingleNode("orddd");
- var cretno = node.selectSingleNode("cretno");
- var ordtype = node.selectSingleNode("ordtype");
- var check = node.selectSingleNode("check");
-
- data = data + "▩" + valuno.text + "▦" + valunm.text + "▦" + valuflag.text + "▦" + histseq.text + "▦" + pid.text + "▦" + orddd.text + "▦" + cretno.text + "▦" + ordtype.text + "▦" + check.text;
- }
- }
-
- model.makeValue("/root/send/savedata/info", header + data + "▩");
-
- model.makeValue("/root/send/savedata/valurem", model.getValue("/root/main/valurem"));
-
- if(submit("TXMMP02501")){
- opener.javascript.setParameter("TRMMP03200_saversnyn", "Y"); //CPG 미적용사유 입력 후 저장유무 return값
- window.close();
- }
- ]]>
- </script>
- </button>
- </group>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- //if(event.keyCode == "27") {
- // window.close();
- //}
- ]]>
- </script>
- </xhtml:body>
- </xhtml:html>
|