SMRWY00700_연말정산용기부금지급명세서.xrw 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334
  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>SMRWY00700_연말정산용 기부금지급명세서</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <endwnform>
  11. <endwnformlist>
  12. <entrregno/>
  13. <trdnm/>
  14. <kindcd/>
  15. <workym/>
  16. <payym/>
  17. <endwn/>
  18. <natitaxsvcprntyn/>
  19. <cmt/>
  20. <emplno/>
  21. <deduyy/>
  22. <famyrrgstno1/>
  23. <famyrrgstno2/>
  24. <famyrelanm/>
  25. <dedupsnseq/>
  26. <edwnseq/>
  27. </endwnformlist>
  28. <emplinfolist/>
  29. </endwnform>
  30. <endwnsum>
  31. <lawsum/>
  32. <limit10sum/>
  33. <limit50sum/>
  34. <politsum/>
  35. </endwnsum>
  36. </main>
  37. <send>
  38. <save>
  39. <endwnformlist/>
  40. </save>
  41. <endwnform>
  42. <deduyy/>
  43. <emplno/>
  44. <emplnm/>
  45. <workym/>
  46. <kindcd/>
  47. <dedukind/>
  48. </endwnform>
  49. </send>
  50. <init>
  51. <checkbox1>
  52. <label/>
  53. <value>Y</value>
  54. </checkbox1>
  55. </init>
  56. <temp/>
  57. </root>
  58. </instance>
  59. <script type="javascript" ev:event="xforms-ready">
  60. <![CDATA[
  61. fInitialize();
  62. famtsum();
  63. misfGridInit(grd_endwnformlist);
  64. misfMsterDetailSet(grd_endwnformlist,null,"TRRWY00701","Y");
  65. btn_save.disabled = !(checkAuth("X"));
  66. ipt_dedukind.value="edwnyn";
  67. misfComboComCdListMulti("R0214,R0214","com_kindcd,grd_endwnformlist.kindcd");
  68. ]]>
  69. </script>
  70. <submission id="TRRWY00701" ref="/root/send/endwnform" method="post" mediatype="application/x-www-form-urlencoded" resultref="/root/main/endwnform"/>
  71. <submission id="TXRWY00701" ref="/root/send/save" method="post" mediatype="application/x-www-form-urlencoded" resultref="/root/temp"/>
  72. </model>
  73. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  74. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  75. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  76. <script type="javascript" src="../../../mis/paybaseinfomngtweb/js/RWC001.js"/>
  77. <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
  78. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  79. <script type="javascript">
  80. <![CDATA[
  81. function fInitialize() {
  82. model.removeNodeset("/root/main/endwnform");
  83. model.resetInstanceNode("/root/send");
  84. model.resetInstanceNode("/root/endwnsum");
  85. model.resetInstanceNode("/root/main/endwnform/emplinfolist");
  86. var nowdate = getCurrentDate();
  87. var yy = nowdate.substring(0,4);
  88. model.refresh();
  89. ipt_deduyy.value =yy;
  90. }
  91. // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
  92. function famtsum() {
  93. var lawsum = 0;
  94. var limit10sum = 0;
  95. var limit50sum = 0;
  96. var politsum = 0;
  97. for (var i = 1 ; i < grd_endwnformlist.rows; i++) {
  98. //alert(grd_medpayformlist.valueMatrix(i, grd_medpayformlist.colRef("entrregno")));
  99. kindcd = grd_endwnformlist.valueMatrix(i, grd_endwnformlist.colRef("kindcd"));
  100. if (kindcd == "01") {
  101. lawsum = lawsum + parseInt(grd_endwnformlist.valueMatrix(i, grd_endwnformlist.colRef("endwn")));
  102. }else if(kindcd == "02"){
  103. limit10sum = limit10sum + parseInt(grd_endwnformlist.valueMatrix(i, grd_endwnformlist.colRef("endwn")));
  104. }else if(kindcd == "03"){
  105. limit50sum = limit50sum + parseInt(grd_endwnformlist.valueMatrix(i, grd_endwnformlist.colRef("endwn")));
  106. }else{
  107. politsum = politsum + parseInt(grd_endwnformlist.valueMatrix(i, grd_endwnformlist.colRef("endwn")));
  108. }
  109. //alert(genmed);
  110. //alert(handmed);
  111. }
  112. model.setValue(ipt_lawsum.attribute("ref"), lawsum);
  113. model.setValue(ipt_limit10sum.attribute("ref"), limit10sum);
  114. model.setValue(ipt_limit50sum.attribute("ref"), limit50sum);
  115. model.setValue(ipt_politsum.attribute("ref"), politsum);
  116. model.refresh();
  117. }
  118. function fsaveCheck(){
  119. for (var i = 1 ; i < grd_endwnformlist.rows; i++) {
  120. var payym = grd_endwnformlist.valueMatrix(i, grd_endwnformlist.colRef("payym"));
  121. var deduyy= grd_endwnformlist.valueMatrix(i, grd_endwnformlist.colRef("deduyy"));
  122. var deduyyyy=payym.substring(0,4);
  123. var status=grd_endwnformlist.rowStatus(i);
  124. if(status =="2"){
  125. if(payym != deduyyyy){
  126. messageBox("지급년도가 ","E004");
  127. return false;
  128. }
  129. }
  130. }
  131. return true;
  132. }
  133. ]]>
  134. </script>
  135. </xhtml:head>
  136. <xhtml:body>
  137. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  138. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">기부금 지급명세서등록</caption>
  139. </group>
  140. <group id="group2" scroll="auto" style="left:0px; top:38; width:1195px; height:744px; ">
  141. <line id="line4" class="line_3" style="x1:0px; y1:733px; x2:1192px; y2:733px; "/>
  142. <line id="line3" class="line_3" style="x1:0px; y1:120px; x2:1195; y2:120px; "/>
  143. <line id="line206" class="line_2" style="x1:0px; y1:96px; x2:1195; y2:96px; "/>
  144. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:10px; width:1195px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  145. <button id="btn_search" class="btn1_letter2" style="left:1125px; top:16px; width:56px; height:22px; ">
  146. <caption>조회</caption>
  147. <script type="javascript" ev:event="DOMActivate">
  148. <![CDATA[
  149. if(!isRequiredControls("ipt_deduyy", "ipt_emplno"))return;
  150. misfMsterDetailRetrieve();
  151. famtsum();
  152. ]]>
  153. </script>
  154. </button>
  155. <line id="line13" class="line_4" style="x1:1110px; y1:16px; x2:1110px; y2:38px; "/>
  156. <caption id="caption278" class="tit_2" style="left:5px; top:54px; width:157px; height:13px; ">사원정보</caption>
  157. <line id="line207" class="line_1" style="x1:0px; y1:69px; x2:1195; y2:69px; "/>
  158. <line id="line1" class="line_1" style="x1:0px; y1:145px; x2:1195px; y2:145px; "/>
  159. <caption id="caption1" class="tit_2" style="left:5px; top:130px; width:130px; height:13px; ">기부금 지급명세서</caption>
  160. <button id="btn_grdaddendwnformlist" class="btn2_letter3" style="left:1086px; top:124px; width:53px; height:19px; ">
  161. <caption>행추가</caption>
  162. <script type="javascript" ev:event="DOMActivate">
  163. <![CDATA[
  164. if(!isRequiredControls("ipt_deduyy", "ipt_emplno"))return;
  165. var deduyy=ipt_deduyy.value.substring(0,4);
  166. misfGridIUD(grd_endwnformlist, "A");
  167. ]]>
  168. </script>
  169. </button>
  170. <button id="btn_grddelendwnformlist" class="btn2_letter3" style="left:1141px; top:124px; width:53px; height:19px; ">
  171. <caption>행삭제</caption>
  172. <script type="javascript" ev:event="DOMActivate">
  173. <![CDATA[
  174. misfGridIUD(grd_endwnformlist, "D");
  175. ]]>
  176. </script>
  177. </button>
  178. <caption id="cap_deduyy" class="search_name" style="left:15px; top:19; width:94px; height:17px; ">기준년도 :</caption>
  179. <input id="ipt_deduyy" ref="/root/send/endwnform/deduyy" class="input_s_essential" inputtype="date" format="yyyy" style="left:100px; top:18px; width:100px; height:19px; "/>
  180. <caption id="cap_emplno" class="search_name" style="left:440px; top:19; width:86px; height:17px; ">사원번호 :</caption>
  181. <datagrid id="grd_endwnformlist" nodeset="/root/main/endwnform/endwnformlist" caption="사업자등록번호^상호^유형코드^작업년월^지급년월^지급금액^주민번호^주민번호^주민번호^관계^공제자순번^순번^국세청출력여부^비고^사번^퇴직^년도^지급년도|사업자등록번호^상호^유형코드^작업년월^지급년월^지급금액^앞자리^앞자리^뒷자리^관계^공제자순번^순번^국세청출력여부^비고^사번^퇴직^년도^지급년도" colwidth="97, 144, 133, 83, 81, 95, 74, 17, 78, 68, 35, 28, 99, 196, 35, 33, 33" dataheight="25" ellipsis="true" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" colsep="^" tooltip="true" style="left:0px; top:150px; width:1195px; height:531px; ">
  182. <col ref="entrregno" type="input" maxlength="20" style="text-align:center; "/>
  183. <col ref="trdnm" type="input" imemode="hangul" style="text-align:center; "/>
  184. <col ref="kindcd" type="combo">
  185. <choices>
  186. <itemset>
  187. <label/>
  188. <value/>
  189. </itemset>
  190. </choices>
  191. </col>
  192. <col ref="workym" type="inputdate" format="yyyy-mm"/>
  193. <col ref="payym" type="inputdate" format="yyyy-mm"/>
  194. <col ref="endwn" type="input" format="#,###" style="text-align:right; "/>
  195. <col ref="famyrrgstno1" disabled="true"/>
  196. <col ref="popup" type="inputbutton"/>
  197. <col ref="famyrrgstno2" disabled="true"/>
  198. <col ref="famyrelanm" disabled="true"/>
  199. <col ref="dedupsnseq" visibility="hidden"/>
  200. <col ref="edwnseq" visibility="hidden"/>
  201. <col ref="natitaxsvcprntyn" type="checkbox" checkvalue="Y,N" style="text-align:center; "/>
  202. <col ref="cmt" type="input" maxlength="100"/>
  203. <col ref="emplno" visibility="hidden"/>
  204. <col ref="retireyn" visibility="hidden"/>
  205. <col ref="deduyy" visibility="hidden"/>
  206. <script type="javascript" ev:event="onbuttonclick">
  207. <![CDATA[
  208. if (grd_endwnformlist.colAttribute(grd_endwnformlist.col,"ref") == "popup") {
  209. var recv_list = "famyrrgstno1,famyrrgstno2,famyrelanm,emplno,dedupsnseq,retireyn,deduyy,workym";
  210. misfOpenPopUpList("25", grd_endwnformlist,"",recv_list);
  211. model.refresh();
  212. }
  213. ]]>
  214. </script>
  215. </datagrid>
  216. <input id="ipt_emplnm" ref="/root/send/endwnform/emplnm" navindex="21" class="input_default" style="left:621px; top:18px; width:125px; height:19px; ">
  217. <script type="javascript" ev:event="xforms-value-changed">
  218. <![CDATA[
  219. var recv_list = "emplno,emplnm";
  220. rpbfValidationCheck("EMPLNM", recv_list);
  221. model.refresh();
  222. ]]>
  223. </script>
  224. </input>
  225. <input id="ipt_emplno" ref="/root/send/endwnform/emplno" navindex="20" class="input_default" style="left:526px; top:18px; width:69px; height:19px; ">
  226. <script type="javascript" ev:event="xforms-value-changed">
  227. <![CDATA[
  228. var recv_list = "emplno,emplnm";
  229. rpbfValidationCheck("EMPLNO", recv_list);
  230. model.refresh();
  231. ]]>
  232. </script>
  233. </input>
  234. <button id="btn_emplsearch" class="icon_search" style="left:601px; top:18px; width:16px; height:16px; ">
  235. <caption/>
  236. <script type="javascript" ev:event="DOMActivate">
  237. <![CDATA[
  238. var recv_list = "emplno,emplnm";
  239. rpbfOpenPopUpList("SPRPB00101", ipt_emplno, recv_list,"","N");
  240. model.refresh();
  241. ]]>
  242. </script>
  243. </button>
  244. <input id="ipt_deptnm" ref="/root/main/endwnform/emplinfolist/deptnm" navindex="33" class="input_default" disabled="true" style="left:487px; top:100px; width:199px; height:19px; "/>
  245. <caption id="caption51" class="cell_1" style="left:688px; top:74px; width:70px; height:23px; text-align:left; vertical-align:middle; ">소속</caption>
  246. <input id="ipt_famyrrgstno1" ref="/root/main/endwnform/emplinfolist/rregno1" navindex="29" class="input_essential" disabled="true" style="left:487px; top:76px; width:88px; height:19px; "/>
  247. <input id="ipt_famyrrgstno2" ref="/root/main/endwnform/emplinfolist/rregno2" navindex="30" class="input_essential" disabled="true" style="left:591px; top:76px; width:95px; height:19px; "/>
  248. <caption id="caption74" class="cell_1" style="left:415px; top:74px; width:70px; height:23px; vertical-align:middle; ">주민번호</caption>
  249. <caption id="caption53" class="cell_1" style="left:415px; top:98px; width:70px; height:23px; vertical-align:middle; ">부서</caption>
  250. <caption id="caption42" class="cell_1" style="left:0px; top:74px; width:70px; height:23px; vertical-align:middle; ">사번</caption>
  251. <caption id="caption45" class="cell_1" style="left:0px; top:98px; width:70px; height:23px; vertical-align:middle; ">직위</caption>
  252. <input id="ipt_jobposnm" ref="/root/main/endwnform/emplinfolist/jobposnm" navindex="45" class="input_default" disabled="true" style="left:72px; top:100px; width:163px; height:19px; "/>
  253. <caption id="caption59" class="search_n_b" style="left:576px; top:77px; width:12px; height:17px; font-weight:bolder; ">~</caption>
  254. <input id="ipt_emplno2" ref="/root/main/endwnform/emplinfolist/emplno" navindex="20" class="input_default" disabled="true" style="left:72px; top:76px; width:163px; height:19px; "/>
  255. <caption id="caption4" class="cell_1" style="left:237px; top:74px; width:70px; height:23px; vertical-align:middle; ">성명</caption>
  256. <input id="ipt_emplnm2" ref="/root/main/endwnform/emplinfolist/emplnm" navindex="21" class="input_default" disabled="true" style="left:309px; top:76px; width:104px; height:19px; "/>
  257. <input id="ipt_instnm" ref="/root/main/endwnform/emplinfolist/instnm" navindex="30" class="input_essential" disabled="true" style="left:760px; top:76px; width:181px; height:19px; "/>
  258. <caption id="caption5" class="cell_1" style="left:688px; top:98px; width:70px; height:23px; text-align:left; vertical-align:middle; ">임용일자</caption>
  259. <input id="ipt_entcodd" ref="/root/main/endwnform/emplinfolist/entcodd" navindex="30" class="input_essential" disabled="true" inputtype="date" style="left:760px; top:100px; width:181px; height:19px; "/>
  260. <caption id="caption7" class="cell_1" style="left:943px; top:98px; width:70px; height:23px; text-align:left; vertical-align:middle; ">퇴직일자</caption>
  261. <input id="ipt_retiredd" ref="/root/main/endwnform/emplinfolist/retiredd" navindex="30" class="input_essential" disabled="true" inputtype="date" style="left:1015px; top:100px; width:179px; height:19px; "/>
  262. <caption id="caption8" class="cell_1" style="left:943px; top:74px; width:70px; height:23px; text-align:left; vertical-align:middle; ">직원분류</caption>
  263. <input id="ipt_grupjoblnnm" ref="/root/main/endwnform/emplinfolist/grupjoblnnm" navindex="30" class="input_essential" disabled="true" style="left:1015px; top:76px; width:179px; height:19px; "/>
  264. <caption id="caption9" class="cell_1" style="left:237px; top:98px; width:70px; height:23px; vertical-align:middle; ">직급/호봉</caption>
  265. <input id="ipt_ojobgradnm" ref="/root/main/endwnform/emplinfolist/ojobgradnm" navindex="33" class="input_default" disabled="true" style="left:309px; top:100px; width:54px; height:19px; "/>
  266. <input id="ipt_payclsnm" ref="/root/main/endwnform/emplinfolist/payclsnm" navindex="33" class="input_default" disabled="true" style="left:366px; top:100px; width:47px; height:19px; "/>
  267. <caption id="caption10" class="search_name" style="left:755px; top:19; width:86px; height:17px; ">유형코드 :</caption>
  268. <select1 id="com_kindcd" ref="/root/send/endwnform/kindcd" appearance="minimal" style="left:840px; top:18px; width:125px; height:19px; ">
  269. <choices>
  270. <itemset>
  271. <label/>
  272. <value/>
  273. </itemset>
  274. </choices>
  275. </select1>
  276. <caption id="caption2" class="tit_2" style="left:0px; top:691px; width:198px; height:13px; ">기부금지급명세서 합계</caption>
  277. <caption id="caption11" class="cell_1" style="left:0px; top:711px; width:80px; height:23px; vertical-align:middle; ">법정기부금</caption>
  278. <caption id="caption12" class="cell_1" style="left:247px; top:711px; width:80px; height:23px; vertical-align:middle; ">일정한도10%</caption>
  279. <input id="ipt_lawsum" ref="/root/main/endwnsum/lawsum" navindex="20" class="input_default" disabled="true" format="#,###" style="left:82px; top:713px; width:163px; height:19px; text-align:right; vertical-align:middle; "/>
  280. <line id="line2" class="line_1" style="x1:0px; y1:706px; x2:1192px; y2:706px; "/>
  281. <input id="ipt_limit10sum" ref="/root/main/endwnsum/limit10sum" navindex="45" class="input_default" disabled="true" format="#,###" style="left:329px; top:713px; width:163px; height:19px; text-align:right; vertical-align:middle; "/>
  282. <input id="ipt_limit50sum" ref="/root/main/endwnsum/limit50sum" navindex="45" class="input_default" disabled="true" format="#,###" style="left:577px; top:713px; width:163px; height:19px; text-align:right; vertical-align:middle; "/>
  283. <caption id="caption3" class="cell_1" style="left:495px; top:711px; width:80px; height:23px; vertical-align:middle; ">일정한도50%</caption>
  284. <caption id="caption13" class="cell_1" style="left:742px; top:711px; width:80px; height:23px; vertical-align:middle; ">정치자금</caption>
  285. <input id="ipt_politsum" ref="/root/main/endwnsum/politsum" navindex="45" class="input_default" disabled="true" format="#,###" style="left:824px; top:713px; width:163px; height:19px; text-align:right; vertical-align:middle; "/>
  286. <caption id="cap_workym" class="search_name" style="left:228px; top:19; width:94px; height:17px; ">작업년월 :</caption>
  287. <input id="ipt_workym" ref="/root/send/endwnform/workym" class="input_s_essential" inputtype="date" format="yyyy-mm" style="left:314px; top:18px; width:100px; height:19px; "/>
  288. <input id="ipt_dedukind" ref="/root/send/endwnform/dedukind" visibility="hidden" style="left:1070px; top:590px; width:90px; height:19px; "/>
  289. </group>
  290. <group id="grp_btn" scroll="auto" style="left:0px; top:12; width:1195px; height:27px; ">
  291. <button id="btn_save" class="btn4_letter2" style="left:1139px; top:3; width:56px; height:22px; ">
  292. <caption>저장</caption>
  293. <script type="javascript" ev:event="DOMActivate">
  294. <![CDATA[
  295. var updtdata = getGridUpdateData(grd_endwnformlist);
  296. if (updtdata == "" ) {
  297. messageBox("변경된 데이터가","I004");
  298. return;
  299. }
  300. if(!fsaveCheck())return;
  301. misfSave("TXRWY00701");
  302. ]]>
  303. </script>
  304. </button>
  305. <button id="btn_init" class="btn4_letter3" style="left:1069px; top:3; width:68px; height:22px; ">
  306. <caption>초기화</caption>
  307. <script type="javascript" ev:event="DOMActivate">
  308. <![CDATA[
  309. var updtdata = getGridUpdateData(grd_endwnformlist);
  310. if (updtdata != "") {
  311. var ret = messageBox("그리드에 작업 중인 내용이 있습니다. 초기화 작업을","Q003");
  312. if (ret != 6) { // not OK
  313. return;
  314. }
  315. }
  316. misfGridInit(grd_endwnformlist);
  317. fInitialize();
  318. ]]>
  319. </script>
  320. </button>
  321. <line id="line9" class="line_6" style="x1:0; y1:25; x2:1195; y2:25; "/>
  322. </group>
  323. </xhtml:body>
  324. </xhtml:html>