SMAYA02500_교직원종교현황조회.xrw 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/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. <send>
  10. <reqdata/>
  11. </send>
  12. <cond>
  13. <deptnm/>
  14. <deptcd>deptcd</deptcd>
  15. <deptdownyn/>
  16. <relicd/>
  17. <emplnm/>
  18. <ddflag/>
  19. <fromdd/>
  20. <todd/>
  21. <depth/>
  22. </cond>
  23. <main>
  24. <religinfo>
  25. <relist>
  26. <deptnm/>
  27. <deptposnm/>
  28. <emplnm/>
  29. <rrgstno/>
  30. <jobposnm/>
  31. <jobtitlnm/>
  32. <relinm/>
  33. <baptnm/>
  34. <baptdd/>
  35. <confdd/>
  36. <festdd/>
  37. <church/>
  38. <birthdd/>
  39. </relist>
  40. </religinfo>
  41. <tree>
  42. <item>
  43. <depth/>
  44. <deptcd/>
  45. <deptupcd/>
  46. <depthngnm/>
  47. <pathcd/>
  48. </item>
  49. </tree>
  50. </main>
  51. <hidden>
  52. <relign>
  53. <R0137/>
  54. </relign>
  55. </hidden>
  56. </root>
  57. </instance>
  58. <script type="javascript" ev:event="xforms-ready">
  59. <![CDATA[
  60. fInit();
  61. ]]>
  62. </script>
  63. <!-- 공통코드 조회를 위한 submission -->
  64. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  65. <submission id="TRZBC00105" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  66. <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  67. <!-- 교직원종교현황조회 submission -->
  68. <submission id="TRAYA02501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/religinfo"/>
  69. <submission id="TRAYA02502" mediatype="application/x-www-form-urlencoded" method="post" resultref="/root/main/tree"/>
  70. </model>
  71. <!-- 공통스크립트 import -->
  72. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  73. <script type="javascript" src="../../../com/departmentcodeweb/js/common.js"/>
  74. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  75. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  76. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  77. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  78. <!--교직원종교현황에서 사용하는 스크립트 import -->
  79. <script type="javascript" src="../../../ast/fthcnstweb/js/SMAYA02500.js"/>
  80. </xhtml:head>
  81. <xhtml:body guideline="2,754;1,1196;1,1195;1,1195;1,1195;2,755;1,1193;1,1197;1,1196;1,1193;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  82. <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:771px; ">
  83. <treeview id="trv_deptlist" ref="/root/main/tree/item" expanddepth="2" image="../../../com/commonweb/images/icon_folder_close.gif" itemsettype="depth" selectedimage="../../../com/commonweb/images/icon_folder_open.gif" style="left:0px; top:30px; width:290px; height:710px; ">
  84. <itemset nodeset="/root/main/tree/item">
  85. <label ref="deptnm"/>
  86. <value ref="deptcd"/>
  87. <depth ref="depth"/>
  88. <upcode ref="deptupcd"/>
  89. </itemset>
  90. <script type="javascript" ev:event="xforms-select">
  91. <![CDATA[
  92. var idx = trv_deptlist.focusIndex + 1; //현재 선택된 아이템의 인덱스
  93. var deptcd = model.getValue(xTreePath + "/item[" + idx + "]/deptcd"); //현재선택한부서코드
  94. var deptnm = model.getValue(xTreePath + "/item[" + idx + "]/deptnm"); //현재선택한부서명
  95. var deptupcd = model.getValue(xTreePath + "/item[" + (idx+1) + "]/deptupcd"); //현재선택한노드하위의상위부서코드
  96. var depth = model.getValue(xTreePath + "/item[" + idx + "]/depth"); //현재선택한부서의레벨
  97. var deptdownyn = '';
  98. //선택한 부서코드와 선택부서밑의부서의 상위부서코드를 비교하여 하위부서가 존재하는지 체크
  99. if(deptcd != deptupcd){
  100. deptdownyn = 'N';
  101. }else{
  102. deptdownyn = 'Y';
  103. }
  104. //부서리스트 트리 선택시 조건에 deptcd, deptupcd, deptnm, depth set한다.
  105. model.setValue(xCondPath + '/deptdownyn', deptdownyn);
  106. model.setValue(xCondPath + '/deptcd', deptcd);
  107. model.setValue(xCondPath + '/deptnm', deptnm);
  108. model.setValue(xCondPath + '/depth', depth);
  109. model.refresh();
  110. ]]>
  111. </script>
  112. </treeview>
  113. <line id="line1" class="line_1" style="x1:0px; y1:25px; x2:290px; y2:25px; "/>
  114. <caption id="caption2" class="tit_2" style="left:5px; top:10px; width:145px; height:13px; ">부서 리스트</caption>
  115. <group id="grp_sea" style="left:295px; top:3px; width:900px; height:72px; vertical-align:top; ">
  116. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:898px; height:70px; "/>
  117. <line id="line13" class="line_4" style="x1:780px; y1:25px; x2:780px; y2:47px; "/>
  118. <caption id="caption3" class="search_name" style="left:10px; top:15px; width:105px; height:17px; ">부 서 :</caption>
  119. <caption id="caption1" class="search_name" style="left:255px; top:15px; width:110px; height:17px; ">교 직 원 명 :</caption>
  120. <input id="ipt_emplnm" ref="/root/cond/emplnm" class="input_search" style="left:375px; top:15px; width:135px; height:19px; "/>
  121. <!-- <script type="javascript" ev:event="onkeyup">
  122. <![CDATA[
  123. if(event.keyCode == 13){
  124. fSearch();
  125. model.refresh();
  126. }
  127. ]]>
  128. </script>
  129. </input>-->
  130. <caption id="caption5" class="search_name" style="left:10px; top:40px; width:74px; height:17px; ">구 분 :</caption>
  131. <button id="btn_search" class="btn1_letter2" style="left:790px; top:25px; width:56px; height:22px; ">
  132. <caption>조회</caption>
  133. <script type="javascript" ev:event="DOMActivate">
  134. <![CDATA[
  135. fSearch();
  136. ]]>
  137. </script>
  138. </button>
  139. <input id="ipt_deptcd" ref="/root/cond/deptcd" class="output_fix" disabled="false" visibility="hidden" style="left:165px; top:5px; width:135px; height:19px; "/>
  140. <input id="input1" ref="/root/cond/deptdownyn" visibility="hidden" style="left:755px; top:45px; width:100px; height:19px; "/>
  141. <input id="ipt_fromdd" ref="/root/cond/fromdd" class="input_default" disabled="true" inputtype="date" style="left:420px; top:40px; width:90px; height:19px; "/>
  142. <caption id="caption9" class="search_no_b" style="left:515px; top:40px; width:12px; height:17px; ">~</caption>
  143. <input id="ipt_todd" ref="/root/cond/todd" class="input_default" disabled="true" inputtype="date" style="left:530px; top:40px; width:90px; height:19px; "/>
  144. <caption id="caption7" class="search_name" style="left:530px; top:15px; width:74px; height:17px; ">종 교 :</caption>
  145. <input id="ipt_deptnm" ref="/root/cond/deptnm" class="output_fix" disabled="true" style="left:90px; top:15px; width:135px; height:19px; "/>
  146. </group>
  147. <datagrid id="grd_religion" nodeset="/root/main/religinfo/relist" autoresize="true" caption="부서^부서위치^이름^주민번호^직위^직책^종교^세례명^세례일^견진일^영명축일^교회명^생일^입사일자^emplno" colsep="^" colwidth="99, 93, 68, 100, 85, 92, 71, 95, 85, 85, 75, 131, 85, 85, 90" dataheight="25" defaultrows="1" explorerbar="sortshowmove" extendlastcol="scroll" frozencols="6" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:295px; top:101px; width:900px; height:639px; ">
  148. <col ref="deptnm" style="text-align:left; "/>
  149. <col ref="deptposnm"/>
  150. <col ref="emplnm" style="text-align:center; "/>
  151. <col ref="rrgstno" style="text-align:center; "/>
  152. <col ref="jobposnm"/>
  153. <col ref="jobtitlnm"/>
  154. <col ref="relinm"/>
  155. <col ref="baptnm"/>
  156. <col ref="baptdd" format="yyyy-mm-dd" style="text-align:center; "/>
  157. <col ref="confdd" format="yyyy-mm-dd" style="text-align:center; "/>
  158. <col ref="festdd" style="text-align:center; "/>
  159. <col ref="church"/>
  160. <col ref="birthdd" format="yyyy-mm-dd" style="text-align:center; "/>
  161. <col ref="entcodd" format="yyyy-mm-dd" style="text-align:center; "/>
  162. <col ref="emplno" visibility="hidden"/>
  163. <script type="javascript" ev:event="onaftersort">
  164. <![CDATA[
  165. grd_religion.gridToInstance();
  166. ]]>
  167. </script>
  168. <script type="javascript" ev:event="ondblclick">
  169. <![CDATA[
  170. //교직원정보관리팝업호출
  171. var curRow = grd_religion.row;
  172. //var emplno = model.getValue(xGridPath + '[' + curRow + ']/emplno');
  173. //setParameter('emplno', emplno);
  174. //modal("SMAYA04600",1,100,100);
  175. modal("SMAYA04600", 1,100, 100, "SMAYA04600", xGridPath + '[' + curRow + ']/emplno', "/root/main/cond/emplno");
  176. ]]>
  177. </script>
  178. </datagrid>
  179. <button id="bt_rgst" class="btn4_letter3" style="left:1127px; top:746px; width:68px; height:22px; ">
  180. <caption>초기화</caption>
  181. <script type="javascript" ev:event="DOMActivate">
  182. <![CDATA[
  183. fInit();
  184. ]]>
  185. </script>
  186. </button>
  187. <button id="button5" class="btn2_letter2" style="left:1150px; top:75px; width:42px; height:19px; ">
  188. <caption>출력</caption>
  189. <script type="javascript" ev:event="DOMActivate">
  190. <![CDATA[
  191. fPrint();
  192. ]]>
  193. </script>
  194. </button>
  195. <button id="button11" class="btn2_letter4" style="left:1083px; top:75px; width:64px; height:19px; ">
  196. <caption>엑셀저장</caption>
  197. <script type="javascript" ev:event="DOMActivate">
  198. <![CDATA[
  199. fSaveExcel();
  200. ]]>
  201. </script>
  202. </button>
  203. </group>
  204. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  205. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:181px; height:14px; ">교직원 종교현황조회</caption>
  206. </group>
  207. <line id="line2" class="line_1" style="x1:296px; y1:111px; x2:1193px; y2:110px; "/>
  208. <select1 id="cmb_relign" ref="/root/cond/relicd" class="combo_search" appearance="minimal" style="left:910px; top:31px; width:90px; height:19px; ">
  209. <choices>
  210. <itemset nodeset="/root/hidden/relign/R0137">
  211. <label ref="cdnm"/>
  212. <value ref="cdid"/>
  213. </itemset>
  214. </choices>
  215. <script type="javascript" ev:event="xforms-value-changed">
  216. <![CDATA[
  217. model.dispatch('btn_search');
  218. ]]>
  219. </script>
  220. </select1>
  221. <select1 id="rdo_ddflag" ref="/root/cond/ddflag" appearance="full" cellspacing="6" cols="5" rows="1" overflow="visible" style="left:385px; top:58px; width:315px; height:17px; border-style:none; ">
  222. <choices>
  223. <item>
  224. <label>해당없음</label>
  225. <value>none</value>
  226. </item>
  227. <item>
  228. <label>세례일</label>
  229. <value>bapt</value>
  230. </item>
  231. <item>
  232. <label>견진일</label>
  233. <value>conf</value>
  234. </item>
  235. <item>
  236. <label>영명축일</label>
  237. <value>fest</value>
  238. </item>
  239. <item>
  240. <label>생일</label>
  241. <value>birth</value>
  242. </item>
  243. </choices>
  244. <script type="javascript" ev:event="xforms-value-changed">
  245. <![CDATA[
  246. var ddflag = model.getValue(xCondPath + '/ddflag');
  247. fIsEnableDate(ddflag);
  248. model.dispatch('btn_search');
  249. ]]>
  250. </script>
  251. </select1>
  252. <caption id="caption4" class="tit_2" style="left:300px; top:90px; width:157px; height:13px; ">교직원 종교현황 리스트</caption>
  253. </xhtml:body>
  254. </xhtml:html>