SMRPD03400_교원휴가조회.xrw 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273
  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>SMRPD03400_교원휴가조회</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <list>
  11. <emplholi/>
  12. </list>
  13. <dtlist>
  14. <emplholidt/>
  15. </dtlist>
  16. </main>
  17. <send>
  18. <req>
  19. <instcd/>
  20. <yy/>
  21. <deptcd/>
  22. <deptnm/>
  23. <emplno/>
  24. <emplnm/>
  25. <appfrmlrg/>
  26. <appfrmsml/>
  27. </req>
  28. <detail>
  29. <yy/>
  30. <instcd/>
  31. <deptcd/>
  32. <emplno/>
  33. </detail>
  34. </send>
  35. <init>
  36. </init>
  37. </root>
  38. </instance>
  39. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  40. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  41. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  42. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  43. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  44. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  45. <script type="javascript" ev:event="xforms-ready">
  46. <![CDATA[
  47. fInitialize();
  48. ]]>
  49. </script>
  50. <submission id="TRRPD03401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/main/list"/>
  51. <submission id="TRRPD03402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/detail" resultref="/root/main/dtlist"/>
  52. </model>
  53. <script type="javascript">
  54. <![CDATA[
  55. // 화면 open시 화면 초기화 기능을 수행한다.
  56. function fInitialize() {
  57. model.removenode("/root/main");
  58. model.makeNode("/root/main/list");
  59. model.makeNode("/root/main/dtlist");
  60. var today = getCurrentDate();
  61. var cur_yy = parseInt(today.substring(0, 4));
  62. model.setValue("/root/send/req/yy", cur_yy);
  63. misfComboInstCdListMulti("cmb_instcd",getCurrentDate(),"","Y");
  64. misfComboComCdListMulti("R0325,R0326", "cmb_appfrmlrg,cmb_appfrmsml", null, "N");
  65. misfComboCopyItemSet(cmb_instcd, "", grd_emplholidt, "dutinstcd");
  66. misfComboCopyItemSet(cmb_appfrmlrg, "", grd_emplholidt, "appfrmlrg");
  67. misfComboCopyItemSet(cmb_appfrmsml, "", grd_emplholidt, "appfrmsml");
  68. addGridComboItem("cmb_instcd", "- 전체 -", "","above"); // 기관 콤보박스에 '전체'를 추가
  69. model.refresh();
  70. }
  71. function fsearch() {
  72. if (ipt_yy.value == ""){
  73. messageBox("연도는","I003");
  74. return;
  75. }
  76. submit("TRRPD03401");
  77. }
  78. ]]>
  79. </script>
  80. </xhtml:head>
  81. <xhtml:body style="margin-left:8; margin-right:8; ">
  82. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  83. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">교원휴가조회</caption>
  84. </group>
  85. <group id="group2" scroll="auto" style="left:0px; top:18px; width:1195px; height:757px; ">
  86. <caption id="caption283" class="tit_2" style="left:5px; top:50px; width:136px; height:13px; ">교원 휴가 집계 목록</caption>
  87. <line id="line203" class="line_1" style="x1:0px; y1:65px; x2:1194px; y2:65px; "/>
  88. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:5px; width:1195px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  89. <button id="btn_search" class="btn1_letter2" style="left:1125px; top:12px; width:56px; height:22px; ">
  90. <caption>조회</caption>
  91. <script type="javascript" ev:event="DOMActivate">
  92. <![CDATA[
  93. fsearch();
  94. ]]>
  95. </script>
  96. </button>
  97. <line id="line13" class="line_4" style="x1:1110px; y1:10px; x2:1110px; y2:32px; "/>
  98. <caption id="caption1" class="tit_2" style="left:5px; top:367px; width:134px; height:13px; ">휴가 사용 내역</caption>
  99. <line id="line1" class="line_1" style="x1:0px; y1:382px; x2:1194px; y2:382px; "/>
  100. <datagrid id="grd_emplholi" nodeset="/root/main/list/emplholi" caption="사원번호^성명^근무기관^근무부서^직책^직위^법정휴가^사용휴가^남은휴가^년도" colsep="^" colwidth="70, 70, 175, 236, 175, 131, 70, 70, 70, 100" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:1px; top:70px; width:1191px; height:290px; ">
  101. <col ref="emplno" style="text-align:center; "/>
  102. <col ref="name" style="text-align:center; "/>
  103. <col ref="instcd"/>
  104. <col ref="deptcd"/>
  105. <col ref="jobrespcd"/>
  106. <col ref="jobposcd"/>
  107. <col ref="genryearno" style="text-align:center; "/>
  108. <col ref="useanul" style="text-align:center; "/>
  109. <col ref="usepossholi" style="text-align:center; "/>
  110. <col ref="yy" visibility="hidden"/>
  111. <script type="javascript" ev:event="onrowchanged">
  112. <![CDATA[
  113. var row = grd_emplholi.row;
  114. model.setValue("/root/send/detail/yy", grd_emplholi.valueMatrix(row,grd_emplholi.colRef("yy")) );
  115. model.setValue("/root/send/detail/instcd", grd_emplholi.valueMatrix(row,grd_emplholi.colRef("instcd")) );
  116. model.setValue("/root/send/detail/deptcd", grd_emplholi.valueMatrix(row,grd_emplholi.colRef("deptcd")) );
  117. model.setValue("/root/send/detail/emplno", grd_emplholi.valueMatrix(row,grd_emplholi.colRef("emplno")) );
  118. submit("TRRPD03402");
  119. ]]>
  120. </script>
  121. </datagrid>
  122. <datagrid id="grd_emplholidt" nodeset="/root/main/dtlist/emplholidt" caption="대분류^소분류^휴가기간^휴가기간^휴가사유^기관|대분류^소분류^From^To^휴가사유^기관" colsep="^" colwidth="129, 124, 100, 100, 551, 170" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:1px; top:387px; width:1191px; height:355px; ">
  123. <col disabled="true" ref="appfrmlrg" type="combo" style="text-align:center; ">
  124. <choices>
  125. <itemset>
  126. <label/>
  127. <value/>
  128. </itemset>
  129. </choices>
  130. </col>
  131. <col disabled="true" ref="appfrmsml" type="combo" style="text-align:center; ">
  132. <choices>
  133. <itemset>
  134. <label/>
  135. <value/>
  136. </itemset>
  137. </choices>
  138. </col>
  139. <col ref="holifromdd" format="yyyy-mm-dd" style="text-align:center; "/>
  140. <col ref="holitodd" format="yyyy-mm-dd" style="text-align:center; "/>
  141. <col ref="resn"/>
  142. <col disabled="true" ref="dutinstcd" type="combo" style="text-align:center; ">
  143. <choices>
  144. <itemset>
  145. <label/>
  146. <value/>
  147. </itemset>
  148. </choices>
  149. </col>
  150. </datagrid>
  151. <caption id="caption5" class="search_name" style="left:205px; top:13px; width:86px; height:17px; ">기 관 :</caption>
  152. <caption id="caption2" class="search_name" style="left:15px; top:13px; width:86px; height:17px; ">근무년도 :</caption>
  153. <caption id="caption3" class="search_name" style="left:479px; top:13px; width:86px; height:17px; ">부 서 :</caption>
  154. <caption id="caption4" class="search_name" style="left:814px; top:13px; width:86px; height:17px; ">사원번호 :</caption>
  155. <button id="btn_excel" class="btn2_letter4" style="left:1129px; top:45px; width:64px; height:19px; ">
  156. <caption>엑셀저장</caption>
  157. <script type="javascript" ev:event="DOMActivate">
  158. <![CDATA[
  159. ]]>
  160. </script>
  161. </button>
  162. <select1 id="cmb_instcd" ref="/root/send/req/instcd" appearance="minimal" style="left:292px; top:13px; width:165px; height:19px; ">
  163. <choices>
  164. <itemset>
  165. <label/>
  166. <value/>
  167. </itemset>
  168. </choices>
  169. </select1>
  170. <select1 id="cmb_appfrmlrg" ref="/root/send/req/appfrmlrg" visibility="hidden" appearance="minimal" style="left:305px; top:35px; width:80px; height:19px; ">
  171. <choices>
  172. <itemset>
  173. <label/>
  174. <value/>
  175. </itemset>
  176. </choices>
  177. </select1>
  178. <select1 id="cmb_appfrmsml" ref="/root/send/req/appfrmsml" visibility="hidden" appearance="minimal" style="left:385px; top:35px; width:75px; height:19px; ">
  179. <choices>
  180. <itemset>
  181. <label/>
  182. <value/>
  183. </itemset>
  184. </choices>
  185. </select1>
  186. <input id="ipt_yy" ref="/root/send/req/yy" inputtype="date" format="yyyy" style="left:100px; top:13px; width:75px; height:19px; text-align:center; ">
  187. <script type="javascript" ev:event="xforms-value-changed">
  188. <![CDATA[
  189. var instcd = cmb_instcd.value;
  190. if( getStringLength(ipt_yy.value) == "4" ) {
  191. model.removeNodeset(cmb_instcd.attribute("ref"));
  192. model.makeNode("/root/send/req/instcd");
  193. if(ipt_yy.value == getCurrentDate().substring(0, 4) ) {
  194. misfComboInstCdListMulti("cmb_instcd",getCurrentDate(),"","Y");
  195. }
  196. else {
  197. misfComboInstCdListMulti("cmb_instcd",ipt_yy.value+"1231","","Y");
  198. }
  199. cmb_instcd.value = instcd;
  200. model.refresh();
  201. }
  202. btn_search.dispatch("DOMActivate");
  203. ]]>
  204. </script>
  205. <script type="javascript" ev:event="onkeyup">
  206. <![CDATA[
  207. inputEnterKey("ipt_yy", "xforms-value-changed");
  208. ]]>
  209. </script>
  210. </input>
  211. <button id="btn_deptcdhelp" class="icon_search" style="left:646px; top:13px; width:16px; height:16px; ">
  212. <caption/>
  213. <script type="javascript" ev:event="DOMActivate">
  214. <![CDATA[
  215. var precv_list = "deptcd" + "," + "deptnm";
  216. misfOpenPopUpList("02", ipt_deptcd, "", precv_list);
  217. fsearch();
  218. model.refresh();
  219. ]]>
  220. </script>
  221. </button>
  222. <input id="ipt_deptnm" ref="/root/send/req/deptnm" class="output_search" style="left:665px; top:13px; width:129px; height:19px; ">
  223. <script type="javascript" ev:event="onkeyup">
  224. <![CDATA[
  225. inputEnterKey("btn_search", "DOMActivate");
  226. ]]>
  227. </script>
  228. </input>
  229. <input id="ipt_deptcd" ref="/root/send/req/deptcd" class="input_default" style="left:565px; top:13px; width:78px; height:19px; ">
  230. <script type="javascript" ev:event="onkeyup">
  231. <![CDATA[
  232. inputEnterKey("btn_search", "DOMActivate");
  233. ]]>
  234. </script>
  235. </input>
  236. <input id="ipt_emplnm" ref="/root/send/req/emplnm" class="input_search" appearance="input" style="left:997px; top:13px; width:83px; height:19px; text-align:center; ">
  237. <script type="javascript" ev:event="onkeyup">
  238. <![CDATA[
  239. inputEnterKey("btn_search", "DOMActivate");
  240. ]]>
  241. </script>
  242. </input>
  243. <button id="btn_emplnohelp" class="icon_search" style="left:978px; top:13px; width:16px; height:16px; ">
  244. <caption/>
  245. <script type="javascript" ev:event="DOMActivate">
  246. <![CDATA[
  247. var precv_list = "emplno" + "," + "name";
  248. misfOpenPopUpList("01", ipt_emplno, "", precv_list);
  249. fsearch();
  250. model.refresh();
  251. ]]>
  252. </script>
  253. </button>
  254. <input id="ipt_emplno" ref="/root/send/req/emplno" class="input_default" style="left:899px; top:13px; width:78px; height:19px; text-align:center; ">
  255. <script type="javascript" ev:event="onkeyup">
  256. <![CDATA[
  257. inputEnterKey("btn_search", "DOMActivate");
  258. ]]>
  259. </script>
  260. </input>
  261. </group>
  262. </xhtml:body>
  263. </xhtml:html>