SPZSD00100_통합부서검색팝업.xrw 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  3. <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">
  4. <xhtml:head>
  5. <xhtml:title>통합부서검색팝업</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <deptlist>
  11. <dept>
  12. <deptcd/>
  13. <deptnm/>
  14. <deptdesc/>
  15. <deptcdlevl2/>
  16. <deptcdlevl3/>
  17. <deptcdlevl4/>
  18. <deptcdlevl5/>
  19. <deptcdlevl6/>
  20. <deptcdlevl7/>
  21. <updeptcd/>
  22. <fstrgstdt/>
  23. <fstrgstrid/>
  24. <lastrgstdt/>
  25. <lastrgstrid/>
  26. </dept>
  27. </deptlist>
  28. <search>
  29. <searchcondition>deptnm</searchcondition>
  30. <searchterm/>
  31. </search>
  32. </main>
  33. <send>
  34. <data>
  35. <searchcondition/>
  36. <searchterm/>
  37. </data>
  38. </send>
  39. </root>
  40. </instance>
  41. <script type="javascript" src="../../../com/basiccodeweb/js/basiccodeweb.js"/>
  42. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  43. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  44. <script type="javascript" ev:event="xforms-ready">
  45. <![CDATA[
  46. var searchcondition = opener.window.javascript.getParameter("searchCondition");
  47. var searchterm = opener.window.javascript.getParameter("searchTerm");
  48. if( searchcondition!=null && searchcondition!="" && searchterm!=null && searchterm!="" ){
  49. model.setValue("/root/main/search/searchcondition", searchcondition);
  50. model.setValue("/root/main/search/searchterm", searchterm);
  51. model.setValue("/root/send/data/searchcondition", searchcondition);
  52. model.setValue("/root/send/data/searchterm",searchterm+"%");
  53. submit("TRZSD00102");
  54. model.refresh();
  55. grd_deptlist.rebuild();
  56. }
  57. ]]>
  58. </script>
  59. <submission id="TRZSD00102" ref="/root/send/data" method="post" mediatype="application/x-www-form-urlencoded" replace="instance" resultref="/root/main/deptlist"/>
  60. </model>
  61. </xhtml:head>
  62. <xhtml:body pagewidth="534" pageheight="343" guideline="1,518;2,342;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  63. <group id="group3" scroll="auto" style="left:0px; top:0px; width:518px; height:316px; ">
  64. <group id="group2" style="left:0px; top:0px; width:518px; height:35px; vertical-align:top; ">
  65. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:517px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  66. <caption id="caption2" class="search_name" style="left:15px; top:8px; width:86px; height:17px; ">검색조건 :</caption>
  67. <button id="btn_search" class="btn1_letter2" style="left:445px; top:7px; width:56px; height:22px; ">
  68. <caption>조회</caption>
  69. <script type="javascript" ev:event="DOMActivate">
  70. <![CDATA[
  71. var searchterm = model.getValue("/root/main/search/searchterm");
  72. var searchcondition = model.getValue("/root/main/search/searchcondition");
  73. model.setValue("/root/send/data/searchterm", "%"+searchterm+"%");
  74. model.setValue("/root/send/data/searchcondition", searchcondition);
  75. submit("TRZSD00102");
  76. ]]>
  77. </script>
  78. </button>
  79. <line id="line13" style="x1:429px; y1:7px; x2:429px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  80. <select1 id="combo1" ref="/root/main/search/searchcondition" class="combo_search" appearance="minimal" style="left:101px; top:8px; width:80px; height:19px; ">
  81. <choices>
  82. <item>
  83. <label>부서코드</label>
  84. <value>deptcd</value>
  85. </item>
  86. <item>
  87. <label>부서명</label>
  88. <value>deptnm</value>
  89. </item>
  90. </choices>
  91. </select1>
  92. <input id="input3" ref="/root/main/search/searchterm" class="input_search" style="left:184px; top:8px; width:100px; height:19px; "/>
  93. <script type="javascript" ev:event="onkeyup">
  94. <![CDATA[
  95. inputEnterKey("btn_search", "DOMActivate");
  96. ]]>
  97. </script>
  98. </group>
  99. <caption id="caption1" class="tit_2" style="left:5px; top:46px; width:118px; height:14px; ">부서코드 목록</caption>
  100. <line id="line1" class="line_1" style="x1:0px; y1:61px; x2:517px; y2:61px; "/>
  101. <datagrid id="grd_deptlist" nodeset="/root/main/deptlist/dept" caption="부서 코드^부서이름^부서 상세설명^ 부서코드 레벨2^부서코드 레벨3^부서코드 레벨4^부서코드 레벨5^부서코드 레벨6^부서코드 레벨7^상위부서코드^등록 일시^등록자 사번^수정일자^수정자 사번" colwidth="100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheight="25" rowsep="|" colsep="^" style="left:0px; top:66px; width:517px; height:250px; ">
  102. <col ref="deptcd"/>
  103. <col ref="deptnm"/>
  104. <col ref="deptdesc"/>
  105. <col ref="deptcdlevl2"/>
  106. <col ref="deptcdlevl3"/>
  107. <col ref="deptcdlevl4"/>
  108. <col ref="deptcdlevl5"/>
  109. <col ref="deptcdlevl6"/>
  110. <col ref="deptcdlevl7"/>
  111. <col ref="updeptcd"/>
  112. <col ref="fstrgstdt"/>
  113. <col ref="fstrgstrid"/>
  114. <col ref="lastrgstdt"/>
  115. <col ref="lastrgstrid"/>
  116. <script type="javascript" ev:event="ondblclick">
  117. <![CDATA[
  118. var deptcdpath = opener.window.javascript.getParameter("receiveDeptCDPath");
  119. var deptnmpath = opener.window.javascript.getParameter("receiveDeptNMPath");
  120. var row = grd_deptlist.row;
  121. var deptcd = grd_deptlist.textmatrix( row, grd_deptlist.colRef("deptcd") );
  122. var deptnm = grd_deptlist.textmatrix( row, grd_deptlist.colRef("deptnm"));
  123. opener.model.setValue(deptcdpath, deptcd);
  124. opener.model.setValue(deptnmpath, deptnm);
  125. opener.model.refresh();
  126. window.close();
  127. ]]>
  128. </script>
  129. </datagrid>
  130. </group>
  131. <group id="group1" scroll="auto" style="left:0px; top:316px; width:518px; height:27px; ">
  132. <button id="btn_confirm" class="btn4_letter2" style="left:402px; top:5px; width:56px; height:22px; ">
  133. <caption>확인</caption>
  134. <script type="javascript" ev:event="DOMActivate">
  135. <![CDATA[
  136. var deptcdpath = opener.window.javascript.getParameter("receiveDeptCDPath");
  137. var deptnmpath = opener.window.javascript.getParameter("receiveDeptNMPath");
  138. var row = grd_deptlist.row;
  139. var deptcd = grd_deptlist.textmatrix( row, grd_deptlist.colRef("deptcd") );
  140. var deptnm = grd_deptlist.textmatrix( row, grd_deptlist.colRef("deptnm"));
  141. opener.model.setValue(deptcdpath, deptcd);
  142. opener.model.setValue(deptnmpath, deptnm);
  143. opener.model.refresh();
  144. window.close();
  145. ]]>
  146. </script>
  147. </button>
  148. <button id="btn_cancel" class="btn4_letter2" style="left:461px; top:5px; width:56px; height:22px; ">
  149. <caption>취소</caption>
  150. <script type="javascript" ev:event="DOMActivate">
  151. <![CDATA[
  152. window.close();
  153. ]]>
  154. </script>
  155. </button>
  156. </group>
  157. </xhtml:body>
  158. </xhtml:html>