SPAHR00100_종합건진결과출력Page지정.xrw 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SPAHR00100.xrw
  4. * 설 명 : 결과지출력페이지지정
  5. * 설 계 자 : 손주연
  6. * 작 성 자 : 손주연
  7. * 작 성 일 : 2007.08.13
  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. <pageyn>
  20. <totprntyn/>
  21. <pageprntyn1/>
  22. <pageprntyn2/>
  23. <pageprntyn3/>
  24. <pageprntyn4/>
  25. <pageprntyn5/>
  26. <pageprntyn6/>
  27. <pageprntyn7/>
  28. </pageyn>
  29. </main>
  30. <send>
  31. <saveprnt/>
  32. </send>
  33. <init/>
  34. <hidden/>
  35. <temp/>
  36. </root>
  37. </instance>
  38. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  39. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  40. <script type="javascript" ev:event="xforms-ready">
  41. <![CDATA[
  42. ]]>
  43. </script>
  44. </model>
  45. <script type="javascript">
  46. <![CDATA[
  47. /*=====================================================================================
  48. * 전체 페이지 선택 및 해제
  49. *=====================================================================================*/
  50. function fSetPageAllCheck(vChkYN){
  51. chk_page1.value = vChkYN;
  52. chk_page2.value = vChkYN;
  53. chk_page3.value = vChkYN;
  54. chk_page4.value = vChkYN;
  55. chk_page5.value = vChkYN;
  56. chk_page6.value = vChkYN;
  57. chk_page7.value = vChkYN;
  58. }
  59. /*=====================================================================================
  60. * 페이지 선택여부 check
  61. *=====================================================================================*/
  62. function fCheckSelPage(){
  63. if( ( model.getValue( chk_page1.attribute("ref") ) == "") &&
  64. ( model.getValue( chk_page2.attribute("ref") ) == "") &&
  65. ( model.getValue( chk_page3.attribute("ref") ) == "") &&
  66. ( model.getValue( chk_page4.attribute("ref") ) == "") &&
  67. ( model.getValue( chk_page5.attribute("ref") ) == "") &&
  68. ( model.getValue( chk_page6.attribute("ref") ) == "") &&
  69. ( model.getValue( chk_page7.attribute("ref") ) == "") &&
  70. ( model.getValue( chk_pagechk_all.attribute("ref") ) == "") ){
  71. alert( "false");
  72. return false;
  73. }
  74. if( checkOpener() ){
  75. var vDestNd = opener.javascript.getParameter("SPAHR00900_PARAM1");//목적노드 SET
  76. copyNodeType( vDestNd, "/root/main/pageyn", "replace", opener.model, model );
  77. opener.model.makeNode("/root/temp/SPAHR00101/okflag");
  78. opener.model.setValue("/root/temp/SPAHR00101/okflag", "ok");
  79. }
  80. return true;
  81. }
  82. ]]>
  83. </script>
  84. </xhtml:head>
  85. <xhtml:body pagewidth="270" pageheight="120" guideline="1,250;2,107;" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
  86. <group id="group3" scroll="auto" style="left:0px; top:0px; width:250px; height:80px; ">
  87. <line id="line6" class="line_3" style="x1:0px; y1:73px; x2:240px; y2:73px; "/>
  88. <line id="line1" class="line_1" style="x1:0px; y1:21px; x2:240px; y2:21px; "/>
  89. <select id="chk_all" ref="/root/main/pageyn/totprntyn" overflow="visible" appearance="full" rows="3" cols="4" vcellspacing="5" style="left:1px; top:27px; width:54px; height:18px; border-style:none; ">
  90. <choices>
  91. <item>
  92. <label>전체</label>
  93. <value>Y</value>
  94. </item>
  95. </choices>
  96. <script type="javascript" ev:event="xforms-select">
  97. <![CDATA[
  98. fSetPageAllCheck("Y");
  99. ]]>
  100. </script>
  101. <script type="javascript" ev:event="xforms-deselect">
  102. <![CDATA[
  103. fSetPageAllCheck("");
  104. ]]>
  105. </script>
  106. </select>
  107. <caption id="caption22" class="tit_2" style="left:4px; top:6px; width:82px; height:13px; ">페이지지정</caption>
  108. <select id="chk_page1" ref="/root/main/pageyn/pageprntyn1" overflow="visible" appearance="full" rows="3" cols="4" vcellspacing="5" style="left:64px; top:27px; width:54px; height:18px; border-style:none; ">
  109. <choices>
  110. <item>
  111. <label>1page</label>
  112. <value>Y</value>
  113. </item>
  114. </choices>
  115. </select>
  116. <select id="chk_page3" ref="/root/main/pageyn/pageprntyn3" overflow="visible" appearance="full" rows="3" cols="4" vcellspacing="5" style="left:190px; top:27px; width:54px; height:18px; border-style:none; ">
  117. <choices>
  118. <item>
  119. <label>3page</label>
  120. <value>Y</value>
  121. </item>
  122. </choices>
  123. </select>
  124. <select id="chk_page2" ref="/root/main/pageyn/pageprntyn2" overflow="visible" appearance="full" rows="3" cols="4" vcellspacing="5" style="left:127px; top:27px; width:54px; height:18px; border-style:none; ">
  125. <choices>
  126. <item>
  127. <label>2page</label>
  128. <value>Y</value>
  129. </item>
  130. </choices>
  131. </select>
  132. <select id="chk_page5" ref="/root/main/pageyn/pageprntyn5" overflow="visible" appearance="full" rows="3" cols="4" vcellspacing="5" style="left:63px; top:50px; width:54px; height:18px; border-style:none; ">
  133. <choices>
  134. <item>
  135. <label>5page</label>
  136. <value>Y</value>
  137. </item>
  138. </choices>
  139. </select>
  140. <select id="chk_page7" ref="/root/main/pageyn/pageprntyn7" overflow="visible" appearance="full" rows="3" cols="4" vcellspacing="5" style="left:189px; top:50px; width:54px; height:18px; border-style:none; ">
  141. <choices>
  142. <item>
  143. <label>7page</label>
  144. <value>Y</value>
  145. </item>
  146. </choices>
  147. </select>
  148. <select id="chk_page6" ref="/root/main/pageyn/pageprntyn6" overflow="visible" appearance="full" rows="3" cols="4" vcellspacing="5" style="left:126px; top:50px; width:54px; height:18px; border-style:none; ">
  149. <choices>
  150. <item>
  151. <label>6page</label>
  152. <value>Y</value>
  153. </item>
  154. </choices>
  155. </select>
  156. <select id="chk_page4" ref="/root/main/pageyn/pageprntyn4" overflow="visible" appearance="full" rows="3" cols="4" vcellspacing="5" style="left:0px; top:50px; width:54px; height:18px; border-style:none; ">
  157. <choices>
  158. <item>
  159. <label>4page</label>
  160. <value>Y</value>
  161. </item>
  162. </choices>
  163. </select>
  164. </group>
  165. <group id="group1" scroll="auto" style="left:0px; top:80px; width:250px; height:27px; ">
  166. <button id="btn_prnt" class="btn6_letter2" style="left:0px; top:5px; width:56px; height:22px; ">
  167. <caption>출력</caption>
  168. <script type="javascript" ev:event="DOMActivate">
  169. <![CDATA[
  170. if( fCheckSelPage() == true ){
  171. window.close();
  172. }
  173. ]]>
  174. </script>
  175. </button>
  176. </group>
  177. </xhtml:body>
  178. </xhtml:html>