SMRWR00100_퇴직자명단조회.xrw 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307
  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. <retireempl>
  11. <retireempllist/>
  12. </retireempl>
  13. </main>
  14. <send>
  15. <retireempl>
  16. <fromdd/>
  17. <todd/>
  18. <instcd/>
  19. <prfshipflag/>
  20. <jobgradcd/>
  21. <unitcd/>
  22. <emplno/>
  23. <jobgradnm/>
  24. <unitnm/>
  25. <emplnm/>
  26. </retireempl>
  27. <save>
  28. <retireempl>
  29. <retireempllist/>
  30. </retireempl>
  31. </save>
  32. </send>
  33. </root>
  34. </instance>
  35. <script type="javascript" ev:event="xforms-ready">
  36. <![CDATA[
  37. misfGridInit(grd_retireempllist);
  38. grd_retireempllist.fixedcellcheckbox(0, 1) = true;
  39. misfMsterDetailSet(grd_retireempllist, null, "TRRWR00101" ,"Y");
  40. var curdate = getCurrentDate();
  41. var dt = new Date(curdate.substr(0, 4), curdate.substr(4, 2)-1, 0);
  42. model.setValue(ipt_fromdd.attribute("ref") , curdate.substr(0, 6)-1 + "01");
  43. model.setValue(ipt_todd.attribute("ref") , (curdate.substr(0, 6)-1) + "" +dt.getDate());
  44. misfComboInstCdListMulti("cmb_instcd",getCurrentDate(),"","N");
  45. misfComboComCdListMulti("R0058","cmb_prfshipflag");
  46. //addComboItem( "cmb_instcd", "[-- 전체 --]", "%", "above");
  47. model.setValue(cmb_instcd.attribute("ref"), getUserInfo("dutplceinstcd"));
  48. addComboItem( "cmb_prfshipflag", "[-- 전체 --]", "%", "above");
  49. model.setValue(cmb_prfshipflag.attribute("ref"), "%");
  50. misfGetUserAuth();
  51. if (DUTY_PAY_YN == "Y" ) {
  52. cmb_instcd.disabled = false;
  53. }
  54. else {
  55. cmb_instcd.disabled = true;
  56. }
  57. model.refresh();
  58. model.setFocus("ipt_fromdd");
  59. ]]>
  60. </script>
  61. <submission id="TRRWR00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/retireempl" resultref="/root/main/retireempl"/>
  62. <submission id="TXRWR00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save/retireempl" resultref="/root/hidden/temp"/>
  63. </model>
  64. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  65. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  66. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  67. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  68. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  69. <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
  70. <script type="javascript" src="../../../mis/paybnusmngtweb/js/RWP001.js"/>
  71. </xhtml:head>
  72. <xhtml:body style="margin-left:8; margin-right:8; ">
  73. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  74. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">퇴직자 명단 조회</caption>
  75. </group>
  76. <group id="group2" scroll="auto" style="left:0px; top:38; width:1195px; height:744px; ">
  77. <line id="line9" class="line_1" style="x1:0px; y1:89px; x2:1193px; y2:89px; "/>
  78. <caption id="caption34" class="tit_2" style="left:6px; top:72px; width:186px; height:13px; ">퇴직자 명단 List</caption>
  79. <group id="grp_sea" style="left:0px; top:10px; width:1195px; height:55px; vertical-align:top; ">
  80. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:55px; background-color:#fffbf2; border-color:#ffd799; "/>
  81. <button id="btn_search" class="btn1_letter2" navindex="4" style="left:1124px; top:17px; width:56px; height:22px; text-align:left; ">
  82. <caption>조회</caption>
  83. <script type="javascript" ev:event="DOMActivate">
  84. <![CDATA[
  85. misfMsterDetailRetrieve();
  86. grd_retireempllist.subtotalPosition = "below";
  87. grd_retireempllist.subtotal("sum",-1 , grd_retireempllist.colRef("paytotamt"), "format:#,###; ", "background-color:#ffff99; font-weight:bold; ", 2, "합계");
  88. grd_retireempllist.subtotal("sum",-1 , grd_retireempllist.colRef("adjtpayamt"), "format:#,###; ", "background-color:#ffff99; font-weight:bold; ", 2, "합계");
  89. grd_retireempllist.subtotal("sum",-1 , grd_retireempllist.colRef("paynotaxamt"), "format:#,###; ", "background-color:#ffff99; font-weight:bold; ", 2, "합계");
  90. grd_retireempllist.subtotal("sum",-1 , grd_retireempllist.colRef("paytaxamt"), "format:#,###; ", "background-color:#ffff99; font-weight:bold; ", 2, "합계");
  91. grd_retireempllist.subtotal("sum",-1 , grd_retireempllist.colRef("paytaxamt2"), "format:#,###; ", "background-color:#ffff99; font-weight:bold; ", 2, "합계");
  92. ]]>
  93. </script>
  94. </button>
  95. <line id="line5" class="line_4" style="x1:1109px; y1:1px; x2:1109px; y2:55px; border-color:#ffe4bb; border-left-style:solid; "/>
  96. <input id="ipt_fromdd" ref="/root/send/retireempl/fromdd" class="input_default" inputtype="date" format="yyyy-mm-dd" style="left:60px; top:7px; width:101px; height:19px; text-align:center; vertical-align:middle; "/>
  97. <caption id="cap_payym" class="search_name" style="left:4px; top:8px; width:60px; height:17px; ">기간:</caption>
  98. <select1 id="cmb_instcd" ref="/root/send/retireempl/instcd" class="combo_s_essential" appearance="minimal" style="left:378px; top:7px; width:237px; height:19px; ">
  99. <choices>
  100. <itemset>
  101. <label/>
  102. <value/>
  103. </itemset>
  104. </choices>
  105. </select1>
  106. <caption id="cap_instcd" class="search_name" style="left:321px; top:8px; width:61px; height:17px; ">기관:</caption>
  107. <input id="ipt_deptnm" ref="/root/send/retireempl/unitnm" class="input_default" style="left:477px; top:30px; width:139px; height:19px; ">
  108. <script type="javascript" ev:event="xforms-value-changed">
  109. <![CDATA[
  110. misfValidationCheck("02", "", "unitcd,unitnm" );
  111. model.refresh();
  112. ]]>
  113. </script>
  114. </input>
  115. <button id="btn_deptcd" class="icon_search" style="left:459px; top:30px; width:16px; height:16px; ">
  116. <caption/>
  117. <script type="javascript" ev:event="DOMActivate">
  118. <![CDATA[
  119. var recv_list = "unitcd,unitnm";
  120. var instcd = cmb_instcd.value;
  121. rpbfOpenDeptCdHelp(ipt_deptcd,recv_list,instcd,"instcd");
  122. model.refresh();
  123. ]]>
  124. </script>
  125. </button>
  126. <input id="ipt_deptcd" ref="/root/send/retireempl/unitcd" class="input_default" style="left:378px; top:30px; width:79px; height:19px; ">
  127. <script type="javascript" ev:event="xforms-value-changed">
  128. <![CDATA[
  129. misfValidationCheck("02", "", "unitcd,unitnm" );
  130. model.refresh();
  131. ]]>
  132. </script>
  133. </input>
  134. <caption id="caption1" class="search_name" style="left:321px; top:31px; width:61px; height:17px; ">부서:</caption>
  135. <input id="ipt_emplnm" ref="/root/send/retireempl/emplnm" class="input_default" style="left:835px; top:30px; width:106px; height:19px; ">
  136. <script type="javascript" ev:event="onkeyup">
  137. <![CDATA[
  138. if (ipt_emplnm.currentText != null && ipt_emplnm.currentText != "" ) {
  139. inputEnterKey("ipt_emplnm", "xforms-value-changed");
  140. inputEnterKey("btn_search", "DOMActivate");
  141. }
  142. ]]>
  143. </script>
  144. <script type="javascript" ev:event="xforms-value-changed">
  145. <![CDATA[
  146. var recv_list = "emplno,emplnm" ;
  147. rpbfValidationCheck("EMPLNM", recv_list);
  148. model.refresh();
  149. ]]>
  150. </script>
  151. </input>
  152. <button id="btn_emplno" class="icon_search" style="left:814px; top:30px; width:16px; height:16px; ">
  153. <caption/>
  154. <script type="javascript" ev:event="DOMActivate">
  155. <![CDATA[
  156. var recv_list = "emplno,emplnm" ;
  157. rpbfOpenPopUpList("SPRPB00101", ipt_emplno, recv_list,"","N");
  158. model.refresh();
  159. if (model.getValue(ipt_emplno.attribute("ref")).length > 0) {
  160. btn_search.dispatch("DOMActivate");
  161. }
  162. ]]>
  163. </script>
  164. </button>
  165. <input id="ipt_emplno" ref="/root/send/retireempl/emplno" class="input_default" style="left:740px; top:30px; width:70px; height:19px; ">
  166. <script type="javascript" ev:event="onkeyup">
  167. <![CDATA[
  168. if (ipt_emplno.currentText != null && ipt_emplno.currentText != "" ) {
  169. inputEnterKey("ipt_emplno", "xforms-value-changed");
  170. inputEnterKey("btn_search", "DOMActivate");
  171. }
  172. ]]>
  173. </script>
  174. <script type="javascript" ev:event="xforms-value-changed">
  175. <![CDATA[
  176. var recv_list = "emplno,emplnm" ;
  177. rpbfValidationCheck("EMPLNO", recv_list);
  178. model.refresh();
  179. ]]>
  180. </script>
  181. </input>
  182. <caption id="caption2" class="search_name" style="left:658px; top:31px; width:81px; height:17px; ">사번:</caption>
  183. <input id="ipt_todd" ref="/root/send/retireempl/todd" class="input_default" inputtype="date" format="yyyy-mm-dd" style="left:180px; top:7px; width:101px; height:19px; text-align:center; vertical-align:middle; "/>
  184. <caption id="caption3" style="left:165px; top:7px; width:10px; height:19px; ">-</caption>
  185. <select1 id="cmb_prfshipflag" ref="/root/send/retireempl/prfshipflag" class="combo_s_essential" appearance="minimal" style="left:740px; top:7px; width:200px; height:19px; ">
  186. <choices>
  187. <itemset>
  188. <label/>
  189. <value/>
  190. </itemset>
  191. </choices>
  192. </select1>
  193. <caption id="caption4" class="search_name" style="left:658px; top:8px; width:81px; height:17px; ">급여분류:</caption>
  194. <caption id="caption5" class="search_name" style="left:4px; top:31px; width:60px; height:17px; ">직급:</caption>
  195. <input id="ipt_jobgradnm" ref="/root/send/retireempl/jobgradnm" class="input_default" style="left:162px; top:30px; width:118px; height:19px; ">
  196. <script type="javascript" ev:event="xforms-value-changed">
  197. <![CDATA[
  198. misfValidationCheck("03", "R0064", "jobgradcd,jobgradnm" );
  199. model.refresh();
  200. ]]>
  201. </script>
  202. </input>
  203. <button id="btn_jobgradcd" class="icon_search" style="left:144px; top:30px; width:16px; height:16px; ">
  204. <caption/>
  205. <script type="javascript" ev:event="DOMActivate">
  206. <![CDATA[
  207. var recv_list = "jobgradcd,jobgradnm";
  208. rpbfOpenComCdHelp(ipt_jobgradcd,"R0064", recv_list);
  209. model.refresh();
  210. ]]>
  211. </script>
  212. </button>
  213. <input id="ipt_jobgradcd" ref="/root/send/retireempl/jobgradcd" class="input_default" style="left:60px; top:30px; width:79px; height:19px; ">
  214. <script type="javascript" ev:event="xforms-value-changed">
  215. <![CDATA[
  216. misfValidationCheck("03", "R0064", "jobgradcd,jobgradnm" );
  217. model.refresh();
  218. ]]>
  219. </script>
  220. </input>
  221. </group>
  222. <datagrid id="grd_retireempllist" nodeset="/root/main/retireempl/retireempllist" caption="^사번^성명^주민번호^기관^부서^직위^직급^입사일^퇴사일^급여액^조정금액^비과세금액^소득세^주민세|^사번^성명^주민번호^기관^부서^직위^직급^입사일^퇴사일^급여액^조정금액^비과세금액^소득세^주민세" colsep="^" colwidth="21, 68, 75, 98, 110, 102, 90, 79, 88, 88, 95, 85, 91, 80, 76, 100" dataheight="25" explorerbar="sort" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:0px; top:95px; width:1193px; height:645px; ">
  223. <col checkvalue="Y,N" ref="selyn" type="checkbox"/>
  224. <col ref="emplno"/>
  225. <col ref="emplnm"/>
  226. <col ref="rregno"/>
  227. <col ref="instnm"/>
  228. <col ref="unitnm"/>
  229. <col ref="jobposnm"/>
  230. <col ref="jobgradnm"/>
  231. <col disabled="true" ref="entcodd" type="inputdate"/>
  232. <col disabled="true" ref="retiredd" type="inputdate"/>
  233. <col ref="paytotamt" format="(-)#,###" style="text-align:right; "/>
  234. <col ref="adjtpayamt" format="(-)#,###" style="text-align:right; vertical-align:middle; "/>
  235. <col ref="paynotaxamt" format="(-)#,###" style="text-align:right; "/>
  236. <col ref="paytaxamt" format="(-)#,###" style="text-align:right; "/>
  237. <col ref="paytaxamt2" format="(-)#,###" style="text-align:right; "/>
  238. <col ref="sumyn" visibility="hidden"/>
  239. <script type="javascript" ev:event="onaftersort">
  240. <![CDATA[
  241. grd_retireempllist.gridToInstance();
  242. ]]>
  243. </script>
  244. </datagrid>
  245. <button id="btn_saveexcel" class="btn2_letter4" style="left:1130px; top:69px; width:64px; height:19px; ">
  246. <caption>엑셀저장</caption>
  247. <script type="javascript" ev:event="DOMActivate">
  248. <![CDATA[
  249. var fileName = window.fileDialog ("save", ",", false, "excel", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  250. if (fileName != "")
  251. {
  252. grd_retireempllist.saveExcel(fileName);
  253. }
  254. ]]>
  255. </script>
  256. </button>
  257. </group>
  258. <group id="grp_btn" scroll="auto" style="left:0; top:12; width:1195px; height:27px; ">
  259. <line id="line4" class="line_6" style="x1:0; y1:25; x2:1195; y2:25; "/>
  260. <button id="btn_save" class="btn4_letter6" visibility="hidden" style="left:1085px; top:2px; width:104px; height:22px; ">
  261. <caption>급여자료생성</caption>
  262. <script type="javascript" ev:event="DOMActivate">
  263. <![CDATA[
  264. for (var i = grd_retireempllist.fixedRows; i < grd_retireempllist.rows; i++) {
  265. if (grd_retireempllist.valueMatrix(i, grd_retireempllist.colRef("sumyn")) == "Y" && grd_retireempllist.valueMatrix(i, grd_retireempllist.colRef("selyn")) == "Y") {
  266. var emplnm = grd_retireempllist.valueMatrix(i, grd_retireempllist.colRef("emplnm"));
  267. var rtn = messageBox("[" + emplnm + "]은(는) 급여자료가 생성 되어 있습니다.재생성", "Q004");
  268. if (rtn != 6) {
  269. grd_retireempllist.valueMatrix(i, grd_retireempllist.colRef("selyn")) = "N";
  270. }
  271. else {
  272. grd_retireempllist.rowStatus(i) = "2";
  273. }
  274. }
  275. else if (grd_retireempllist.valueMatrix(i, grd_retireempllist.colRef("sumyn")) == "N" && grd_retireempllist.valueMatrix(i, grd_retireempllist.colRef("selyn")) == "Y") {
  276. grd_retireempllist.rowStatus(i) = "2";
  277. }
  278. }
  279. misfSave("TXRWR00101");
  280. btn_search.dispatch("DOMActivate");
  281. ]]>
  282. </script>
  283. </button>
  284. </group>
  285. </xhtml:body>
  286. </xhtml:html>