SPCDT00600_상병코드및상병명검색.xrw 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * Name : SPCDT00600_상병코드및상병명검색.xrw
  4. * Summary : 상병코드및상병명검색
  5. * Programmer : 최정환
  6. * Date Written : 2007.05.17
  7. * History :
  8. * Remark :
  9. -->
  10. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  11. <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">
  12. <xhtml:head>
  13. <xhtml:title>상병코드 및 상병명 검색</xhtml:title>
  14. <model id="model1">
  15. <instance id="instance1">
  16. <root xmlns="">
  17. <main>
  18. <list>
  19. <snwlist>
  20. <snwnm/>
  21. <snwcd/>
  22. </snwlist>
  23. </list>
  24. <search>
  25. <searchcondition>snwnm</searchcondition>
  26. <searchterm/>
  27. </search>
  28. </main>
  29. <send>
  30. <searchcondition/>
  31. <searchterm/>
  32. </send>
  33. <temp>
  34. <snwlist>
  35. <status>I</status>
  36. <dtmnkey/>
  37. <seq/>
  38. <snwnm/>
  39. <snwcd/>
  40. <diagkindcd/>
  41. <diagkindcdflag/>
  42. </snwlist>
  43. </temp>
  44. </root>
  45. </instance>
  46. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  47. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  48. <script type="javascript" ev:event="xforms-ready">
  49. <![CDATA[
  50. // 그리드의 col을 초기화 시켜준다.
  51. model.removenodeset("/root/main/list/snwlist");
  52. model.refresh();
  53. fCheckAuth();
  54. ]]>
  55. </script>
  56. <script type="javascript">
  57. <![CDATA[
  58. // 권한체크
  59. function fCheckAuth() {
  60. if (!checkAuth("r")) {
  61. btn_search.disabled=true;
  62. }
  63. }
  64. function fGetSnwInfo() {
  65. var count = 0;
  66. if (grd_snwlist.row < 1 || grd_snwlist.selectedRows < 1) {
  67. messageBox("상병을","C002");
  68. } else {
  69. for (i=0; i < grd_snwlist.selectedRows; i++) {
  70. var snwcd = grd_snwlist.valuematrix(grd_snwlist.selectedRow(i),1)
  71. var snwnm = grd_snwlist.valuematrix(grd_snwlist.selectedRow(i),2)
  72. count = count + 1
  73. model.makeValue("/root/temp/snwlist/snwcd", snwcd);
  74. model.makeValue("/root/temp/snwlist/snwnm", snwnm); // 임시노드에 선택된 항목을 넣어준다.
  75. model.duplicate(opener.root.main, root.temp.snwlist); // 임시노드에 있는 항목을 메인(부모)창에 복사해준다.
  76. model.removenodeset("/root/temp/snwlist/snwcd"); // 다음항목 복사시 중복되지 않도록 임시노드를 지워준다.
  77. model.removenodeset("/root/temp/snwlist/snwnm"); // 다음항목 복사시 중복되지 않도록 임시노드를 지워준다.
  78. }
  79. opener.model.refresh();
  80. window.close();
  81. }
  82. }
  83. ]]>
  84. </script>
  85. <submission id="TRCDT00601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list"/>
  86. </model>
  87. </xhtml:head>
  88. <xhtml:body pagewidth="534" pageheight="350" style="border-color:#c7a3cf; ">
  89. <group id="group5" scroll="auto" style="left:0px; top:0px; width:534px; height:345px; ">
  90. <group id="group2" style="left:0px; top:0px; width:517px; height:35px; vertical-align:top; ">
  91. <shape id="roundrect1" appearance="roundrect" style="left:0px; top:0px; width:517px; height:35px; "/>
  92. <caption id="caption2" class="search_name" style="left:15px; top:8px; width:86px; height:17px; ">검색조건 :</caption>
  93. <select1 id="combo1" ref="/root/main/search/searchcondition" class="combo_search" appearance="minimal" style="left:101px; top:8px; width:110px; height:19px; ">
  94. <choices>
  95. <item>
  96. <label>상병코드</label>
  97. <value>snwcd</value>
  98. </item>
  99. <item>
  100. <label>상병영문명</label>
  101. <value>snwnm</value>
  102. </item>
  103. <item>
  104. <label>상병한글명</label>
  105. <value>hngnm</value>
  106. </item>
  107. </choices>
  108. </select1>
  109. <input id="input3" ref="/root/main/search/searchterm" class="input_search" style="left:214px; top:8px; width:100px; height:19px; ">
  110. <script type="javascript" ev:event="onkeyup">
  111. <![CDATA[
  112. inputEnterKey("btn_search", "DOMActivate");
  113. ]]>
  114. </script>
  115. </input>
  116. <line id="line13" class="line_4" style="x1:429px; y1:7px; x2:429px; y2:29px; "/>
  117. <button id="btn_search" class="btn1_letter2" style="left:445px; top:7px; width:56px; height:22px; ">
  118. <caption>조회</caption>
  119. <script type="javascript" ev:event="DOMActivate">
  120. <![CDATA[
  121. var searchterm = model.getValue("/root/main/search/searchterm");
  122. var searchcondition = model.getValue("/root/main/search/searchcondition");
  123. model.setValue("/root/send/searchterm", "%"+searchterm+"%");
  124. model.setValue("/root/send/searchcondition", searchcondition);
  125. submit("TRCDT00601");
  126. ]]>
  127. </script>
  128. </button>
  129. </group>
  130. <caption id="caption9" class="tit_2" style="left:0px; top:40px; width:180px; height:14px; vertical-align:middle; margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">상병코드 및 상병명 검색</caption>
  131. <line id="line12" class="line_1" style="x1:0px; y1:55px; x2:517px; y2:55px; "/>
  132. <datagrid id="grd_snwlist" nodeset="/root/main/list/snwlist" class="text_left" scroll="autohscroll" caption="상병코드^상병명^한글명" colwidth="100,200,200" dataheight="25" defaultrows="0" ellipsis="true" explorerbar="sortshowmove" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="32" tooltip="true" style="left:0px; top:60px; width:517px; height:255px; ">
  133. <col ref="snwcd"/>
  134. <col ref="snwnm"/>
  135. <col ref="hngnm"/>
  136. <script type="javascript" ev:event="ondblclick">
  137. <![CDATA[
  138. if( grd_snwlist.isCell(event.target) && grd_snwlist.row >= grd_snwlist.fixedRows ){
  139. fGetSnwInfo();
  140. }
  141. ]]>
  142. </script>
  143. </datagrid>
  144. </group>
  145. <group id="group1" scroll="auto" style="left:0px; top:315px; width:517px; height:27px; ">
  146. <button id="btn_cnfm" class="btn4_letter2" style="left:402px; top:5px; width:56px; height:22px; ">
  147. <caption>확인</caption>
  148. <script type="javascript" ev:event="onclick">
  149. <![CDATA[
  150. fGetSnwInfo();
  151. ]]>
  152. </script>
  153. </button>
  154. <button id="btn_cncl" class="btn4_letter2" style="left:461px; top:5px; width:56px; height:22px; ">
  155. <caption>취소</caption>
  156. <close ev:event="DOMActivate"/>
  157. </button>
  158. </group>
  159. </xhtml:body>
  160. </xhtml:html>