SPAHR00600_결과치출력항목선택.xrw 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. * 제 목 : SPAHR00600.xrw
  4. * 설 명 : 결과치출력항목선택
  5. * 설 계 자 : 윤찬우
  6. * 작 성 자 : 윤찬우
  7. * 작 성 일 : 2008.07.07
  8. * 수정이력 :
  9. * 기 타 :
  10. -->
  11. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  12. <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">
  13. <xhtml:head>
  14. <xhtml:title>결과치출력항목선택</xhtml:title>
  15. <model id="model1">
  16. <instance id="instance1">
  17. <root xmlns="">
  18. <main>
  19. <resultcheck>
  20. <item>
  21. <sel/>
  22. <testcd/>
  23. <testhannm/>
  24. <tstengnm/>
  25. <todd/>
  26. <instcd/>
  27. </item>
  28. </resultcheck>
  29. </main>
  30. <send>
  31. <srchinstcd/>
  32. <save>
  33. <req/>
  34. </save>
  35. </send>
  36. <init/>
  37. <temp/>
  38. </root>
  39. </instance>
  40. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  41. <script type="javascript" src="../../../ast/commonweb/js/AHA001.js"/>
  42. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  43. <submission id="TRAHR00600" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/resultcheck"/>
  44. <submission id="TXAHR00600" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save/req" replace="instance" resultref="/root/temp"/>
  45. <script type="javascript" ev:event="xforms-ready">
  46. <![CDATA[
  47. fInit();
  48. ]]>
  49. </script>
  50. </model>
  51. <script type="javascript">
  52. <![CDATA[
  53. function fInit(){
  54. if( checkOpener() ){
  55. model.removeNodeset("/root/main/resultcheck/item");
  56. model.setValue("/root/send/srchinstcd", getUserInfo("dutplceinstcd"));
  57. submit("TRAHR00600");
  58. }
  59. }
  60. function fSetData(){
  61. // var nodeList = instance1.selectNodes(grd_testlst.nodeset + "[sel='Y']");
  62. // for( var i = 0 ; i <= nodeList.length ; i++){
  63. // copyNodeListType("/root/send/save/req", "/root/main/resultcheck/item["+ i +"]", "after");
  64. // }
  65. //
  66. for( var i = 0 ; i <= grd_testlst.rows ; i++){
  67. if(grd_testlst.valueMatrix(i,grd_testlst.colRef("sel")) == "Y") {
  68. var idx = i -1;
  69. copyNodeListType("/root/send/save/req", "/root/main/resultcheck/item["+ i +"]", "after");
  70. }
  71. }
  72. submit("TXAHR00600");
  73. }
  74. ]]>
  75. </script>
  76. </xhtml:head>
  77. <xhtml:body pagewidth="542" pageheight="495" guideline="1,1194;1,557;" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
  78. <group id="grp_btn" scroll="auto" style="left:0px; top:461px; width:518px; height:27px; ">
  79. <button id="btn_confirm" class="btn4_letter2" style="left:402px; top:5px; width:56px; height:22px; ">
  80. <caption>확인</caption>
  81. <script type="javascript" ev:event="DOMActivate">
  82. <![CDATA[
  83. fSetData();
  84. window.close();
  85. ]]>
  86. </script>
  87. </button>
  88. <button id="btn_cancel" class="btn4_letter2" style="left:461px; top:5px; width:56px; height:22px; ">
  89. <caption>취소</caption>
  90. <close ev:event="onclick"/>
  91. </button>
  92. </group>
  93. <group id="group3" scroll="auto" style="left:0px; top:0px; width:518px; height:460px; ">
  94. <line id="line1" class="line_1" style="x1:0px; y1:0px; x2:517px; y2:0px; "/>
  95. <datagrid id="grd_testlst" nodeset="/root/main/resultcheck/item" caption="선택^테스트코드^테스트명(한)^테스트명(영)" colsep="^" colwidth="31, 91, 182, 189" dataheight="25" defaultrows="0" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:1px; top:0px; width:517px; height:425px; ">
  96. <col checkvalue="Y,N" ref="sel" type="checkbox"/>
  97. <col ref="testcd"/>
  98. <col ref="testhannm"/>
  99. <col ref="testengnm"/>
  100. <col ref="todd" visibility="hidden"/>
  101. <col ref="instcd" visibility="hidden"/>
  102. </datagrid>
  103. </group>
  104. </xhtml:body>
  105. </xhtml:html>