SPAHA00310_단체계약사항선택.xrw 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SPAHA00310.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. <cdlst>
  20. <item>
  21. <cmpycd/>
  22. <cmpynm/>
  23. <basepkgcd/>
  24. <basepkgnm/>
  25. <confromdd/>
  26. <contodd/>
  27. <uncocd/>
  28. <remcnts/>
  29. <conseq/>
  30. </item>
  31. </cdlst>
  32. </main>
  33. <init/>
  34. <hidden>
  35. </hidden>
  36. <target>
  37. <healexamflag/>
  38. <srchcond/>
  39. <srchcdnm/>
  40. <srchinstcd/>
  41. <openerid/>
  42. <desxpathcd/>
  43. <desxpathnm/>
  44. </target>
  45. <send>
  46. <srchcdnm/>
  47. <srchinstcd/>
  48. <srchcond>cd</srchcond>
  49. <srchhealexamflag/>
  50. </send>
  51. </root>
  52. </instance>
  53. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  54. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  55. <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
  56. <script type="javascript" ev:event="xforms-ready">
  57. <![CDATA[
  58. fInit();
  59. ]]>
  60. </script>
  61. <submission id="TRAHA00301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/cdlst"/>
  62. </model>
  63. <script type="javascript">
  64. <![CDATA[
  65. /**
  66. * SPAHA00500_PARAM1 : 코드구분 공통코드 A0114참조
  67. * SPAHA00500_PARAM2 : 검색구분(cd/nm)
  68. * SPAHA00500_PARAM3 : 검색조건(코드/명칭)
  69. * SPAHA00500_PARAM4 : 기관코드
  70. * SPAHA00500_PARAM5 : openerid
  71. * SPAHA00500_PARAM6 : code값을 setting할 목적노드
  72. * SPAHA00500_PARAM7 : name값을 setting할 목적노드
  73. */
  74. function fInit(){
  75. model.removeNodeset("/root/main/cdlst/item");
  76. if( checkOpener() ){
  77. model.setValue("/root/send/srchhealexamflag" , opener.javascript.getParameter("SPAHA00310_PARAM1"));
  78. model.setValue("/root/send/srchcond" , opener.javascript.getParameter("SPAHA00310_PARAM2"));
  79. model.setValue("/root/send/srchcdnm" , opener.javascript.getParameter("SPAHA00310_PARAM3"));
  80. model.setValue("/root/send/srchinstcd" , opener.javascript.getParameter("SPAHA00310_PARAM4"));
  81. if(model.getValue("/root/send/srchcdnm") != "" ) {
  82. fGetCmpyContLst();
  83. }
  84. }
  85. model.setFocus("ipt_cdnm");
  86. model.refresh();
  87. }
  88. function fGetCmpyContLst(){
  89. if( model.getValue("/root/send/srchinstcd") == ""){
  90. model.setValue("/root/send/srchinstcd", getUserInfo("dutplceinstcd"));
  91. }
  92. submit("TRAHA00301");
  93. }
  94. /**
  95. * opener id에 따른 분화
  96. */
  97. function fSetData(){
  98. if( checkOpener() ){
  99. var vOpener = opener.javascript.getParameter("SPAHA00310_PARAM5") ;
  100. var xDesXPath = opener.javascript.getParameter("SPAHA00310_PARAM8");
  101. if( vOpener == "" ) return ;
  102. var idx = grd_cdlst.row;
  103. if( idx < 1) return ;
  104. copyNodesetType(xDesXPath == "" ? "/root/tmp/coninfo/item" : xDesXPath,
  105. "/root/main/cdlst/item[" + idx + "]", "replace", opener.model, model );
  106. opener.model.refresh();
  107. }
  108. }
  109. ]]>
  110. </script>
  111. </xhtml:head>
  112. <xhtml:body pagewidth="534" pageheight="543" guideline="1,1194;1,516;1,516;" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
  113. <group id="group3" scroll="auto" style="left:0px; top:0px; width:518px; height:515px; ">
  114. <datagrid id="grd_cdlst" nodeset="/root/main/cdlst/item" caption="코드^코드명^패키지코드^패키지명^계약기간(From)^계약기간(To)^청구방법^비고^계약번호" colsep="^" colwidth="71, 231, 68, 139, 93, 88, 54, 162, 61" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:0px; top:50px; width:517px; height:440px; ">
  115. <col ref="cmpycd"/>
  116. <col ref="cmpynm" style="left:103px; top:23px; width:388px; height:23px; "/>
  117. <col ref="basepkgcd"/>
  118. <col ref="basepkgnm"/>
  119. <col ref="confromdd"/>
  120. <col ref="contodd"/>
  121. <col ref="uncocd"/>
  122. <col ref="remcnts"/>
  123. <col ref="conseq"/>
  124. <script type="javascript" ev:event="ondblclick">
  125. <![CDATA[
  126. fSetData();
  127. window.close();
  128. ]]>
  129. </script>
  130. </datagrid>
  131. <group id="group2" style="left:0px; top:0px; width:517px; height:40px; vertical-align:top; ">
  132. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:517px; height:40px; background-color:#fffbf2; border-color:#ffd799; "/>
  133. <caption id="caption2" class="search_name" style="left:16px; top:12px; width:86px; height:17px; ">검색조건 :</caption>
  134. <button id="btn_search" class="btn1_letter2" style="left:445px; top:12px; width:56px; height:22px; ">
  135. <caption>조회</caption>
  136. <script type="javascript" ev:event="DOMActivate">
  137. <![CDATA[
  138. fGetCmpyContLst();
  139. ]]>
  140. </script>
  141. </button>
  142. <line id="line13" style="x1:429px; y1:11px; x2:429px; y2:32px; border-color:#ffe4bb; border-left-style:solid; "/>
  143. <select1 id="cmb_srchcond2" ref="/root/send/srchcond" class="combo_search" appearance="minimal" style="left:105px; top:11px; width:80px; height:19px; ">
  144. <choices>
  145. <item>
  146. <label>코드</label>
  147. <value>cd</value>
  148. </item>
  149. <item>
  150. <label>명칭</label>
  151. <value>nm</value>
  152. </item>
  153. </choices>
  154. <script type="javascript" ev:event="xforms-select">
  155. <![CDATA[
  156. model.setFocus("ipt_cdnm");
  157. ]]>
  158. </script>
  159. </select1>
  160. <input id="ipt_cdnm" ref="/root/send/srchcdnm" class="input_search" style="left:188px; top:11px; width:227px; height:19px; ">
  161. <script type="javascript" ev:event="onkeyup">
  162. <![CDATA[
  163. inputEnterKey("btn_search", "DOMActivate");
  164. ]]>
  165. </script>
  166. </input>
  167. </group>
  168. <line id="line1" class="line_1" style="x1:0px; y1:46px; x2:517px; y2:46px; "/>
  169. </group>
  170. <group id="group4" scroll="auto" style="left:0px; top:515px; width:517px; height:28px; ">
  171. <button id="button9" class="btn4_letter2" style="left:461px; top:3px; width:56px; height:22px; ">
  172. <caption>취소</caption>
  173. <close ev:event="onclick"/>
  174. </button>
  175. <button id="button4" class="btn4_letter2" style="left:402px; top:3px; width:56px; height:22px; ">
  176. <caption>확인</caption>
  177. <script type="javascript" ev:event="DOMActivate">
  178. <![CDATA[
  179. fSetData();
  180. window.close();
  181. ]]>
  182. </script>
  183. </button>
  184. </group>
  185. </xhtml:body>
  186. </xhtml:html>