SMRPD12600_월별휴일일수조회.xrw 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305
  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. </deduitem>
  34. <deduitemamt>
  35. <instcd/>
  36. <emplno/>
  37. <dutym/>
  38. </deduitemamt>
  39. <save>
  40. <deduitemamtlist/>
  41. <deduitemlist/>
  42. </save>
  43. </send>
  44. </root>
  45. </instance>
  46. <script type="javascript" ev:event="xforms-ready">
  47. <![CDATA[
  48. misfGridInit(grd_deduitemlist);
  49. misfGridInit(grd_deduitemamtlist);
  50. misfMsterDetailSet(grd_deduitemlist,null, "TRRPD12601" ,"Y");
  51. misfMsterDetailSet(grd_deduitemamtlist,grd_deduitemlist, "TRRPD12602" ,"Y");
  52. var curdate = getCurrentDate();
  53. model.setValue("/root/send/deduitem/dutym", curdate.substr(0, 6));
  54. model.setValue("/root/send/deduitem/duttoym", curdate.substr(0, 6));
  55. model.setValue(cmb_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
  56. misfGetUserAuth();
  57. model.setValue("/root/send/deduitem/emplno", getUserId());
  58. model.setValue("/root/send/deduitem/emplnm", getUserName());
  59. //misfComboComCdList("Z0007", cmb_instcd);
  60. misfComboInstCdListMulti("cmb_instcd",getCurrentDate(),"","N");
  61. model.refresh();
  62. ]]>
  63. </script>
  64. <script type="javascript">
  65. <![CDATA[
  66. //개인별 공제 금액 출력물 기본 Data 설정.
  67. function fPrintDataSet()
  68. {
  69. //공제항목 title set
  70. model.setValue("/root/main/titlelist/deduitemnm", grd_deduitemlist.valueMatrix(grd_deduitemlist.row, grd_deduitemlist.colRef("deduitemnm")));
  71. //공제월 set
  72. model.setValue("/root/main/titlelist/dedumm", ipt_dedumm.value);
  73. model.refresh();
  74. }
  75. ]]>
  76. </script>
  77. <submission id="TRRPD12601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/deduitem" resultref="/root/main/deduitem"/>
  78. <submission id="TRRPD12602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/deduitemamt" resultref="/root/main/deduitemamt"/>
  79. </model>
  80. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  81. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  82. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  83. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  84. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  85. <script type="javascript" src="../../../mis/paybaseinfomngtweb/js/RWC001.js"/>
  86. <script type="javascript" src="../../../mis/dligclaznsmngtweb/js/RPD001.js"/>
  87. <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
  88. </xhtml:head>
  89. <xhtml:body guideline="1,1196;">
  90. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  91. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">월별휴일일수조회</caption>
  92. </group>
  93. <group id="group2" scroll="auto" style="left:0px; top:38; width:1195px; height:744px; ">
  94. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:10px; width:1195px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  95. <button id="btn_search" class="btn1_letter2" style="left:1130px; top:16px; width:56px; height:22px; ">
  96. <caption>조회</caption>
  97. <script type="javascript" ev:event="DOMActivate">
  98. <![CDATA[
  99. misfMsterDetailRetrieve();
  100. model.refresh();
  101. ]]>
  102. </script>
  103. </button>
  104. <line id="line13" class="line_4" style="x1:1110px; y1:16px; x2:1110px; y2:38px; "/>
  105. <caption id="caption278" class="tit_2" style="left:5px; top:55px; width:157px; height:14px; ">사원목록</caption>
  106. <line id="line207" class="line_1" style="x1:0px; y1:70px; x2:960px; y2:70px; "/>
  107. <line id="line1" class="line_1" style="x1:965px; y1:70px; x2:1195px; y2:70px; "/>
  108. <datagrid id="grd_deduitemlist" nodeset="/root/main/deduitem/deduitemlist" caption="근무년월^사원번호^성명^휴일갯수^잔여휴일수^부서^입사일^퇴사일^확정여부^caption1^caption2^caption3" colsep="^" colwidth="85, 89, 93, 73, 78, 262, 91, 89, 63, 100, 100, 100" dataheight="25" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:0px; top:75px; width:960px; height:665px; ">
  109. <col ref="emplno" format="yyyy-mm"/>
  110. <col disabled="true" ref="emplno"/>
  111. <col ref="emplnm" style="text-align:left; "/>
  112. <col ref="holicnt" format="99" style="text-align:center; "/>
  113. <col ref="jancnt" format="99" style="text-align:center; "/>
  114. <col ref="dutplcedeptnm"/>
  115. <col ref="entcodd" format="yyyy-mm-dd" style="text-align:center; "/>
  116. <col ref="retiredd" format="yyyy-mm-dd" style="text-align:center; "/>
  117. <col checkvalue="Y,N" disabled="true" ref="deprtmangrdutcnfmyn" type="checkbox"/>
  118. <col ref="dutym" visibility="hidden"/>
  119. <col ref="instcd" visibility="hidden"/>
  120. <col ref="oldholicnt" visibility="hidden"/>
  121. <script type="javascript" ev:event="onrowchanged">
  122. <![CDATA[
  123. model.setValue("/root/send/deduitemamt/emplno", model.getValue("/root/main/deduitem/deduitemlist[" + grd_deduitemlist.row + "]/emplno"));
  124. model.setValue("/root/send/deduitemamt/instcd", model.getValue("/root/main/deduitem/deduitemlist[" + grd_deduitemlist.row + "]/instcd"));
  125. misfMsterDetailRetrieve();
  126. if (model.getValue("/root/main/deduitem/deduitemlist[" + grd_deduitemlist.row + "]/deprtmangrdutcnfmyn") == "Y"){
  127. grd_deduitemamtlist.disabled = true;
  128. }else{
  129. grd_deduitemamtlist.disabled = false;
  130. }
  131. model.refresh();
  132. ]]>
  133. </script>
  134. <script type="javascript" ev:event="onbuttonclick">
  135. <![CDATA[
  136. if (grd_deduitemlist.colAttribute(grd_deduitemlist.col,"ref") == "emplno" ) { //계산기준코드
  137. var recv_list = "emplno,emplnm";
  138. rpbfOpenPopUpList("SPRPB00101", grd_deduitemlist, recv_list,"","N");
  139. if (model.getValue("/root/main/deduitem/deduitemlist[" + grd_deduitemlist.row + "]/emplno") != ""){
  140. misfGridInit(grd_deduitemamtlist);
  141. btn_grdadddeduitemamtlist.dispatch("DOMActivate");
  142. }
  143. model.refresh();
  144. }
  145. ]]>
  146. </script>
  147. <script type="javascript" ev:event="xforms-value-changed">
  148. <![CDATA[
  149. if (grd_deduitemlist.colAttribute(grd_deduitemlist.col,"ref") == "emplno" ) { //계산기준코드
  150. var recv_list = "emplno,emplnm";
  151. misfValidationCheck("01-1", "", recv_list);
  152. if (model.getValue("/root/main/deduitem/deduitemlist[" + grd_deduitemlist.row + "]/emplno") != ""){
  153. misfGridInit(grd_deduitemamtlist);
  154. btn_grdadddeduitemamtlist.dispatch("DOMActivate");
  155. }
  156. model.refresh();
  157. }
  158. if (grd_deduitemlist.colAttribute(grd_deduitemlist.col,"ref") == "holicnt" ) { //계산기준코드
  159. if (model.getValue("/root/main/deduitem/deduitemlist[" + grd_deduitemlist.row + "]/deprtmangrdutcnfmyn") == "Y"){
  160. messageBox("확정된 자료는 수정할 수 없습니다.", "E999", "");
  161. model.setValue("/root/main/deduitem/deduitemlist[" + grd_deduitemlist.row + "]/holicnt", model.getValue("/root/main/deduitem/deduitemlist[" + grd_deduitemlist.row + "]/oldholicnt"));
  162. grd_deduitemlist.rowStatus(grd_deduitemlist.row) = 0;
  163. return;
  164. }
  165. model.refresh();
  166. }
  167. ]]>
  168. </script>
  169. <script type="javascript" ev:event="onaftersort">
  170. <![CDATA[
  171. grd_deduitemlist.gridToInstance();
  172. ]]>
  173. </script>
  174. </datagrid>
  175. <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; ">
  176. <col disabled="true" ref="dutdd" format="yyyy-mm-dd" style="text-align:center; "/>
  177. <col ref="yoil" format="(-)#,###" style="text-align:left; "/>
  178. <col ref="emplno" visibility="hidden"/>
  179. <col ref="dutym" visibility="hidden"/>
  180. <col ref="instcd" visibility="hidden"/>
  181. <script type="javascript" ev:event="onaftersort">
  182. <![CDATA[
  183. grd_deduitemamtlist.gridToInstance();
  184. ]]>
  185. </script>
  186. </datagrid>
  187. <button id="btn_saveexcel" class="btn2_letter4" style="left:895px; top:50px; width:64px; height:19px; ">
  188. <caption>엑셀저장</caption>
  189. <script type="javascript" ev:event="DOMActivate">
  190. <![CDATA[
  191. var fileName = window.fileDialog ("save", ",", false, "excel", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  192. if (fileName != "")
  193. {
  194. grd_deduitemlist.saveExcel(fileName);
  195. }
  196. ]]>
  197. </script>
  198. </button>
  199. <caption id="caption7" class="search_name" style="left:605px; top:17px; width:63px; height:17px; ">사번 :</caption>
  200. <input id="ipt_emplnos" ref="/root/send/deduitem/emplno" class="input_essential" disabled="true" style="left:666px; top:17px; width:87px; height:19px; ">
  201. <script type="javascript" ev:event="onkeyup">
  202. <![CDATA[
  203. if (ipt_emplnos.currentText != null && ipt_emplnos.currentText != "" ) {
  204. inputEnterKey("ipt_emplnos", "xforms-value-changed");
  205. inputEnterKey("btn_search", "DOMActivate");
  206. }
  207. ]]>
  208. </script>
  209. <script type="javascript" ev:event="xforms-value-changed">
  210. <![CDATA[
  211. var recv_list = "emplno,emplnm" ;
  212. rpbfValidationCheck("EMPLNO", recv_list);
  213. model.refresh();
  214. if (model.getValue(ipt_emplnos.attribute("ref")).length > 0) {
  215. btn_search.dispatch("DOMActivate");
  216. }
  217. ]]>
  218. </script>
  219. </input>
  220. <input id="ipt_emplnms" ref="/root/send/deduitem/emplnm" class="input_default" disabled="true" style="left:757px; top:17px; width:106px; height:19px; ">
  221. <script type="javascript" ev:event="onkeyup">
  222. <![CDATA[
  223. if (ipt_emplnms.currentText != null && ipt_emplnms.currentText != "" ) {
  224. inputEnterKey("ipt_emplnms", "xforms-value-changed");
  225. inputEnterKey("btn_search", "DOMActivate");
  226. }
  227. ]]>
  228. </script>
  229. <script type="javascript" ev:event="xforms-value-changed">
  230. <![CDATA[
  231. var recv_list = "emplno,emplnm" ;
  232. rpbfValidationCheck("EMPLNM", recv_list);
  233. model.refresh();
  234. if (model.getValue(ipt_emplnos.attribute("ref")).length > 0) {
  235. btn_search.dispatch("DOMActivate");
  236. }
  237. ]]>
  238. </script>
  239. </input>
  240. <select1 id="cmb_instcd" ref="/root/send/deduitem/instcd" class="combo_s_essential" disabled="true" appearance="minimal" style="left:94px; top:17px; width:125px; height:19px; ">
  241. <choices>
  242. <itemset>
  243. <label/>
  244. <value/>
  245. </itemset>
  246. </choices>
  247. </select1>
  248. <caption id="cap_instcd" class="search_name" style="left:35px; top:18px; width:61px; height:17px; ">기관:</caption>
  249. <input id="ipt_dutym" ref="/root/send/deduitem/dutym" class="input_search" inputtype="date" format="yyyy-mm" style="left:330px; top:17px; width:110px; height:19px; text-align:center; ">
  250. <script type="javascript" ev:event="xforms-value-changed">
  251. <![CDATA[
  252. /*
  253. var instcd = cmb_instcd.value;
  254. if( getStringLength(ipt_dutym.value) == "6" ) {
  255. // model.removeNodeset(cmb_instcd.attribute("ref"));
  256. // model.makeNode("/root/send/instcd");
  257. misfComboInstCdListMulti("cmb_instcd",ipt_dutym.value+"31","","N");
  258. cmb_instcd.value = instcd;
  259. model.refresh();
  260. }
  261. fDutYMValueChanged();
  262. */
  263. ]]>
  264. </script>
  265. </input>
  266. <caption id="caption2" class="search_name" style="left:243px; top:18px; width:91px; height:17px; ">근무년월 :</caption>
  267. <input id="input1" ref="/root/send/deduitem/duttoym" class="input_search" inputtype="date" format="yyyy-mm" style="left:460px; top:17px; width:110px; height:19px; text-align:center; ">
  268. <script type="javascript" ev:event="xforms-value-changed">
  269. <![CDATA[
  270. /*
  271. var instcd = cmb_instcd.value;
  272. if( getStringLength(ipt_dutym.value) == "6" ) {
  273. // model.removeNodeset(cmb_instcd.attribute("ref"));
  274. // model.makeNode("/root/send/instcd");
  275. misfComboInstCdListMulti("cmb_instcd",ipt_dutym.value+"31","","N");
  276. cmb_instcd.value = instcd;
  277. model.refresh();
  278. }
  279. fDutYMValueChanged();
  280. */
  281. ]]>
  282. </script>
  283. </input>
  284. <caption id="caption1" style="left:442px; top:17px; width:15px; height:20px; text-align:center; ">~</caption>
  285. </group>
  286. <group id="grp_btn" scroll="auto" style="left:0px; top:12; width:1195px; height:27px; ">
  287. <line id="line9" class="line_6" style="x1:0; y1:25; x2:1195; y2:25; "/>
  288. </group>
  289. </xhtml:body>
  290. </xhtml:html>