SPCDT00800_검사코드및검사명검색.xrw 6.4 KB

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