SMRPD04100_퇴직자근태집계조회.xrw 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374
  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. <list>
  11. <dutsumlist/>
  12. </list>
  13. </main>
  14. <send>
  15. <retrparams>
  16. <instcd/>
  17. <frdutym/>
  18. <todutym/>
  19. <dutunitcd/>
  20. <dutunitnm/>
  21. <retrflag>T</retrflag>
  22. <emplno/>
  23. <emplnm/>
  24. <deptgb/>
  25. <gb/>
  26. <appscheexecflag/>
  27. </retrparams>
  28. <save>
  29. <dutsumlist/>
  30. </save>
  31. </send>
  32. <init/>
  33. <temp/>
  34. </root>
  35. </instance>
  36. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  37. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  38. <submission id="TRRPD03302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/retrparams" resultref="/root/main/list"/>
  39. <submission id="TXRPD03301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/hidden/temp"/>
  40. </model>
  41. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  42. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  43. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  44. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  45. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  46. <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
  47. <script type="javascript" src="../../../mis/dligclaznsmngtweb/js/RPD001.js"/>
  48. <script type="javascript" ev:event="xforms-ready">
  49. <![CDATA[
  50. fInitialize();
  51. ]]>
  52. </script>
  53. <script type="javascript">
  54. <![CDATA[
  55. // var DUT_UNIT_CD = "";
  56. // var DUT_UNIT_NM = "";
  57. // var DUTY_RESP_YN = ""; // 복무 책임자
  58. // var DUTY_PART_YN = ""; // 인사 복무 담당자
  59. function fInitialize()
  60. {
  61. model.removenode("/root/main/list/dutsumlist");
  62. // misfComboComCdListMulti("Z0007","cmb_instcd");
  63. model.setValue("/root/send/retrparams/frdutym", getCurrentDate().substr(0, 6));
  64. //model.setValue("/root/send/retrparams/todutym", getCurrentDate().substr(0, 6));
  65. misfComboInstCdListMulti("cmb_instcd", ipt_dutym.value+getCurrentDate().substr(6, 2),"","N");
  66. misfGetAndSetUserInfo();
  67. model.setValue("/root/send/retrparams/instcd", getUserInfo("dutplceinstcd"));
  68. //model.setValue("/root/send/retrparams/dutunitcd", DUT_UNIT_CD);
  69. //model.setValue("/root/send/retrparams/dutunitnm", DUT_UNIT_NM);
  70. cmb_instcd.disabled = true;
  71. model.setValue("/root/send/retrparams/deptgb", "1");
  72. model.setValue("/root/send/retrparams/gb", "N");
  73. model.setValue("/root/send/retrparams/appscheexecflag", "4");
  74. //grd_dutsumlist.rowHeight(0) = 22;
  75. //grd_dutsumlist.rowHeight(1) = 22;
  76. //grd_dutsumlist.rowHeight(2) = 22;
  77. btn_search.dispatch("DOMActivate");
  78. model.refresh();
  79. }
  80. ]]>
  81. </script>
  82. </xhtml:head>
  83. <xhtml:body pagewidth="1211" pageheight="784" style="margin-left:8; margin-right:8; ">
  84. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  85. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">퇴직자근태집계조회</caption>
  86. </group>
  87. <group id="group2" scroll="auto" style="left:0px; top:38px; width:1195px; height:744px; ">
  88. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:10px; width:1195px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  89. <line id="line13" class="line_4" style="x1:1110px; y1:16px; x2:1110px; y2:38px; "/>
  90. <caption id="caption278" class="tit_2" style="left:5px; top:54px; width:162px; height:14px; ">근태집계목록</caption>
  91. <line id="line207" class="line_1" style="x1:0px; y1:69px; x2:1195px; y2:69px; "/>
  92. <datagrid id="grd_dutsumlist" nodeset="/root/main/list/dutsumlist" caption="부서^직위^사원번호^성명^주민번호^이브닝^생리^연장150%^야간^야간일수^주만근^공휴일^휴일^결근^caption1^caption2" colsep="^" colwidth="180, 86, 101, 73, 100, 65, 59, 71, 70, 62, 71, 67, 72, 77, 100, 100" dataheight="25" explorerbar="sortshow" extendlastcol="scroll" frozencols="4" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:0px; top:74px; width:1195px; height:670px; border-right-color:#3366ff; ">
  93. <col ref="dutplcedeptnm"/>
  94. <col ref="jobposnm"/>
  95. <col disabled="true" ref="emplno" type="inputbutton" style="text-align:center; "/>
  96. <col ref="emplnm"/>
  97. <col ref="rregno" format="999999-9999999" style="text-align:center; "/>
  98. <col ref="tranalwntm" type="input" format="###" style="text-align:right; padding-right:5; "/>
  99. <col ref="earlyattdnctm150" type="input" format="###" style="text-align:right; padding-right:5; "/>
  100. <col ref="ovtmworkextnbiztm150" type="input" format="##.0" style="text-align:right; padding-right:5; "/>
  101. <col ref="nigtlabrtm" type="input" format="##.0" style="text-align:right; padding-right:5; "/>
  102. <col ref="adminngdtdayno" type="input" format="###" style="text-align:right; padding-right:5; "/>
  103. <col ref="opnofhospmemotm150" type="input" format="###.0" style="text-align:right; padding-right:5; "/>
  104. <col ref="overweektm" type="input" format="###.0" style="text-align:right; padding-right:5; "/>
  105. <col ref="holiduttm" type="input" format="###.0" style="text-align:right; padding-right:5; "/>
  106. <col ref="adminngdtnigtno" type="input" format="###" style="text-align:right; padding-right:5; "/>
  107. <col ref="dutym" visibility="hidden"/>
  108. <col ref="appscheexecflag" visibility="hidden"/>
  109. <script type="javascript" ev:event="onaftersort">
  110. <![CDATA[
  111. grd_dutsumlist.gridToInstance();
  112. ]]>
  113. </script>
  114. <script type="javascript" ev:event="onbuttonclick">
  115. <![CDATA[
  116. if (grd_dutsumlist.colAttribute(grd_dutsumlist.col,"ref") == "emplno" ) { //계산기준코드
  117. var recv_list = "emplno,emplnm";
  118. rpbfOpenPopUpList("SPRPB00101", grd_dutsumlist, recv_list,"","N");
  119. model.refresh();
  120. }
  121. ]]>
  122. </script>
  123. </datagrid>
  124. <caption id="caption5" class="search_name" style="left:10px; top:19px; width:86px; height:17px; ">소속기관 :</caption>
  125. <caption id="caption1" class="search_name" style="left:250px; top:19px; width:86px; height:17px; ">근무년월 :</caption>
  126. <input id="ipt_dutym" ref="/root/send/retrparams/frdutym" class="input_search" navindex="2" inputtype="date" format="yyyy-mm" style="left:340px; top:18px; width:85px; height:19px; text-align:center; ">
  127. <script type="javascript" ev:event="xforms-value-changed">
  128. <![CDATA[
  129. var instcd = cmb_instcd.value;
  130. if( getStringLength(ipt_dutym.value) == "6" ) {
  131. model.removeNodeset(cmb_instcd.attribute("ref"));
  132. model.makeNode("/root/send/retrparams/instcd");
  133. misfComboInstCdListMulti("cmb_instcd",ipt_dutym.value+"31","","N");
  134. cmb_instcd.value = instcd;
  135. model.refresh();
  136. }
  137. btn_search.dispatch("DOMActivate");
  138. ]]>
  139. </script>
  140. </input>
  141. <select1 id="cmb_instcd" ref="/root/send/retrparams/instcd" class="combo_search" navindex="1" appearance="minimal" style="left:100px; top:18px; width:140px; height:19px; ">
  142. <choices>
  143. <itemset>
  144. <label/>
  145. <value/>
  146. </itemset>
  147. </choices>
  148. <script type="javascript" ev:event="xforms-value-changed">
  149. <![CDATA[
  150. btn_search.dispatch("DOMActivate");
  151. ]]>
  152. </script>
  153. </select1>
  154. <button id="btn_dutdept" class="icon_search" navindex="5" style="left:693px; top:20px; width:16px; height:16px; ">
  155. <caption/>
  156. <script type="javascript" ev:event="DOMActivate">
  157. <![CDATA[
  158. misfOpenPopUpList("02", ipt_dutdeptcd, "", "dutunitcd,dutunitnm", cmb_instcd.value, "instcd");
  159. model.refresh();
  160. ]]>
  161. </script>
  162. </button>
  163. <caption id="caption2" class="search_name" style="left:437px; top:19px; width:88px; height:17px; ">근무부서 :</caption>
  164. <input id="ipt_dutdeptnm" ref="/root/send/retrparams/dutunitnm" class="input_search" navindex="6" style="left:711px; top:18px; width:114px; height:19px; ">
  165. <script type="javascript" ev:event="onkeypress">
  166. <![CDATA[
  167. if(event.keyCode == 13)
  168. {
  169. if(ipt_dutdeptnm.value == ipt_dutdeptnm.currentText) return;
  170. ipt_dutdeptnm.value = ipt_dutdeptnm.currentText;
  171. misfValidationCheck("02", "", "dutunitcd,dutunitnm", cmb_instcd.value, "instcd" );
  172. model.refresh();
  173. }
  174. ]]>
  175. </script>
  176. <script type="javascript" ev:event="xforms-value-changed">
  177. <![CDATA[
  178. misfValidationCheck("02", "", "dutunitcd,dutunitnm", cmb_instcd.value, "instcd" );
  179. model.refresh();
  180. ]]>
  181. </script>
  182. </input>
  183. <input id="ipt_dutdeptcd" ref="/root/send/retrparams/dutunitcd" class="input_search" navindex="4" maxlength="10" style="left:620px; top:18px; width:70px; height:19px; text-align:center; ">
  184. <script type="javascript" ev:event="onkeypress">
  185. <![CDATA[
  186. if(event.keyCode == 13)
  187. {
  188. if(ipt_dutdeptcd.value == ipt_dutdeptcd.currentText) return;
  189. ipt_dutdeptcd.value = ipt_dutdeptcd.currentText;
  190. misfValidationCheck("02", "", "dutunitcd,dutunitnm", cmb_instcd.value, "instcd" );
  191. model.refresh();
  192. }
  193. ]]>
  194. </script>
  195. <script type="javascript" ev:event="xforms-value-changed">
  196. <![CDATA[
  197. misfValidationCheck("02", "", "dutunitcd,dutunitnm", cmb_instcd.value, "instcd" );
  198. model.refresh();
  199. ]]>
  200. </script>
  201. </input>
  202. <button id="btn_search" class="btn1_letter2" navindex="10" style="left:1125px; top:17px; width:56px; height:22px; ">
  203. <caption>조회</caption>
  204. <script type="javascript" ev:event="DOMActivate">
  205. <![CDATA[
  206. submit("TRRPD03302");
  207. ]]>
  208. </script>
  209. </button>
  210. <select1 id="rdo_retrflag" ref="/root/send/retrparams/retrflag" visibility="hidden" overflow="visible" appearance="full" cellspacing="20" cols="2" style="left:995px; top:20px; width:100px; height:15px; border-style:none; ">
  211. <choices>
  212. <item>
  213. <label>시간</label>
  214. <value>T</value>
  215. </item>
  216. <item>
  217. <label>횟수</label>
  218. <value>C</value>
  219. </item>
  220. </choices>
  221. </select1>
  222. <button id="btn_excsave" class="btn2_letter4" style="left:1127px; top:49px; width:64px; height:19px; ">
  223. <caption>엑셀저장</caption>
  224. <script type="javascript" ev:event="DOMActivate">
  225. <![CDATA[
  226. misfSaveExcel(grd_dutsumlist);
  227. ]]>
  228. </script>
  229. </button>
  230. <caption id="caption3" class="search_name" style="left:840px; top:19px; width:63px; height:17px; ">사번 :</caption>
  231. <button id="btn_emplno" class="icon_search" navindex="8" style="left:983px; top:18px; width:16px; height:16px; ">
  232. <caption/>
  233. <script type="javascript" ev:event="DOMActivate">
  234. <![CDATA[
  235. var recv_list = "emplno,emplnm" ;
  236. rpbfOpenPopUpList("SPRPB00101", ipt_emplnos, recv_list,"","N");
  237. model.refresh();
  238. if (model.getValue(ipt_emplnos.attribute("ref")).length > 0) {
  239. //btn_search.dispatch("DOMActivate");
  240. ipt_emplnos.dispatch("xforms-value-changed");
  241. }
  242. ]]>
  243. </script>
  244. </button>
  245. <input id="ipt_emplnos" ref="/root/send/retrparams/emplno" class="input_default" navindex="7" style="left:901px; top:18px; width:77px; height:19px; ">
  246. <script type="javascript" ev:event="onkeyup">
  247. <![CDATA[
  248. if (ipt_emplnos.currentText != null && ipt_emplnos.currentText != "" ) {
  249. inputEnterKey("ipt_emplnos", "xforms-value-changed");
  250. }
  251. ]]>
  252. </script>
  253. <script type="javascript" ev:event="xforms-value-changed">
  254. <![CDATA[
  255. var recv_list = "emplno,emplnm" ;
  256. rpbfValidationCheck("EMPLNO", recv_list);
  257. model.refresh();
  258. if (model.getValue(ipt_emplnos.attribute("ref")).length > 0) {
  259. btn_search.dispatch("DOMActivate");
  260. }
  261. ]]>
  262. </script>
  263. </input>
  264. <input id="ipt_emplnms" ref="/root/send/retrparams/emplnm" class="input_default" navindex="9" style="left:1002px; top:18px; width:96px; height:19px; ">
  265. <script type="javascript" ev:event="onkeyup">
  266. <![CDATA[
  267. if (ipt_emplnms.currentText != null && ipt_emplnms.currentText != "" ) {
  268. inputEnterKey("ipt_emplnms", "xforms-value-changed");
  269. }
  270. ]]>
  271. </script>
  272. <script type="javascript" ev:event="xforms-value-changed">
  273. <![CDATA[
  274. var recv_list = "emplno,emplnm" ;
  275. rpbfValidationCheck("EMPLNM", recv_list);
  276. model.refresh();
  277. if (model.getValue(ipt_emplnos.attribute("ref")).length > 0) {
  278. btn_search.dispatch("DOMActivate");
  279. }
  280. ]]>
  281. </script>
  282. </input>
  283. <button id="btn_grddelpaydedulist" class="btn2_letter3" style="left:1071px; top:49px; width:53px; height:19px; ">
  284. <caption>행삭제</caption>
  285. <script type="javascript" ev:event="DOMActivate">
  286. <![CDATA[
  287. //grd_dutsumlist.deleteRow(grd_dutsumlist.row);
  288. deleteSelectedRows(grd_dutsumlist, true);
  289. ]]>
  290. </script>
  291. </button>
  292. <button id="btn_grdaddpaydedulist" class="btn2_letter3" style="left:1015px; top:49px; width:53px; height:19px; ">
  293. <caption>행추가</caption>
  294. <script type="javascript" ev:event="DOMActivate">
  295. <![CDATA[
  296. grd_dutsumlist.addRow();
  297. model.setValue("/root/main/list/dutsumlist[" + grd_dutsumlist.row + "]/dutym", model.getValue("/root/send/retrparams/frdutym"));
  298. model.setValue("/root/main/list/dutsumlist[" + grd_dutsumlist.row + "]/appscheexecflag", "4");
  299. model.refresh();
  300. ]]>
  301. </script>
  302. </button>
  303. <select1 id="combo1" ref="/root/send/retrparams/deptgb" navindex="3" appearance="minimal" style="left:525px; top:18px; width:90px; height:19px; ">
  304. <choices>
  305. <item>
  306. <label>근무지</label>
  307. <value>1</value>
  308. </item>
  309. <item>
  310. <label>소속부서</label>
  311. <value>2</value>
  312. </item>
  313. <item>
  314. <label>소속과(팀)</label>
  315. <value>3</value>
  316. </item>
  317. <item>
  318. <label>소속과(실)</label>
  319. <value>4</value>
  320. </item>
  321. </choices>
  322. </select1>
  323. <bool id="bool1" visibility="hidden" checkvalue="Y,N" ref="/root/send/retrparams/gb" style="left:740px; top:48px; width:25px; height:20px; "/>
  324. <caption id="caption4" visibility="hidden" style="left:765px; top:49px; width:106px; height:20px; ">근태미대상 제외</caption>
  325. </group>
  326. <group id="grp_btn" scroll="auto" style="left:0px; top:12px; width:1195px; height:27px; ">
  327. <line id="line4" class="line_6" style="x1:0px; y1:25; x2:1195px; y2:25; "/>
  328. <button id="button36" class="btn4_letter2" style="left:1139px; top:3; width:56px; height:22px; ">
  329. <caption>저장</caption>
  330. <script type="javascript" ev:event="DOMActivate">
  331. <![CDATA[
  332. for (var i = 1; i < grd_dutsumlist.rows; i ++){
  333. if (model.getValue("/root/main/list/dutsumlist[" + i + "]/emplno") == ""){
  334. messageBox(i + "번째의 사원번호는 필수 입력항목입니다.", "E999", "");
  335. return;
  336. }
  337. }
  338. var update = getGridUpdateData(grd_dutsumlist);
  339. if(update == ""){
  340. messageBox("업데이트 정보가 없습니다.", "E999", "");
  341. return 0;
  342. } else {
  343. model.setValue("/root/send/save/dutsumlist", update);
  344. if (submit("TXRPD03301")){
  345. messageBox("정상적으로 처리되었습니다.", "E999", "");
  346. btn_search.dispatch("DOMActivate");
  347. }
  348. }
  349. ]]>
  350. </script>
  351. </button>
  352. </group>
  353. </xhtml:body>
  354. </xhtml:html>