SMRPD12700_기간별휴일일수조회.xrw 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375
  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. <deduitem>
  11. <deduitemlist/>
  12. <instpaydedulist/>
  13. <appinstpaydedulist/>
  14. </deduitem>
  15. <deduitemamt>
  16. <deduitemamtlist/>
  17. </deduitemamt>
  18. <fixdeduitemamt>
  19. <fixdeduitemamtlist/>
  20. </fixdeduitemamt>
  21. <titlelist>
  22. <deduitemnm/>
  23. <dedumm/>
  24. </titlelist>
  25. </main>
  26. <send>
  27. <deduitem>
  28. <instcd/>
  29. <emplno/>
  30. <emplnm/>
  31. <dutym/>
  32. <duttoym/>
  33. <dutunitcd/>
  34. <dutunitnm/>
  35. </deduitem>
  36. <deduitemamt>
  37. <instcd/>
  38. <emplno/>
  39. <dutym/>
  40. <duttoym/>
  41. </deduitemamt>
  42. <save>
  43. <deduitemamtlist/>
  44. <deduitemlist/>
  45. </save>
  46. </send>
  47. </root>
  48. </instance>
  49. <script type="javascript" ev:event="xforms-ready">
  50. <![CDATA[
  51. misfGridInit(grd_deduitemlist);
  52. misfGridInit(grd_deduitemamtlist);
  53. misfMsterDetailSet(grd_deduitemlist,null, "TRRPD12701" ,"Y");
  54. misfMsterDetailSet(grd_deduitemamtlist,grd_deduitemlist, "TRRPD12702" ,"Y");
  55. var curdate = getCurrentDate();
  56. model.setValue("/root/send/deduitem/dutym", curdate.substr(0, 6));
  57. model.setValue("/root/send/deduitem/duttoym", curdate.substr(0, 6));
  58. model.setValue(cmb_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
  59. misfGetAndSetUserInfo();
  60. misfGetUserAuth();
  61. rpdfComboCdList(cmb_dutplce); // 권한별 근무부서 세팅
  62. rpdfSetDutUnitCombo();
  63. model.setValue("/root/send/deduitem/dutunitcd", DUT_UNIT_CD);
  64. model.setValue("/root/send/deduitem/dutunitnm", DUT_UNIT_NM);
  65. //model.setValue("/root/send/deduitem/emplno", getUserId());
  66. //model.setValue("/root/send/deduitem/emplnm", getUserName());
  67. //misfComboComCdList("Z0007", cmb_instcd);
  68. misfComboInstCdListMulti("cmb_instcd",getCurrentDate(),"","N");
  69. model.refresh();
  70. ]]>
  71. </script>
  72. <script type="javascript">
  73. <![CDATA[
  74. //개인별 공제 금액 출력물 기본 Data 설정.
  75. function fPrintDataSet()
  76. {
  77. //공제항목 title set
  78. model.setValue("/root/main/titlelist/deduitemnm", grd_deduitemlist.valueMatrix(grd_deduitemlist.row, grd_deduitemlist.colRef("deduitemnm")));
  79. //공제월 set
  80. model.setValue("/root/main/titlelist/dedumm", ipt_dedumm.value);
  81. model.refresh();
  82. }
  83. ]]>
  84. </script>
  85. <submission id="TRRPD12701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/deduitem" resultref="/root/main/deduitem"/>
  86. <submission id="TRRPD12702" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/deduitemamt" resultref="/root/main/deduitemamt"/>
  87. </model>
  88. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  89. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  90. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  91. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  92. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  93. <script type="javascript" src="../../../mis/paybaseinfomngtweb/js/RWC001.js"/>
  94. <script type="javascript" src="../../../mis/dligclaznsmngtweb/js/RPD001.js"/>
  95. <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
  96. </xhtml:head>
  97. <xhtml:body guideline="1,1196;">
  98. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  99. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">기간별휴일일수조회</caption>
  100. </group>
  101. <group id="group2" scroll="auto" style="left:0px; top:38; width:1195px; height:744px; ">
  102. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:10px; width:1195px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  103. <button id="btn_search" class="btn1_letter2" style="left:1130px; top:16px; width:56px; height:22px; ">
  104. <caption>조회</caption>
  105. <script type="javascript" ev:event="DOMActivate">
  106. <![CDATA[
  107. misfMsterDetailRetrieve();
  108. model.refresh();
  109. ]]>
  110. </script>
  111. </button>
  112. <line id="line13" class="line_4" style="x1:1110px; y1:16px; x2:1110px; y2:38px; "/>
  113. <caption id="caption278" class="tit_2" style="left:5px; top:55px; width:157px; height:14px; ">사원목록</caption>
  114. <line id="line207" class="line_1" style="x1:0px; y1:70px; x2:960px; y2:70px; "/>
  115. <line id="line1" class="line_1" style="x1:965px; y1:70px; x2:1195px; y2:70px; "/>
  116. <datagrid id="grd_deduitemlist" nodeset="/root/main/deduitem/deduitemlist" caption="사원번호^성명^휴일갯수^잔여휴일수^부서^입사일^퇴사일^caption1^caption2^caption3^caption4" colsep="^" colwidth="89, 93, 73, 78, 399, 91, 89, 100, 100, 100, 100" dataheight="25" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:0px; top:75px; width:960px; height:665px; ">
  117. <col disabled="true" ref="emplno"/>
  118. <col ref="emplnm" style="text-align:left; "/>
  119. <col ref="holicnt" format="99" style="text-align:center; "/>
  120. <col ref="jancnt" format="99" style="text-align:center; "/>
  121. <col ref="dutplcedeptnm"/>
  122. <col ref="entcodd" format="yyyy-mm-dd" style="text-align:center; "/>
  123. <col ref="retiredd" format="yyyy-mm-dd" style="text-align:center; "/>
  124. <col ref="dutym" visibility="hidden"/>
  125. <col ref="instcd" visibility="hidden"/>
  126. <col ref="oldholicnt" visibility="hidden"/>
  127. <col ref="duttoym" visibility="hidden"/>
  128. <script type="javascript" ev:event="onrowchanged">
  129. <![CDATA[
  130. model.setValue("/root/send/deduitemamt/emplno", model.getValue("/root/main/deduitem/deduitemlist[" + grd_deduitemlist.row + "]/emplno"));
  131. model.setValue("/root/send/deduitemamt/instcd", model.getValue("/root/main/deduitem/deduitemlist[" + grd_deduitemlist.row + "]/instcd"));
  132. //model.setValue("/root/send/deduitemamt/dutym", model.getValue("/root/send/deduitem/dutym"));
  133. //model.setValue("/root/send/deduitemamt/duttoym", model.getValue("/root/send/deduitem/duttoym"));
  134. misfMsterDetailRetrieve();
  135. ]]>
  136. </script>
  137. <script type="javascript" ev:event="onaftersort">
  138. <![CDATA[
  139. grd_deduitemlist.gridToInstance();
  140. ]]>
  141. </script>
  142. </datagrid>
  143. <datagrid id="grd_deduitemamtlist" nodeset="/root/main/deduitemamt/deduitemamtlist" caption="OFF일^요일^caption1^caption3^caption2" colsep="^" colwidth="129, 62, 100, 100, 100" dataheight="25" explorerbar="sort" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:965px; top:75px; width:230px; height:665px; ">
  144. <col disabled="true" ref="dutdd" format="yyyy-mm-dd" style="text-align:center; "/>
  145. <col ref="yoil" format="(-)#,###" style="text-align:left; "/>
  146. <col ref="emplno" visibility="hidden"/>
  147. <col ref="dutym" visibility="hidden"/>
  148. <col ref="instcd" visibility="hidden"/>
  149. <script type="javascript" ev:event="onaftersort">
  150. <![CDATA[
  151. grd_deduitemamtlist.gridToInstance();
  152. ]]>
  153. </script>
  154. </datagrid>
  155. <button id="btn_saveexcel" class="btn2_letter4" style="left:895px; top:50px; width:64px; height:19px; ">
  156. <caption>엑셀저장</caption>
  157. <script type="javascript" ev:event="DOMActivate">
  158. <![CDATA[
  159. var fileName = window.fileDialog ("save", ",", false, "excel", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  160. if (fileName != "")
  161. {
  162. grd_deduitemlist.saveExcel(fileName);
  163. }
  164. ]]>
  165. </script>
  166. </button>
  167. <caption id="caption7" class="search_name" style="left:815px; top:17px; width:63px; height:17px; ">사번 :</caption>
  168. <select1 id="cmb_instcd" ref="/root/send/deduitem/instcd" class="combo_s_essential" disabled="true" appearance="minimal" style="left:74px; top:17px; width:125px; height:19px; ">
  169. <choices>
  170. <itemset>
  171. <label/>
  172. <value/>
  173. </itemset>
  174. </choices>
  175. </select1>
  176. <caption id="cap_instcd" class="search_name" style="left:15px; top:18px; width:61px; height:17px; ">기관:</caption>
  177. <input id="ipt_dutym" ref="/root/send/deduitem/dutym" class="input_search" inputtype="date" format="yyyy-mm" style="left:295px; top:17px; width:95px; height:19px; text-align:center; ">
  178. <script type="javascript" ev:event="xforms-value-changed">
  179. <![CDATA[
  180. /*
  181. var instcd = cmb_instcd.value;
  182. if( getStringLength(ipt_dutym.value) == "6" ) {
  183. // model.removeNodeset(cmb_instcd.attribute("ref"));
  184. // model.makeNode("/root/send/instcd");
  185. misfComboInstCdListMulti("cmb_instcd",ipt_dutym.value+"31","","N");
  186. cmb_instcd.value = instcd;
  187. model.refresh();
  188. }
  189. fDutYMValueChanged();
  190. */
  191. ]]>
  192. </script>
  193. </input>
  194. <caption id="caption2" class="search_name" style="left:208px; top:18px; width:91px; height:17px; ">근무년월 :</caption>
  195. <input id="input1" ref="/root/send/deduitem/duttoym" class="input_search" inputtype="date" format="yyyy-mm" style="left:410px; top:17px; width:95px; height:19px; text-align:center; ">
  196. <script type="javascript" ev:event="xforms-value-changed">
  197. <![CDATA[
  198. /*
  199. var instcd = cmb_instcd.value;
  200. if( getStringLength(ipt_dutym.value) == "6" ) {
  201. // model.removeNodeset(cmb_instcd.attribute("ref"));
  202. // model.makeNode("/root/send/instcd");
  203. misfComboInstCdListMulti("cmb_instcd",ipt_dutym.value+"31","","N");
  204. cmb_instcd.value = instcd;
  205. model.refresh();
  206. }
  207. fDutYMValueChanged();
  208. */
  209. ]]>
  210. </script>
  211. </input>
  212. <caption id="caption1" style="left:392px; top:17px; width:15px; height:20px; text-align:center; ">~</caption>
  213. <button id="btn_emplno" class="icon_search" style="left:970px; top:17px; width:16px; height:16px; ">
  214. <caption/>
  215. <script type="javascript" ev:event="DOMActivate">
  216. <![CDATA[
  217. var recv_list = "emplno,emplnm" ;
  218. rpbfOpenPopUpList("SPRPB00101", ipt_emplnos, recv_list,"1","N");
  219. model.refresh();
  220. if (model.getValue(ipt_emplnos.attribute("ref")).length > 0) {
  221. btn_search.dispatch("DOMActivate");
  222. }
  223. ]]>
  224. </script>
  225. </button>
  226. <input id="ipt_emplnos" ref="/root/send/deduitem/emplno" class="input_essential" style="left:881px; top:17px; width:87px; height:19px; ">
  227. <script type="javascript" ev:event="onkeyup">
  228. <![CDATA[
  229. if (ipt_emplnos.currentText != null && ipt_emplnos.currentText != "" ) {
  230. inputEnterKey("ipt_emplnos", "xforms-value-changed");
  231. inputEnterKey("btn_search", "DOMActivate");
  232. }
  233. ]]>
  234. </script>
  235. <script type="javascript" ev:event="xforms-value-changed">
  236. <![CDATA[
  237. var recv_list = "emplno,emplnm" ;
  238. rpbfValidationCheck("EMPLNO", recv_list);
  239. model.refresh();
  240. if (model.getValue(ipt_emplnos.attribute("ref")).length > 0) {
  241. btn_search.dispatch("DOMActivate");
  242. }
  243. ]]>
  244. </script>
  245. </input>
  246. <input id="ipt_emplnms" ref="/root/send/deduitem/emplnm" class="input_default" style="left:987px; top:17px; width:106px; height:19px; ">
  247. <script type="javascript" ev:event="onkeyup">
  248. <![CDATA[
  249. if (ipt_emplnms.currentText != null && ipt_emplnms.currentText != "" ) {
  250. inputEnterKey("ipt_emplnms", "xforms-value-changed");
  251. inputEnterKey("btn_search", "DOMActivate");
  252. }
  253. ]]>
  254. </script>
  255. <script type="javascript" ev:event="xforms-value-changed">
  256. <![CDATA[
  257. var recv_list = "emplno,emplnm" ;
  258. rpbfValidationCheck("EMPLNM", recv_list);
  259. model.refresh();
  260. if (model.getValue(ipt_emplnos.attribute("ref")).length > 0) {
  261. btn_search.dispatch("DOMActivate");
  262. }
  263. ]]>
  264. </script>
  265. </input>
  266. <caption id="caption5" class="search_name" style="left:525px; top:18px; width:86px; height:17px; ">관리부서 :</caption>
  267. <button id="btn_dutdept" class="icon_search" visibility="visible" style="left:703px; top:19px; width:16px; height:16px; ">
  268. <caption/>
  269. <script type="javascript" ev:event="DOMActivate">
  270. <![CDATA[
  271. misfOpenPopUpList("02", ipt_dutdeptcd,"","dutunitcd,dutunitnm", cmb_instcd.value + "," + ipt_dutym.value+"31", "instcd,basedd");
  272. btn_search.dispatch("DOMActivate");
  273. ]]>
  274. </script>
  275. </button>
  276. <input id="ipt_dutdeptnm" ref="/root/send/deduitem/dutunitnm" class="input_search" navindex="3" visibility="visible" style="left:721px; top:17px; width:89px; height:19px; ">
  277. <script type="javascript" ev:event="xforms-value-changed">
  278. <![CDATA[
  279. misfValidationCheck("02", "", "dutunitcd,dutunitnm", cmb_instcd.value, "instcd" );
  280. model.setValue("/root/send/deduitem/dutunitcd", cmb_dutplce.value);
  281. model.refresh();
  282. ]]>
  283. </script>
  284. <script type="javascript" ev:event="onkeypress">
  285. <![CDATA[
  286. if(event.keyCode == 13)
  287. {
  288. ipt_dutdeptnm.value = ipt_dutdeptnm.currentText;
  289. misfValidationCheck("02", "", "dutunitcd,dutunitnm", cmb_instcd.value, "instcd" );
  290. model.setValue("/root/send/deduitem/dutunitcd", cmb_dutplce.value);
  291. model.refresh();
  292. }
  293. ]]>
  294. </script>
  295. </input>
  296. <input id="ipt_dutdeptcd" ref="/root/send/deduitem/dutunitcd" class="input_s_essential" navindex="2" visibility="visible" maxlength="10" style="left:612px; top:17px; width:85px; height:19px; ">
  297. <script type="javascript" ev:event="xforms-value-changed">
  298. <![CDATA[
  299. misfValidationCheck("02", "", "dutunitcd,dutunitnm", cmb_instcd.value, "instcd" );
  300. btn_search.dispatch("DOMActivate");
  301. ]]>
  302. </script>
  303. <script type="javascript" ev:event="onkeypress">
  304. <![CDATA[
  305. if(event.keyCode == 13)
  306. {
  307. ipt_dutdeptcd.value = ipt_dutdeptcd.currentText;
  308. misfValidationCheck("02", "", "dutunitcd,dutunitnm", cmb_instcd.value, "instcd" );
  309. model.setValue("/root/send/deduitem/dutunitcd", cmb_dutplce.value);
  310. model.refresh();
  311. }
  312. ]]>
  313. </script>
  314. </input>
  315. <select1 id="cmb_dutplce" ref="/root/send/deduitem/dutunitcd" class="combo_search" visibility="visible" appearance="minimal" style="left:612px; top:17px; width:198px; height:19px; ">
  316. <choices>
  317. <itemset>
  318. <label/>
  319. <value/>
  320. </itemset>
  321. </choices>
  322. <script type="javascript" ev:event="xforms-value-changed">
  323. <![CDATA[
  324. btn_search.dispatch("DOMActivate");
  325. ]]>
  326. </script>
  327. </select1>
  328. </group>
  329. <group id="grp_btn" scroll="auto" style="left:0px; top:12; width:1195px; height:27px; ">
  330. <line id="line9" class="line_6" style="x1:0; y1:25; x2:1195; y2:25; "/>
  331. </group>
  332. <button id="button1" class="btn6_letter2" style="left:1137px; top:14px; width:56px; height:22px; ">
  333. <caption>출력</caption>
  334. <script type="javascript" ev:event="DOMActivate">
  335. <![CDATA[
  336. var updtdata = getGridUpdateData(grd_deduitemlist);
  337. if (updtdata == "") {
  338. exeReportPreview("RPRPD12701", "XMLSTR");
  339. } else {
  340. messageBox("변경 된 데이타가 있습니다.", "E999", "");
  341. }
  342. ]]>
  343. </script>
  344. </button>
  345. </xhtml:body>
  346. </xhtml:html>