123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.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>소득자 관리</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <list>
- <incmpsnlist/>
- </list>
- <staffinfo>
- <staffinfolist>
- <name/>
- <staffgb/>
- <staffdd/>
- </staffinfolist>
- </staffinfo>
- </main>
- <init>
- <refcond>
- <label>소득자명</label>
- <value>name</value>
- <label>주민등록번호</label>
- <value>code</value>
- </refcond>
- <R0282list>
- <R0282>
- <cdnm/>
- <cdid/>
- </R0282>
- </R0282list>
- <R0278list>
- <R0278>
- <cdnm/>
- <cdid/>
- </R0278>
- </R0278list>
- <R0279list>
- <R0279>
- <cdnm/>
- <cdid/>
- </R0279>
- </R0279list>
- <R0001list>
- <R0001>
- <cdnm/>
- <cdid/>
- </R0001>
- </R0001list>
- </init>
- <send>
- <retrnm/>
- <refcond/>
- <groupid/>
- <rrgstno/>
- </send>
- <target/>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInit();
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- function fInit()
- {
- // 2011.09.26 cyw 해당실무자만이 메뉴접근 가능하도록 수정.
- misfComboComCdList("030R0018",cmb_gruptype);
- var cnt = getNodesetCount("/root/init/cmb_gruptype/comcodelist");
- var chk = 0;
- for(var i = 1; i <= cnt; i++ ){
- if( model.getValue("/root/init/cmb_gruptype/comcodelist[" + i + "]/cdid") == getUserId() ){
- chk++;
- }
- }
-
- if( chk > 0 ){
- group3.disabled = false;
- }else{
- group3.disabled = true;
- messageBox("해당 화면에 권한이 없습니다.", "C000");
- }
-
- zbcfGetCodeList(new Array("R0282","R0278","R0279","R0001"), new Array("/root/init/R0282list","/root/init/R0278list","/root/init/R0279list","/root/init/R0001list"));
-
- rdo_refcond.select(0);
- model.removeNode("/root/main/list/incmpsnlist");
-
- misfMsterDetailSet(grd_incmpsnlist, null, "TRRAC90901", "N");
-
- if(model.getValue("/root/target/defaultvalue/name") != "" && model.getValue("/root/target/defaultvalue/name") != null)
- {
- model.setValue("/root/send/retrnm", model.getValue("/root/target/defaultvalue/name"));
- model.setValue("/root/send/refcond", "name");
- misfMsterDetailRetrieve();
- }
- else if(model.getValue("/root/target/defaultvalue/code") != "" && model.getValue("/root/target/defaultvalue/code") != null)
- {
- model.setValue("/root/send/retrnm", model.getValue("/root/target/defaultvalue/code"));
- model.setValue("/root/send/refcond", "code");
- misfMsterDetailRetrieve();
- }
- else
- {
- model.copyNode("/root/main/list","/root/target/validation");
-
- model.refresh();
- }
-
- model.setFocus("ipt_refcond");
-
- model.refresh();
- }
-
- function fOpenPopupZipHelp(pControl, pInstance)
- {
- //04 우편번호 Helper
- misfOpenPopUpList("04", pControl, "", pInstance);
- var sZipcd = model.getValue("/root/main/list/incmpsnlist [" + grd_incmpsnlist.row + "]/zipcd1") + '-' + model.getValue("/root/main/list/incmpsnlist [" + grd_incmpsnlist.row + "]/zipcd2");
- model.setValue("/root/main/list/incmpsnlist [" + grd_incmpsnlist.row + "]/zipcd", sZipcd);
- model.refresh();
- }
- ]]>
- </script>
- <submission id="TRRAC90901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list"/>
- <submission id="TRRAC90902" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/staffinfo"/>
- <submission id="TXRAC90901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata/incmpsnlist" resultref="/root/hidden"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- </xhtml:head>
- <xhtml:body pagewidth="1211" pageheight="784" guideline="1,1193;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group3" scroll="auto" style="left:8px; top:0px; width:1185px; height:670px; ">
- <group id="group2" style="left:0px; top:5px; width:1185px; height:35px; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1185px; height:35px; "/>
- <input id="ipt_refcond" ref="/root/send/retrnm" class="input_s_essential" style="left:360px; top:8px; width:148px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == 13)
- {
- ipt_refcond.value = ipt_refcond.currentText;
-
- btn_search.dispatch("DOMActivate");
- }
-
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- if(ipt_refcond.value != "")
- {
- btn_search.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </input>
- <button id="btn_search" class="btn1_letter2" style="left:1114px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- misfMsterDetailRetrieve();
-
- if(instance1.selectNodes("/root/main/list/incmpsnlist").length == 0)
- {
- messageBox("조회된 내용이", "I004");
- }
- ]]>
- </script>
- </button>
- <line id="line13" class="line_4" style="x1:1029px; y1:5px; x2:1029px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
- <caption id="caption2" class="search_name" style="left:274px; top:9px; width:86px; height:17px; ">조회조건 :</caption>
- <caption id="caption3" class="search_name" style="left:15; top:9px; width:86px; height:17px; ">조회조건 :</caption>
- <select1 id="rdo_refcond" ref="/root/send/refcond" class="radio_search" appearance="full" cols="2" overflow="visible" style="left:100px; top:8px; width:148px; height:20px; border-style:solid; ">
- <choices>
- <itemset nodeset="/root/init/refcond">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- model.setFocus("ipt_refcond");
- ]]>
- </script>
- </select1>
- <button id="btn_save" class="btn4_letter2" style="left:1047px; top:7px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var updtdata = getGridUpdateData(grd_incmpsnlist);
-
- model.makeValue("/root/send/savedata/incmpsnlist", updtdata);
-
- submit("TXRAC90901");
-
- misfMsterDetailRetrieve();
-
- ]]>
- </script>
- </button>
- </group>
- <caption id="caption1" class="tit_2" style="left:5px; top:49px; width:145px; height:14px; ">소득자리스트</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:64px; x2:1184; y2:64px; "/>
- <datagrid id="grd_incmpsnlist" nodeset="/root/main/list/incmpsnlist" caption="주민등록번호^성명^직원여부^일자^내외국인구분^거주자구분^거주지국^소득자구분^업종구분^소득구분^사업자등록번호^상호^우편번호^^^^주소^상세주소^전화번호^이메일주소^여권번호^계좌번호^은행코드^예금주^비고" colsep="^" colwidth="110, 70, 55, 76, 70, 70, 90, 70, 90, 71, 106, 112, 75, 0, 0, 0, 170, 120, 90, 120, 110, 151, 120, 106, 180" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:0px; top:69px; width:1185px; height:576px; ">
- <col ref="rrgstno" type="input" format="999999-9999999" style="text-align:center; "/>
- <col ref="name" type="input" style="text-align:center; "/>
- <col ref="staffgb" style="text-align:center; "/>
- <col ref="staffdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="ionatiflag" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>내국인</label>
- <value>1</value>
- </item>
- <item>
- <label>외국인</label>
- <value>9</value>
- </item>
- </choices>
- </col>
- <col ref="residentflag" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>거주자</label>
- <value>1</value>
- </item>
- <item>
- <label>비거주자</label>
- <value>2</value>
- </item>
- </choices>
- </col>
- <col ref="residncnati" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/R0282list/R0282">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="incmpsnflag" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>사업자</label>
- <value>1</value>
- </item>
- <item>
- <label>개인</label>
- <value>2</value>
- </item>
- </choices>
- </col>
- <col ref="induflag" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/R0278list/R0278">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="incmflag" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/R0279list/R0279">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="entrregno" type="input" format="999-99-99999" style="text-align:center; "/>
- <col ref="custnm" type="input" style="text-align:center; "/>
- <col ref="zipcd" type="inputbutton" style="text-align:center; "/>
- <col ref="zipcd1" type="input" visibility="hidden"/>
- <col ref="zipcd2" type="input" visibility="hidden"/>
- <col ref="zipcdseqno" type="input" visibility="hidden"/>
- <col ref="supaddr" type="input" style="text-align:left; "/>
- <col ref="infaddr" type="input" style="text-align:left; "/>
- <col ref="cntctel" type="input" style="text-align:center; "/>
- <col ref="emailaddr" type="input" style="text-align:center; "/>
- <col ref="passportno" type="input" style="text-align:center; "/>
- <col ref="aactno" type="input" style="text-align:center; "/>
- <col ref="bankcd" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/R0001list/R0001">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="depor" type="input" style="text-align:center; "/>
- <col ref="cmt" type="input" style="text-align:left; "/>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- if(grd_incmpsnlist.col == grd_incmpsnlist.colRef("zipcd")) {
- fOpenPopupZipHelp(grd_incmpsnlist,"zipcd1,zipcd2,supaddr,zipcdseqno");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(grd_incmpsnlist.col == grd_incmpsnlist.colRef("rrgstno") ) {
-
- model.setValue("/root/send/rrgstno", model.getValue("/root/main/list/incmpsnlist[" + grd_incmpsnlist.row + "]/rrgstno"));
-
- if(submit("TRRAC90902")) {
- //입력한 주민번호가 재직자이면 팝업 show, 퇴직자이면 직원여부와 퇴직일자 put
- var staffgb = model.getValue("/root/main/staffinfo/staffinfolist/staffgb");
- if(staffgb == "재직") {
- grd_incmpsnlist.valueMatrix(grd_incmpsnlist.row, grd_incmpsnlist.colRef("name")) = model.getValue("/root/main/staffinfo/staffinfolist/name");
- grd_incmpsnlist.valueMatrix(grd_incmpsnlist.row, grd_incmpsnlist.colRef("staffgb")) = staffgb;
- grd_incmpsnlist.valueMatrix(grd_incmpsnlist.row, grd_incmpsnlist.colRef("staffdd")) = model.getValue("/root/main/staffinfo/staffinfolist/staffdd");
- messageBox("병원직원 입니다. 총무팀에 확인하시기 바랍니다.", "C000");
- } else if(staffgb == "퇴직") {
- grd_incmpsnlist.valueMatrix(grd_incmpsnlist.row, grd_incmpsnlist.colRef("name")) = model.getValue("/root/main/staffinfo/staffinfolist/name");
- grd_incmpsnlist.valueMatrix(grd_incmpsnlist.row, grd_incmpsnlist.colRef("staffgb")) = staffgb;
- grd_incmpsnlist.valueMatrix(grd_incmpsnlist.row, grd_incmpsnlist.colRef("staffdd")) = model.getValue("/root/main/staffinfo/staffinfolist/staffdd");
- } else { //if(staffgb == "")
- grd_incmpsnlist.valueMatrix(grd_incmpsnlist.row, grd_incmpsnlist.colRef("name")) = "";
- grd_incmpsnlist.valueMatrix(grd_incmpsnlist.row, grd_incmpsnlist.colRef("staffgb")) = "일반";
- grd_incmpsnlist.valueMatrix(grd_incmpsnlist.row, grd_incmpsnlist.colRef("staffdd")) = "";
- }
- }
- }
- ]]>
- </script>
- </datagrid>
- <button id="btn_openpsn" class="btn2_letter5" visibility="hidden" style="left:979px; top:44px; width:75px; height:19px; ">
- <caption>소득자등록</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- modal("SPRAC00611");
-
- ]]>
- </script>
- </button>
- <button id="btn_addrow" class="btn2_letter3" visibility="visible" style="left:1057px; top:44px; width:53px; height:19px; text-align:left; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfGridIUD(grd_incmpsnlist, "A");
- ]]>
- </script>
- </button>
- <button id="btn_delrow" class="btn2_letter3" visibility="visible" style="left:1114px; top:44px; width:53px; height:19px; text-align:left; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // var iLength = grd_etcproflist.selectedCells.length;
- var iLength = grd_incmpsnlist.selectedRows;
-
- for(var i=0; i<iLength; i++)
- {
- var iRowIdx = grd_incmpsnlist.selectedCells.item(i).row;
-
- if(grd_incmpsnlist.rowStatus(iRowIdx) == 4)
- {
- grd_incmpsnlist.rowStatus(iRowIdx) = 0;
- }
- else if(grd_incmpsnlist.rowStatus(iRowIdx) == 1 && grd_incmpsnlist.rowStatus(iRowIdx) == 3)
- {
- grd_incmpsnlist.deleteRow(iRowIdx, false);
- }
- else
- {
- grd_incmpsnlist.addStatus(iRowIdx, "delete");
- }
- }
- ]]>
- </script>
- </button>
- <select1 id="cmb_gruptype" ref="/root/send/groupid" class="combo_s_essential" navindex="-1" visibility="hidden" appearance="minimal" style="left:150px; top:45px; width:66px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/cmb_gruptype/comcodelist">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption4" style="left:5px; top:650px; width:942px; height:20px; ">※ 직원여부(재직/퇴직/일반) 와 일자(임용일/퇴직일/등록일) 는 현재시점 시스템 상의 직원정보이며, 과거 특정시점의 정보로 사용하기에는 불충분합니다.</caption>
- </group>
- <group id="group1" scroll="auto" style="left:8px; top:679px; width:1185px; height:27px; ">
- <button id="btn_confirm" class="btn4_letter2" visibility="hidden" style="left:1062px; top:5px; width:56px; height:22px; ">
- <caption>확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- misfPopUpListReturn(grd_incmpsnlist);
- //SMRAT00500_기타소득소득자별연간집계표.xrw
-
- ]]>
- </script>
- </button>
- <button id="btn_cancel" class="btn4_letter2" visibility="hidden" style="left:1119px; top:5px; width:56px; height:22px; ">
- <caption>취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- window.close();
-
- ]]>
- </script>
- </button>
- <line id="line32" class="line_6" visibility="hidden" style="x1:0px; y1:0px; x2:950; y2:0px; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|