SMRPD12500_월별휴일확정관리.xrw 14 KB

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