123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
- <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">
- <xhtml:head>
- <xhtml:title>SMRWY00700_연말정산용 기부금지급명세서</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <endwnform>
- <endwnformlist>
- <entrregno/>
- <trdnm/>
- <kindcd/>
- <workym/>
- <payym/>
- <endwn/>
- <natitaxsvcprntyn/>
- <cmt/>
- <emplno/>
- <deduyy/>
- <famyrrgstno1/>
- <famyrrgstno2/>
- <famyrelanm/>
- <dedupsnseq/>
- <edwnseq/>
- </endwnformlist>
- <emplinfolist/>
- </endwnform>
- <endwnsum>
- <lawsum/>
- <limit10sum/>
- <limit50sum/>
- <politsum/>
- </endwnsum>
- </main>
- <send>
- <save>
- <endwnformlist/>
- </save>
- <endwnform>
- <deduyy/>
- <emplno/>
- <emplnm/>
- <workym/>
- <kindcd/>
- <dedukind/>
- </endwnform>
- </send>
- <init>
- <checkbox1>
- <label/>
- <value>Y</value>
- </checkbox1>
- </init>
- <temp/>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInitialize();
- famtsum();
- misfGridInit(grd_endwnformlist);
- misfMsterDetailSet(grd_endwnformlist,null,"TRRWY00701","Y");
- btn_save.disabled = !(checkAuth("X"));
- ipt_dedukind.value="edwnyn";
-
- misfComboComCdListMulti("R0214,R0214","com_kindcd,grd_endwnformlist.kindcd");
- ]]>
- </script>
- <submission id="TRRWY00701" ref="/root/send/endwnform" method="post" mediatype="application/x-www-form-urlencoded" resultref="/root/main/endwnform"/>
- <submission id="TXRWY00701" ref="/root/send/save" method="post" mediatype="application/x-www-form-urlencoded" resultref="/root/temp"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
- <script type="javascript" src="../../../mis/paybaseinfomngtweb/js/RWC001.js"/>
- <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript">
- <![CDATA[
- function fInitialize() {
- model.removeNodeset("/root/main/endwnform");
- model.resetInstanceNode("/root/send");
- model.resetInstanceNode("/root/endwnsum");
- model.resetInstanceNode("/root/main/endwnform/emplinfolist");
- var nowdate = getCurrentDate();
- var yy = nowdate.substring(0,4);
- model.refresh();
- ipt_deduyy.value =yy;
- }
- // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
- function famtsum() {
- var lawsum = 0;
- var limit10sum = 0;
- var limit50sum = 0;
- var politsum = 0;
- for (var i = 1 ; i < grd_endwnformlist.rows; i++) {
- //alert(grd_medpayformlist.valueMatrix(i, grd_medpayformlist.colRef("entrregno")));
-
- kindcd = grd_endwnformlist.valueMatrix(i, grd_endwnformlist.colRef("kindcd"));
- if (kindcd == "01") {
- lawsum = lawsum + parseInt(grd_endwnformlist.valueMatrix(i, grd_endwnformlist.colRef("endwn")));
- }else if(kindcd == "02"){
- limit10sum = limit10sum + parseInt(grd_endwnformlist.valueMatrix(i, grd_endwnformlist.colRef("endwn")));
- }else if(kindcd == "03"){
- limit50sum = limit50sum + parseInt(grd_endwnformlist.valueMatrix(i, grd_endwnformlist.colRef("endwn")));
- }else{
- politsum = politsum + parseInt(grd_endwnformlist.valueMatrix(i, grd_endwnformlist.colRef("endwn")));
- }
-
- //alert(genmed);
- //alert(handmed);
- }
-
- model.setValue(ipt_lawsum.attribute("ref"), lawsum);
- model.setValue(ipt_limit10sum.attribute("ref"), limit10sum);
- model.setValue(ipt_limit50sum.attribute("ref"), limit50sum);
- model.setValue(ipt_politsum.attribute("ref"), politsum);
-
- model.refresh();
- }
- function fsaveCheck(){
- for (var i = 1 ; i < grd_endwnformlist.rows; i++) {
- var payym = grd_endwnformlist.valueMatrix(i, grd_endwnformlist.colRef("payym"));
- var deduyy= grd_endwnformlist.valueMatrix(i, grd_endwnformlist.colRef("deduyy"));
- var deduyyyy=payym.substring(0,4);
- var status=grd_endwnformlist.rowStatus(i);
- if(status =="2"){
- if(payym != deduyyyy){
- messageBox("지급년도가 ","E004");
- return false;
- }
- }
-
- }
- return true;
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body>
- <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">기부금 지급명세서등록</caption>
- </group>
- <group id="group2" scroll="auto" style="left:0px; top:38; width:1195px; height:744px; ">
- <line id="line4" class="line_3" style="x1:0px; y1:733px; x2:1192px; y2:733px; "/>
- <line id="line3" class="line_3" style="x1:0px; y1:120px; x2:1195; y2:120px; "/>
- <line id="line206" class="line_2" style="x1:0px; y1:96px; x2:1195; y2:96px; "/>
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:10px; width:1195px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <button id="btn_search" class="btn1_letter2" style="left:1125px; top:16px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(!isRequiredControls("ipt_deduyy", "ipt_emplno"))return;
- misfMsterDetailRetrieve();
- famtsum();
- ]]>
- </script>
- </button>
- <line id="line13" class="line_4" style="x1:1110px; y1:16px; x2:1110px; y2:38px; "/>
- <caption id="caption278" class="tit_2" style="left:5px; top:54px; width:157px; height:13px; ">사원정보</caption>
- <line id="line207" class="line_1" style="x1:0px; y1:69px; x2:1195; y2:69px; "/>
- <line id="line1" class="line_1" style="x1:0px; y1:145px; x2:1195px; y2:145px; "/>
- <caption id="caption1" class="tit_2" style="left:5px; top:130px; width:130px; height:13px; ">기부금 지급명세서</caption>
- <button id="btn_grdaddendwnformlist" class="btn2_letter3" style="left:1086px; top:124px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(!isRequiredControls("ipt_deduyy", "ipt_emplno"))return;
-
- var deduyy=ipt_deduyy.value.substring(0,4);
- misfGridIUD(grd_endwnformlist, "A");
- ]]>
- </script>
- </button>
- <button id="btn_grddelendwnformlist" class="btn2_letter3" style="left:1141px; top:124px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfGridIUD(grd_endwnformlist, "D");
- ]]>
- </script>
- </button>
- <caption id="cap_deduyy" class="search_name" style="left:15px; top:19; width:94px; height:17px; ">기준년도 :</caption>
- <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; "/>
- <caption id="cap_emplno" class="search_name" style="left:440px; top:19; width:86px; height:17px; ">사원번호 :</caption>
- <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; ">
- <col ref="entrregno" type="input" maxlength="20" style="text-align:center; "/>
- <col ref="trdnm" type="input" imemode="hangul" style="text-align:center; "/>
- <col ref="kindcd" type="combo">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col ref="workym" type="inputdate" format="yyyy-mm"/>
- <col ref="payym" type="inputdate" format="yyyy-mm"/>
- <col ref="endwn" type="input" format="#,###" style="text-align:right; "/>
- <col ref="famyrrgstno1" disabled="true"/>
- <col ref="popup" type="inputbutton"/>
- <col ref="famyrrgstno2" disabled="true"/>
- <col ref="famyrelanm" disabled="true"/>
- <col ref="dedupsnseq" visibility="hidden"/>
- <col ref="edwnseq" visibility="hidden"/>
- <col ref="natitaxsvcprntyn" type="checkbox" checkvalue="Y,N" style="text-align:center; "/>
- <col ref="cmt" type="input" maxlength="100"/>
- <col ref="emplno" visibility="hidden"/>
- <col ref="retireyn" visibility="hidden"/>
- <col ref="deduyy" visibility="hidden"/>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- if (grd_endwnformlist.colAttribute(grd_endwnformlist.col,"ref") == "popup") {
- var recv_list = "famyrrgstno1,famyrrgstno2,famyrelanm,emplno,dedupsnseq,retireyn,deduyy,workym";
- misfOpenPopUpList("25", grd_endwnformlist,"",recv_list);
- model.refresh();
- }
- ]]>
- </script>
- </datagrid>
- <input id="ipt_emplnm" ref="/root/send/endwnform/emplnm" navindex="21" class="input_default" style="left:621px; top:18px; width:125px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var recv_list = "emplno,emplnm";
- rpbfValidationCheck("EMPLNM", recv_list);
- model.refresh();
- ]]>
- </script>
- </input>
- <input id="ipt_emplno" ref="/root/send/endwnform/emplno" navindex="20" class="input_default" style="left:526px; top:18px; width:69px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var recv_list = "emplno,emplnm";
- rpbfValidationCheck("EMPLNO", recv_list);
- model.refresh();
- ]]>
- </script>
- </input>
- <button id="btn_emplsearch" class="icon_search" style="left:601px; top:18px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var recv_list = "emplno,emplnm";
- rpbfOpenPopUpList("SPRPB00101", ipt_emplno, recv_list,"","N");
- model.refresh();
- ]]>
- </script>
- </button>
- <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; "/>
- <caption id="caption51" class="cell_1" style="left:688px; top:74px; width:70px; height:23px; text-align:left; vertical-align:middle; ">소속</caption>
- <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; "/>
- <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; "/>
- <caption id="caption74" class="cell_1" style="left:415px; top:74px; width:70px; height:23px; vertical-align:middle; ">주민번호</caption>
- <caption id="caption53" class="cell_1" style="left:415px; top:98px; width:70px; height:23px; vertical-align:middle; ">부서</caption>
- <caption id="caption42" class="cell_1" style="left:0px; top:74px; width:70px; height:23px; vertical-align:middle; ">사번</caption>
- <caption id="caption45" class="cell_1" style="left:0px; top:98px; width:70px; height:23px; vertical-align:middle; ">직위</caption>
- <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; "/>
- <caption id="caption59" class="search_n_b" style="left:576px; top:77px; width:12px; height:17px; font-weight:bolder; ">~</caption>
- <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; "/>
- <caption id="caption4" class="cell_1" style="left:237px; top:74px; width:70px; height:23px; vertical-align:middle; ">성명</caption>
- <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; "/>
- <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; "/>
- <caption id="caption5" class="cell_1" style="left:688px; top:98px; width:70px; height:23px; text-align:left; vertical-align:middle; ">임용일자</caption>
- <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; "/>
- <caption id="caption7" class="cell_1" style="left:943px; top:98px; width:70px; height:23px; text-align:left; vertical-align:middle; ">퇴직일자</caption>
- <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; "/>
- <caption id="caption8" class="cell_1" style="left:943px; top:74px; width:70px; height:23px; text-align:left; vertical-align:middle; ">직원분류</caption>
- <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; "/>
- <caption id="caption9" class="cell_1" style="left:237px; top:98px; width:70px; height:23px; vertical-align:middle; ">직급/호봉</caption>
- <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; "/>
- <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; "/>
- <caption id="caption10" class="search_name" style="left:755px; top:19; width:86px; height:17px; ">유형코드 :</caption>
- <select1 id="com_kindcd" ref="/root/send/endwnform/kindcd" appearance="minimal" style="left:840px; top:18px; width:125px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption2" class="tit_2" style="left:0px; top:691px; width:198px; height:13px; ">기부금지급명세서 합계</caption>
- <caption id="caption11" class="cell_1" style="left:0px; top:711px; width:80px; height:23px; vertical-align:middle; ">법정기부금</caption>
- <caption id="caption12" class="cell_1" style="left:247px; top:711px; width:80px; height:23px; vertical-align:middle; ">일정한도10%</caption>
- <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; "/>
- <line id="line2" class="line_1" style="x1:0px; y1:706px; x2:1192px; y2:706px; "/>
- <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; "/>
- <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; "/>
- <caption id="caption3" class="cell_1" style="left:495px; top:711px; width:80px; height:23px; vertical-align:middle; ">일정한도50%</caption>
- <caption id="caption13" class="cell_1" style="left:742px; top:711px; width:80px; height:23px; vertical-align:middle; ">정치자금</caption>
- <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; "/>
- <caption id="cap_workym" class="search_name" style="left:228px; top:19; width:94px; height:17px; ">작업년월 :</caption>
- <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; "/>
- <input id="ipt_dedukind" ref="/root/send/endwnform/dedukind" visibility="hidden" style="left:1070px; top:590px; width:90px; height:19px; "/>
- </group>
- <group id="grp_btn" scroll="auto" style="left:0px; top:12; width:1195px; height:27px; ">
- <button id="btn_save" class="btn4_letter2" style="left:1139px; top:3; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var updtdata = getGridUpdateData(grd_endwnformlist);
- if (updtdata == "" ) {
- messageBox("변경된 데이터가","I004");
- return;
- }
- if(!fsaveCheck())return;
- misfSave("TXRWY00701");
-
- ]]>
- </script>
- </button>
- <button id="btn_init" class="btn4_letter3" style="left:1069px; top:3; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var updtdata = getGridUpdateData(grd_endwnformlist);
- if (updtdata != "") {
- var ret = messageBox("그리드에 작업 중인 내용이 있습니다. 초기화 작업을","Q003");
- if (ret != 6) { // not OK
- return;
- }
- }
- misfGridInit(grd_endwnformlist);
- fInitialize();
- ]]>
- </script>
- </button>
- <line id="line9" class="line_6" style="x1:0; y1:25; x2:1195; y2:25; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|