123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet ype="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>
- <fmlyheader>
- <emplno/>
- <emplnm/>
- <empfirsebornyn/>
- <empmarryyn/>
- <spousejob/>
- <spousephone/>
- <rregno/>
- <jobkindcd/>
- <jobkindnm/>
- <jobposcd/>
- <jobposnm/>
- <dutplcedeptcd/>
- <dutplcedeptnm/>
- <fstappntdd/>
- <retiredd/>
- <residncaddr/>
- <residnczipcd1/>
- <residnczipcd2/>
- <mpphonno/>
- <cntctel/>
- <hosinseqno/>
- <aplctndate/>
- </fmlyheader>
- <fmlymaster/>
- </main>
- <send>
- <save>
- </save>
- <emplno/>
- <emplnm/>
- <dutunitcd/>
- <dutunitnm/>
- <save20>
- <emplno20/>
- <rregno20/>
- <payyn20/>
- <aplctnflag20/>
- <aplctndate20/>
- </save20>
- <rregno/>
- </send>
- <temp>
- <data2/>
- </temp>
- <init>
- </init>
- <hidden>
- <savelist>
- <fmlyheader/>
- <fmlymaster/>
- </savelist>
- </hidden>
- <temp2>
- <fmlyrregno>
- <emplno/>
- <emplnm/>
- </fmlyrregno>
- </temp2>
- </root>
- </instance>
- <submission id="TRRWP22001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main"/>
- <submission id="TXRWP22001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/hidden/savelist" replace="instance" resultref="/root/temp"/>
- <submission id="TXRWP22002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save20" replace="instance" resultref="/root/temp"/>
- <submission id="TRRWP22003" mediatype="application/x-www-form-urlencoded" method="get" ref="/root/send" replace="instance" resultref="/root/temp2"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
- <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
-
- fInitialize();
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- function fInitialize()
- {
-
- misfGridInit(dtg_fmlymaster);
- misfComboComCdListMulti("R0077,R0061,R0062","dtg_fmlymaster.relation,cmb_jobkind,cmb_jobpos");
-
- btnAdd.disabled = true;
- btnDel.disabled = true;
- btn20save.disabled = true;
- // 부서가 총무팀일 경우, 사번 전체조회가능, 20세이상, 엑셀저장버튼 Disabled = false
- var logindeptcd = getUserInfo("dutplcecd");
- var loginid = getUserInfo("userid");
- // 4020300000
- if( logindeptcd == "4020323000" || logindeptcd == "4020327000" || loginid == "97089" ){
- btn20save.visible = true;
- btn_excelsave.visible = true;
- ipt_emplno.disabled = false;
- btn_emplno.disabled = false;
- }else{
- ipt_emplno.disabled = true;
- btn_emplno.disabled = true;
- btn20save.visible = false;
- btn_excelsave.visible = false;
- }
-
- if(instance1.selectNodes("/root/temp/data2").length > 0)
- {
- if( model.getValue("/root/temp/data2/emplno") != "" ){
- ipt_emplno.value = model.getValue("/root/temp/data2/emplno");
- }else{
- model.setValue("/root/send/emplno", getUserInfo("userid"));
- model.setValue("/root/send/emplnm", getUserInfo("usernm"));
- }
- }else{
- model.setValue("/root/send/emplno", getUserInfo("userid"));
- model.setValue("/root/send/emplnm", getUserInfo("usernm"));
- }
- btn_search.dispatch("DOMActivate");
- model.refresh();
- }
-
- function fSave(){
-
- var len = getNodesetCount("/root/main/fmlymaster");
- var age = 0;
- var relation = "";
- var job = "";
- var payyn = "";
- if( len < 1 ){
- messageBox("부양가족 데이터를 입력해주세요.", "E999", "");
- return;
- }
-
- for( var i = 1 ; i <= len ; i++){
- age = model.getValue("/root/main/fmlymaster[" + i + "]/relage");
- relation = model.getValue("/root/main/fmlymaster[" + i + "]/relation");
- job = model.getValue("/root/main/fmlymaster[" + i + "]/job");
- payyn = model.getValue("/root/main/fmlymaster[" + i + "]/payyn");
- if( age != "" ){
- if( ( relation == "05" && age < 60 && payyn == "Y" ) || ( relation == "07" && age < 55 && payyn == "Y" )
- || ( relation == "13" && age >19 && payyn == "Y" ) || ( relation == "14" && age > 19 && payyn == "Y" ) ){
- model.setValue("/root/main/fmlymaster[" + i + "]/payyn", "N");
- messageBox("(부)만60세이상, (모)만55세이상, (자)만20세미만의 \n경우에만 가족수당이 지급가능합니다.", "E999", "");
- model.refresh();
- return;
- }
- }else{
- messageBox(i+"번째 행의 나이를 확인해주세요.", "E999", "");
- return;
- }
- }
-
- var updtdata_m = getGridUpdateData(dtg_fmlymaster);
- var updtdata_h = getGridUpdateData(dtg_fmlyheader);
-
- if (updtdata_m == "" && updtdata_h == "" ){
- messageBox("변경된 데이터가","I004");
- return;
- }
- var num = 0;
-
- if( len > 0 ){
- for( var i = 1; i <= len ; i++ ){
- num = 0;
- if( model.getValue("/root/main/fmlymaster[" + i + "]/aplctndate" ) == "" ){
- messageBox("신청일자는 필수입력값입니다.", "E999", "");
- return;
- }
- if( model.getValue("/root/main/fmlymaster[" + i + "]/aplctnflag" ) == "" ){
- messageBox("신청구분은 필수입력값입니다.", "E999", "");
- return;
- }
- if( model.getValue("/root/main/fmlymaster[" + i + "]/rregno" ) == "" ){
- messageBox("주민번호는 필수입력값입니다.", "E999", "");
- return;
- }
-
- model.setValue("/root/send/rregno", model.getValue("/root/main/fmlymaster[" + i + "]/rregno" ) );
- if( submit("TRRWP22003") ){
- if( model.getValue("/root/temp2/fmlyrregno/emplno") != ""){
- messageBox( "해당 주민등록번호는 우리병원직원의 주민등록번호입니다.\n[ " + i + "번째 행 : " + model.getValue( "/root/main/fmlymaster[" + i + "]/rregno" ).substring(0,6) + " - " + model.getValue( "/root/main/fmlymaster[" + i + "]/rregno" ).substring(6,13) + " ] ", "E999", "");
- return;
- }
- }
-
- for( var j = 1; j <= len ; j++ ){
- if( model.getValue("/root/main/fmlymaster[" + i + "]/rregno" ) == model.getValue("/root/main/fmlymaster[" + j + "]/rregno" ) ){
- if( model.getValue("/root/main/fmlymaster[" + i + "]/aplctnflag" ) == model.getValue("/root/main/fmlymaster[" + j + "]/aplctnflag") ){
- num++;
- }
- }
- if( num > 1 ){
- messageBox( "중복된 주민번호가 존재합니다.\n[ " + i + "번째 행 : " + model.getValue( "/root/main/fmlymaster[" + i + "]/rregno" ).substring(0,6) + " - " + model.getValue( "/root/main/fmlymaster[" + i + "]/rregno" ).substring(6,13) + " ] ", "E999", "");
- return;
- }
- }
-
- if( model.getValue("/root/main/fmlymaster[" + i + "]/rregno" ).length != 13 ){
- messageBox( "잘못된 형식의 주민번호가 존재합니다.\n[ " + i + "번째 행 : " + model.getValue( "/root/main/fmlymaster[" + i + "]/rregno" ).substring(0,6) + " - " + model.getValue( "/root/main/fmlymaster[" + i + "]/rregno" ).substring(6,13) + " ] ", "E999", "");
- return;
- }
- }
- }
- model.copyNode("/root/hidden/savelist/fmlyheader", "/root/main/fmlyheader");
- if( dtg_fmlyheader.rowStatus(1) == 0 || dtg_fmlyheader.rowStatus(1) == 1 || dtg_fmlyheader.rowStatus(1) == 3 ){
- model.makeValue("/root/hidden/savelist/fmlyheader/rowstatus", "i" );
- }else if( dtg_fmlyheader.rowStatus(1) == 2 ){
- model.makeValue("/root/hidden/savelist/fmlyheader/rowstatus", "u" );
- }else if( dtg_fmlyheader.rowStatus(1) == 4 || dtg_fmlyheader.rowStatus(1) == 5 || dtg_fmlyheader.rowStatus(1) == 6 ){
- model.makeValue("/root/hidden/savelist/fmlyheader/rowstatus", "d" );
- }
-
- model.makeValue("/root/hidden/savelist/fmlymaster",dtg_fmlymaster.getUpdateData() );
-
- if( submit("TXRWP22001") ){
- messageBox("저장되었습니다.", "I000");
- btn_search.dispatch("DOMActivate");
- }
- model.refresh();
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body style="margin-left:8; margin-right:8; ">
- <group id="group2" scroll="auto" style="left:0px; top:25px; width:1195px; height:744px; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:2px; width:1195px; height:40px; "/>
- <caption id="caption278" class="tit_2" style="left:0px; top:52px; width:162px; height:13px; ">사원정보</caption>
- <line id="line207" class="line_1" style="x1:0px; y1:181px; x2:1192px; y2:180px; "/>
- <button id="btn_search" class="btn1_letter2" navindex="4" style="left:1113px; top:11px; width:56px; height:22px; text-align:left; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- if(model.getValue("/root/send/emplno") == "" )
- {
- messageBox("사원번호를 입력해주세요.", "E999");
- return;
- }
- if( submit("TRRWP22001") ){
- if( model.getValue( "/root/main/fmlyheader/emplno" ) != "" ){
- btnAdd.disabled = false;
- btnDel.disabled = false;
- btn20save.disabled = false;
- }
-
- if( model.getValue("/root/send/emplnm") == "" ){
- model.setValue( "/root/send/emplnm", model.getValue("/root/main/fmlyheader/emplnm") );
- }
-
- // 부서가 총무팀일 경우에만 지급여부, 비고란 수정가능
- var logindeptcd = getUserInfo("dutplcecd");
- var loginid = getUserInfo("userid");
- if( logindeptcd == "4020323000" || logindeptcd == "4020327000" || loginid == "97089" ){ //4020300000
- dtg_fmlymaster.colDisabled(14) = false;
- dtg_fmlymaster.colDisabled(17) = false;
- }else{
- dtg_fmlymaster.colDisabled(14) = true;
- dtg_fmlymaster.colDisabled(17) = true;
- }
- for( var i = 1 ; i < dtg_fmlymaster.rows ; i++ ){
- if( model.getValue("/root/main/fmlymaster[" + i + "]/approveflag") == "Y" ){
- dtg_fmlymaster.cellAttribute("disabled", i, 1 , i, 20 ) = "true";
-
- }
- }
- }
- ]]>
- </script>
- </button>
- <line id="line3" class="line_4" style="x1:1080px; y1:8px; x2:1080px; y2:36px; border-color:#ffe4bb; border-left-style:solid; "/>
- <button id="btn_excelsave" class="btn2_letter4" navindex="6" style="left:1018px; top:158px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("save", ",", false, "부양가족사항_"+getCurrentDate() , "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
-
- if (fileName != "")
- {
- dtg_fmlymaster.saveExcel(fileName);
- }
- ]]>
- </script>
- </button>
- <datagrid id="dtg_fmlymaster" nodeset="/root/main/fmlymaster" caption="신청일자^신청구분^승인여부^사번^성명^관계^가족성명^주민번호^나이^신고사유^사유발생일^직업^지급여부^동거여부^장남여부^18세이하형제자매여부^장애여부^최초일자^수정일자^비고" colsep="^" colwidth="90, 63, 70, 53, 64, 54, 60, 96, 36, 110, 90, 56, 55, 55, 55, 130, 55, 90, 90, 125, 100, 100, 100, 100" dataheight="25" ellipsis="true" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" tooltip="true" style="left:0px; top:184px; width:1193px; height:532px; ">
- <col ref="aplctndate" type="inputdate" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="aplctnflag" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>추가</label>
- <value>1</value>
- </item>
- <item>
- <label>상실</label>
- <value>2</value>
- </item>
- </choices>
- </col>
- <col disabled="true" ref="approveflag" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>확인완료</label>
- <value>Y</value>
- </item>
- <item>
- <label>확인중</label>
- <value>N</value>
- </item>
- </choices>
- </col>
- <col ref="emplno" style="text-align:center; "/>
- <col ref="emplnm" format="yyyy-mm-dd" style="text-align:center; "/>
- <col editmode="inputsearch" ref="relation" type="combo" style="text-align:center; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col ref="relname" type="input" style="text-align:center; "/>
- <col ref="rregno" type="input" format="999999-9999999" style="text-align:center; "/>
- <col ref="relage" type="input" style="text-align:center; "/>
- <col ref="reason" type="input" style="text-align:left; "/>
- <col ref="reasonindate" type="inputdate" style="text-align:center; "/>
- <col ref="job" 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="payyn" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>Y</label>
- <value>Y</value>
- </item>
- <item>
- <label>N</label>
- <value>N</value>
- </item>
- </choices>
- </col>
- <col ref="togetheryn" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>Y</label>
- <value>Y</value>
- </item>
- <item>
- <label>N</label>
- <value>N</value>
- </item>
- </choices>
- </col>
- <col ref="firsebornyn" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>Y</label>
- <value>Y</value>
- </item>
- <item>
- <label>N</label>
- <value>N</value>
- </item>
- </choices>
- </col>
- <col ref="under18" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>Y</label>
- <value>Y</value>
- </item>
- <item>
- <label>N</label>
- <value>N</value>
- </item>
- </choices>
- </col>
- <col ref="disabledyn" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>Y</label>
- <value>Y</value>
- </item>
- <item>
- <label>N</label>
- <value>N</value>
- </item>
- </choices>
- </col>
- <col disabled="true" ref="fstrgstdt" type="inputdate" format="yyyy-mm-dd" style="text-align:center; "/>
- <col disabled="true" ref="lastupdtdt" type="inputdate" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="note" type="input" style="text-align:left; "/>
- <col ref="bfrregno" type="input" visibility="hidden" format="999999-9999999" style="text-align:center; "/>
- <col ref="approverid" visibility="hidden"/>
- <col ref="approvedate" visibility="hidden"/>
- <col ref="deaplctndate" visibility="hidden"/>
- <col ref="deaplctnflag" visibility="hidden"/>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- // 공무원은 가족수당을 지급하지 않는다.
- // 부 만60세이상, 모 만55세이상, 자 만20세미만일 경우에 가족수당 지급.
- var age = model.getValue("/root/main/fmlymaster[" + dtg_fmlymaster.row + "]/relage");
- var relation = model.getValue("/root/main/fmlymaster[" + dtg_fmlymaster.row + "]/relation");
- var job = model.getValue("/root/main/fmlymaster[" + dtg_fmlymaster.row + "]/job");
- var payyn = model.getValue("/root/main/fmlymaster[" + dtg_fmlymaster.row + "]/payyn");
-
- if( dtg_fmlymaster.colAttribute(dtg_fmlymaster.col,"ref") == "job" || dtg_fmlymaster.colAttribute(dtg_fmlymaster.col,"ref") == "relation" ){
- // 05 부 , 07 모 , 13 아들 , 14 딸
- if( age != "" ){
- if( ( relation == "05" && age >= 60 ) || ( relation == "07" && age >= 55 ) || ( relation == "13" && age < 20 ) || ( relation == "14" && age < 20 ) ){
- model.setValue("/root/main/fmlymaster[" + dtg_fmlymaster.row + "]/payyn", "Y");
- if(dtg_fmlymaster.rowStatus(dtg_fmlymaster.row) == 0 ){
- dtg_fmlymaster.rowStatus(dtg_fmlymaster.row) = 2;
- }
- }else{
- model.setValue("/root/main/fmlymaster[" + dtg_fmlymaster.row + "]/payyn", "N");
- if(dtg_fmlymaster.rowStatus(dtg_fmlymaster.row) == 0 ){
- dtg_fmlymaster.rowStatus(dtg_fmlymaster.row) = 2;
- }
- }
- }
-
- if( dtg_fmlymaster.valueMatrix(dtg_fmlymaster.row, dtg_fmlymaster.colRef("job")) == "1" && payyn == "Y" ){
- model.setValue("/root/main/fmlymaster[" + dtg_fmlymaster.row + "]/payyn" , "N");
- dtg_fmlymaster.cellStyle("disabled", dtg_fmlymaster.row, dtg_fmlymaster.col ) = "true";
- messageBox("공무원은 가족수당을 지급하지않습니다.", "E999", "");
- return;
- }else{
- dtg_fmlymaster.cellStyle("disabled", dtg_fmlymaster.row, dtg_fmlymaster.col ) = "false";
- }
- }
- if( dtg_fmlymaster.colAttribute(dtg_fmlymaster.col,"ref") == "rregno" ){
- if( isResidentNo( model.getValue("/root/main/fmlymaster[" + dtg_fmlymaster.row + "]/rregno")) ){
- var calage = getFullAge( model.getValue("/root/main/fmlymaster[" + dtg_fmlymaster.row + "]/rregno") );
- model.setValue("/root/main/fmlymaster[" + dtg_fmlymaster.row + "]/relage", calage);
- }else{
- model.setValue("/root/main/fmlymaster[" + dtg_fmlymaster.row + "]/rregno", "");
- messageBox("유효하지않은 주민등록번호입니다. 다시확인해주십시오.", "E999", "");
- return;
- }
- }
-
- if( dtg_fmlymaster.colAttribute(dtg_fmlymaster.col,"ref") == "payyn" ){
- if( age != "" ){
- if( ( relation == "05" && age < 60 && payyn == "Y" ) || ( relation == "07" && age < 55 && payyn == "Y" )
- || ( relation == "13" && age >19 && payyn == "Y" ) || ( relation == "14" && age > 19 && payyn == "Y" ) ){
- model.setValue("/root/main/fmlymaster[" + dtg_fmlymaster.row + "]/payyn", "N");
- messageBox("(부)만60세이상, (모)만55세이상, (자)만20세미만의 \n경우에만 가족수당이 지급가능합니다.", "E999", "");
- model.refresh();
- return;
- }
- }
- }
-
- if( dtg_fmlymaster.colAttribute(dtg_fmlymaster.col,"ref") == "aplctndate" && dtg_fmlymaster.rowStatus(dtg_fmlymaster.row) == "1" ||
- dtg_fmlymaster.colAttribute(dtg_fmlymaster.col,"ref") == "aplctndate" && dtg_fmlymaster.rowStatus(dtg_fmlymaster.row) == "3" ){
- model.setValue("/root/main/fmlymaster[" + dtg_fmlymaster.row + "]/deaplctndate", model.getValue("/root/main/fmlymaster[" + dtg_fmlymaster.row + "]/aplctndate") );
- }
-
- if( dtg_fmlymaster.colAttribute(dtg_fmlymaster.col,"ref") == "aplctnflag" && dtg_fmlymaster.rowStatus(dtg_fmlymaster.row) == "1" ||
- dtg_fmlymaster.colAttribute(dtg_fmlymaster.col,"ref") == "aplctnflag" && dtg_fmlymaster.rowStatus(dtg_fmlymaster.row) == "3" ){
- model.setValue("/root/main/fmlymaster[" + dtg_fmlymaster.row + "]/deaplctnflag", model.getValue("/root/main/fmlymaster[" + dtg_fmlymaster.row + "]/aplctnflag") );
- }
- model.refresh();
- ]]>
- </script>
- </datagrid>
- <caption id="caption1" class="search_name" style="left:20px; top:14px; width:86px; height:17px; ">사원번호 :</caption>
- <input id="ipt_emplnm" ref="/root/send/emplnm" class="input_search" disabled="true" navindex="3" style="left:205px; top:12px; width:150px; height:19px; "/>
- <button id="btn_emplno" class="icon_search" style="left:185px; top:13px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rpbfOpenPopUpList("SPRPB00101", ipt_emplno, "emplno,emplnm,dutunitcd,dutunitnm", "", "N");
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_emplno" ref="/root/send/emplno" class="input_search" navindex="3" style="left:111px; top:12px; width:70px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == 13)
- {
- if(ipt_emplno.value == ipt_emplno.currentText) return;
- ipt_emplno.value = ipt_emplno.currentText;
- rpbfValidationCheck("EMPLNO", "emplno,emplnm,dutunitcd,dutunitnm");
- model.refresh();
- // btn_search.dispatch("DOMActivate");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- rpbfValidationCheck("EMPLNO", "emplno,emplnm,dutunitcd,dutunitnm");
- model.refresh();
- // btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </input>
- <caption id="caption2" class="search_name" visibility="hidden" style="left:713px; top:14px; width:86px; height:17px; ">장남여부 :</caption>
- <caption id="caption3" class="search_name" visibility="hidden" style="left:390px; top:14px; width:65px; height:17px; ">성별 :</caption>
- <caption id="caption4" class="search_name" visibility="hidden" style="left:585px; top:14px; width:86px; height:17px; ">결혼여부 :</caption>
- <bool id="bool1" visibility="hidden" style="left:668px; top:10px; width:25px; height:25px; "/>
- <select1 id="radio1" visibility="hidden" overflow="visible" appearance="full" cellspacing="10" cols="2" style="left:454px; top:14px; width:105px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>남자</label>
- <value>1</value>
- </item>
- <item>
- <label>여자</label>
- <value>2</value>
- </item>
- </choices>
- </select1>
- <bool id="bool2" visibility="hidden" style="left:796px; top:10px; width:25px; height:25px; "/>
- <button id="btnDel" class="btn2_letter3" style="left:1138px; top:158px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfGridIUD(dtg_fmlymaster,"D");
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btnAdd" class="btn2_letter3" style="left:1083px; top:158px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var cnt = 0;
-
- misfGridIUD(dtg_fmlymaster,"A");
- cnt = getNodesetCount("/root/main/fmlymaster");
- model.setValue( "/root/main/fmlymaster[" + cnt + "]/emplno", model.getValue("/root/main/fmlyheader/emplno") );
- model.setValue( "/root/main/fmlymaster[" + cnt + "]/emplnm", model.getValue("/root/main/fmlyheader/emplnm") );
- model.setValue( "/root/main/fmlymaster[" + cnt + "]/fstrgstdt", getCurrentDate() );
- model.setValue( "/root/main/fmlymaster[" + cnt + "]/lastupdtdt", getCurrentDate() );
- model.setValue( "/root/main/fmlymaster[" + cnt + "]/reasonindate", getCurrentDate() );
- model.setValue( "/root/main/fmlymaster[" + cnt + "]/aplctndate", getCurrentDate() );
- model.setValue( "/root/main/fmlymaster[" + cnt + "]/deaplctndate", getCurrentDate() );
- model.setValue( "/root/main/fmlymaster[" + cnt + "]/approveflag", "N" );
- model.setValue("/root/main/fmlymaster[" + cnt + "]/togetheryn" , "N" );
- model.setValue("/root/main/fmlymaster[" + cnt + "]/firsebornyn" , "N" );
- model.setValue("/root/main/fmlymaster[" + cnt + "]/under18" , "N" );
- model.setValue("/root/main/fmlymaster[" + cnt + "]/disabledyn" , "N" );
- model.setValue("/root/main/fmlymaster[" + cnt + "]/job" , "2" );
- // model.setValue("/root/main/fmlymaster[" + cnt + "]/payyn" , "N" );
-
- dtg_fmlymaster.editCell();
- dtg_fmlymaster.col = 1;
-
- model.refresh();
-
- ]]>
- </script>
- </button>
- <button id="btn20save" class="btn5_letter4" style="left:952px; top:158px; width:64px; height:19px; ">
- <caption>20세이상</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var len = getNodesetCount("/root/main/fmlymaster");
- if( len > 0 ){
- for( var i = 1; i <= len ; i++ ){ // 13 아들, 14 딸 자녀가 만20세 이상이 되면 지급여부에 자동 N처리
- if( ( model.getValue("/root/main/fmlymaster[" + i + "]/relation" ) == "13" && model.getValue("/root/main/fmlymaster[" + i + "]/relage" ) > 19 && model.getValue("/root/main/fmlymaster[" + i + "]/payyn" ) == "Y" )
- || ( model.getValue("/root/main/fmlymaster[" + i + "]/relation" ) == "14" && model.getValue("/root/main/fmlymaster[" + i + "]/relage" ) > 19 && model.getValue("/root/main/fmlymaster[" + i + "]/payyn" ) == "Y" ) ){
- var req = messageBox("자녀가 만20세 이상인 경우에는 가족수당이 지급되지 않습니다.\n[ " + i + "번째 행 : " + model.getValue("/root/main/fmlymaster[" + i + "]/relname" ) + " ] ", "Q002");
- if( req == 6 ){
- model.setValue("/root/main/fmlymaster[" + i + "]/payyn", "Y" );
- dtg_fmlymaster.rowStatus(i) = 2;
- model.setValue("/root/send/save20/emplno20", model.getValue("/root/main/fmlymaster[" + i + "]/emplno" ));
- model.setValue("/root/send/save20/rregno20", model.getValue("/root/main/fmlymaster[" + i + "]/rregno" ));
- model.setValue("/root/send/save20/aplctndate20", model.getValue("/root/main/fmlymaster[" + i + "]/aplctndate" ));
- model.setValue("/root/send/save20/aplctnflag20", model.getValue("/root/main/fmlymaster[" + i + "]/aplctnflag" ));
- model.setValue("/root/send/save20/payyn20", "N" );
- if( submit("TXRWP22002") ){
- messageBox("저장되었습니다.", "I000");
- btn_search.dispatch("DOMActivate");
- }
- }
- }
- }
- }
- // 업데이트 로직 넣기
- ]]>
- </script>
- </button>
- <line id="line1" class="line_1" style="x1:0px; y1:70px; x2:1192px; y2:69px; "/>
- <input id="ipt_zipcd1" ref="/root/main/fmlyheader/residnczipcd1" class="input_essential" disabled="true" editable="false" style="left:513px; top:100px; width:39px; height:19px; "/>
- <input id="ipt_fstappntdd" ref="/root/main/fmlyheader/fstappntdd" disabled="true" inputtype="date" style="left:1101px; top:74px; width:90px; height:19px; "/>
- <input id="ipt_retiredd" ref="/root/main/fmlyheader/retiredd" disabled="true" inputtype="date" style="left:1101px; top:100px; width:90px; height:19px; "/>
- <caption id="caption317" class="cell_1" style="left:294px; top:74px; width:62px; height:20px; vertical-align:middle; ">주민번호</caption>
- <input id="ipt_hemplno" ref="/root/main/fmlyheader/emplno" disabled="true" style="left:66px; top:74px; width:72px; height:19px; "/>
- <caption id="caption5" class="cell_1" style="left:294px; top:125px; width:90px; height:21px; ">배우자 연락처</caption>
- <caption id="caption319" class="cell_1" style="left:160px; top:99px; width:65px; height:21px; vertical-align:middle; ">내선번호</caption>
- <caption id="caption24" class="cell_1" style="left:467px; top:99px; width:44px; height:21px; vertical-align:middle; ">주 소</caption>
- <caption id="caption7" class="cell_1" style="left:0px; top:99px; width:65px; height:21px; ">전화번호</caption>
- <caption id="caption8" class="cell_1" style="left:1039px; top:74px; width:60px; height:20px; vertical-align:middle; ">임용일자</caption>
- <caption id="caption164" class="cell_1" style="left:0px; top:74px; width:65px; height:19px; ">사원번호</caption>
- <caption id="caption144" class="cell_1" style="left:1039px; top:100px; width:60px; height:20px; vertical-align:middle; ">퇴직일자</caption>
- <input id="ipt_hemplnm" ref="/root/main/fmlyheader/emplnm" disabled="true" style="left:207px; top:74px; width:85px; height:19px; "/>
- <input id="ipt_cntctel" ref="/root/main/fmlyheader/cntctel" style="left:66px; top:100px; width:92px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- dtg_fmlyheader.rowStatus(1) = 2;
- ]]>
- </script>
- </input>
- <input id="ipt_rregno" ref="/root/main/fmlyheader/rregno" disabled="true" format="999999-9999999" style="left:358px; top:74px; width:148px; height:19px; "/>
- <input id="ipt_hosinseqno" ref="/root/main/fmlyheader/hosinseqno" style="left:226px; top:100px; width:65px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- dtg_fmlyheader.rowStatus(1) = 2;
- ]]>
- </script>
- </input>
- <input id="ipt_mpphonno" ref="/root/main/fmlyheader/mpphonno" style="left:358px; top:100px; width:107px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- dtg_fmlyheader.rowStatus(1) = 2;
- ]]>
- </script>
- </input>
- <caption id="caption9" class="cell_1" style="left:508px; top:74px; width:45px; height:20px; vertical-align:middle; ">직 종</caption>
- <caption id="caption10" class="cell_1" style="left:294px; top:99px; width:62px; height:21px; vertical-align:middle; ">휴대폰</caption>
- <caption id="caption12" class="cell_1" style="left:660px; top:74px; width:45px; height:20px; vertical-align:middle; ">직 위</caption>
- <input id="ipt_zipcd2" ref="/root/main/fmlyheader/residnczipcd2" class="input_essential" disabled="true" editable="false" style="left:565px; top:100px; width:39px; height:19px; "/>
- <button id="button5" class="icon_search" style="left:607px; top:102px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- ]]>
- </script>
- </button>
- <caption id="caption11" style="left:554px; top:98px; width:12px; height:26px; ">-</caption>
- <input id="ipt_residncaddr" ref="/root/main/fmlyheader/residncaddr" disabled="true" style="left:625px; top:100px; width:412px; height:19px; "/>
- <input id="ipt_dutplcedeptnm" ref="/root/main/fmlyheader/dutplcedeptnm" disabled="true" style="left:867px; top:74px; width:170px; height:19px; "/>
- <caption id="caption13" class="cell_1" style="left:821px; top:74px; width:45px; height:20px; vertical-align:middle; ">부 서</caption>
- <input id="ipt_spousephone" ref="/root/main/fmlyheader/spousephone" style="left:385px; top:126px; width:94px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- dtg_fmlyheader.rowStatus(1) = 2;
- ]]>
- </script>
- </input>
- <caption id="caption14" class="cell_1" style="left:481px; top:125px; width:80px; height:21px; ">배우자 직업</caption>
- <select1 id="cmb_spousejob" ref="/root/main/fmlyheader/spousejob" appearance="minimal" style="left:563px; top:126px; width:97px; height:19px; ">
- <choices>
- <item>
- <label>공무원</label>
- <value>1</value>
- </item>
- <item>
- <label>우리병원직원</label>
- <value>3</value>
- </item>
- <item>
- <label>기타</label>
- <value>2</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- dtg_fmlyheader.rowStatus(1) = 2;
- ]]>
- </script>
- </select1>
- <caption id="caption15" class="tit_2" style="left:0px; top:163px; width:162px; height:13px; ">부양가족</caption>
- <line id="line8" class="line_3" style="x1:0px; y1:122px; x2:1191px; y2:122px; "/>
- <line id="line2" class="line_3" style="x1:0px; y1:96px; x2:1191px; y2:96px; "/>
- <select1 id="cmb_jobkind" ref="/root/main/fmlyheader/jobkindcd" disabled="true" navindex="7" appearance="minimal" style="left:555px; top:74px; width:103px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <select1 id="cmb_jobpos" ref="/root/main/fmlyheader/jobposcd" disabled="true" navindex="7" appearance="minimal" style="left:706px; top:74px; width:113px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <datagrid id="dtg_fmlyheader" nodeset="/root/main/fmlyheader" visibility="hidden" caption="사번^성명^장남여부^결혼여부^배우자직업^배우자연락처^주민번호^직종^직종명^직위^직위명^부서코드^부서명^임용일자^퇴직일자^집주소^우편번호1^우편번호2^핸드폰^집전화번호^병원내선번호" colsep="^" colwidth="46, 51, 54, 65, 64, 75, 74, 62, 60, 60, 67, 72, 56, 61, 72, 71, 68, 59, 78, 71, 80" dataheight="25" ellipsis="true" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" tooltip="true" style="left:0px; top:270px; width:848px; height:165px; ">
- <col ref="emplno"/>
- <col ref="emplnm"/>
- <col ref="empfirsebornyn"/>
- <col ref="empmarryyn"/>
- <col ref="spousejob"/>
- <col ref="spousephone"/>
- <col ref="rregno"/>
- <col ref="jobkindcd"/>
- <col ref="jobkindnm"/>
- <col ref="jobposcd"/>
- <col ref="jobposnm"/>
- <col ref="dutplcedeptcd"/>
- <col ref="dutplcedeptnm"/>
- <col ref="fstappntdd"/>
- <col ref="retiredd"/>
- <col ref="residncaddr"/>
- <col ref="residnczipcd1"/>
- <col ref="residnczipcd2"/>
- <col ref="mpphonno"/>
- <col ref="cntctel"/>
- <col ref="hosinseqno"/>
- </datagrid>
- <line id="line4" class="line_3" style="x1:0px; y1:148px; x2:1191px; y2:148px; "/>
- <caption id="caption16" class="cell_1" style="left:0px; top:125px; width:65px; height:21px; ">장남여부</caption>
- <caption id="caption17" class="cell_1" style="left:140px; top:74px; width:65px; height:19px; ">사원번호</caption>
- <select1 id="combo1" ref="/root/main/fmlyheader/empfirsebornyn" appearance="minimal" style="left:66px; top:126px; width:92px; height:19px; ">
- <choices>
- <item>
- <label>Y</label>
- <value>Y</value>
- </item>
- <item>
- <label>N</label>
- <value>N</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- dtg_fmlyheader.rowStatus(1) = 2;
- ]]>
- </script>
- </select1>
- <caption id="caption18" class="cell_1" style="left:160px; top:125px; width:65px; height:21px; vertical-align:middle; ">결혼여부</caption>
- <select1 id="combo2" ref="/root/main/fmlyheader/empmarryyn" appearance="minimal" style="left:226px; top:126px; width:65px; height:19px; ">
- <choices>
- <item>
- <label>기혼</label>
- <value>Y</value>
- </item>
- <item>
- <label>미혼</label>
- <value>N</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- dtg_fmlyheader.rowStatus(1) = 2;
- ]]>
- </script>
- </select1>
- <caption id="caption19" style="left:848px; top:50px; width:340px; height:15px; font-weight:bold; color:#ff0000; letter-spacing:1; ">※ 배우자 4만원, 그 외 가족 2만원, 셋째자녀 5만원</caption>
- </group>
- <group id="grp_btn" scroll="auto" style="left:0px; top:0px; width:1195px; height:27px; ">
- <line id="line75" class="line_6" style="x1:0; y1:25; x2:1195; y2:25; "/>
- <button id="btn_save" class="btn4_letter2" navindex="5" style="left:1135px; top:3px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSave();
- ]]>
- </script>
- </button>
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:13px; ">부양가족수당 신청</caption>
- <button id="button4" class="btn4_letter9" navindex="5" style="left:994px; top:3px; width:140px; height:22px; ">
- <caption>가족수당신청서출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.removeNodeset("/root/prntlst/fmlyheader");
- model.removeNodeset("/root/prntlst/fmlymaster");
-
- model.makeNode("/root/prntlst/fmlyheader");
- model.makeNode("/root/prntlst/fmlymaster");
- model.copyNode("/root/prntlst/fmlyheader", "/root/main/fmlyheader");
-
- var marrycheck = "N";
- var familycheck = "N";
- var jumincheck = "N";
- var disabledcheck = "N";
-
- if( model.getValue("/root/main/fmlyheader/empmarryyn") =="N" && dtg_fmlymaster.rows > 1 ){
- jumincheck = "Y";
- }
-
- if( model.getValue("/root/main/fmlyheader/empmarryyn") =="Y" ){
- marrycheck = "Y";
- }
-
- for( var i = 1 ; i <= (dtg_fmlymaster.rows-1) ; i++ ){
- if( model.getValue("/root/main/fmlymaster[" + i + "]/relation") == "02" || model.getValue("/root/main/fmlymaster[" + i + "]/relation") == "04" ||
- model.getValue("/root/main/fmlymaster[" + i + "]/relation") == "06" || model.getValue("/root/main/fmlymaster[" + i + "]/relation") == "07" ||
- (model.getValue("/root/main/fmlyheader/empmarryyn") =="Y" && model.getValue("/root/main/fmlymaster[" + i + "]/under18") == "N") ){
- familycheck = "Y";
- }
-
- if( model.getValue("/root/main/fmlymaster[" + i + "]/relation") == "13" || model.getValue("/root/main/fmlymaster[" + i + "]/relation") == "14" ){
- familycheck = "Y";
- jumincheck = "Y";
- }
- if( model.getValue("/root/main/fmlymaster[" + i + "]/disabledyn") == "Y" ){
- disabledcheck = "Y";
- }
- }
-
- model.makeValue("/root/prntlst/fmlyheader/disabledcheck", disabledcheck );
- model.makeValue("/root/prntlst/fmlyheader/familycheck", familycheck );
- model.makeValue("/root/prntlst/fmlyheader/marrycheck", marrycheck );
- model.makeValue("/root/prntlst/fmlyheader/jumincheck", jumincheck );
-
- var monthbf = "";
- var idx = 1;
-
- var count = 0 ;
- if( dtg_fmlymaster.rows < 6 ){
- for( var i = 1 ; i < dtg_fmlymaster.rows ; i++ ){
- monthbf = model.getValue("/root/main/fmlymaster[" + i + "]/fstrgstdt").toDate().getAddDate(-1,"M").getDateFormat("YYYYMMDD");
- monthbf = getCurrentDate().toDate().getAddDate(-1,"M").getDateFormat("YYYYMMDD");
- if( model.getValue("/root/main/fmlymaster[" + i + "]/fstrgstdt") >= monthbf ){
- model.makeNode("/root/prntlst/fmlymaster[" + idx + "]");
- model.copyNode("/root/prntlst/fmlymaster[" + idx +"]", "/root/main/fmlymaster[" + i + "]");
- model.setValue("/root/prntlst/fmlymaster[" + idx +"]/job", dtg_fmlymaster.labelMatrix( i , dtg_fmlymaster.colRef("job")) );
- model.setValue("/root/prntlst/fmlymaster[" + idx +"]/relation", dtg_fmlymaster.labelMatrix( i , dtg_fmlymaster.colRef("relation")) );
- model.setValue("/root/prntlst/fmlymaster[" + idx +"]/aplctnflag", dtg_fmlymaster.labelMatrix( i , dtg_fmlymaster.colRef("aplctnflag")) );
- idx++;
- }
- }
-
- for( var i = 1 ; i <= (6-idx) ; i++ ){
- model.makeNode("/root/prntlst/fmlymaster[" + idx + "]");
- model.copyNode("/root/prntlst/fmlymaster[" + idx +"]", "/root/main/fmlymaster[" + i + "]");
- model.makeValue("/root/prntlst/fmlymaster[" + idx +"]/job", "" );
- model.makeValue("/root/prntlst/fmlymaster[" + idx +"]/relation", "" );
- model.makeValue("/root/prntlst/fmlymaster[" + idx +"]/relname", "" );
- model.makeValue("/root/prntlst/fmlymaster[" + idx +"]/rregno", "" );
- model.makeValue("/root/prntlst/fmlymaster[" + idx +"]/reason", "" );
- model.makeValue("/root/prntlst/fmlymaster[" + idx +"]/reasonindate", "" );
- model.setValue("/root/prntlst/fmlymaster[" + idx +"]/aplctnflag", "");
- idx++;
- }
- }else{
- for( var i = 1 ; i < dtg_fmlymaster.rows ; i++ ){
- monthbf = model.getValue("/root/main/fmlymaster[" + i + "]/fstrgstdt").toDate().getAddDate(-1,"M").getDateFormat("YYYYMMDD");
- monthbf = getCurrentDate().toDate().getAddDate(-1,"M").getDateFormat("YYYYMMDD");
- if( model.getValue("/root/main/fmlymaster[" + i + "]/fstrgstdt") >= monthbf ){
- model.makeNode("/root/prntlst/fmlymaster[" + idx + "]");
- model.copyNode("/root/prntlst/fmlymaster[" + idx +"]", "/root/main/fmlymaster[" + i + "]");
- model.setValue("/root/prntlst/fmlymaster[" + idx +"]/job", dtg_fmlymaster.labelMatrix( i , dtg_fmlymaster.colRef("job")) );
- model.setValue("/root/prntlst/fmlymaster[" + idx +"]/relation", dtg_fmlymaster.labelMatrix( i , dtg_fmlymaster.colRef("relation")) );
- model.setValue("/root/prntlst/fmlymaster[" + idx +"]/aplctnflag", dtg_fmlymaster.labelMatrix( i , dtg_fmlymaster.colRef("aplctnflag")) );
- idx++;
- }
- }
- }
- model.refresh();
-
- exeReportPreview("RPRWP22001", "XMLSTR");
- ]]>
- </script>
- </button>
- <button id="button6" class="btn4_letter5" navindex="5" style="left:901px; top:3px; width:92px; height:22px; ">
- <caption>신청HELP</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- modal("SPRWP00907");
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|