SPCDT01100_수치결과검사검색.xrw 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. * Name : SPCDT01100_수치결과검사검색.xrw
  4. * Summary : 데이터마이닝 검사조건 추가에 따른 검색
  5. * Programmer : 최정환
  6. * Date Written : 2009.04.23
  7. * History : 2009.04.23
  8. * Remark :
  9. -->
  10. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/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. <testrsltlist/>
  20. </list>
  21. </main>
  22. <temp>
  23. <testlist>
  24. <status>I</status>
  25. <dtmnkey/>
  26. <seq/>
  27. <testcd/>
  28. <testnm/>
  29. <refh/>
  30. <refl/>
  31. <rsltunit/>
  32. </testlist>
  33. </temp>
  34. </root>
  35. </instance>
  36. <script type="javascript" ev:event="xforms-ready">
  37. <![CDATA[
  38. submit("TRCDT01101");
  39. var rowCount = grd_testrsltlist.rows;
  40. if (rowCount == 0 || rowCount == 1) {
  41. messageBox("수치결과가 ","I004");
  42. window.close();
  43. }
  44. fCheckAuth();
  45. ]]>
  46. </script>
  47. <submission id="TRCDT01101" mediatype="application/x-www-form-urlencoded" method="post" resultref="/root/main/list"/>
  48. </model>
  49. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  50. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  51. <script type="javascript">
  52. <![CDATA[
  53. function fCheckAuth() {
  54. // 권한체크
  55. //if (!checkAuth("r")) {
  56. //}
  57. //if (!checkAuth("x")) {
  58. //}
  59. //if (!checkAuth("p")) {
  60. //}
  61. }
  62. function fGetTestInfo() {
  63. // 부모창에 값을 넘겨주고 창을 닫는다.
  64. var count = 0;
  65. var check_cnt = 0;
  66. for (i=0; i < grd_testrsltlist.rows; i++) {
  67. if(grd_testrsltlist.valueMatrix(i+1,grd_testrsltlist.colRef("chk")) == "Y" ){
  68. var testcd = grd_testrsltlist.valueMatrix(i+1,grd_testrsltlist.colRef("testcd"))
  69. var testnm = grd_testrsltlist.valueMatrix(i+1,grd_testrsltlist.colRef("testnm"))
  70. var rsltunit = grd_testrsltlist.valueMatrix(i+1,grd_testrsltlist.colRef("rsltunit"))
  71. count = count + 1
  72. model.makeValue("/root/temp/testlist/status", "I"); // 임시노드에 선택된 항목을 넣어준다.
  73. model.makeValue("/root/temp/testlist/dtmnkey", ""); // 임시노드에 선택된 항목을 넣어준다.
  74. model.makeValue("/root/temp/testlist/seq", ""); // 임시노드에 선택된 항목을 넣어준다.
  75. model.makeValue("/root/temp/testlist/testcd", testcd); // 임시노드에 선택된 항목을 넣어준다.
  76. model.makeValue("/root/temp/testlist/testnm", testnm); // 임시노드에 선택된 항목을 넣어준다.
  77. model.makeValue("/root/temp/testlist/refh", ""); // 임시노드에 선택된 항목을 넣어준다.
  78. model.makeValue("/root/temp/testlist/refl", ""); // 임시노드에 선택된 항목을 넣어준다.
  79. model.makeValue("/root/temp/testlist/rsltunit", rsltunit); // 임시노드에 선택된 항목을 넣어준다.
  80. model.duplicate(opener.root.main, root.temp.testlist); // 임시노드에 있는 항목을 메인(부모)창에 복사해준다.
  81. model.removenodeset("/root/temp/testlist/status"); // 다음항목 복사시 중복되지 않도록 임시노드를 지워준다.
  82. model.removenodeset("/root/temp/testlist/dtmnkey"); // 다음항목 복사시 중복되지 않도록 임시노드를 지워준다.
  83. model.removenodeset("/root/temp/testlist/seq"); // 다음항목 복사시 중복되지 않도록 임시노드를 지워준다.
  84. model.removenodeset("/root/temp/testlist/testcd"); // 다음항목 복사시 중복되지 않도록 임시노드를 지워준다.
  85. model.removenodeset("/root/temp/testlist/testnm"); // 다음항목 복사시 중복되지 않도록 임시노드를 지워준다.
  86. model.removenodeset("/root/temp/testlist/refh"); // 다음항목 복사시 중복되지 않도록 임시노드를 지워준다.
  87. model.removenodeset("/root/temp/testlist/refl"); // 다음항목 복사시 중복되지 않도록 임시노드를 지워준다.
  88. model.removenodeset("/root/temp/testlist/rsltunit"); // 다음항목 복사시 중복되지 않도록 임시노드를 지워준다.
  89. check_cnt++;
  90. }
  91. }
  92. if(check_cnt < 1) {
  93. messageBox("수치결과검사 리스트를","C002");
  94. } else {
  95. opener.model.refresh();
  96. window.close();
  97. }
  98. }
  99. ]]>
  100. </script>
  101. </xhtml:head>
  102. <xhtml:body pagewidth="466" pageheight="473" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
  103. <group id="group1" scroll="auto" style="left:0px; top:0px; width:450px; height:430px; ">
  104. <caption id="caption2" class="tit_2" style="left:5px; top:10px; width:165px; height:13px; vertical-align:middle; ">수치결과검사항목</caption>
  105. <line id="line2" class="line_1" style="x1:0px; y1:25px; x2:450px; y2:25px; "/>
  106. <datagrid id="grd_testrsltlist" nodeset="/root/main/list/testrsltlist" allowselection="false" caption="^검사코드^검사명^단위" colwidth="20, 130, 210, 50" extendlastcol="scroll" rowheader="select" style="left:0px; top:30px; width:450px; height:400px; ">
  107. <col checkvalue="Y,N" ref="chk" type="checkbox" style="text-align:center; "/>
  108. <col class="text_center" ref="testcd"/>
  109. <col ref="testnm"/>
  110. <col class="text_center" ref="rsltunit"/>
  111. </datagrid>
  112. </group>
  113. <group id="group2" scroll="auto" style="left:0px; top:430px; width:450px; height:27px; ">
  114. <button id="btn_confirm" class="btn4_letter2" style="left:335px; top:5px; width:56px; height:22px; ">
  115. <caption>확인</caption>
  116. <script type="javascript" ev:event="DOMActivate">
  117. <![CDATA[
  118. fGetTestInfo();
  119. ]]>
  120. </script>
  121. </button>
  122. <button id="btn_cancel" class="btn4_letter2" style="left:394px; top:5px; width:56px; height:22px; ">
  123. <caption>취소</caption>
  124. <close ev:event="DOMActivate"/>
  125. </button>
  126. </group>
  127. </xhtml:body>
  128. </xhtml:html>