123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMRPD02400" position="absolute 0 0 1199 781" titletext="년차 자료 생성" oninit="SMRPD02400_oninit" onload="SMRPD02400_onload">
- <Layouts>
- <Layout>
- <Static id="caption6" text="연차자료생성" class="tit_1" position="absolute 0 0 189 25"/>
- <Shape id="line75" class="line_6" position="absolute 0 44 1195 50" anchor="left top right"/>
- <Button id="btn_createyearno" taborder="1" text="연차생성" class="btn4" position="absolute 1057 23 1137 45" anchor="top right" onclick="btn_createyearno_onclick"/>
- <Button id="btn_save" taborder="2" text="저장" class="btn4" position="absolute 1139 23 1195 45" anchor="top right" onclick="btn_save_onclick"/>
- <Div id="group2" taborder="3" class="div_SA2" position="absolute 0 48 1195 88" anchor="left top right">
- <Layouts>
- <Layout>
- <Static id="caption2" text="작업년도 :" class="search_name" position="absolute 275 11 387 28"/>
- <Shape id="line13" linetype="vertical" class="line_4" position="absolute 1107 9 1113 31" anchor="top right"/>
- <Static id="caption3" text="사원번호 :" class="search_name" position="absolute 488 11 594 28"/>
- <Calendar id="ipt_yearno" taborder="9" class="input_s_essential" position="absolute 363 10 463 29" mask="yyyy" autoselect="true" autoskip="true" dateformat="yyyy" value="null" editformat="yyyy" style="align:center middle;" onchanged="group2_ipt_yearno_onchanged"/>
- <Edit id="ipt_emplno" taborder="10" class="input_search" position="absolute 576 10 646 29" autoselect="true" autoskip="true" onkeyup="group2_ipt_emplno_onkeyup"/>
- <Button id="btn_emplhelp" taborder="11" class="icon_search" position="absolute 649 10 665 26" onclick="group2_btn_emplhelp_onclick"/>
- <Edit id="ipt_emplnm" taborder="12" class="input_search" position="absolute 667 10 807 29" autoselect="true" autoskip="true" onkeyup="group2_ipt_emplnm_onkeyup"/>
- <Button id="btn_search" taborder="13" text="조회" class="btn1" position="absolute 1125 9 1181 31" anchor="top right" onclick="group2_btn_search_onclick"/>
- <Combo id="cmb_instcd" taborder="14" class="combo_search" position="absolute 100 10 245 29"/>
- <Static id="caption7" text="근무기관 :" class="search_name" position="absolute 10 11 96 28"/>
- <Radio id="radio1" taborder="15" columncount="2" rowcount="0" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 929 9 1050 29" onitemchanged="group2_radio1_onitemchanged">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">I</Col>
- <Col id="datacolumn">생성</Col>
- </Row>
- <Row>
- <Col id="codecolumn">D</Col>
- <Col id="datacolumn">삭제</Col>
- </Row>
- </Rows>
- </Dataset>
- </Radio>
- <Static id="caption1" text="생성구분 :" class="search_name" position="absolute 840 11 931 28"/>
- </Layout>
- </Layouts>
- </Div>
- <Button id="btn_addrow" taborder="4" text="행추가" class="btn2" position="absolute 1006 95 1059 114" anchor="top right" onclick="btn_addrow_onclick"/>
- <Button id="btn_delrow" taborder="5" text="행삭제" class="btn2" position="absolute 1061 95 1114 114" anchor="top right" onclick="btn_delrow_onclick"/>
- <Button id="btn_saveexcel" taborder="6" text="엑셀저장" class="btn7" position="absolute 1116 95 1196 114" anchor="top right" onclick="btn_saveexcel_onclick"/>
- <Shape id="line7" class="line_10" position="absolute 0 114 1195 120" anchor="left top right"/>
- <Grid id="grd_yearnolist" taborder="7" binddataset="ds_main_list_yearnolist" useinputpanel="false" position="absolute 0 119 1195 778" autoenter="select" autofittype="col" cellsizingtype="col" onexpanddown="grd_yearnolist_onexpanddown" anchor="all">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="27"/>
- <Column size="55"/>
- <Column size="55"/>
- <Column size="85"/>
- <Column size="140"/>
- <Column size="0"/>
- <Column size="55"/>
- <Column size="55"/>
- <Column size="55"/>
- <Column size="55"/>
- <Column size="45"/>
- <Column size="0"/>
- <Column size="40"/>
- <Column size="40"/>
- <Column size="0"/>
- <Column size="68"/>
- <Column size="68"/>
- <Column size="35"/>
- <Column size="35"/>
- <Column size="35"/>
- <Column size="35"/>
- <Column size="35"/>
- <Column size="35"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- </Columns>
- <Rows>
- <Row size="26" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1" text="사원번호"/>
- <Cell col="2" text="성명"/>
- <Cell col="3" text="부서코드"/>
- <Cell col="4" text="부서명"/>
- <Cell col="5" text="생성 여부"/>
- <Cell col="6" text="발생연차"/>
- <Cell col="7" text="사용연차"/>
- <Cell col="8" text="차감연차"/>
- <Cell col="9" text="잔여연차"/>
- <Cell col="10" text="근로율"/>
- <Cell col="11" text="총일수"/>
- <Cell col="12" text="분자"/>
- <Cell col="13" text="분모"/>
- <Cell col="14" text="년도"/>
- <Cell col="15" text="통상임금"/>
- <Cell col="16" text="년차수당"/>
- <Cell col="17" text="육아"/>
- <Cell col="18" text="공로"/>
- <Cell col="19" text="휴일"/>
- <Cell col="20" text="파업"/>
- <Cell col="21" text="결근 병가"/>
- <Cell col="22" text="휴직"/>
- <Cell col="23" text="발생하계"/>
- <Cell col="24" text="사용하계"/>
- <Cell col="25" text="잔여하계"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" expr="currow+1"/>
- <Cell col="1" displaytype="text" edittype="expr:getRowType(currow) == 2 ? 'text' : 'none'" style="color:EXPR(createyn == 'Y' ? '#FF0000' : '#000000');color2:EXPR(createyn == 'Y' ? '#FF0000' : '#000000');" text="bind:emplno" expandshow="show" enable="false"/>
- <Cell col="2" edittype="none" style="color:EXPR(createyn == 'Y' ? '#FF0000' : '#000000');color2:EXPR(createyn == 'Y' ? '#FF0000' : '#000000');" text="bind:emplnm"/>
- <Cell col="3" displaytype="text" edittype="text" style="color:EXPR(createyn == 'Y' ? '#FF0000' : '#000000');color2:EXPR(createyn == 'Y' ? '#FF0000' : '#000000');" text="bind:dutplcedeptcd" expandshow="show"/>
- <Cell col="4" edittype="none" style="align:left middle;padding:0 0 0 2;color:EXPR(createyn == 'Y' ? '#FF0000' : '#000000');color2:EXPR(createyn == 'Y' ? '#FF0000' : '#000000');" text="bind:deptnm"/>
- <Cell col="5" style="color:EXPR(createyn == 'Y' ? '#FF0000' : '#000000');color2:EXPR(createyn == 'Y' ? '#FF0000' : '#000000');" text="bind:createyn"/>
- <Cell col="6" displaytype="text" edittype="text" style="align:right middle;padding:0 10 0 0;color:EXPR(createyn == 'Y' ? '#FF0000' : '#000000');color2:EXPR(createyn == 'Y' ? '#FF0000' : '#000000');" text="bind:genryearno" mask="999.0" maskchar=" "/>
- <Cell col="7" displaytype="number" edittype="normal" style="align:right middle;padding:0 10 0 0;color:EXPR(createyn == 'Y' ? '#FF0000' : '#000000');color2:EXPR(createyn == 'Y' ? '#FF0000' : '#000000');" text="bind:useyearno" mask="###.0" maskchar="0"/>
- <Cell col="8" displaytype="number" style="padding:0 10 0 0;color:EXPR(createyn == 'Y' ? '#FF0000' : '#000000');color2:EXPR(createyn == 'Y' ? '#FF0000' : '#000000');" text="bind:overcnt" mask="###.0"/>
- <Cell col="9" style="align:right middle;padding:0 10 0 0;color:EXPR(createyn == 'Y' ? '#FF0000' : '#000000');color2:EXPR(createyn == 'Y' ? '#FF0000' : '#000000');" text="bind:spreyearno" mask="999.0" maskchar=" "/>
- <Cell col="10" style="align:right middle;padding:0 5 0 0;color:EXPR(createyn == 'Y' ? '#FF0000' : '#000000');color2:EXPR(createyn == 'Y' ? '#FF0000' : '#000000');" text="bind:olmtspreyearno"/>
- <Cell col="11" style="color:EXPR(createyn == 'Y' ? '#FF0000' : '#000000');color2:EXPR(createyn == 'Y' ? '#FF0000' : '#000000');" text="bind:genrhealholi" mask="#,###"/>
- <Cell col="12" displaytype="number" style="align:center middle;color:EXPR(createyn == 'Y' ? '#FF0000' : '#000000');color2:EXPR(createyn == 'Y' ? '#FF0000' : '#000000');" text="bind:usehealholi"/>
- <Cell col="13" displaytype="number" style="align:center middle;color:EXPR(createyn == 'Y' ? '#FF0000' : '#000000');color2:EXPR(createyn == 'Y' ? '#FF0000' : '#000000');" text="bind:sprehealholi"/>
- <Cell col="14" displaytype="text" edittype="text" style="color:EXPR(createyn == 'Y' ? '#FF0000' : '#000000');color2:EXPR(createyn == 'Y' ? '#FF0000' : '#000000');" text="bind:yearno"/>
- <Cell col="15" displaytype="number" style="color:EXPR(createyn == 'Y' ? '#FF0000' : '#000000');color2:EXPR(createyn == 'Y' ? '#FF0000' : '#000000');" text="bind:odnrpay"/>
- <Cell col="16" displaytype="number" style="color:EXPR(createyn == 'Y' ? '#FF0000' : '#000000');color2:EXPR(createyn == 'Y' ? '#FF0000' : '#000000');" text="bind:anualalwn"/>
- <Cell col="17" displaytype="number" style="align:center middle;color:EXPR(createyn == 'Y' ? '#FF0000' : '#000000');color2:EXPR(createyn == 'Y' ? '#FF0000' : '#000000');" text="bind:healalwn"/>
- <Cell col="18" displaytype="number" style="align:center middle;color:EXPR(createyn == 'Y' ? '#FF0000' : '#000000');color2:EXPR(createyn == 'Y' ? '#FF0000' : '#000000');" text="bind:setcnt"/>
- <Cell col="19" displaytype="number" style="align:center middle;color:EXPR(createyn == 'Y' ? '#FF0000' : '#000000');color2:EXPR(createyn == 'Y' ? '#FF0000' : '#000000');" text="bind:origenryearno"/>
- <Cell col="20" style="color:EXPR(createyn == 'Y' ? '#FF0000' : '#000000');color2:EXPR(createyn == 'Y' ? '#FF0000' : '#000000');" text="bind:oriuseyearno" mask="9.0" maskchar=" "/>
- <Cell col="21" displaytype="number" style="align:center middle;color:EXPR(createyn == 'Y' ? '#FF0000' : '#000000');color2:EXPR(createyn == 'Y' ? '#FF0000' : '#000000');" text="bind:orispreyearno"/>
- <Cell col="22" displaytype="number" style="align:center middle;color:EXPR(createyn == 'Y' ? '#FF0000' : '#000000');color2:EXPR(createyn == 'Y' ? '#FF0000' : '#000000');" text="bind:oriolmtspreyearno"/>
- <Cell col="23" displaytype="number" style="align:center middle;color:EXPR(createyn == 'Y' ? '#FF0000' : '#000000');color2:EXPR(createyn == 'Y' ? '#FF0000' : '#000000');" text="bind:hagyecnt"/>
- <Cell col="24" displaytype="number" style="align:center middle;color:EXPR(createyn == 'Y' ? '#FF0000' : '#000000');color2:EXPR(createyn == 'Y' ? '#FF0000' : '#000000');" text="bind:hagyeuse"/>
- <Cell col="25" displaytype="number" style="align:center middle;color:EXPR(createyn == 'Y' ? '#FF0000' : '#000000');color2:EXPR(createyn == 'Y' ? '#FF0000' : '#000000');" text="bind:hagyerem"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static id="caption25" text="연차자료개별등록" class="tit_2" position="absolute 0 98 151 119"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_send_retrparams" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_send_retrparams_oncolumnchanged">
- <ColumnInfo>
- <Column id="instcd" type="STRING" size="256"/>
- <Column id="yearno" type="STRING" size="256"/>
- <Column id="emplno" type="STRING" size="256"/>
- <Column id="emplnm" type="STRING" size="256"/>
- <Column id="idflag" type="STRING" size="256"/>
- <Column id="newyn" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="instcd"/>
- <Col id="yearno"/>
- <Col id="emplno"/>
- <Col id="emplnm"/>
- <Col id="idflag">I</Col>
- <Col id="newyn"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_list_yearnolist" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_list_yearnolist_oncolumnchanged">
- <ColumnInfo>
- <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
- <Column id="anualcalcyy" type="STRING" size="256" sumtext="년차계산년도"/>
- <Column id="emplno" type="STRING" size="256" sumtext="사원번호"/>
- <Column id="emplnm" type="STRING" size="256" sumtext="성명"/>
- <Column id="dutplcedeptcd" type="STRING" size="256" sumtext="근무부서코드(실데이터 dutunitcd)"/>
- <Column id="deptnm" type="STRING" size="256" sumtext="부서명"/>
- <Column id="odnrpay" type="STRING" size="256" sumtext="통상임금"/>
- <Column id="genryearno" type="STRING" size="256" sumtext="발생년차"/>
- <Column id="useyearno" type="INT" size="256" sumtext="사용년차"/>
- <Column id="olmtspreyearno" type="STRING" size="256" sumtext="잔여년차"/>
- <Column id="spreyearno" type="STRING" size="256" sumtext="잔여년차"/>
- <Column id="anualalwn" type="STRING" size="256" sumtext="년차수당"/>
- <Column id="genrhealholi" type="STRING" size="256" sumtext="년일수"/>
- <Column id="usehealholi" type="STRING" size="256" sumtext="소정근무일수(분자)"/>
- <Column id="sprehealholi" type="STRING" size="256" sumtext="소정근무일수(분모)"/>
- <Column id="yearno" type="STRING" size="256" sumtext="년차계산년도"/>
- <Column id="healalwn" type="STRING" size="256" sumtext="육아휴직수"/>
- <Column id="setcnt" type="STRING" size="256" sumtext="공로연수횟수"/>
- <Column id="origenryearno" type="STRING" size="256" sumtext="공휴일수"/>
- <Column id="oriuseyearno" type="STRING" size="256" sumtext="파업일수"/>
- <Column id="orispreyearno" type="STRING" size="256" sumtext="결근일수"/>
- <Column id="oriolmtspreyearno" type="STRING" size="256" sumtext="휴직일수"/>
- <Column id="hagyecnt" type="STRING" size="256" sumtext="휴직일수"/>
- <Column id="hagyeuse" type="STRING" size="256" sumtext="휴직일수"/>
- <Column id="hagyerem" type="STRING" size="256" sumtext="휴직일수"/>
- <Column id="createyn" type="STRING" size="256" sumtext="생성여부"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_rslt_rsltlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="retcnt" type="STRING" size="256" sumtext="반환수"/>
- <Column id="errormsg" type="STRING" size="256" sumtext="에러메세지"/>
- </ColumnInfo>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="group2.ipt_yearno" propid="value" datasetid="ds_send_retrparams" columnid="yearno"/>
- <BindItem id="item1" compid="group2.ipt_emplno" propid="value" datasetid="ds_send_retrparams" columnid="emplno"/>
- <BindItem id="item2" compid="group2.ipt_emplnm" propid="value" datasetid="ds_send_retrparams" columnid="emplnm"/>
- <BindItem id="item3" compid="group2.radio1" propid="value" datasetid="ds_send_retrparams" columnid="idflag"/>
- <BindItem id="item4" compid="group2.cmb_instcd" propid="value" datasetid="ds_send_retrparams" columnid="instcd"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2017-06-19
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2017-06-19 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- include "com_commonxp::comm_main.xjs";
- include "mis_miscommonxp::MIS.xjs";
- include "mis_dligclaznsmngtxp::RPD001.xjs";
- include "mis_humtrafactmngtxp::RPB001.xjs";
- function SMRPD02400_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SMRPD02400_onload(obj:Form, e:LoadEventInfo)
- {
- grdf_initGrid(grd_yearnolist);
-
- fInitialize();
- }
- function fInitialize()
- {
- ds_main_list_yearnolist.clearData();
-
- ds_send_retrparams.setColumn(0, "yearno", String(utlf_getCurrentDate()).substr(0, 4));
-
- misfComboInstCdListMulti("group2.cmb_instcd",ds_send_retrparams.getColumn(0, "yearno")+String(utlf_getCurrentDate()).substr(4, 4),"","N");
-
- //misfMsterDetailSet(grd_yearnolist, null, "TRRPD02401", "Y");
-
- ds_send_retrparams.setColumn(0, "instcd", sysf_getUserInfo("dutplceinstcd"));
- }
- function group2_ipt_yearno_onchanged(obj:Calendar, e:ChangeEventInfo)
- {
- var instcd = group2.cmb_instcd.value;
- var date = String(obj.value).substr(0,4);
-
- ds_send_retrparams.setColumn(0, "yearno", date);
-
- if( utlf_getStringLength(date) == "4" )
- {
- if(String(utlf_getCurrentDate()).substr(0, 4) == date)
- {
- misfComboInstCdListMulti("group2.cmb_instcd",String(utlf_getCurrentDate()).substr(0, 8),"","N");
- }
- else
- {
- misfComboInstCdListMulti("group2.cmb_instcd",date+"1231","","Y");
- }
- group2.cmb_instcd.value = instcd;
- }
- }
- function group2_ipt_emplno_onkeyup(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13)
- {
- obj.updateToDataset();
- rpbfValidationCheck("EMPLNO", "emplno,emplnm");
- }
- }
- function ds_send_retrparams_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
- {
- if(e.columnid == "emplno")
- {
- group2.ipt_emplno.value = e.newvalue;
- group2.ipt_emplno.setFocus();
- rpbfValidationCheck("EMPLNO", "emplno,emplnm");
- }
-
- if(e.columnid == "emplnm")
- {
- group2.ipt_emplnm.value = e.newvalue;
- group2.ipt_emplnm.setFocus();
- rpbfValidationCheck("EMPLNM", "emplno,emplnm");
- }
- }
- function group2_btn_emplhelp_onclick(obj:Button, e:ClickEventInfo)
- {
- rpbfOpenPopUpList("SPRPB00101", group2.ipt_emplno, "emplno,emplnm", "", "N");
- }
- function group2_ipt_emplnm_onkeyup(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13)
- {
- obj.updateToDataset();
- rpbfValidationCheck("EMPLNM", "emplno,emplnm");
- }
- }
- function group2_radio1_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
- {
- if(obj.value == "I")
- {
- btn_createyearno.text = "연차생성";
- }
- else
- {
- btn_createyearno.text = "연차삭제";
- }
- }
- function group2_btn_search_onclick(obj:Button, e:ClickEventInfo)
- {
- fRetrieve();
- }
- function fRetrieve()
- {
- if(utlf_isNull(ds_send_retrparams.getColumn(0, "yearno")) || String(ds_send_retrparams.getColumn(0, "yearno")).length != 4)
- {
- sysf_messageBox("작업년도를", "C001");
- return;
- }
-
- var oParam = {};
- oParam.id = "TRRPD02401";
- oParam.service = "dligclaznsmngtapp.DutScheMngt";
- oParam.method = "reqGetYearNoList";
- oParam.inds = "req=ds_send_retrparams";
- oParam.outds = "ds_main_list_yearnolist=yearnolist";
- oParam.async = false;
- //oParam.callback = "cf_TRRPD02401";
- tranf_submit(oParam);
- }
- function ds_main_list_yearnolist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
- {
- if(e.columnid == "emplno")
- {
- rpbfValidationCheck("EMPLNO", "emplno,emplnm");
- }
- else if(e.columnid == "emplnm")
- {
- rpbfValidationCheck("EMPLNM", "emplno,emplnm");
- }
-
- var genryearno = parseFloat(obj.getColumn(e.row, "genryearno"));
- var useyearno = parseFloat(obj.getColumn(e.row, "useyearno"));
-
- if (isNaN(genryearno) || utlf_isNull(genryearno) || genryearno == "")
- {
- genryearno = 0;
- }
- if (isNaN(useyearno) || utlf_isNull(useyearno) || useyearno == "")
- {
- useyearno = 0;
- }
-
- var spreyearno = genryearno - useyearno;
-
- obj.setColumn(e.row, "spreyearno", spreyearno);
- }
- function grd_yearnolist_onexpanddown(obj:Grid, e:GridMouseEventInfo)
- {
- if(e.cell == grd_yearnolist.getBindCellIndex("Body", "emplno"))
- {
- rpbfOpenPopUpList("SPRPB00101", grd_yearnolist, "emplno,emplnm", "", "N");
- }
- else if(e.cell == grd_yearnolist.getBindCellIndex("Body", "dutplcedeptcd"))
- {
- misfValidationCheck("02", "", "dutplcedeptcd,deptnm" );
- }
- }
- function btn_addrow_onclick(obj:Button, e:ClickEventInfo)
- {
- var addRow = ds_main_list_yearnolist.addRow();
- ds_main_list_yearnolist.setColumn(addRow, "yearno", ds_send_retrparams.getColumn(0, "yearno"));
- ds_main_list_yearnolist.setColumn(addRow, "instcd", ds_send_retrparams.getColumn(0, "instcd"));
- }
- function btn_delrow_onclick(obj:Button, e:ClickEventInfo)
- {
- misfGridIUD(grd_yearnolist, "D");
- }
- function btn_saveexcel_onclick(obj:Button, e:ClickEventInfo)
- {
- misfSaveExcel(grd_yearnolist);
- }
- function btn_createyearno_onclick(obj:Button, e:ClickEventInfo)
- {
- var sYearNo = ds_send_retrparams.getColumn(0, "yearno");
- var sIdFlag = ds_send_retrparams.getColumn(0, "idflag");
- var sEmplNo = ds_send_retrparams.getColumn(0, "emplno");
- var sEmplNm = ds_send_retrparams.getColumn(0, "emplnm");
-
- var sMsg = " [ " + sYearNo + " ] 년 ";
-
- if(!utlf_isNull(sEmplNo))
- {
- sMsg = sMsg + " [ " + sEmplNm + " ] 님의 ";
- }
-
- var dlgRslt = "";
-
- if(ds_send_retrparams.getColumn(0, "idflag") == "I")
- {
- dlgRslt = sysf_messageBox(sMsg + " 년차를 생성 하시겠습니까?", "Q999");
- }
- else
- {
- sysf_messageBox(" 년차를 삭제하시면 기존의 [ 사용 현황 ] 및 [ 잔여 현황 ] 이 삭제가 됩니다.", "E999");
- dlgRslt = sysf_messageBox(sMsg + "년차 정보를 삭제 하시겠습니까?", "Q999");
- }
-
- if(dlgRslt != 6)
- {
- return;
- }
-
- ds_send_retrparams.setColumn(0, "newyn", "N");
-
- var oParam = {};
- oParam.id = "TXRPD02401";
- oParam.service = "dligclaznsmngtapp.DutScheMngt";
- oParam.method = "reqSaveCurYearNoList";
- oParam.inds = "req=ds_send_retrparams";
- oParam.outds = "ds_main_rslt_rsltlist=rsltlist";
- oParam.async = false;
- //oParam.callback = "cf_TXRPD02401";
- tranf_submit(oParam);
-
- if(!utlf_isNull(ds_main_rslt_rsltlist.getColumn(0, "errormsg")))
- {
- sysf_messageBox(ds_main_rslt_rsltlist.getColumn(0, "errormsg"), "I999");
- fRetrieve();
- }
- }
- function btn_save_onclick(obj:Button, e:ClickEventInfo)
- {
- var oParam = {};
- oParam.id = "TXRPD02402";
- oParam.service = "dligclaznsmngtapp.DutScheMngt";
- oParam.method = "reqExeSaveReglEmplList";
- oParam.inds = "req=ds_main_list_yearnolist:u";
- oParam.async = false;
- //oParam.callback = "cf_TXRPD02402";
- tranf_submit(oParam);
-
- dsf_setDefaultVal(ds_main_list_yearnolist, "genryearno:0,useyearno:0,spreyearno:0,genrhealholi:0,usehealholi:0,sprehealholi:0");
-
- //group2.btn_search.click();
- }
- ]]></Script>
- </Form>
- </FDL>
|