SMRWY02000_연말정산작업.xrw 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272
  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. <yyendtaxadsttrgtpsn>
  11. <yyendtaxadsttrgtpsnlist/>
  12. </yyendtaxadsttrgtpsn>
  13. </main>
  14. <send>
  15. <save>
  16. <yyendtaxadsttrgtpsnlist/>
  17. </save>
  18. <yyendtaxadsttrgtpsn>
  19. <calcyy/>
  20. <workym/>
  21. <grupjoblncd/>
  22. <emplno/>
  23. <emplnm/>
  24. <calcinst/>
  25. <retireyn>N</retireyn>
  26. </yyendtaxadsttrgtpsn>
  27. </send>
  28. <init/>
  29. <hidden>
  30. <temp/>
  31. </hidden>
  32. </root>
  33. </instance>
  34. <script type="javascript" ev:event="xforms-ready">
  35. <![CDATA[
  36. misfGridInit(grd_yyendtaxadsttrgtpsnlist);
  37. misfMsterDetailSet(grd_yyendtaxadsttrgtpsnlist,null, "TRRWY02001" ,"Y");
  38. //grd_yyendtaxadsttrgtpsnlist.fixedcellcheckbox(0, 1) = true;
  39. var nowdate = getCurrentDate();
  40. var yy = nowdate.substring(0,4);
  41. var mm = nowdate.substring(4,6);
  42. var yyyymm = nowdate.substring(0,6);
  43. if (mm == "01" || mm == "02") {
  44. yy = parseInt(yy) - 1;
  45. yyyymm = yy + "12";
  46. }
  47. ipt_calcyy.value =yy;
  48. ipt_workym.value = yyyymm;
  49. model.setValue(cmb_calcinst.attribute("ref"), getUserInfo("dutplceinstcd"));
  50. misfComboInstCdListMulti("cmb_calcinst",getCurrentDate(),"","N");
  51. misfComboComCdListMulti("R0059","cmb_grupjoblncd");
  52. misfGetUserAuth();
  53. if (DUTY_PAY_YN == "Y" ) {
  54. cmb_calcinst.disabled = false;
  55. }
  56. else {
  57. cmb_calcinst.disabled = true;
  58. }
  59. ]]>
  60. </script>
  61. <submission id="TRRWY02001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/yyendtaxadsttrgtpsn" resultref="/root/main/yyendtaxadsttrgtpsn"/>
  62. <submission id="TXRWY02001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/hidden/temp"/>
  63. <submission id="TXRWY02002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/yyendtaxadsttrgtpsn" resultref="/root/hidden/temp"/>
  64. </model>
  65. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  66. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  67. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  68. <script type="javascript" src="../../../com/batchinfoweb/js/ZSB001.js"/>
  69. <script type="javascript" src="../../../mis/yyendtaxadstweb/js/RWY001.js"/>
  70. <script type="javascript" src="../../../mis/paybaseinfomngtweb/js/RWC001.js"/>
  71. <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
  72. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  73. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  74. </xhtml:head>
  75. <xhtml:body>
  76. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  77. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">연말정산작업</caption>
  78. </group>
  79. <group id="group2" scroll="auto" style="left:0px; top:38; width:1195px; height:744px; ">
  80. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:10px; width:1195px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  81. <line id="line13" class="line_4" style="x1:1109px; y1:16px; x2:1109px; y2:38px; "/>
  82. <button id="btn_search" class="btn1_letter2" style="left:1124px; top:16px; width:56px; height:22px; ">
  83. <caption>조회</caption>
  84. <script type="javascript" ev:event="DOMActivate">
  85. <![CDATA[
  86. misfMsterDetailRetrieve();
  87. ]]>
  88. </script>
  89. </button>
  90. <caption id="caption1" class="tit_2" style="left:5px; top:55px; width:186px; height:14px; ">연말정산 대상자 List</caption>
  91. <line id="line1" class="line_1" style="x1:0px; y1:70px; x2:1191px; y2:70px; "/>
  92. <datagrid id="grd_yyendtaxadsttrgtpsnlist" nodeset="/root/main/yyendtaxadsttrgtpsn/yyendtaxadsttrgtpsnlist" caption="^사원번호^성명^주민번호^주민번호^기관^직군^부서^직위^직급^호봉^경리과확인여부^입사일자^퇴사일자^중도퇴직여부^정산기관^직군^소속부서코드^직위코드^직급코드^호봉코드^주민번호|^사원번호^성명^앞자리^뒷자리^기관^직군^부서^직위^직급^호봉^경리과확인여부^입사일자^퇴사일자^중도퇴직여부^정산기관^직군^소속부서코드^직위코드^직급코드^호봉코드^주민번호" colsep="^" colwidth="23, 68, 81, 80, 72, 128, 100, 122, 97, 60, 61, 43, 86, 89, 40, 56, 64, 88, 77, 64, 72, 64" dataheight="25" explorerbar="sort" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" tooltip="true" style="left:0px; top:75px; width:1191px; height:665px; ">
  93. <col checkvalue="Y,N" ref="selyn" type="checkbox" visibility="hidden"/>
  94. <col ref="emplno"/>
  95. <col ref="emplnm"/>
  96. <col ref="rregno1"/>
  97. <col ref="rregno2"/>
  98. <col ref="calcinstnm"/>
  99. <col ref="grupjoblnnm"/>
  100. <col ref="deptnm"/>
  101. <col ref="jobposnm"/>
  102. <col ref="jobgradnm"/>
  103. <col ref="payclsnm"/>
  104. <col checkvalue="Y,N" disabled="true" ref="actndeptqualyn" type="checkbox"/>
  105. <col disabled="true" ref="entcodd" type="inputdate"/>
  106. <col disabled="true" ref="retiredd" type="inputdate"/>
  107. <col checkvalue="Y,N" disabled="true" ref="retireyn" type="checkbox"/>
  108. <col ref="calcinst" visibility="hidden"/>
  109. <col ref="grupjoblncd" visibility="hidden"/>
  110. <col ref="deptcd" visibility="hidden"/>
  111. <col ref="jobposcd" visibility="hidden"/>
  112. <col ref="jobgradcd" visibility="hidden"/>
  113. <col ref="payclscd" visibility="hidden"/>
  114. <col ref="rregno" visibility="hidden"/>
  115. <col ref="rregno" visibility="hidden"/>
  116. <col ref="workym" visibility="hidden"/>
  117. <col ref="calcyy" visibility="hidden"/>
  118. </datagrid>
  119. <select1 id="cmb_calcinst" ref="/root/send/yyendtaxadsttrgtpsn/calcinst" class="combo_s_essential" appearance="minimal" style="left:380px; top:18px; width:125px; height:19px; ">
  120. <choices>
  121. <itemset>
  122. <label/>
  123. <value/>
  124. </itemset>
  125. </choices>
  126. </select1>
  127. <caption id="caption8" class="search_name" style="left:321px; top:18px; width:61px; height:17px; ">기관:</caption>
  128. <caption id="caption2" class="search_name" style="left:716px; top:18px; width:81px; height:17px; ">사원번호:</caption>
  129. <input id="ipt_calcyy" ref="/root/send/yyendtaxadsttrgtpsn/calcyy" class="input_s_essential" maxlength="4" style="left:84px; top:18px; width:51px; height:19px; "/>
  130. <caption id="caption3" class="search_name" style="left:5px; top:18px; width:84px; height:17px; ">기준년도:</caption>
  131. <input id="ipt_emplnm" ref="/root/send/yyendtaxadsttrgtpsn/emplnm" class="input_default" navindex="21" style="left:895px; top:18px; width:70px; height:19px; ">
  132. <script type="javascript" ev:event="onkeyup">
  133. <![CDATA[
  134. if (ipt_emplnm.currentText != null && ipt_emplnm.currentText != "" ) {
  135. inputEnterKey("ipt_emplnm", "xforms-value-changed");
  136. inputEnterKey("btn_search", "DOMActivate");
  137. }
  138. ]]>
  139. </script>
  140. <script type="javascript" ev:event="xforms-value-changed">
  141. <![CDATA[
  142. var recv_list = "emplno,emplnm";
  143. rpbfValidationCheck("EMPLNM", recv_list);
  144. model.refresh();
  145. ]]>
  146. </script>
  147. </input>
  148. <select1 id="rdo_retireyn" ref="/root/send/yyendtaxadsttrgtpsn/retireyn" visibility="hidden" overflow="visible" appearance="full" cols="2" style="left:976px; top:18px; width:119px; height:19px; border-style:solid; ">
  149. <choices>
  150. <item>
  151. <label>연말</label>
  152. <value>N</value>
  153. </item>
  154. <item>
  155. <label>중도퇴직</label>
  156. <value>Y</value>
  157. </item>
  158. </choices>
  159. </select1>
  160. <input id="ipt_emplno" ref="/root/send/yyendtaxadsttrgtpsn/emplno" class="input_default" navindex="20" style="left:800px; top:18px; width:69px; height:19px; ">
  161. <script type="javascript" ev:event="onkeyup">
  162. <![CDATA[
  163. if (ipt_emplno.currentText != null && ipt_emplno.currentText != "" ) {
  164. inputEnterKey("ipt_emplno", "xforms-value-changed");
  165. inputEnterKey("btn_search", "DOMActivate");
  166. }
  167. ]]>
  168. </script>
  169. <script type="javascript" ev:event="xforms-value-changed">
  170. <![CDATA[
  171. var recv_list = "emplno,emplnm";
  172. rpbfValidationCheck("EMPLNO", recv_list);
  173. model.refresh();
  174. ]]>
  175. </script>
  176. </input>
  177. <input id="ipt_workym" ref="/root/send/yyendtaxadsttrgtpsn/workym" class="input_s_essential" inputtype="date" format="yyyy-mm" style="left:232px; top:18px; width:83px; height:19px; "/>
  178. <caption id="caption4" class="search_name" style="left:150px; top:18px; width:104px; height:17px; ">정산년월:</caption>
  179. <button id="btn_emplsearch" class="icon_search" style="left:875px; top:18px; width:16px; height:16px; ">
  180. <caption/>
  181. <script type="javascript" ev:event="DOMActivate">
  182. <![CDATA[
  183. var recv_list = "emplno,emplnm";
  184. rpbfOpenPopUpList("SPRPB00101", ipt_emplno, recv_list,"","N");
  185. model.refresh();
  186. if (model.getValue(ipt_emplno.attribute("ref")).length > 0) {
  187. btn_search.dispatch("DOMActivate");
  188. }
  189. ]]>
  190. </script>
  191. </button>
  192. <select1 id="cmb_grupjoblncd" ref="/root/send/yyendtaxadsttrgtpsn/grupjoblncd" class="combo_s_essential" appearance="minimal" style="left:589px; top:18px; width:101px; height:19px; ">
  193. <choices>
  194. <itemset>
  195. <label/>
  196. <value/>
  197. </itemset>
  198. </choices>
  199. </select1>
  200. <caption id="caption7" class="search_name" style="left:530px; top:18px; width:66px; height:17px; ">직군:</caption>
  201. <button id="btn_allsel" class="btn2_letter4" visibility="hidden" style="left:942px; top:48px; width:64px; height:19px; ">
  202. <caption>전체선택</caption>
  203. <script type="javascript" ev:event="DOMActivate">
  204. <![CDATA[
  205. for (var i = grd_yyendtaxadsttrgtpsnlist.fixedRows; i < grd_yyendtaxadsttrgtpsnlist.rows; i++) {
  206. grd_yyendtaxadsttrgtpsnlist.valueMatrix(i, grd_yyendtaxadsttrgtpsnlist.colRef("selyn")) = "Y";
  207. grd_yyendtaxadsttrgtpsnlist.rowStatus(i) = 2;
  208. }
  209. ]]>
  210. </script>
  211. </button>
  212. <button id="btn_allselcan" class="btn2_letter6" visibility="hidden" style="left:1008px; top:48px; width:86px; height:19px; ">
  213. <caption>전체선택취소</caption>
  214. <script type="javascript" ev:event="DOMActivate">
  215. <![CDATA[
  216. for (var i = grd_yyendtaxadsttrgtpsnlist.fixedRows; i < grd_yyendtaxadsttrgtpsnlist.rows ; i++) {
  217. grd_yyendtaxadsttrgtpsnlist.valueMatrix(i, grd_yyendtaxadsttrgtpsnlist.colRef("selyn")) = "N";
  218. grd_yyendtaxadsttrgtpsnlist.clearStatus();
  219. }
  220. ]]>
  221. </script>
  222. </button>
  223. <button id="btn_saveexcel" class="btn2_letter4" style="left:1125px; top:48px; width:64px; height:19px; ">
  224. <caption>엑셀저장</caption>
  225. <script type="javascript" ev:event="DOMActivate">
  226. <![CDATA[
  227. var fileName = window.fileDialog ("save", ",", false, "excel", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  228. if (fileName != "")
  229. {
  230. grd_yyendtaxadsttrgtpsnlist.saveExcel(fileName);
  231. }
  232. ]]>
  233. </script>
  234. </button>
  235. </group>
  236. <group id="grp_btn" scroll="auto" style="left:0px; top:12; width:1195px; height:27px; ">
  237. <line id="line9" class="line_6" style="x1:0; y1:25; x2:1195; y2:25; "/>
  238. <button id="btn_save" class="btn4_letter4" style="left:1109px; top:3px; width:80px; height:22px; ">
  239. <caption>정산작업</caption>
  240. <script type="javascript" ev:event="DOMActivate">
  241. <![CDATA[
  242. submit("TXRWY02002");
  243. var curdate = getCurrentDate()
  244. zsbfOpenBatchLogPopup("yyendtaxadstmgr.YYEndTaxAdstBatch", curdate, curdate);
  245. // for (var i = grd_yyendtaxadsttrgtpsnlist.fixedRows; i < grd_yyendtaxadsttrgtpsnlist.rows; i++) {
  246. // if (grd_yyendtaxadsttrgtpsnlist.valueMatrix(i, grd_yyendtaxadsttrgtpsnlist.colRef("selyn")) == "Y") {
  247. // grd_yyendtaxadsttrgtpsnlist.rowStatus(i) = "2";
  248. // }
  249. // }
  250. //
  251. // misfSave("TXRWY02001");
  252. ]]>
  253. </script>
  254. </button>
  255. <button id="btn_clear" class="btn4_letter3" style="left:1039px; top:3px; width:68px; height:22px; ">
  256. <caption>초기화</caption>
  257. </button>
  258. </group>
  259. </xhtml:body>
  260. </xhtml:html>