SPMMP02400_Exclusion입력.xrw 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  3. <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">
  4. <xhtml:head>
  5. <xhtml:title>Exclusion입력</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <masterinfo>
  11. </masterinfo>
  12. <paminfo/>
  13. <cpexclusionlist/>
  14. <valurem/>
  15. </main>
  16. <hidden>
  17. <cpgappno/>
  18. <pid/>
  19. <orddd/>
  20. <cretno/>
  21. <ordtype/>
  22. <valuflag>3</valuflag>
  23. <cpgno/>
  24. <cpghistseq/>
  25. <cpgflagcd/>
  26. </hidden>
  27. <send>
  28. <reqdata>
  29. </reqdata>
  30. <savedata>
  31. </savedata>
  32. </send>
  33. </root>
  34. </instance>
  35. <script type="javascript" ev:event="xforms-model-construct-done">
  36. <![CDATA[
  37. grd_cplist.rowHidden(0) = true;
  38. var cpgflagcd = opener.javascript.getParameter("SMMMO024_cpgflagcd");
  39. if( cpgflagcd == "02" ){ //CPG
  40. model.toggle("cpg");
  41. btn_cnfm.attribute("left") = "384px";
  42. btn_cncl.visible = true;
  43. btn_cnfm.refresh();
  44. btn_cncl.refresh();
  45. cap_desc.attribute("text") = opener.javascript.getParameter("SMMMO024_cpgnm") + cap_desc.attribute("text");
  46. }else{ //"01" (CP)
  47. model.toggle("cp");
  48. btn_cnfm.attribute("left") = "442px";
  49. btn_cncl.visible = false;
  50. btn_cnfm.refresh();
  51. btn_cncl.refresh();
  52. }
  53. ]]>
  54. </script>
  55. <script type="javascript" ev:event="xforms-ready">
  56. <![CDATA[
  57. //model.setValue("/root/hidden/cpgappno", opener.javascript.getParameter("cpgappno"));
  58. grd_cplist.row = 1;
  59. grd_cplist.dispatch("onclick");
  60. ]]>
  61. </script>
  62. <submission id="TRMMP02501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/masterinfo"/>
  63. <submission id="TXMMP02501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/main/masterinfo"/>
  64. </model>
  65. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  66. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  67. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  68. </xhtml:head>
  69. <xhtml:body pagewidth="517" pageheight="480" guideline="2,480;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  70. <group id="grp_biz" scroll="auto" style="left:0px; top:0px; width:500px; height:441px; ">
  71. <switch id="switch1" style="left:0px; top:0px; width:500px; height:440px; border-style:hidden; ">
  72. <case id="cp" selected="true" style="border-style:hidden; ">
  73. <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; ">
  74. <col ref="cpgnm"/>
  75. <script type="javascript" ev:event="onclick">
  76. <![CDATA[
  77. // if (isDataCell() == true) {
  78. if( grd_cplist.row > 0 && grd_cplist.row <= grd_cplist.rows ){
  79. model.setValue("/root/hidden/cpgno", model.getValue("/root/main/cpexclusionlist/info["+grd_cplist.row+"]/cpgno"));
  80. model.setValue("/root/hidden/cpghistseq", model.getValue("/root/main/cpexclusionlist/info["+grd_cplist.row+"]/cpghistseq"));
  81. var pamInfoCvs = getGlobalVariable("paminfo"); //상단정보가 있을 경우는 검색
  82. if(pamInfoCvs != ""){ //cvs가 ""이 아닌 경우에만 처리함.
  83. model.removeNodeSet("/root/main/paminfo/list");
  84. setCSVToNode("/root/main/paminfo", pamInfoCvs);
  85. var ioflag = model.getValue("/root/main/paminfo/list/ioflag");
  86. var pid = model.getValue("/root/main/paminfo/list/pid");
  87. var cretno = model.getValue("/root/main/paminfo/list/cretno");
  88. if(ioflag == "O"){
  89. orddd = model.getValue("/root/main/paminfo/list/orddd");
  90. }else{
  91. orddd = model.getValue("/root/main/paminfo/list/indd");
  92. }
  93. model.setValue("/root/hidden/pid", pid );
  94. model.setValue("/root/hidden/orddd", orddd);
  95. model.setValue("/root/hidden/cretno", cretno);
  96. model.setValue("/root/hidden/ordtype", ioflag);
  97. }
  98. model.copyNode("/root/send/reqdata", "/root/hidden");
  99. submit("TRMMP02501");
  100. }
  101. // }
  102. ]]>
  103. </script>
  104. </datagrid>
  105. <caption id="caption1" class="tit_2" style="left:5px; top:2px; width:143px; height:14px; ">Exclusion 사유 입력</caption>
  106. <caption id="caption2" class="hand" style="left:0px; top:23px; width:495px; height:28px; ">
  107. <![CDATA[이 환자는 아래의 CP 적용 대상자이지만, CP 적용을 하지 않았습니다.
  108. Exclusion 대상 CP를 선택하십시오.]]>
  109. </caption>
  110. <caption id="caption3" class="hand" style="left:0px; top:161px; width:370px; height:20px; ">Exclusion 사유를 선택하고 저장해 주십시오.</caption>
  111. <caption id="caption4" class="hand" style="left:0px; top:323px; width:70px; height:20px; ">비고</caption>
  112. <line id="line1" class="line_1" style="x1:0px; y1:51px; x2:495px; y2:51px; "/>
  113. <line id="line2" class="line_3" style="x1:0px; y1:150px; x2:495px; y2:150px; "/>
  114. <line id="line3" class="line_3" style="x1:0px; y1:317px; x2:495px; y2:317px; "/>
  115. <line id="line4" class="line_3" style="x1:0px; y1:437px; x2:495px; y2:437px; "/>
  116. <textarea id="txt_etc" ref="/root/main/valurem" overflow="scroll" scroll="auto" style="left:0px; top:344px; width:495px; height:92px; "/>
  117. <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; ">
  118. <col ref="check" type="radio"/>
  119. <col ref="valunm"/>
  120. <col ref="valuno" visibility="hidden"/>
  121. <col ref="valuflag" visibility="hidden"/>
  122. <col ref="histseq" visibility="hidden"/>
  123. <col ref="pid" visibility="hidden"/>
  124. <col ref="orddd" visibility="hidden"/>
  125. <col ref="cretno" visibility="hidden"/>
  126. <col ref="ordtype" visibility="hidden"/>
  127. </datagrid>
  128. <line id="line6" class="line_1" style="x1:0px; y1:178px; x2:495px; y2:178px; "/>
  129. <line id="line7" class="line_1" style="x1:0px; y1:339px; x2:495px; y2:339px; "/>
  130. </case>
  131. <case id="cpg">
  132. <line id="line5" class="line_1" style="x1:0px; y1:55px; x2:495px; y2:55px; "/>
  133. <textarea id="textarea1" ref="/root/main/valurem" overflow="scroll" scroll="auto" style="left:0px; top:60px; width:495px; height:376px; "/>
  134. <line id="line8" class="line_3" style="x1:0px; y1:437px; x2:495px; y2:437px; "/>
  135. <caption id="cap_title" class="tit_2" style="left:5px; top:2px; width:118px; height:14px; ">미적용 사유 입력</caption>
  136. <caption id="cap_desc" class="hand" style="left:0px; top:25px; width:495px; height:28px; ">
  137. <![CDATA[CPG는 평가용 CPG입니다.
  138. CPG 미적용 사유를 입력하십시오.]]>
  139. </caption>
  140. </case>
  141. </switch>
  142. </group>
  143. <group id="grp_btn" scroll="auto" style="left:0px; top:441px; width:501px; height:27px; ">
  144. <button id="btn_cncl" class="btn4_letter2" visibility="hidden" style="left:442px; top:2px; width:56px; height:22px; ">
  145. <caption>취소</caption>
  146. <script type="javascript" ev:event="DOMActivate">
  147. <![CDATA[
  148. window.close();
  149. ]]>
  150. </script>
  151. </button>
  152. <button id="btn_cnfm" class="btn4_letter2" style="left:442px; top:2px; width:56px; height:22px; ">
  153. <caption>저장</caption>
  154. <script type="javascript" ev:event="DOMActivate">
  155. <![CDATA[
  156. model.copyNode("/root/send/savedata", "/root/hidden");
  157. //model.makeValue("/root/send/savedata/info", grd_masterinfo.getUpdateData());
  158. var header = "valuno▦valunm▦valuflag▦histseq▦pid▦orddd▦cretno▦ordtype▦check";
  159. var data = "";
  160. var nodeList = instance1.selectNodes("/root/main/masterinfo/info" + "[check = 'true']");
  161. //CP별 exclusion 사유를 마스터에 모두 입력하면, CP사유 선택 필수 (2008.10.21 JJE)
  162. if( nodeList.length < 1 && model.getValue("/root/main/valurem")=="" ){
  163. messageBox("사유를 선택하지 않았습니다.\n사유를 선택하거나 비고에", "C001"); //C001:입력하십시오, C002:선택하십시오
  164. //messageBox("사유를", "C002");
  165. return;
  166. }
  167. if( nodeList.length < 1 ){
  168. var pid = opener.model.getValue ("/root/temp/paminfo/list/pid")
  169. var cretno = opener.model.getValue("/root/temp/paminfo/list/cretno");
  170. var ordtype = opener.model.getValue("/root/temp/paminfo/list/ioflag");
  171. if( ordtype == "O" ){
  172. var orddd = opener.model.getValue("/root/temp/paminfo/list/orddd");
  173. }else{
  174. var orddd = opener.model.getValue("/root/temp/paminfo/list/indd");
  175. }
  176. data = "▩0▦(선택안함)▦3▦0▦" + pid + "▦" + orddd + "▦" + cretno + "▦" + ordtype+ "▦true";
  177. }else{
  178. for(var i=0; i<nodeList.length; i++){
  179. var node = nodeList.item(i);
  180. var valuno = node.selectSingleNode("valuno");
  181. var valunm = node.selectSingleNode("valunm");
  182. var valuflag = node.selectSingleNode("valuflag");
  183. var histseq = node.selectSingleNode("histseq");
  184. var pid = node.selectSingleNode("pid");
  185. var orddd = node.selectSingleNode("orddd");
  186. var cretno = node.selectSingleNode("cretno");
  187. var ordtype = node.selectSingleNode("ordtype");
  188. var check = node.selectSingleNode("check");
  189. data = data + "▩" + valuno.text + "▦" + valunm.text + "▦" + valuflag.text + "▦" + histseq.text + "▦" + pid.text + "▦" + orddd.text + "▦" + cretno.text + "▦" + ordtype.text + "▦" + check.text;
  190. }
  191. }
  192. model.makeValue("/root/send/savedata/info", header + data + "▩");
  193. model.makeValue("/root/send/savedata/valurem", model.getValue("/root/main/valurem"));
  194. if(submit("TXMMP02501")){
  195. opener.javascript.setParameter("TRMMP03200_saversnyn", "Y"); //CPG 미적용사유 입력 후 저장유무 return값
  196. window.close();
  197. }
  198. ]]>
  199. </script>
  200. </button>
  201. </group>
  202. <script type="javascript" ev:event="onkeydown">
  203. <![CDATA[
  204. //if(event.keyCode == "27") {
  205. // window.close();
  206. //}
  207. ]]>
  208. </script>
  209. </xhtml:body>
  210. </xhtml:html>