123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284 |
- <?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>SMRWY00600_의료비지급명세서등록</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <medpayform>
- <medpayformlist>
- <emplno/>
- <famyrelanm/>
- <famyrrgstno1/>
- <famyrrgstno2/>
- <famynm/>
- <dedupsnseq/>
- <retireyn/>
- <deduyy/>
- <workym/>
- <medseq/>
- <handcaprptagrflag/>
- </medpayformlist>
- <emplinfolist/>
- </medpayform>
- <medpaysum>
- <genmedsum/>
- <handmedsum/>
- </medpaysum>
- </main>
- <send>
- <save>
- <medpayformlist/>
- </save>
- <medpayform>
- <deduyy/>
- <emplno/>
- <emplnm/>
- <workym/>
- <dedukind/>
- </medpayform>
- </send>
- <init>
- <checkbox1>
- <label>중도퇴직여부</label>
- <value>Y</value>
- </checkbox1>
- </init>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInitialize();
- misfGridInit(grd_medpayformlist);
- misfMsterDetailSet(grd_medpayformlist,null, "TRRWY00601" ,"Y");
- btn_save.disabled = !(checkAuth("X"));
- //misfComboComCdListMulti("Z0007,R0099,R0112,R0130","cmb_instcd,cmb_paydeduflag,cmb_SalDfrayFlag,grd_paydedulist.timsamtflag");
- ]]>
- </script>
- <submission id="TRRWY00601" ref="/root/send/medpayform" method="post" mediatype="application/x-www-form-urlencoded" resultref="/root/main/medpayform"/>
- <submission id="TXRWY00601" ref="/root/send/save" method="post" mediatype="application/x-www-form-urlencoded" resultref="/root/hidden/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[
- // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
- function fInitialize() {
- model.removeNodeset("/root/main/medpayform/medpayformlist");
- model.resetInstanceNode("/root/main/medpayform/emplinfolist");
- model.resetInstanceNode("/root/send");
- model.resetInstanceNode("/root/main/medpaysum");
- model.refresh();
- var getday = getCurrentDate();
- ipt_deduyy.value = getday.substring(0,4);
- ipt_workym.value = getday.substring(0,6);
- ipt_dedukind.value="deduhealcareamtyn";
- }
-
- function famtsum() {
- var genmed = 0;
- var handmed = 0;
- var handcaprptagrflag = "0";
-
- for (var i = 2 ; i <= grd_medpayformlist.rows-1; i++) {
- //alert(grd_medpayformlist.valueMatrix(i, grd_medpayformlist.colRef("entrregno")));
-
- handcaprptagrflag = grd_medpayformlist.valueMatrix(i, grd_medpayformlist.colRef("handcaprptagrflag"));
-
- if (handcaprptagrflag == "1") {
- handmed = handmed + parseInt(grd_medpayformlist.valueMatrix(i, grd_medpayformlist.colRef("payamt_cash"))) + parseInt(grd_medpayformlist.valueMatrix(i, grd_medpayformlist.colRef("payamt_card")));
- }
- else {
- genmed = genmed + parseInt(grd_medpayformlist.valueMatrix(i, grd_medpayformlist.colRef("payamt_cash"))) + parseInt(grd_medpayformlist.valueMatrix(i, grd_medpayformlist.colRef("payamt_card")));
- }
-
- //alert(genmed);
- //alert(handmed);
- }
-
- model.setValue(ipt_genmedsum.attribute("ref"), genmed);
- model.setValue(ipt_handmedsum.attribute("ref"), handmed);
-
- model.refresh();
- }
- ]]>
- </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="line5" class="line_3" style="x1:0px; y1:733px; x2:1192px; y2:733px; "/>
- <line id="line4" class="line_3" style="x1:0px; y1:120px; x2:1195px; y2:120px; "/>
- <line id="line3" class="line_2" style="x1:0px; y1:96px; x2:1195px; 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:1124px; top:16px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(!isRequiredControls("ipt_deduyy","ipt_workym","ipt_emplno"))return;
-
- misfMsterDetailRetrieve();
- famtsum();
-
- ]]>
- </script>
- </button>
- <line id="line13" class="line_4" style="x1:1109px; y1:16px; x2:1109px; y2:38px; "/>
- <caption id="caption278" class="tit_2" style="left:5px; top:54px; width:80px; 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:155px; height:13px; ">의료비지급명세서 List</caption>
- <button id="btn_grdaddmedpayformlist" class="btn2_letter3" style="left:1086px; top:125px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfGridIUD(grd_medpayformlist, "A");
- ]]>
- </script>
- </button>
- <button id="btn_grddelmedpayformlist" class="btn2_letter3" style="left:1141px; top:125px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfGridIUD(grd_medpayformlist, "D");
- ]]>
- </script>
- </button>
- <caption id="ipt_deduym" class="search_name" style="left:15px; top:19; width:94px; height:17px; ">기준년도 :</caption>
- <caption id="cap_emplno" class="search_name" style="left:443px; top:19; width:86px; height:17px; ">사원번호 :</caption>
- <datagrid id="grd_medpayformlist" nodeset="/root/main/medpayform/medpayformlist" caption="작업년월^사업자등록번호^상호^현금^현금^카드^카드^주민번호^주민번호^주민번호^관계^장애여부^ 본인,장애,경로^국세청출력^비고^사원번호^공제년도^공제년도^주민번호^의료비순번^최초등록일시^최종수정자ID^최종수정일시|작업년월^사업자등록번호^상호^건수^금액^건수^금액^앞자리^앞자리^뒷자리^관계^장애여부^ 본인,장애,경로^국세청출력^비고^사원번호^공제년도^공제년도^주민번호^의료비순번" colwidth="61, 97, 135, 60, 90, 60, 90, 90, 17, 112, 118, 100, 0, 71, 171, 110, 37, 44, 27, 26" dataheight="25" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" colsep="^" style="left:0px; top:150px; width:1195px; height:531px; ">
- <col ref="workym" type="output" disabled="true" format="yyyy-mm" style="text-align:center; "/>
- <col ref="entrregno" type="input"/>
- <col ref="trdnm" type="input"/>
- <col ref="paycnt_cash" type="input" style="text-align:right; vertical-align:middle; "/>
- <col ref="payamt_cash" type="input" format="#,###" style="text-align:right; vertical-align:middle; "/>
- <col ref="paycnt_card" type="input" style="text-align:right; vertical-align:middle; "/>
- <col ref="payamt_card" type="input" format="#,###" style="text-align:right; vertical-align:middle; "/>
- <col ref="famyrrgstno1" type="output" style="text-align:center; "/>
- <col ref="popup" type="inputbutton"/>
- <col ref="famyrrgstno2" type="output" style="text-align:center; "/>
- <col ref="famyrelanm" type="output" style="text-align:center; "/>
- <col ref="handcaprptagrflag" visibility="hidden"/>
- <col ref="handcaprptagrflag" type="checkbox" checkvalue="Y,N"/>
- <col ref="natitaxsvcprntyn" type="checkbox" checkvalue="Y,N"/>
- <col ref="cmt" type="input"/>
- <col ref="emplno" visibility="hidden"/>
- <col ref="deduyy" visibility="hidden"/>
- <col ref="dedupsnseq" visibility="hidden"/>
- <col ref="retireyn" visibility="hidden"/>
- <col ref="medseq" visibility="hidden"/>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- if (grd_medpayformlist.colAttribute(grd_medpayformlist.col,"ref") == "popup") {
- var recv_list = "famyrrgstno1,famyrrgstno2,famyrelanm,emplno,dedupsnseq,retireyn,deduyy,workym";
- misfOpenPopUpList("25", grd_medpayformlist,"",recv_list);
- model.refresh();
- }
- ]]>
- </script>
- </datagrid>
- <input id="ipt_emplnm" ref="/root/send/medpayform/emplnm" navindex="21" class="input_default" style="left:621px; top:18px; width:160px; 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/medpayform/emplno" navindex="20" class="input_default" style="left:528px; 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:19px; 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/medpayform/emplinfolist/deptnm" navindex="33" class="input_default" disabled="true" style="left:528px; top:100px; width:198px; height:19px; "/>
- <caption id="caption51" class="cell_1" style="left:728px; top:74px; width:80px; height:23px; text-align:left; vertical-align:middle; ">소속</caption>
- <input id="ipt_famyrrgstno1" ref="/root/main/medpayform/emplinfolist/rregno1" navindex="29" class="input_essential" disabled="true" style="left:528px; top:76px; width:88px; height:19px; "/>
- <input id="ipt_famyrrgstno2" ref="/root/main/medpayform/emplinfolist/rregno2" navindex="30" class="input_essential" disabled="true" style="left:631px; top:76px; width:95px; height:19px; "/>
- <caption id="caption74" class="cell_1" style="left:446px; top:74px; width:80px; height:23px; vertical-align:middle; ">주민번호</caption>
- <caption id="caption53" class="cell_1" style="left:446px; top:98px; width:80px; height:23px; vertical-align:middle; ">부서</caption>
- <caption id="caption42" class="cell_1" style="left:0px; top:74px; width:80px; height:23px; vertical-align:middle; ">사번</caption>
- <caption id="caption45" class="cell_1" style="left:0px; top:98px; width:80px; height:23px; vertical-align:middle; ">직위</caption>
- <input id="ipt_jobposnm" ref="/root/main/medpayform/emplinfolist/jobposnm" navindex="45" class="input_default" disabled="true" style="left:82px; top:100; width:150px; height:19px; "/>
- <caption id="caption59" class="search_n_b" style="left:617px; top:77px; width:12px; height:17px; font-weight:bolder; ">~</caption>
- <input id="ipt_emplno2" ref="/root/main/medpayform/emplinfolist/emplno" navindex="20" class="input_default" disabled="true" style="left:82px; top:76px; width:150px; height:19px; "/>
- <caption id="caption4" class="cell_1" style="left:234px; top:74px; width:80px; height:23px; vertical-align:middle; ">성명</caption>
- <input id="ipt_emplnm2" ref="/root/main/medpayform/emplinfolist/emplnm" navindex="21" class="input_default" disabled="true" style="left:316px; top:76px; width:128px; height:19px; "/>
- <input id="ipt_instnm" ref="/root/main/medpayform/emplinfolist/instnm" navindex="30" class="input_essential" disabled="true" style="left:810px; top:76px; width:150px; height:19px; "/>
- <caption id="caption5" class="cell_1" style="left:728px; top:98px; width:80px; height:23px; text-align:left; vertical-align:middle; ">임용일자</caption>
- <input id="ipt_entcodd" ref="/root/main/medpayform/emplinfolist/entcodd" navindex="30" class="input_essential" disabled="true" inputtype="date" style="left:810px; top:100px; width:150px; height:19px; "/>
- <caption id="caption7" class="cell_1" style="left:962px; top:98px; width:80px; height:23px; text-align:left; vertical-align:middle; ">퇴직일자</caption>
- <input id="ipt_retiredd" ref="/root/main/medpayform/emplinfolist/retiredd" navindex="30" class="input_essential" disabled="true" inputtype="date" style="left:1044px; top:100px; width:150px; height:19px; "/>
- <caption id="caption8" class="cell_1" style="left:962px; top:74px; width:80px; height:23px; text-align:left; vertical-align:middle; ">직원분류</caption>
- <input id="ipt_grupjoblnnm" ref="/root/main/medpayform/emplinfolist/grupjoblnnm" navindex="30" class="input_essential" disabled="true" style="left:1044px; top:76px; width:150px; height:19px; "/>
- <caption id="caption9" class="cell_1" style="left:234px; top:98px; width:80px; height:23px; vertical-align:middle; ">직급/호봉</caption>
- <input id="ipt_ojobgradnm" ref="/root/main/medpayform/emplinfolist/ojobgradnm" navindex="33" class="input_default" disabled="true" style="left:316px; top:100; width:56px; height:19px; "/>
- <input id="ipt_payclsnm" ref="/root/main/medpayform/emplinfolist/payclsnm" navindex="33" class="input_default" disabled="true" style="left:374px; top:100px; width:70px; height:19px; "/>
- <line id="line2" class="line_1" style="x1:0px; y1:706px; x2:1192px; y2:706px; "/>
- <caption id="caption10" class="tit_2" style="left:5px; top:691px; width:198px; height:13px; ">의료비지급명세서 합계</caption>
- <caption id="caption11" class="cell_1" style="left:0px; top:711px; width:75px; height:23px; vertical-align:middle; ">일반의료비</caption>
- <input id="ipt_handmedsum" ref="/root/main/medpaysum/handmedsum" navindex="45" class="input_default" disabled="true" format="#,###" style="left:356px; top:712px; width:171px; height:19px; text-align:right; vertical-align:middle; "/>
- <caption id="caption12" class="cell_1" style="left:250px; top:711px; width:104px; height:23px; vertical-align:middle; ">본인,경로,장애인</caption>
- <input id="ipt_genmedsum" ref="/root/main/medpaysum/genmedsum" navindex="20" class="input_default" disabled="true" format="#,###" style="left:77px; top:713px; width:171px; 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_deduyy" ref="/root/send/medpayform/deduyy" class="input_s_essential" inputtype="date" format="yyyy" style="left:100px; top:18px; width:100px; height:19px; "/>
- <input id="ipt_workym" ref="/root/send/medpayform/workym" class="input_s_essential" inputtype="date" format="yyyy-mm" style="left:313px; top:18px; width:100px; height:19px; "/>
- <input id="ipt_dedukind" ref="/root/send/medpayform/dedukind" visibility="hidden"/>
- </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_medpayformlist);
- if (updtdata == "" ) {
- messageBox("변경된 데이터가","I004");
- return;
- }
- misfSave("TXRWY00601");
- famtsum();
- ]]>
- </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_medpayformlist);
- if (updtdata != "") {
- var ret = messageBox("그리드에 작업 중인 내용이 있습니다. 초기화 작업을","Q003");
- if (ret != 6) { // not OK
- return;
- }
- }
- fInitialize();
- ]]>
- </script>
- </button>
- <line id="line9" class="line_6" style="x1:0; y1:25; x2:1195; y2:25; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|