SMZCR00401_주의사항.xrw 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/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. <resultNoticeLookup>
  12. <sectiontitle/>
  13. <!--구분-->
  14. <drugdesc/>
  15. <!--약물(군)-->
  16. <subsection/>
  17. <!--항목-->
  18. <description/>
  19. <!--내용-->
  20. </resultNoticeLookup>
  21. </list>
  22. <edi_nm/>
  23. </main>
  24. <send>
  25. <reqNoticeLookup>
  26. <pGcnSeqNo/>
  27. <!--성분명(제형,함량구분)약품코드-->
  28. <pSectionID>*</pSectionID>
  29. <!--섹션구분(전체:*,임산부:A,수유부:B,소아:C,노인:D)-->
  30. </reqNoticeLookup>
  31. </send>
  32. <init/>
  33. <hidden/>
  34. <temp/>
  35. </root>
  36. </instance>
  37. <script type="javascript" ev:event="xforms-ready">
  38. <![CDATA[
  39. /*
  40. 화면을 초기화 합니다.
  41. 선택된 약품리스트를 불러온다. zcnfGetDurgList();
  42. 선택된 약품리스트중에 선택되어진 약픔정보를 가져온다.zcnfGetDurgInfo();
  43. 선택된 약품정보를 가지고 화면에 출력할 주의사항정보를 조회한다.getDetailDrugInfo();
  44. */
  45. fInitialize();
  46. /*
  47. 조회 메서드를 호출합니다
  48. */
  49. zcnfGetDurgList();
  50. zcnfGetDurgInfo();
  51. var param1 = model.getValue("/root/main/selectedDrugInfo/pYakpumCd");
  52. var param2 = model.getValue("/root/main/selectedDrugInfo/pGcnSeqNo");
  53. var selecredRow = model.getValue("/root/main/selectedDrugInfo/pSelectRow");
  54. getDetailDrugInfo(param1,param2, selecredRow);
  55. // model.refresh();
  56. if(selecredRow == ""){
  57. selecredRow = 1;
  58. }
  59. model.setFocus("left_datagrid1");
  60. left_datagrid1.select(selecredRow,1) = true;
  61. left_datagrid1.refresh();
  62. ]]>
  63. </script>
  64. <submission id="TRZCR01601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqNoticeLookup" resultref="/root/main/list"/>
  65. </model>
  66. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  67. <script type="javascript" src="../../../com/referenceweb/js/ZCR001.js"/>
  68. <script type="javascript">
  69. <![CDATA[
  70. /*
  71. 초기화 작업을 합니다.
  72. */
  73. function fInitialize(){
  74. model.removeNodeset("/root/main/list/resultNoticeLookup");
  75. }
  76. /*
  77. model.getValue(); 를 함수로 만들었습니다.
  78. param1 : node는 grid의 xPath입니다.
  79. param2 : row는 grid에서 선택한 row값입니다.
  80. param3 : element는 getvalue할 해당 element 명입니다.
  81. 해당 getvalue값을 return 해줍니다.
  82. return 하지 않으면 해당값을 가져올 수 없습니다.
  83. */
  84. function fGetValue(node, row, element) {
  85. var rtnValue = model.getValue(node + "[" + row + "]/" + element);
  86. return rtnValue;
  87. }
  88. /*
  89. model.reqGetDetailInfo(); 를 함수로 만들었습니다.
  90. param1 : 선택된 약품 grid에서 선택된 약품코드 입니다.
  91. param2 : 선택된 약품 grid에서 선택된 GCN코드 입니다.
  92. param3 : 선택된 약품 grid에서 선택된 ROW값 입니다.
  93. 해당 getvalue값을 return 해줍니다.
  94. return 하지 않으면 해당값을 가져올 수 없습니다.
  95. */
  96. function reqGetDetailInfo(param1,param2,param3) {
  97. //각 화면별 개별처리;
  98. model.makeValue("/root/send/reqNoticeLookup/pYakpumCd",param1);
  99. model.makeValue("/root/send/reqNoticeLookup/pGcnSeqNo",param2);
  100. model.removeNodeset("/root/main/edi_nm");
  101. model.makeValue("/root/main/edi_nm", model.getValue("/root/main/list4/resultDrugSearchDetail/edi_nm"));
  102. opt_DrugNm.refresh();
  103. submit("TRZCR01601");
  104. grd_resultNoticeLookup.refresh();
  105. }
  106. function FirstDIS_Request(){
  107. model.makeValue("/root/firstDISsend/refno","5");
  108. model.makeValue("/root/firstDISsend/drugcode",model.getValue("/root/main/selectedDrugInfo/pYakpumCd"));
  109. //model.makeValue("/root/difsend/refcd",);
  110. modal("../../referenceweb/xrw/SPZCR00301_주의사항문의", "", "", "", "SPZCR00301","/root/firstDISsend","/root/main/req");
  111. }
  112. ]]>
  113. </script>
  114. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  115. </xhtml:head>
  116. <xhtml:body pagewidth="1280" pageheight="990" guideline="2,299;1,1200;2,743;" style="margin-left:0; margin-top:0; margin-right:0; margin-bottom:0; ">
  117. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:142px; height:14px; ">주의사항</caption>
  118. <import id="import1" instancetype="merge" src="../../../com/navigationweb/xrw/SMZCN00201_선택약품.xrw" style="left:5px; top:15px; width:360px; height:765px; "/>
  119. <line id="line8" class="line_1" style="x1:370px; y1:39px; x2:1202px; y2:39px; "/>
  120. <caption id="caption12" class="tit_2" style="left:375px; top:24px; width:115px; height:13px; ">선택된 약품</caption>
  121. <caption id="caption5" class="cell_1" style="left:370px; top:44px; width:132px; height:23px; text-align:center; ">약품명</caption>
  122. <line id="line5" class="line_3" style="x1:370px; y1:66px; x2:1202px; y2:66px; "/>
  123. <output id="opt_DrugNm" ref="/root/main/edi_nm" class="output_fix" style="left:505px; top:45px; width:697px; height:19px; "/>
  124. <datagrid id="grd_resultNoticeLookup" nodeset="/root/main/list/resultNoticeLookup" autoresize="true" backcoloralternate="transparent" caption="구분^약물(군)^항목^내용" colsep="^" colwidth="72, 173, 125, 450" dataheight="25" ellipsis="true" extendlastcol="scroll" mergecells="byrestriccol" rowheight="25" rowsep="|" style="left:370px; top:106px; width:832px; height:637px; ">
  125. <col ref="sectiontitle" style="text-align:center; vertical-align:top; "/>
  126. <col ref="drugdesc"/>
  127. <col ref="subsection"/>
  128. <col ref="description"/>
  129. </datagrid>
  130. <line id="line1" class="line_1" style="x1:370px; y1:101px; x2:1202px; y2:101px; "/>
  131. <caption id="caption2" class="tit_2" style="left:375px; top:86px; width:220px; height:13px; ">주의사항</caption>
  132. <import id="import2" src="../../../com/navigationweb/xrw/SPZCN00101_Copyright.xrw" style="left:370px; top:752px; width:833px; height:27px; "/>
  133. <button id="btn_modal_DDIMLookup" class="btn2_letter4" style="left:1131px; top:80px; width:64px; height:19px; ">
  134. <caption>등급설명</caption>
  135. <script type="javascript" ev:event="DOMActivate">
  136. <![CDATA[
  137. /*
  138. SPZCR00601_임신중약물투여Guide.xrw 팝업창을 호출한다. 이때 "/root/send/reqDDIM"의 pCodeType는 '14'이다.
  139. */
  140. modal("../../referenceweb/xrw/SPZCR00601_임신중약물투여Guide.", "", "", "", "SPZCR00601","/root/send/reqDDIM","/root/send/reqSeverityLevel");
  141. ]]>
  142. </script>
  143. </button>
  144. <button id="button4" class="btn2_letter2" style="left:1085px; top:80px; width:42px; height:19px; ">
  145. <caption>출력</caption>
  146. <script type="javascript" ev:event="DOMActivate">
  147. <![CDATA[
  148. /*
  149. 1. 결과 Instance "/root/main/list
  150. */
  151. model.makeValue("/root/main/list/edi_nm",model.getValue("/root/main/edi_nm"));
  152. // rexpert를 이용한 주의사항 출력
  153. exeReportPreview("RPDUR00601", "XMLSTR", "/root/main/list"); //미리보기
  154. ]]>
  155. </script>
  156. </button>
  157. </xhtml:body>
  158. </xhtml:html>