SMZCR00501_질병금기.xrw 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  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. <resultDDCMLookup>
  12. <ddxcndrugdesc/>
  13. <!--약물-질병금기약물명-->
  14. <ddxcnsl/>
  15. <!--약물-질병금기등급-->
  16. <ddxcnsldes/>
  17. <!--약물-질병금기등급설명-->
  18. <dxiddesc/>
  19. <!--질병명(한글+영문) -->
  20. <dxiddesckor/>
  21. <!--한글질병명-->
  22. <dxiddesceng/>
  23. <!--영문질병명-->
  24. </resultDDCMLookup>
  25. </list>
  26. <edi_nm/>
  27. </main>
  28. <send>
  29. <reqDDCMLookup>
  30. <pGcnSeqNo/>
  31. <!--성분명(제형,함량구분)약품코드※질병금기주의사항정보와약품과의연결-->
  32. </reqDDCMLookup>
  33. </send>
  34. <init/>
  35. <hidden/>
  36. <temp/>
  37. </root>
  38. </instance>
  39. <script type="javascript" ev:event="xforms-ready">
  40. <![CDATA[
  41. /*
  42. 화면을 초기화 합니다.
  43. 선택된 약품리스트를 불러온다. zcnfGetDurgList();
  44. 선택된 약품리스트중에 선택되어진 약픔정보를 가져온다.zcnfGetDurgInfo();
  45. 선택된 약품정보를 가지고 화면에 출력할 질병금기정보를 조회한다.getDetailDrugInfo();
  46. */
  47. fInitialize();
  48. /*
  49. 조회 메서드를 호출합니다
  50. */
  51. zcnfGetDurgList();
  52. zcnfGetDurgInfo();
  53. var param1 = model.getValue("/root/main/selectedDrugInfo/pYakpumCd");
  54. var param2 = model.getValue("/root/main/selectedDrugInfo/pGcnSeqNo");
  55. var selecredRow = model.getValue("/root/main/selectedDrugInfo/pSelectRow");
  56. getDetailDrugInfo(param1,param2, selecredRow);
  57. // model.refresh();
  58. if(selecredRow == ""){
  59. selecredRow = 1;
  60. }
  61. model.setFocus("left_datagrid1");
  62. left_datagrid1.select(selecredRow,1) = true;
  63. left_datagrid1.refresh();
  64. ]]>
  65. </script>
  66. <submission id="TRZCR01701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqDDCMLookup" resultref="/root/main/list"/>
  67. </model>
  68. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  69. <script type="javascript" src="../../../com/referenceweb/js/ZCR001.js"/>
  70. <script type="javascript">
  71. <![CDATA[
  72. /*
  73. 초기화 작업을 합니다.
  74. */
  75. function fInitialize(){
  76. model.removeNodeset("/root/main/list/resultDDCMLookup");
  77. }
  78. /*
  79. model.getValue(); 를 함수로 만들었습니다.
  80. param1 : node는 grid의 xPath입니다.
  81. param2 : row는 grid에서 선택한 row값입니다.
  82. param3 : element는 getvalue할 해당 element 명입니다.
  83. 해당 getvalue값을 return 해줍니다.
  84. return 하지 않으면 해당값을 가져올 수 없습니다.
  85. */
  86. function fGetValue(node, row, element) {
  87. var rtnValue = model.getValue(node + "[" + row + "]/" + element);
  88. return rtnValue;
  89. }
  90. /*
  91. model.reqGetDetailInfo(); 를 함수로 만들었습니다.
  92. param1 : 선택된 약품 grid에서 선택된 약품코드 입니다.
  93. param2 : 선택된 약품 grid에서 선택된 GCN코드 입니다.
  94. param3 : 선택된 약품 grid에서 선택된 ROW값 입니다.
  95. 해당 getvalue값을 return 해줍니다.
  96. return 하지 않으면 해당값을 가져올 수 없습니다.
  97. */
  98. function reqGetDetailInfo(param1,param2,param3) {
  99. //각 화면별 개별처리;
  100. model.makeValue("/root/send/reqDDCMLookup/pYakpumCd",param1);
  101. model.makeValue("/root/send/reqDDCMLookup/pGcnSeqNo",param2);
  102. model.removeNodeset("/root/main/edi_nm");
  103. model.makeValue("/root/main/edi_nm", model.getValue("/root/main/list4/resultDrugSearchDetail/edi_nm"));
  104. submit("TRZCR01701");
  105. opt_DrugNm.refresh();
  106. grd_resultDDCMLookup.mergecol(1)=false;
  107. grd_resultDDCMLookup.mergecells="byrestriccol";
  108. }
  109. function FirstDIS_Request(){
  110. model.makeValue("/root/firstDISsend/refno","4");
  111. model.makeValue("/root/firstDISsend/drugcode",model.getValue("/root/main/selectedDrugInfo/pYakpumCd"));
  112. //model.makeValue("/root/difsend/refcd",);
  113. modal("../../referenceweb/xrw/SPZCR00301_질병금기문의", "", "", "", "SPZCR00301","/root/firstDISsend","/root/main/req");
  114. }
  115. ]]>
  116. </script>
  117. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  118. </xhtml:head>
  119. <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; ">
  120. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:142px; height:14px; ">질병금기</caption>
  121. <import id="import1" instancetype="merge" src="../../../com/navigationweb/xrw/SMZCN00201_선택약품.xrw" style="left:5px; top:15px; width:360px; height:765px; "/>
  122. <line id="line8" class="line_1" style="x1:370px; y1:39px; x2:1202px; y2:39px; "/>
  123. <caption id="caption12" class="tit_2" style="left:375px; top:24px; width:115px; height:13px; ">선택된 약품</caption>
  124. <caption id="caption5" class="cell_1" style="left:370px; top:44px; width:132px; height:23px; text-align:center; ">약품명</caption>
  125. <line id="line5" class="line_3" style="x1:370px; y1:66px; x2:1202px; y2:66px; "/>
  126. <output id="opt_DrugNm" ref="/root/main/edi_nm" class="output_fix" style="left:505px; top:45px; width:697px; height:19px; "/>
  127. <datagrid id="grd_resultDDCMLookup" nodeset="/root/main/list/resultDDCMLookup" autoresize="true" backcoloralternate="transparent" caption="구분^질병명^약물(군)" colsep="^" colwidth="129, 507, 189" dataheight="25" ellipsis="true" extendlastcol="scroll" mergecells="byrestriccol" rowheight="25" rowsep="|" style="left:370px; top:106px; width:832px; height:637px; ">
  128. <col ref="ddxcnsldes" style="text-align:center; vertical-align:top; "/>
  129. <col ref="dxiddesc"/>
  130. <col ref="ddxcndrugdesc" style="text-align:center; vertical-align:middle; "/>
  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:285px; height:13px; ">질병금기(Disease Contraindications)</caption>
  134. <import id="import2" src="../../../com/navigationweb/xrw/SPZCN00101_Copyright.xrw" style="left:370px; top:752px; width:833px; height:27px; "/>
  135. <button id="button4" class="btn2_letter2" style="left:1160px; top:80px; width:42px; height:19px; ">
  136. <caption>출력</caption>
  137. <script type="javascript" ev:event="DOMActivate">
  138. <![CDATA[
  139. /*
  140. 1. 결과 Instance "/root/main/list
  141. */
  142. model.makeValue("/root/main/list/edi_nm",model.getValue("/root/main/edi_nm"));
  143. // rexpert를 이용한 질병금기 출력
  144. exeReportPreview("RPDUR00701", "XMLSTR", "/root/main/list"); //미리보기
  145. ]]>
  146. </script>
  147. </button>
  148. </xhtml:body>
  149. </xhtml:html>