SPZCR00201_상호작용상세.xrw 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  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>약물 상호작용 상세정보</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <list>
  11. <resultList>
  12. <txtcde/>
  13. <!--섹션제목구분코드-->
  14. <txtcdedesc/>
  15. <!--섹션제목-->
  16. <fdtxt/>
  17. <!--내용-->
  18. </resultList>
  19. </list>
  20. <titlecaption>약물/약물</titlecaption>
  21. <titlebody/>
  22. </main>
  23. <send>
  24. <reqDDIM>
  25. <pCodeType/>
  26. <!--상호작용구분(14:약물상호작용or16:음식물상호작용)-->
  27. <pMonograpCd/>
  28. <!--상호작용모노그랩코드(약물,음식물)-->
  29. </reqDDIM>
  30. </send>
  31. <init/>
  32. <hidden/>
  33. <temp/>
  34. </root>
  35. </instance>
  36. <script type="javascript" ev:event="xforms-ready">
  37. <![CDATA[
  38. /*
  39. 화면을 초기화 합니다.
  40. */
  41. fInitialize();
  42. // 약물/약물 상호작용상세 정보를 조회한다.
  43. if(model.getValue("/root/send/reqDDIM/pCodeType") == 14){
  44. submit("TRZCR01301");
  45. caption5.value="약물/약물";
  46. model.makeValue("/root/main/titlebody", model.getValue("/root/main/list/resultList[1]/fdtxt"));
  47. model.removenode("/root/main/list/resultList[1]");
  48. // 약물/음식 상호작용상세 정보를 조회한다.
  49. }else if(model.getValue("/root/send/reqDDIM/pCodeType") == 16){
  50. submit("TRZCR01401");
  51. caption5.value="약물/음식";
  52. model.makeValue("/root/main/titlebody", model.getValue("/root/main/list/resultList[1]/fdtxt"));
  53. model.removenode("/root/main/list/resultList[1]");
  54. }
  55. model.refresh();
  56. /*
  57. 조회 메서드를 호출합니다
  58. */
  59. ]]>
  60. </script>
  61. <submission id="TRZCR01301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqDDIM" resultref="/root/main/list"/>
  62. <submission id="TRZCR01401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqDDIM" resultref="/root/main/list"/>
  63. </model>
  64. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  65. <script type="javascript" src="../../../com/referenceweb/js/ZCR001.js"/>
  66. <script type="javascript">
  67. <![CDATA[
  68. /*
  69. 초기화 작업을 합니다.
  70. */
  71. function fInitialize(){
  72. model.removeNodeset("/root/main/list/resultList");
  73. /*
  74. 1. 부모창 "/root/send/reqDDIM"에서 pCodeType과 pMonograpCD를 "/root/send/req"에 set한다.
  75. 2. /root/main/titlecaption을 set한다.
  76. - pCodeType이 '14'인경우 '선택된 약물/약물'로 set
  77. - pCodeType이 '16'인경우 '선택된 약물/음식'로 set
  78. 3. 조회된 결과에서("/root/main/list/resultList/Txtcde") 가 'T'인 것만
  79. - "/root/main/titlebody"에 "/root/main/list/resultList/txtcdedesc" 값을 set 한다.
  80. 4. 조회된 결과에서("/root/main/list/resultList/Txtcde") 가 'T'인 row를 삭제한다.
  81. model.refresh();
  82. */
  83. }
  84. /*
  85. model.getValue(); 를 함수로 만들었습니다.
  86. param1 : node는 grid의 xPath입니다.
  87. param2 : row는 grid에서 선택한 row값입니다.
  88. param3 : element는 getvalue할 해당 element 명입니다.
  89. 해당 getvalue값을 return 해줍니다.
  90. return 하지 않으면 해당값을 가져올 수 없습니다.
  91. */
  92. function fGetValue(node, row, element) {
  93. var rtnValue = model.getValue(node + "[" + row + "]/" + element);
  94. return rtnValue;
  95. }
  96. ]]>
  97. </script>
  98. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  99. </xhtml:head>
  100. <xhtml:body pagewidth="665" pageheight="700" guideline="2,299;1,1200;" style="margin-left:0; margin-top:0; margin-right:0; margin-bottom:0; ">
  101. <line id="line8" class="line_1" style="x1:15px; y1:15px; x2:652px; y2:15px; "/>
  102. <caption id="caption5" ref="/root/main/titlecaption" class="cell_1" style="left:15px; top:19px; width:132px; height:48px; text-align:center; ">약품명</caption>
  103. <line id="line5" class="line_3" style="x1:15px; y1:66px; x2:652px; y2:66px; "/>
  104. <datagrid id="grd_resultlist" nodeset="/root/main/list/resultList" autoresize="true" caption="구분^내용" colsep="^" colwidth="130, 485" dataheight="25" ellipsis="true" extendlastcol="scroll" mergecells="byrestriccol" rowheight="25" rowsep="|" style="left:15px; top:70px; width:637px; height:604px; ">
  105. <col ref="txtcdedesc" style="text-align:center; vertical-align:top; background-color:#f8f8f8; "/>
  106. <col autonext="true" ref="fdtxt" style="margin-top:1; margin-bottom:5; "/>
  107. </datagrid>
  108. <caption id="cap_Title" ref="/root/main/titlebody" style="left:145px; top:19px; width:455px; height:47px; font-weight:bold; color:#000000; padding-left:5px; ">selectedTitle_Caption</caption>
  109. <button id="button11" class="btn2_letter2" style="left:610px; top:35px; width:42px; height:19px; ">
  110. <caption>출력</caption>
  111. <script type="javascript" ev:event="onclick">
  112. <![CDATA[
  113. /*
  114. 1. 결과 Instance "/root/main/list
  115. */
  116. model.makeValue("/root/main/list/titlecaption",model.getValue("/root/main/titlecaption"));
  117. model.makeValue("/root/main/list/titlebody",model.getValue("/root/main/titlebody"));
  118. // rexpert를 이용한 약물/약물 상호작용상세 출력
  119. exeReportPreview("RPDUR00901", "XMLSTR", "/root/main/list"); //미리보기
  120. ]]>
  121. </script>
  122. </button>
  123. </xhtml:body>
  124. </xhtml:html>