SPZHI00200_업체선택.xrw 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SPZHI00200_업체선택.xrw
  4. * 설 명 : 업체선택
  5. * 설 계 자 : 서원식
  6. * 작 성 자 : 서원식
  7. * 작 성 일 : 2012.11.21
  8. * 수정이력 :
  9. * 기 타 :
  10. -->
  11. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.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. <cmpylist>
  20. <item>
  21. <cmpycd/>
  22. <cmpynm/>
  23. <cmpyno/>
  24. <prsdnm/>
  25. <zipcd1/>
  26. <zipcd2/>
  27. <zipcdseq/>
  28. <addr/>
  29. <detladdr/>
  30. <telno/>
  31. <faxno/>
  32. <remcnts/>
  33. <todd/>
  34. <fromdd/>
  35. <expireyn/>
  36. </item>
  37. </cmpylist>
  38. </main>
  39. <send>
  40. <searchcond>cd</searchcond>
  41. <searchcdnm/>
  42. </send>
  43. </root>
  44. </instance>
  45. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  46. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  47. <script type="javascript" src="../../../com/irmsweb/js/IrmsCom.js"/>
  48. <script type="javascript" ev:event="xforms-ready">
  49. <![CDATA[
  50. fInit();
  51. ]]>
  52. </script>
  53. <submission id="TRZHI00201" mediatype="application/x-www-form-urlencoded" method="form-data-post" ref="/root/send" replace="instance" resultref="/root/main/cmpylist"/>
  54. </model>
  55. <script type="javascript">
  56. <![CDATA[
  57. /*
  58. * SPZHI00200_PARAM1 : 현재화면ID
  59. * SPZHI00200_PARAM2 : 검색구분(cd/nm)
  60. * SPZHI00200_PARAM3 : 검색명
  61. * SPZHI00200_PARAM4 : code값을 setting할 목적노드
  62. * SPZHI00200_PARAM5 : name값을 setting할 목적노드
  63. */
  64. function fInit(){
  65. model.removeNodeset("/root/main/cmpylist/item");
  66. if(checkOpener()){
  67. model.setValue("/root/send/searchcond" , opener.javascript.getParameter("SPZHI00200_PARAM2"));
  68. model.setValue("/root/send/searchcdnm" , opener.javascript.getParameter("SPZHI00200_PARAM3"));
  69. if(model.getValue("/root/send/searchcdnm") != ""){
  70. fGetCmpyList();
  71. }
  72. }
  73. model.setFocus("ipt_cdnm");
  74. model.refresh();
  75. }
  76. /*
  77. * 업체정보 조회
  78. */
  79. function fGetCmpyList(){
  80. submit("TRZHI00201");
  81. //만료된 기간색 표시
  82. grd_cmpylist.rebuildStyle();
  83. for(var i=1; i<grd_cmpylist.rows; i++){
  84. if(grd_cmpylist.valueMatrix(i, grd_cmpylist.colRef("expireyn")) == "Y"){
  85. grd_cmpylist.rowStyle(i, "data", "color") = "#ff0000";
  86. }
  87. }
  88. }
  89. /*
  90. * opener id에 따른 분화
  91. */
  92. function fSetData(){
  93. if(checkOpener()){
  94. var vOpener = opener.javascript.getParameter("SPZHI00200_PARAM1");
  95. if(vOpener == "") return;
  96. var idx = grd_cmpylist.row;
  97. if(idx < 1) return;
  98. var desCd = opener.javascript.getParameter("SPZHI00200_PARAM4");
  99. var desNm = opener.javascript.getParameter("SPZHI00200_PARAM5");
  100. opener.model.makeNode(desCd);
  101. opener.model.makeNode(desNm);
  102. opener.model.setValue(desCd , model.getValue("/root/main/cmpylist/item[" + idx + "]/cmpycd"));
  103. opener.model.setValue(desNm , model.getValue("/root/main/cmpylist/item[" + idx + "]/cmpynm"));
  104. opener.model.refresh();
  105. }
  106. }
  107. ]]>
  108. </script>
  109. </xhtml:head>
  110. <xhtml:body pagewidth="534" pageheight="543" guideline="1,1194;1,517;" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
  111. <group id="group3" scroll="auto" style="left:0px; top:0px; width:518px; height:515px; ">
  112. <datagrid id="grd_cmpylist" nodeset="/root/main/cmpylist/item" caption="코드^코드명^기관종료여부" colsep="^" colwidth="83, 384, 100" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:0px; top:49px; width:517px; height:463px; ">
  113. <col ref="cmpycd"/>
  114. <col ref="cmpynm"/>
  115. <col ref="expireyn" visibility="hidden"/>
  116. <script type="javascript" ev:event="ondblclick">
  117. <![CDATA[
  118. fSetData();
  119. window.close();
  120. ]]>
  121. </script>
  122. </datagrid>
  123. <group id="group2" style="left:0px; top:0px; width:517px; height:40px; vertical-align:top; ">
  124. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:517px; height:40px; background-color:#fffbf2; border-color:#ffd799; "/>
  125. <caption id="caption2" class="search_name" style="left:16px; top:12px; width:86px; height:17px; ">검색조건 :</caption>
  126. <select1 id="cmb_cond" ref="/root/send/searchcond" class="combo_search" appearance="minimal" style="left:105px; top:11px; width:80px; height:19px; ">
  127. <choices>
  128. <item>
  129. <label>코드</label>
  130. <value>cd</value>
  131. </item>
  132. <item>
  133. <label>명칭</label>
  134. <value>nm</value>
  135. </item>
  136. </choices>
  137. <script type="javascript" ev:event="xforms-select">
  138. <![CDATA[
  139. model.setFocus("ipt_cdnm");
  140. ]]>
  141. </script>
  142. </select1>
  143. <input id="ipt_cdnm" ref="/root/send/searchcdnm" class="input_search" style="left:188px; top:11px; width:227px; height:19px; ">
  144. <script type="javascript" ev:event="onkeyup">
  145. <![CDATA[
  146. inputEnterKey("btn_search", "DOMActivate");
  147. ]]>
  148. </script>
  149. </input>
  150. <line id="line13" style="x1:429px; y1:11px; x2:429px; y2:32px; border-color:#ffe4bb; border-left-style:solid; "/>
  151. <button id="btn_search" class="btn1_letter2" style="left:445px; top:12px; width:56px; height:22px; ">
  152. <caption>조회</caption>
  153. <script type="javascript" ev:event="DOMActivate">
  154. <![CDATA[
  155. fGetCmpyList();
  156. ]]>
  157. </script>
  158. </button>
  159. </group>
  160. <line id="line1" class="line_1" style="x1:0px; y1:46px; x2:517px; y2:46px; "/>
  161. </group>
  162. <group id="group4" scroll="auto" style="left:0px; top:515px; width:517px; height:28px; ">
  163. <caption id="caption1" style="left:5px; top:5px; width:360px; height:20px; font-weight:bold; color:#0000ff; ">
  164. <![CDATA[※ 붉은 글씨는 기간 만료된 기관입니다.
  165. ]]>
  166. </caption>
  167. <button id="button4" class="btn4_letter2" style="left:402px; top:3px; width:56px; height:22px; ">
  168. <caption>확인</caption>
  169. <script type="javascript" ev:event="DOMActivate">
  170. <![CDATA[
  171. fSetData();
  172. window.close();
  173. ]]>
  174. </script>
  175. </button>
  176. <button id="button9" class="btn4_letter2" style="left:461px; top:3px; width:56px; height:22px; ">
  177. <caption>취소</caption>
  178. <close ev:event="onclick"/>
  179. </button>
  180. </group>
  181. </xhtml:body>
  182. </xhtml:html>