SPADB61300_성분조회.xrw 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174
  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. <mode/>
  11. <grid>
  12. <item>
  13. <comcd/>
  14. <comexcd/>
  15. <comnm/>
  16. <comlevel/>
  17. </item>
  18. </grid>
  19. </main>
  20. <send>
  21. <srchcomcd/>
  22. <srchcomnm/>
  23. <data>
  24. <comcd/>
  25. <comexcd/>
  26. <comnm/>
  27. <dddunit/>
  28. <ddd/>
  29. <dddkg/>
  30. <dddchild/>
  31. <childdayno/>
  32. <childage/>
  33. </data>
  34. </send>
  35. <init>
  36. </init>
  37. <hidden>
  38. <temp/>
  39. <receiveref>
  40. <srchtype/>
  41. </receiveref>
  42. </hidden>
  43. </root>
  44. </instance>
  45. <submission id="TRADB61301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/grid"/>
  46. <script type="javascript" ev:event="xforms-ready">
  47. <![CDATA[
  48. //submit("TRADB61301");
  49. //setTree(grd_com, grd_com.colRef("comlevel"),grd_com.colRef("comcd"), false );
  50. ]]>
  51. </script>
  52. </model>
  53. <script type="javascript" src="../../../com/hismainweb/js/DocTitle.js"/>
  54. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  55. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  56. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  57. <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
  58. </xhtml:head>
  59. <xhtml:body pagewidth="654" pageheight="586" guideline="1,1194;1,673;2,576;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  60. <group id="group3" scroll="auto" style="left:0px; top:0px; width:630px; height:550px; ">
  61. <group id="group2" ref="/root/send/srchcomflag" style="left:0px; top:0px; width:625px; height:35px; vertical-align:top; ">
  62. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:620px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  63. <line id="line13" class="line_4" style="x1:555px; y1:6px; x2:555px; y2:28px; border-color:#ffe4bb; border-left-style:solid; "/>
  64. <button id="btn_sea" class="btn1_letter2" style="left:560px; top:5px; width:56px; height:22px; ">
  65. <caption>조회</caption>
  66. <script type="javascript" ev:event="DOMActivate">
  67. <![CDATA[
  68. submit("TRADB61301");
  69. setTree(grd_com, grd_com.colRef("comlevel"),grd_com.colRef("comcd"), false );
  70. ]]>
  71. </script>
  72. </button>
  73. <caption id="caption3" class="search_name" style="left:225px; top:8px; width:60px; height:17px; ">명칭</caption>
  74. <caption id="caption4" class="search_name" style="left:5px; top:8px; width:60px; height:17px; ">코드</caption>
  75. <input id="input1" ref="/root/send/srchcomnm" class="input_search" style="left:295px; top:8px; width:210px; height:19px; ">
  76. <script type="javascript" ev:event="onkeyup">
  77. <![CDATA[
  78. if(event.keyCode == "13") {
  79. setInputNodeCurText();
  80. btn_sea.dispatch("DOMActivate");
  81. }
  82. ]]>
  83. </script>
  84. </input>
  85. <input id="input2" ref="/root/send/srchcomcd" class="input_search" style="left:80px; top:8px; width:130px; height:19px; ">
  86. <script type="javascript" ev:event="onkeyup">
  87. <![CDATA[
  88. if(event.keyCode == "13") {
  89. setInputNodeCurText();
  90. btn_sea.dispatch("DOMActivate");
  91. }
  92. ]]>
  93. </script>
  94. </input>
  95. </group>
  96. <caption id="caption1" class="tit_2" style="left:5px; top:46px; width:95px; height:14px; ">성분조회</caption>
  97. <line id="line1" class="line_1" style="x1:0px; y1:61px; x2:625px; y2:61px; "/>
  98. <datagrid id="grd_com" nodeset="/root/main/grid/item" caption="코드^확장^명칭^레벨" colsep="^" colwidth="162, 49, 351, 37" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheight="25" rowsep="|" style="left:0px; top:66px; width:625px; height:484px; ">
  99. <col ref="comcd"/>
  100. <col ref="comexcd"/>
  101. <col ref="comnm"/>
  102. <col ref="comlevel"/>
  103. <script type="javascript" ev:event="ondblclick">
  104. <![CDATA[
  105. var srchtype = model.getValue("/root/hidden/receiveref/srchtype");
  106. if ( checkOpener() ) {
  107. if (srchtype == "I") {
  108. opener.model.setValue("/root/main/cominfo/comlist["+opener.grd_com.row+"]/comcd",model.getValue("/root/main/grid/item["+grd_com.row+"]/comcd"));
  109. opener.model.setValue("/root/main/cominfo/comlist["+opener.grd_com.row+"]/comexcd",model.getValue("/root/main/grid/item["+grd_com.row+"]/comexcd"));
  110. opener.model.setValue("/root/main/cominfo/comlist["+opener.grd_com.row+"]/comnm",model.getValue("/root/main/grid/item["+grd_com.row+"]/comnm"));
  111. } else if (srchtype == "I2") {
  112. opener.model.setValue("/root/main/hbookinfo/druglist["+opener.grd_drugcdlist.row+"]/comcd",model.getValue("/root/main/grid/item["+grd_com.row+"]/comcd"));
  113. opener.model.setValue("/root/main/hbookinfo/druglist["+opener.grd_drugcdlist.row+"]/comexcd",model.getValue("/root/main/grid/item["+grd_com.row+"]/comexcd"));
  114. opener.model.setValue("/root/main/hbookinfo/druglist["+opener.grd_drugcdlist.row+"]/comnm",model.getValue("/root/main/grid/item["+grd_com.row+"]/comnm"));
  115. } else if (srchtype == "O") {
  116. var comcd = opener.window.javascript.getParameter("comcd"); // 성분분류
  117. var comexcd = opener.window.javascript.getParameter("comexcd"); //
  118. var comnm = opener.window.javascript.getParameter("comnm"); //
  119. if(isNull(comcd)) {
  120. comcd = "'" + model.getValue("/root/main/grid/item["+grd_com.row+"]/comnm") + "'";
  121. } else {
  122. // 성분조회 화면에서 '조회' 버튼을 누르지 않고 비어있는 데이터 선택했을 경우
  123. if(isNull(model.getValue("/root/main/grid/item["+grd_com.row+"]/comnm"))) {
  124. comcd = "";
  125. } else {
  126. comcd += "," + "'" + model.getValue("/root/main/grid/item["+grd_com.row+"]/comnm") + "'";
  127. }
  128. }
  129. comexcd = model.getValue("/root/main/grid/item["+grd_com.row+"]/comexcd");
  130. comnm = model.getValue("/root/main/grid/item["+grd_com.row+"]/comnm");
  131. opener.window.javascript.setParameter("comcd" , comcd);
  132. opener.window.javascript.setParameter("comexcd" , comexcd);
  133. opener.window.javascript.setParameter("comnm" , comnm);
  134. } else if (srchtype == "B") { // 20101105_laboru_경북대병원_병용금기화면에서 팝업
  135. var comcd = model.getValue("/root/main/grid/item["+grd_com.row+"]/comcd") // 성분분류
  136. var comexcd = model.getValue("/root/main/grid/item["+grd_com.row+"]/comexcd"); //
  137. var comnm = model.getValue("/root/main/grid/item["+grd_com.row+"]/comnm"); //
  138. opener.window.javascript.setParameter("comcd" , comcd);
  139. opener.window.javascript.setParameter("comexcd" , comexcd);
  140. opener.window.javascript.setParameter("comnm" , comnm);
  141. }else {
  142. //opener.javascript.fSetComCode(model.getValue( "/root/main/grid/item["+grd_com.row+"]/comcd"),model.getValue( "/root/main/grid/item["+grd_com.row+"]/comnm"));
  143. astfInsertGridData(grd_com, opener.grd_com, "1", "", "", "comcd,comexcd,comcd,comexcd");
  144. }
  145. opener.model.refresh();
  146. window.close();
  147. } else {
  148. alert("상위화면이 변경되어 데이터를 전달할 수 없습니다.");
  149. }
  150. ]]>
  151. </script>
  152. </datagrid>
  153. </group>
  154. <group id="group1" scroll="auto" style="left:0px; top:550px; width:630px; height:27px; ">
  155. <button id="btn_cfm" class="btn4_letter2" visibility="hidden" style="left:511px; top:4px; width:56px; height:22px; ">
  156. <caption>확인</caption>
  157. </button>
  158. <button id="btn_cls" class="btn4_letter2" style="left:570px; top:4px; width:56px; height:22px; ">
  159. <caption>닫기</caption>
  160. <close ev:event="DOMActivate"/>
  161. </button>
  162. </group>
  163. </xhtml:body>
  164. </xhtml:html>