SMZCR00701_총괄정보.xrw 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  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. </list>
  12. <edi_nm/>
  13. <sub>
  14. <resultDrugInfoTotal>
  15. <sectionnm/>
  16. <!--구분-->
  17. <sectionvalue/>
  18. <!--정보-->
  19. </resultDrugInfoTotal>
  20. <resultDrugIngredient>
  21. <iengnm/>
  22. <!--영문성분명-->
  23. <hamryangnm/>
  24. <!--함량-->
  25. <hamryangmain/>
  26. <!--주성분함량-->
  27. </resultDrugIngredient>
  28. </sub>
  29. </main>
  30. <send>
  31. <reqDrugInfo>
  32. <pYakpumCd/>
  33. <!--약품코드-->
  34. </reqDrugInfo>
  35. </send>
  36. <init/>
  37. <hidden/>
  38. <temp/>
  39. </root>
  40. </instance>
  41. <script type="javascript" ev:event="xforms-ready">
  42. <![CDATA[
  43. /*
  44. 화면을 초기화 합니다.
  45. 선택된 약품리스트를 불러온다. zcnfGetDurgList();
  46. 선택된 약품리스트중에 선택되어진 약픔정보를 가져온다.zcnfGetDurgInfo();
  47. 선택된 약품정보를 가지고 화면에 출력할 총괄정보를 조회한다.getDetailDrugInfo();
  48. */
  49. fInitialize();
  50. /*
  51. 조회 메서드를 호출합니다
  52. */
  53. zcnfGetDurgList();
  54. zcnfGetDurgInfo();
  55. var param1 = model.getValue("/root/main/selectedDrugInfo/pYakpumCd");
  56. var param2 = model.getValue("/root/main/selectedDrugInfo/pGcnSeqNo");
  57. var selecredRow = model.getValue("/root/main/selectedDrugInfo/pSelectRow");
  58. getDetailDrugInfo(param1,param2, selecredRow);
  59. // model.refresh();
  60. if(selecredRow == ""){
  61. selecredRow = 1;
  62. }
  63. model.setFocus("left_datagrid1");
  64. left_datagrid1.select(selecredRow,1) = true;
  65. left_datagrid1.refresh();
  66. ]]>
  67. </script>
  68. <submission id="TRZCR02101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqDrugInfo" resultref="/root/main/sub"/>
  69. </model>
  70. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  71. <script type="javascript" src="../../../com/referenceweb/js/ZCR001.js"/>
  72. <script type="javascript">
  73. <![CDATA[
  74. /*
  75. 초기화 작업을 합니다.
  76. */
  77. function fInitialize(){
  78. model.removeNodeset("/root/main/list/resultDrugInfoTotal");
  79. model.removeNodeset("/root/main/list/resultDrugIngredient");
  80. }
  81. /*
  82. model.getValue(); 를 함수로 만들었습니다.
  83. param1 : node는 grid의 xPath입니다.
  84. param2 : row는 grid에서 선택한 row값입니다.
  85. param3 : element는 getvalue할 해당 element 명입니다.
  86. 해당 getvalue값을 return 해줍니다.
  87. return 하지 않으면 해당값을 가져올 수 없습니다.
  88. */
  89. function fGetValue(node, row, element) {
  90. var rtnValue = model.getValue(node + "[" + row + "]/" + element);
  91. return rtnValue;
  92. }
  93. /*
  94. model.reqGetDetailInfo(); 를 함수로 만들었습니다.
  95. param1 : 선택된 약품 grid에서 선택된 약품코드 입니다.
  96. param2 : 선택된 약품 grid에서 선택된 GCN코드 입니다.
  97. param3 : 선택된 약품 grid에서 선택된 ROW값 입니다.
  98. 해당 getvalue값을 return 해줍니다.
  99. return 하지 않으면 해당값을 가져올 수 없습니다.
  100. */
  101. function reqGetDetailInfo(param1,param2,param3) {
  102. model.makeValue("/root/send/reqDrugInfo/pYakpumCd",param1);
  103. model.removeNodeset("/root/main/list/resultDrugInfoTotal");
  104. model.removeNodeset("/root/main/list/resultDrugIngredient");
  105. model.makeValue("/root/main/edi_nm", model.getValue("/root/main/list4/resultDrugSearchDetail/edi_nm"));
  106. opt_DrugNm.refresh();
  107. submit("TRZCR02101");
  108. grd_resultDrugInfoTotal.refresh();
  109. }
  110. function FirstDIS_Request(){
  111. model.makeValue("/root/firstDISsend/refno","1");
  112. model.makeValue("/root/firstDISsend/drugcode",model.getValue("/root/main/selectedDrugInfo/pYakpumCd"));
  113. //model.makeValue("/root/difsend/refcd",);
  114. modal("../../referenceweb/xrw/SPZCR00301_약품총괄정보문의", "", "", "", "SPZCR00301","/root/firstDISsend","/root/main/req");
  115. }
  116. ]]>
  117. </script>
  118. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  119. </xhtml:head>
  120. <xhtml:body pagewidth="1280" pageheight="990" guideline="2,299;1,1201;2,743;" style="margin-left:0; margin-top:0; margin-right:0; margin-bottom:0; ">
  121. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:142px; height:14px; ">약품총괄정보</caption>
  122. <import id="import1" instancetype="merge" src="../../../com/navigationweb/xrw/SMZCN00201_선택약품.xrw" style="left:5px; top:15px; width:360px; height:765px; "/>
  123. <line id="line8" class="line_1" style="x1:370px; y1:39px; x2:1202px; y2:39px; "/>
  124. <caption id="caption12" class="tit_2" style="left:375px; top:24px; width:115px; height:13px; ">선택된 약품</caption>
  125. <caption id="caption5" class="cell_1" style="left:370px; top:44px; width:132px; height:23px; text-align:center; ">약품명</caption>
  126. <line id="line5" class="line_3" style="x1:370px; y1:66px; x2:1202px; y2:66px; "/>
  127. <output id="opt_DrugNm" ref="/root/main/edi_nm" class="output_fix" style="left:505px; top:45px; width:697px; height:19px; "/>
  128. <datagrid id="grd_resultDrugInfoTotal" nodeset="/root/main/sub/resultDrugInfoTotal" caption="구분^정보" colsep="^" colwidth="220, 598" dataheight="25" ellipsis="true" extendlastcol="scroll" mergecells="byrestriccol" rowheight="25" rowsep="|" style="left:370px; top:106px; width:832px; height:637px; ">
  129. <col ref="sectionnm"/>
  130. <col ref="sectionvalue"/>
  131. </datagrid>
  132. <line id="line1" class="line_1" style="x1:370px; y1:101px; x2:1202px; y2:101px; "/>
  133. <caption id="caption2" class="tit_2" style="left:375px; top:86px; width:220px; height:13px; ">약품 총괄정보</caption>
  134. <button id="btn_modal_ahfs" class="btn2_letter12" style="left:926px; top:80px; width:152px; height:19px; ">
  135. <caption>AHFS 약효분류 상세보기</caption>
  136. <script type="javascript" ev:event="DOMActivate">
  137. <![CDATA[
  138. /*
  139. SPZCR00201_상호작용상세 팝업창을 호출한다. 이때 "/root/send/reqDDIM"의 pCodeType는 '16'이며 pMonograpCd는 grid에서 선택된 값이다.
  140. */
  141. var param1 = model.getValue("/root/main/list4/resultDrugSearchDetail/ahfs");
  142. model.makeValue("/root/temp/pClassficationCd", param1);
  143. model.makeValue("/root/temp/pSearchType", '01');
  144. modal("../../navigationweb/xrw/SPZCN00201_AHFS분류상세", "", "", "", "SPZCN00201","/root/temp","/root/send");
  145. ]]>
  146. </script>
  147. </button>
  148. <button id="btn_modal_atc" class="btn2_letter9" style="left:1083px; top:80px; width:119px; height:19px; ">
  149. <caption>ATC 분류 상세보기</caption>
  150. <script type="javascript" ev:event="DOMActivate">
  151. <![CDATA[
  152. /*
  153. SPZCR00201_상호작용상세 팝업창을 호출한다. 이때 "/root/send/reqDDIM"의 pCodeType는 '16'이며 pMonograpCd는 grid에서 선택된 값이다.
  154. */
  155. var param1 = model.getValue("/root/main/list4/resultDrugSearchDetail/atc");
  156. model.makeValue("/root/temp/pClassficationCd", param1);
  157. model.makeValue("/root/temp/pSearchType", '02');
  158. modal("../../navigationweb/xrw/SPZCN00601_ATC분류상세", "", "", "", "SPZCN00601","/root/temp","/root/send");
  159. ]]>
  160. </script>
  161. </button>
  162. <import id="import2" src="../../../com/navigationweb/xrw/SPZCN00101_Copyright.xrw" style="left:370px; top:752px; width:833px; height:27px; "/>
  163. </xhtml:body>
  164. </xhtml:html>