123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMRPD03700" position="absolute 0 0 1211 826" titletext="SMRPD03700_개인복무계획신청" oninit="SMRPD03700_oninit" onload="SMRPD03700_onload">
- <Layouts>
- <Layout>
- <Div position="absolute 0 0 1195 25" id="group1">
- <Layouts>
- <Layout>
- <Static text="개인복무계획신청" position="absolute 0 0 152 25" id="caption6" class="tit_1"/>
- <Static id="caption4" class="patient_text_black"/>
- </Layout>
- </Layouts>
- </Div>
- <Div position="absolute 0 77 1195 813" id="group3" scrollbars="autoboth">
- <Layouts>
- <Layout>
- <Shape position="absolute 0 730 1005 736" linetype="vertical" id="line204" class="line_3" anchor="default"/>
- <Grid position="absolute 0 94 1004 356" id="grd_dutscheapplist" binddataset="ds_main_dutscheapp_dutscheapplist" anchor="default">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="120"/>
- <Column size="120"/>
- <Column size="90"/>
- <Column size="432"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell rowspan="2"/>
- <Cell col="1" rowspan="2" text="근무코드"/>
- <Cell col="2" rowspan="2" text="신청일"/>
- <Cell col="3" colspan="2" text="신청기간"/>
- <Cell col="5" rowspan="2" text="일수"/>
- <Cell col="6" rowspan="2" text="신청사유"/>
- <Cell col="7" rowspan="2" text="복무비용"/>
- <Cell col="8" rowspan="2" text="비용지급일자"/>
- <Cell col="9" rowspan="2" text="부서장 입력여부"/>
- <Cell col="10" rowspan="2" text="부서장승인"/>
- <Cell col="11" rowspan="2" text="인사팀승인"/>
- <Cell col="12" rowspan="2" text="지출결의확인"/>
- <Cell col="13" rowspan="2" text="기관코드"/>
- <Cell col="14" rowspan="2" text="사번"/>
- <Cell col="15" rowspan="2" text="근무지부서"/>
- <Cell col="16" rowspan="2" text="밤근무월제한일수"/>
- <Cell row="1" col="3" text="시작일"/>
- <Cell row="1" col="4" text="종료일"/>
- </Band>
- <Band id="body">
- <Cell celltype="head"/>
- <Cell col="1" displaytype="text" edittype="expr:disabledtf =='none' ? 'none' : 'text'" style="align:center middle;background:EXPR(bgcolor);background2:EXPR(bgcolor);" text="bind:dutcd"/>
- <Cell col="2" displaytype="date" edittype="expr:disabledtf =='none' ? 'none' : 'date'" style="align:center middle;padding:0 0 0 0;background:EXPR(bgcolor);background2:EXPR(bgcolor);" text="bind:srvarmappdd" calendardisplay="display" calendardisplaynulltype="none"/>
- <Cell col="3" displaytype="date" edittype="expr:disabledtf =='none' ? 'none' : 'date'" style="align:center middle;padding:0 0 0 0;background:EXPR(bgcolor);background2:EXPR(bgcolor);" text="bind:srvarmfromdd" calendardisplay="display" calendardisplaynulltype="none"/>
- <Cell col="4" displaytype="date" edittype="expr:disabledtf =='none' ? 'none' : 'date'" style="align:center middle;padding:0 0 0 0;background:EXPR(bgcolor);background2:EXPR(bgcolor);" text="bind:srvarmtodd" calendardisplay="display" calendardisplaynulltype="none"/>
- <Cell col="5" style="align:center middle;background:EXPR(bgcolor);background2:EXPR(bgcolor);" text="bind:srvarmdayno"/>
- <Cell col="6" displaytype="text" edittype="expr:disabledtf =='none' ? 'none' : 'text'" style="background:EXPR(bgcolor);background2:EXPR(bgcolor);" text="bind:appresn"/>
- <Cell col="7" text="bind:srvarmcost"/>
- <Cell col="8" text="bind:srvarmcostpaydd"/>
- <Cell col="9" style="align:center middle;" text="bind:deprtmangrinptyn" enable="false"/>
- <Cell col="10" text="bind:deprtmangraprvyn"/>
- <Cell col="11" text="bind:psnworkapryn"/>
- <Cell col="12" text="bind:expsaactrelcnfm"/>
- <Cell col="13" text="bind:instcd"/>
- <Cell col="14" text="bind:emplno"/>
- <Cell col="15" text="bind:dutplcedeptcd"/>
- <Cell col="16" text="bind:chul_seq"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Shape position="absolute 0 86 1195 92" linetype="vertical" id="line2" class="line_1" anchor="default"/>
- <Div position="absolute 0 10 1195 65" align="align:center top;" id="group4" anchor="default">
- <Layouts>
- <Layout>
- <Shape position="absolute 0 0 1195 55" id="roundrect2" type="roundrectangle" anchor="default"/>
- <Button position="absolute 1125 14 1181 36" align="align:left middle;" id="btn_search" class="btn1" taborder="4" text="조회" anchor="default" onclick="group3_group4_btn_search_onclick"/>
- <Static text="사원번호 :" position="absolute 401 31 487 48" id="caption1" class="search_name" anchor="default"/>
- <Button position="absolute 571 32 587 48" id="btn_emplno" class="icon_search" text="" anchor="default" onclick="group3_group4_btn_emplno_onclick"/>
- <Edit position="absolute 591 30 741 49" id="ipt_emplnm" class="input_search" enable="false" taborder="3" anchor="default" onkeydown="group3_group4_ipt_emplnm_onkeydown"/>
- <Edit position="absolute 487 30 567 49" align="align:center middle;" id="ipt_emplno" class="input_search" enable="false" taborder="2" anchor="default" style=":disabled {align:center middle;}" onkeydown="group3_group4_ipt_emplno_onkeydown"/>
- <Combo position="absolute 108 7 339 26" id="cmb_instcd" class="combo_search" taborder="1" anchor="default" onitemchanged="group3_group4_cmb_instcd_onitemchanged"/>
- <Static text="소속기관 :" position="absolute 20 8 106 25" id="caption7" class="search_name" anchor="default"/>
- <Combo position="absolute 422 7 497 26" align="align:center middle;" id="cmb_ymdflag" class="combo_search" codecolumn="codecolumn" datacolumn="datacolumn" anchor="default" style="align:center middle;">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">1</Col>
- <Col id="datacolumn">적용년월</Col>
- </Row>
- <Row>
- <Col id="codecolumn">2</Col>
- <Col id="datacolumn">신청년월</Col>
- </Row>
- </Rows>
- </Dataset>
- </Combo>
- <Calendar position="absolute 496 7 587 26" align="align:center middle;" id="ipt_srvarmapfromdd" class="input_essential" mask="yyyy-mm-dd" anchor="default" style="align:center middle;" autoskip="true" autoselect="true" onchanged="group3_group4_ipt_srvarmapfromdd_onchanged"/>
- <Calendar position="absolute 600 7 691 26" align="align:center middle;" id="ipt_srvarmaptodd" class="input_essential" mask="yyyy-mm-dd" anchor="default" style="align:center middle;" autoselect="true"/>
- <Static text="~" position="absolute 588 11 599 26" id="caption9" anchor="default"/>
- <Button position="absolute 192 32 208 48" id="btn_dutdept" class="icon_search" text="" anchor="default" onclick="group3_group4_btn_dutdept_onclick"/>
- <Edit position="absolute 212 30 339 49" id="ipt_dutdeptnm" class="input_search" taborder="3" anchor="default" onkeydown="group3_group4_ipt_dutdeptnm_onkeydown"/>
- <Static text="관리부서 :" position="absolute 20 31 107 48" id="caption2" class="search_name" anchor="default"/>
- <Edit position="absolute 108 30 188 49" id="ipt_dutdeptcd" class="input_search" taborder="2" anchor="default" maxlength="10" onkeydown="group3_group4_ipt_dutdeptcd_onkeydown"/>
- <Combo position="absolute 108 30 339 49" id="cmb_dutplce" class="combo_search" visible="true" anchor="default" onitemchanged="group3_group4_cmb_dutplce_onitemchanged"/>
- <Static position="absolute 401 9 416 26" id="caption10" class="search_name" anchor="default"/>
- </Layout>
- </Layouts>
- </Div>
- <Static text="개인신청내역" position="absolute 0 74 165 90" id="caption8" class="tit_2" anchor="default"/>
- <Button position="absolute 1019 69 1072 88" id="btn_grdadddutscheapplist" class="btn2" text="행추가" anchor="default" onclick="group3_btn_grdadddutscheapplist_onclick"/>
- <Button position="absolute 1074 69 1127 88" id="btn_grddeldutscheapplist" class="btn2" text="행삭제" anchor="default" onclick="group3_btn_grddeldutscheapplist_onclick"/>
- <Edit position="absolute 270 712 370 731" id="input11" class="input_default" visible="false" anchor="default"/>
- <Static text="보휴" position="absolute 186 711 268 734" align="align:center middle;" id="caption11" class="cell_1" visible="false" anchor="default"/>
- <Edit position="absolute 84 712 184 731" id="input13" class="input_default" visible="false" anchor="default"/>
- <Static text="휴가 보유 현황" position="absolute 5 691 123 704" id="caption283" class="tit_2" visible="false" anchor="default"/>
- <Static text="년차" position="absolute 0 711 82 734" align="align:center middle;" id="caption3" class="cell_1" visible="false" anchor="default"/>
- <Shape position="absolute 0 703 1005 709" linetype="vertical" id="line203" class="line_1" visible="false" anchor="default"/>
- <Grid position="absolute 0 386 1004 730" id="grd_predutscheapplist" binddataset="ds_main_predutscheapp_predutscheapplist" anchor="default">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25"/>
- <Column size="80"/>
- <Column size="80"/>
- <Column size="97"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="36"/>
- <Column size="60"/>
- <Column size="300"/>
- <Column size="54"/>
- <Column size="54"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell rowspan="2"/>
- <Cell col="1" rowspan="2" text="사원번호"/>
- <Cell col="2" rowspan="2" text="성명"/>
- <Cell col="3" rowspan="2" text="신청일"/>
- <Cell col="4" colspan="2" text="신청기간"/>
- <Cell col="6" rowspan="2" text="신청일수" wordwrap="word"/>
- <Cell col="7" rowspan="2" text="근무코드"/>
- <Cell col="8" rowspan="2" text="신청사유"/>
- <Cell col="9" rowspan="2" text="부서장 승인여부"/>
- <Cell col="10" rowspan="2" text="인사팀 승인여부"/>
- <Cell row="1" col="4" text="시작일"/>
- <Cell row="1" col="5" text="종료일"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" text="expr:currow + 1"/>
- <Cell col="1" text="bind:emplno"/>
- <Cell col="2" text="bind:name"/>
- <Cell col="3" style="align:center middle;" text="bind:srvarmappdd" mask="####-##-##" enable="false"/>
- <Cell col="4" style="align:center middle;" text="bind:srvarmfromdd" mask="####-##-##" enable="false"/>
- <Cell col="5" style="align:center middle;" text="bind:srvarmtodd" mask="####-##-##" enable="false"/>
- <Cell col="6" style="align:center middle;" text="bind:srvarmdayno"/>
- <Cell col="7" style="align:center middle;" text="bind:dutcd"/>
- <Cell col="8" text="bind:appresn"/>
- <Cell col="9" style="align:center middle;" text="bind:deprtmangraprvyn"/>
- <Cell col="10" style="align:center middle;" text="bind:psnworkapryn"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Shape position="absolute 0 382 1005 388" linetype="horizontal" id="line1" class="line_10" anchor="default"/>
- <Static text="기 신청내역" position="absolute 0 366 95 382" id="caption5" class="tit_2" anchor="default"/>
- <Grid position="absolute 1010 94 1195 734" id="grd_dutcdlist" binddataset="ds_main_dutcd_dutcdlist" anchor="default" oncelldblclick="group3_grd_dutcdlist_oncelldblclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="42"/>
- <Column size="119"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell rowspan="2" text="근무 코드"/>
- <Cell col="1" rowspan="2" text="근무명"/>
- <Cell col="2" rowspan="2" text="근무시간"/>
- <Cell col="3" rowspan="2" text="Day인원"/>
- <Cell col="4" rowspan="2" text="Evening인원"/>
- <Cell col="5" rowspan="2" text="Night인원"/>
- </Band>
- <Band id="body">
- <Cell style="align:left middle;font:arial,8;" text="bind:dutcd"/>
- <Cell col="1" style="align:left middle;font:arial,8;" text="bind:dutnm"/>
- <Cell col="2" text="bind:duttm"/>
- <Cell col="3" text="bind:daycnt"/>
- <Cell col="4" text="bind:eveningpsnno"/>
- <Cell col="5" text="bind:nigtpsnno"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Shape position="absolute 1005 93 1011 733" linetype="vertical" id="line4" class="line_10" anchor="default"/>
- <Button position="absolute 1129 69 1193 88" id="btn_saveexcel" class="btn2" text="엑셀저장" anchor="default" onclick="group3_btn_saveexcel_onclick"/>
- </Layout>
- </Layouts>
- </Div>
- <Div position="absolute 0 26 1195 70" id="group5" scrollbars="autoboth">
- <Layouts>
- <Layout>
- <Button position="absolute 1139 3 1195 25" id="btn_save" class="btn4" text="저장" anchor="default" onclick="group5_btn_save_onclick"/>
- <Shape position="absolute 0 38 1195 44" linetype="vertical" id="line75" class="line_6" anchor="default"/>
- </Layout>
- </Layouts>
- </Div>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_main_dutcd_dutcdlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_main_dutscheapp_dutscheapplist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_dutscheapp_dutscheapplist_oncolumnchanged"/>
- <Dataset id="ds_main_predutscheapp_predutscheapplist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_send_save_dutscheapplist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_send_dutcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="instcd" type="STRING" size="256"/>
- <Column id="dutunitcd" type="STRING" size="256"/>
- <Column id="dutunitnm" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_send_dutscheapp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_send_dutscheapp_oncolumnchanged">
- <ColumnInfo>
- <Column id="instcd" type="STRING" size="256"/>
- <Column id="srvarmapdd" type="STRING" size="256"/>
- <Column id="emplno" type="STRING" size="256"/>
- <Column id="emplnm" type="STRING" size="256"/>
- <Column id="dutunitcd" type="STRING" size="256"/>
- <Column id="dutunitnm" type="STRING" size="256"/>
- <Column id="newElement" type="STRING" size="256"/>
- <Column id="srvarmapfromdd" type="STRING" size="256"/>
- <Column id="srvarmaptodd" type="STRING" size="256"/>
- <Column id="ymdflag" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="instcd"/>
- <Col id="srvarmapdd"/>
- <Col id="emplno"/>
- <Col id="emplnm"/>
- <Col id="dutunitcd"/>
- <Col id="dutunitnm"/>
- <Col id="newElement"/>
- <Col id="srvarmapfromdd"/>
- <Col id="srvarmaptodd"/>
- <Col id="ymdflag">1</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_tempday_dutinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_send_retrparams" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_temp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_temp_userinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_init_cmb_dutplce_combocodelist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_init_combocd_combocdlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_init_combocd_combocodelist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="dutunitcd" type="STRING" size="256"/>
- <Column id="dutunitnm" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="group3.group4.ipt_emplnm" propid="value" datasetid="ds_send_dutscheapp" columnid="emplnm"/>
- <BindItem id="item1" compid="group3.group4.ipt_emplno" propid="value" datasetid="ds_send_dutscheapp" columnid="emplno"/>
- <BindItem id="item2" compid="group3.group4.cmb_instcd" propid="value" datasetid="ds_send_dutscheapp" columnid="instcd"/>
- <BindItem id="item3" compid="group3.group4.cmb_ymdflag" propid="value" datasetid="ds_send_dutscheapp" columnid="ymdflag"/>
- <BindItem id="item4" compid="group3.group4.ipt_srvarmapfromdd" propid="value" datasetid="ds_send_dutscheapp" columnid="srvarmapfromdd"/>
- <BindItem id="item5" compid="group3.group4.ipt_srvarmaptodd" propid="value" datasetid="ds_send_dutscheapp" columnid="srvarmaptodd"/>
- <BindItem id="item6" compid="group3.group4.ipt_dutdeptnm" propid="value" datasetid="ds_send_dutscheapp" columnid="dutunitnm"/>
- <BindItem id="item7" compid="group3.group4.ipt_dutdeptcd" propid="value" datasetid="ds_send_dutscheapp" columnid="dutunitcd"/>
- <BindItem id="item8" compid="group3.group4.cmb_dutplce" propid="value" datasetid="ds_send_dutscheapp" columnid="dutunitcd"/>
- </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 SMRPD03700_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj); //폼 초기화
- }
- function SMRPD03700_onload(obj:Form, e:LoadEventInfo)
- {
- grdf_setRowTypeIcon(group3.grd_dutscheapplist,0);
- fInit();
- }
- var DUT_UNIT_CD = "";
- var DUT_UNIT_NM = "";
- function fInit()
- {
- misfGridInit("group3.grd_dutscheapplist");
- misfGridInit("group3.grd_dutscheapplist");
- misfGridInit("group3.grd_predutscheapplist");
-
- var dt = new Date(utlf_getCurrentDate().substr(0, 4), utlf_getCurrentDate().substr(4, 2), 0);
-
- var oParam = {};
- oParam.id = "TRRPD10102";
- oParam.service = "dligclaznsmngtapp.DutAppMngt";
- oParam.method = "reqGetDutymdInfo";
- oParam.inds = "req=ds_send_retrparams";
- oParam.outds = "ds_tempday_dutinfo=dutlist";
- oParam.async = false;
- tranf_submit(oParam);
- group3.group4.ipt_srvarmapfromdd.value = ds_tempday_dutinfo.getColumn(0, "fromymd");
- group3.group4.ipt_srvarmaptodd.value = ds_tempday_dutinfo.getColumn(0, "toymd");
-
- misfMsterDetailSet(group3.grd_dutscheapplist, null, "TRRPD03701" ,"Y");
- misfMsterDetailSet(group3.grd_predutscheapplist, null, "TRRPD03703" ,"N");
-
- misfComboInstCdListMulti("group3.group4.cmb_instcd",group3.group4.ipt_srvarmapfromdd.value,"","N");
- misfGetAndSetUserInfo();
- misfGetUserAuth();
- rpdfSetControlAuth();
- ds_send_dutscheapp.updatecontrol = false;
- ds_send_dutscheapp.enableevent = false;
- rpdfComboCdList(group3.group4.cmb_dutplce); // 권한별 근무부서 세팅
- group3.group4.cmb_dutplce.index = 0;
- ds_init_combocd_combocodelist.addColumn("dutunitcd", "string");//
- ds_init_combocd_combocodelist.addColumn("dutunitnm", "string");//
- rpdfSetDutUnitCombo();
-
- ds_send_dutscheapp.setColumn(0, "instcd", sysf_getUserInfo("dutplceinstcd"));
- ds_send_dutscheapp.setColumn(0, "emplno", sysf_getUserInfo("userid"));
- ds_send_dutscheapp.setColumn(0, "emplnm", sysf_getUserInfo("usernm"));
- ds_send_dutscheapp.setColumn(0, "dutunitcd", DUT_PLCEDEPT_CD);
- ds_send_dutscheapp.setColumn(0, "dutunitnm", DUT_PLCEDEPT_NM);
- ds_send_dutscheapp.enableevent = true;
- ds_send_dutscheapp.updatecontrol = true;
- ds_send_dutcd.setColumn(0, "dutunitcd", DUT_UNIT_CD);
- ds_send_dutcd.setColumn(0, "dutunitnm", DUT_UNIT_NM);
- frmf_inputEnterKey("group3.group4.btn_search", "onclick", new ClickEventInfo );
- rpdfSetControlByJobRespCd("group3.group4.ipt_emplno,group3.group4.btn_emplno,group3.group4.ipt_emplnm");
-
- group3.group4.btn_search.enable = (frmf_checkAuth("R"));
- group5.btn_save.enable = (frmf_checkAuth("X"));
- group3.group4.ipt_emplno.enable = false;
- group3.group4.ipt_emplnm.enable = false;
- group3.group4.btn_emplno.enable = false;
-
- if(DUTY_PART_YN == "Y"){
- group3.group4.ipt_emplno.enable = true;
- group3.group4.ipt_emplnm.enable = true;
- group3.group4.btn_emplno.enable = true;
- }
-
- group3.group4.cmb_ymdflag.value = '2';
- }
- function ds_main_dutscheapp_dutscheapplist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
- {
- if(e.columnid== "dutcd")
- {
- var sDutCd = group3.grd_dutscheapplist.getCellValue(ds_main_dutscheapp_dutscheapplist.rowposition, group3.grd_dutscheapplist.getBindCellIndex("body", "dutcd"));
- var node = ds_main_dutcd_dutcdlist.lookup("dutcd", sDutCd.toUpperCase(), "dutcd");
-
- if( utlf_isNull(node) )
- {
- sysf_messageBox("등록되지 않은 근무코드를 사용", "E001");
- ds_main_dutscheapp_dutscheapplist.updatecontrol = false;
- ds_main_dutscheapp_dutscheapplist.enableevent = false;
- ds_main_dutscheapp_dutscheapplist.setColumn(ds_main_dutscheapp_dutscheapplist.rowposition, "dutcd", "");
- ds_main_dutscheapp_dutscheapplist.enableevent = true;
- ds_main_dutscheapp_dutscheapplist.updatecontrol = true;
-
- return;
- }
- ds_main_dutscheapp_dutscheapplist.setColumn(ds_main_dutscheapp_dutscheapplist.rowposition, "dutcd", sDutCd.toUpperCase());
- }
- if (e.columnid == "srvarmfromdd")
- {
- var sFromDD = utlf_transNullToEmpty(group3.grd_dutscheapplist.getCellValue(ds_main_dutscheapp_dutscheapplist.rowposition, group3.grd_dutscheapplist.getBindCellIndex("body", "srvarmfromdd")));
- var sToDD = utlf_transNullToEmpty(group3.grd_dutscheapplist.getCellValue(ds_main_dutscheapp_dutscheapplist.rowposition, group3.grd_dutscheapplist.getBindCellIndex("body", "srvarmtodd")));
- var sDutCd = utlf_transNullToEmpty(group3.grd_dutscheapplist.getCellValue(ds_main_dutscheapp_dutscheapplist.rowposition, group3.grd_dutscheapplist.getBindCellIndex("body", "dutcd")));
- if( sToDD.length != 8)
- {
- ds_main_dutscheapp_dutscheapplist.setColumn(ds_main_dutscheapp_dutscheapplist.rowposition, "srvarmtodd", sFromDD);
- }
- if( !utlf_isNull(sDutCd) )
- {
- if(sDutCd.substr(0, 1) == "B" && sFromDD.length == 8)
- {
- var dtCurrent = new Date(misfConvertChar2Date(sFromDD, "/"));
- dtCurrent.setDate(dtCurrent.getDate() + 89);
- dsf_makeValue(ds_temp,"date","string", dtCurrent.getVarDate());
-
- ds_main_dutscheapp_dutscheapplist.setColumn(ds_main_dutscheapp_dutscheapplist.rowposition, "srvarmtodd", ds_temp.getColumn(0, "date").replace("-", "").replace("-", "").replace("/", "").replace("/", ""));
- }
- }
- var dayno = utlf_getDateInterval(group3.grd_dutscheapplist.getCellValue(ds_main_dutscheapp_dutscheapplist.rowposition,group3.grd_dutscheapplist.getBindCellIndex("body", "srvarmfromdd")), group3.grd_dutscheapplist.getCellValue(ds_main_dutscheapp_dutscheapplist.rowposition, group3.grd_dutscheapplist.getBindCellIndex("body", "srvarmtodd")));
- if (isNaN(dayno) || utlf_isNull(dayno)){
- dayno = 0;
- }
- var dayno1 = 0;
- if (sDutCd == "DV" || sDutCd == "EV" || sDutCd == "RV" || sDutCd == "SV" || sDutCd == "V1" || sDutCd == "PV"){
- dayno1 = parseInt(dayno + 1) * 0.5;
- }else{
- dayno1 = dayno + 1;
- }
- ds_main_dutscheapp_dutscheapplist.setColumn(ds_main_dutscheapp_dutscheapplist.rowposition, "srvarmdayno", dayno1);
- }
- else if (e.columnid == "srvarmtodd")
- {
- var sDutCd = group3.grd_dutscheapplist.getCellValue(ds_main_dutscheapp_dutscheapplist.rowposition, group3.grd_dutscheapplist.getBindCellIndex("body","dutcd"));
- var dayno = utlf_getDateInterval(group3.grd_dutscheapplist.getCellValue(ds_main_dutscheapp_dutscheapplist.rowposition,group3.grd_dutscheapplist.getBindCellIndex("body","srvarmfromdd")), group3.grd_dutscheapplist.getCellValue(ds_main_dutscheapp_dutscheapplist.rowposition,group3.grd_dutscheapplist.getCellValue("body","srvarmtodd")));
- if (isNaN(dayno) || utlf_isNull(dayno)){
- dayno = 0;
- }
- var dayno1 = 0;
- if (sDutCd == "DV" || sDutCd == "EV" || sDutCd == "RV" || sDutCd == "SV" || sDutCd == "V1" || sDutCd == "PV"){
- dayno1 = parseInt(dayno + 1) * 0.5;
- }else{
- dayno1 = dayno + 1;
- }
- ds_main_dutscheapp_dutscheapplist.setColumn(ds_main_dutscheapp_dutscheapplist.rowposition, "srvarmdayno", dayno1);
- }
- else if (e.columnid == "dutcd")
- {
- var sDutCd = group3.grd_dutscheapplist.getCellValue(ds_main_dutscheapp_dutscheapplist.rowposition, group3.grd_dutscheapplist.getBindCellIndex("body","dutcd"));
- var dayno = utlf_getDateInterval(group3.grd_dutscheapplist.getCellValue(ds_main_dutscheapp_dutscheapplist.rowposition,group3.grd_dutscheapplist.getBindCellIndex("body", "srvarmfromdd")), group3.grd_dutscheapplist.getCellValue(ds_main_dutscheapp_dutscheapplist.rowposition,group3.grd_dutscheapplist.getBindCellIndex("body","srvarmtodd")));
- if (isNaN(dayno) || utlf_isNull(dayno)){
- dayno = 0;
- }
- var dayno1 = 0;
- if (sDutCd == "DV" || sDutCd == "EV" || sDutCd == "RV" || sDutCd == "SV" || sDutCd == "V1" || sDutCd == "PV"){
- dayno1 = parseInt(dayno + 1) * 0.5;
- }else{
- dayno1 = dayno + 1;
- }
- ds_main_dutscheapp_dutscheapplist.setColumn(ds_main_dutscheapp_dutscheapplist.rowposition, "srvarmdayno", dayno1);
- }
- }
- function group3_group4_btn_search_onclick(obj:Button, e:ClickEventInfo)
- {
- fRetrieve();
- }
- function fRetrieve()
- {
- if( utlf_isNull(group3.group4.ipt_emplno.value) || utlf_isNull(group3.group4.ipt_emplnm.value) )
- {
- sysf_messageBox("사원번호를", "C001");
- return;
- }
- ds_send_dutcd.setColumn(0, "instcd", ds_send_dutscheapp.getColumn(0, "instcd"));
- misfMsterDetailRetrieve();
-
- ds_send_dutcd.addColumn("deptcd", "string");
- ds_send_dutcd.setColumn(0, "deptcd", ds_send_dutcd.getColumn(0, "dutunitcd"));
-
- var oParam = {};
- oParam.id = "TRRPD03702";
- oParam.service = "dligclaznsmngtapp.DeptDutyCodeMngt";
- oParam.method = "reqGetDeptDutyCodeList";
- oParam.inds = "req=ds_send_dutcd";
- oParam.outds = "ds_main_dutcd_dutcdlist=deptdutcdlist";
- oParam.async = false;
-
- tranf_submit(oParam);
- for(var i=0; i<ds_main_dutscheapp_dutscheapplist.rowcount; i++)
- {
- var sCnfmYn = group3.grd_dutscheapplist.getCellValue(i, group3.grd_dutscheapplist.getBindCellIndex("body","deprtmangraprvyn"));
- var chulseq = group3.grd_dutscheapplist.getCellValue(i, group3.grd_dutscheapplist.getBindCellIndex("body","chul_seq"));
- if(sCnfmYn == "Y")
- {
- ds_main_dutscheapp_dutscheapplist.setColumn(i, "bgcolor", "#DDDDDD");
- //grd_dutscheapplist.rowStyle(i, "all", "background-color") = "#DDDDDD";
- misfSetReadOnlyCol(group3.grd_dutscheapplist, "dutcd,srvarmappdd,srvarmfromdd,srvarmtodd,appresn", true, i);
- }
- else
- {
- ds_main_dutscheapp_dutscheapplist.setColumn(i, "bgcolor", "#FFFFFF");
- //grd_dutscheapplist.rowStyle(i, "all", "background-color") = "#FFFFFF";
- misfSetReadOnlyCol(group3.grd_dutscheapplist, "dutcd,srvarmappdd,srvarmfromdd,srvarmtodd,appresn", false, i);
- }
-
- if( !utlf_isNull(chulseq)){
-
- ds_main_dutscheapp_dutscheapplist.setColumn(i, "disabledtf", "none");
- //grd_dutscheapplist.cellAttribute("disabled", i, 1, i, grd_dutscheapplist.colRef("appresn")) = "true";
- }
- }
- }
- function group3_group4_btn_emplno_onclick(obj:Button, e:ClickEventInfo)
- {
- rpbfOpenPopUpList("SPRPB00101", group3.group4.ipt_emplno, "emplno,emplnm,dutunitcd,dutunitnm", "", "N");
-
- ds_send_dutcd.setColumn(0, "dutunitcd", ds_send_dutscheapp.getColumn(0, "dutunitcd"));
- ds_send_dutcd.setColumn(0, "dutunitnm", ds_send_dutscheapp.getColumn(0, "dutunitnm"));
- }
- function group3_group4_ipt_emplnm_onkeydown(obj:Edit, e:KeyEventInfo)
- {
- if( e.keycode == 13 ){
- if(group3.group4.ipt_emplnm.value == group3.group4.ipt_emplnm.text) return;
- group3.group4.ipt_emplnm.value = group3.group4.ipt_emplnm.text;
- rpbfValidationCheck("EMPLNM", "emplno,emplnm,dutunitcd,dutunitnm");
-
- ds_send_dutcd.setColumn(0, "dutunitcd", ds_send_dutscheapp.getColumn(0, "dutunitcd"));
- ds_send_dutcd.setColumn(0, "dutunitnm", ds_send_dutscheapp.getColumn(0, "dutunitnm"));
- frmf_inputEnterKey("group3.group4.btn_search", "onclick", new ClickEventInfo );
- }
- }
- function ds_send_dutscheapp_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
- {
- if(e.columnid == "emplnm"){
- rpbfValidationCheck("EMPLNO", "emplno,emplnm,dutunitcd,dutunitnm");
-
- ds_send_dutcd.setColumn(0, "dutunitcd", ds_send_dutscheapp.getColumn(0, "dutunitcd"));
- ds_send_dutcd.setColumn(0, "dutunitnm", ds_send_dutscheapp.getColumn(0, "dutunitnm"));
-
- frmf_inputEnterKey("group3.group4.btn_search", "onclick", new ClickEventInfo );
- }
- if(e.columnid == "emplno"){
- rpbfValidationCheck("EMPLNO", "emplno,emplnm,dutunitcd,dutunitnm");
-
- ds_send_dutcd.setColumn(0, "dutunitcd", ds_send_dutscheapp.getColumn(0, "dutunitcd"));
- ds_send_dutcd.setColumn(0, "dutunitnm", ds_send_dutscheapp.getColumn(0, "dutunitnm"));
-
- frmf_inputEnterKey("group3.group4.btn_search", "onclick", new ClickEventInfo );
- }
-
- if(e.columnid == "dutunitnm"){
- misfValidationCheck("02", "", "dutunitcd,dutunitnm", group3.group4.cmb_instcd.value, "instcd" );
- ds_send_dutcd.setColumn(0, "dutunitcd", ds_send_dutscheapp.getColumn(0, "dutunitcd"));
- }
-
- if(e.columnid == "dutunitcd"){
- misfValidationCheck("02", "", "dutunitcd,dutunitnm", group3.group4.cmb_instcd.value, "instcd" );
- ds_send_dutcd.setColumn(0, "dutunitcd", ds_send_dutscheapp.getColumn(0, "dutunitcd"));
- }
- }
- function group3_group4_ipt_emplno_onkeydown(obj:Edit, e:KeyEventInfo)
- {
- if( e.keycode == 13 ){
- if(group3.group4.ipt_emplno.value == group3.group4.ipt_emplno.text) return;
- group3.group4.ipt_emplno.value = group3.group4.ipt_emplno.text;
- rpbfValidationCheck("EMPLNO", "emplno,emplnm,dutunitcd,dutunitnm");
-
- ds_send_dutcd.setColumn(0, "dutunitcd", ds_send_dutscheapp.getColumn(0, "dutunitcd"));
- ds_send_dutcd.setColumn(0, "dutunitnm", ds_send_dutscheapp.getColumn(0, "dutunitnm"));
-
- frmf_inputEnterKey("group3.group4.btn_search", "onclick", new ClickEventInfo );
- }
- }
- function group3_group4_cmb_instcd_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
- {
- ds_send_dutcd.setColumn(0, "instcd", ds_send_dutscheapp.getColumn(0, "instcd"));
- }
- function group3_group4_ipt_srvarmapfromdd_onchanged(obj:Calendar, e:ChangeEventInfo)
- {
- var instcd = group3.group4.cmb_instcd.value;
- if( utlf_getStringLength(String(group3.group4.ipt_srvarmapfromdd.value)) == "8" ) {
- ds_send_dutscheapp.updatecontrol = false;
- ds_send_dutscheapp.deleteColumn("instcd");
- ds_send_dutscheapp.updatecontrol = true;
- ds_send_dutscheapp.addColumn("instcd", "string");
- misfComboInstCdListMulti("group3.group4.cmb_instcd",group3.group4.ipt_srvarmapfromdd.value,"","N");
- group3.group4.cmb_instcd.value = instcd;
- }
- }
- function group3_group4_btn_dutdept_onclick(obj:Button, e:ClickEventInfo)
- {
- misfOpenPopUpList("02", group3.group4.ipt_dutdeptcd,"","dutunitcd,dutunitnm", group3.group4.cmb_instcd.value + "," + group3.group4.ipt_srvarmaptodd.value, "instcd,basedd");
- ds_send_dutcd.setColumn(0, "dutunitcd", ds_send_dutscheapp.getColumn(0, "dutunitcd"));
- }
- function group3_group4_ipt_dutdeptnm_onkeydown(obj:Edit, e:KeyEventInfo)
- {
- if( e.keycode == 13 ){
- group3.group4.ipt_dutdeptnm.value = group3.group4.ipt_dutdeptnm.text;
-
- misfValidationCheck("02", "", "dutunitcd,dutunitnm", group3.group4.cmb_instcd.value, "instcd" );
- ds_send_dutcd.setColumn(0, "dutunitcd", ds_send_dutscheapp.getColumn(0, "dutunitcd"));
- }
- }
- function group3_group4_ipt_dutdeptcd_onkeydown(obj:Edit, e:KeyEventInfo)
- {
- if( e.keycode == 13 ){
- group3.group4.ipt_dutdeptcd.value = group3.group4.ipt_dutdeptcd.text;
-
- misfValidationCheck("02", "", "dutunitcd,dutunitnm", group3.group4.cmb_instcd.value, "instcd" );
- ds_send_dutcd.setColumn(0, "dutunitcd", ds_send_dutscheapp.getColumn(0, "dutunitcd"));
- }
- }
- function group3_group4_cmb_dutplce_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
- {
- ds_send_dutcd.setColumn(0, "dutunitcd", ds_send_dutscheapp.getColumn(0, "dutunitcd"));
- frmf_inputEnterKey("group3.group4.btn_search", "onclick", new ClickEventInfo );
- }
- function group3_btn_grdadddutscheapplist_onclick(obj:Button, e:ClickEventInfo)
- {
- fAddRow();
- }
- function fAddRow()
- {
- if( utlf_isNull(group3.group4.ipt_emplno.value) || utlf_isNull(group3.group4.ipt_emplnm.value) )
- {
- sysf_messageBox("사원번호를", "C001");
- return;
- }
- misfGridIUD(group3.grd_dutscheapplist, "A");
- ds_main_dutscheapp_dutscheapplist.updatecontrol = false;
- ds_main_dutscheapp_dutscheapplist.enableevent = false;
- ds_main_dutscheapp_dutscheapplist.addColumn("srvarmappdd", "string");
- ds_main_dutscheapp_dutscheapplist.addColumn("dutplcedeptcd", "string");
- ds_main_dutscheapp_dutscheapplist.addColumn("deprtmangraprvyn", "string");
- ds_main_dutscheapp_dutscheapplist.addColumn("psnworkapryn", "string");
- ds_main_dutscheapp_dutscheapplist.addColumn("dutcd", "string");
- ds_main_dutscheapp_dutscheapplist.addColumn("appresn", "string");
- ds_main_dutscheapp_dutscheapplist.addColumn("srvarmdayno", "string");
- ds_main_dutscheapp_dutscheapplist.addColumn("chul_seq", "string");
- ds_main_dutscheapp_dutscheapplist.addColumn("bgcolor", "string");
- ds_main_dutscheapp_dutscheapplist.addColumn("disabledtf", "string");
- ds_main_dutscheapp_dutscheapplist.addColumn("srvarmtodd", "string");
- ds_main_dutscheapp_dutscheapplist.addColumn("srvarmfromdd", "string");
-
- ds_main_dutscheapp_dutscheapplist.setColumn(ds_main_dutscheapp_dutscheapplist.rowposition, "srvarmappdd", utlf_getCurrentDate());
- ds_main_dutscheapp_dutscheapplist.setColumn(ds_main_dutscheapp_dutscheapplist.rowposition, "dutplcedeptcd", ds_send_dutscheapp.getColumn(0, "dutunitcd"));
- ds_main_dutscheapp_dutscheapplist.setColumn(ds_main_dutscheapp_dutscheapplist.rowposition, "deprtmangraprvyn", "N");
- ds_main_dutscheapp_dutscheapplist.setColumn(ds_main_dutscheapp_dutscheapplist.rowposition, "psnworkapryn", "N");
- ds_main_dutscheapp_dutscheapplist.enableevent = true;
- ds_main_dutscheapp_dutscheapplist.updatecontrol = true;
-
- //grd_dutscheapplist.col = grd_dutscheapplist.colRef("dutcd");
- //grd_dutscheapplist.editCell();
- }
- function group3_btn_grddeldutscheapplist_onclick(obj:Button, e:ClickEventInfo)
- {
- var chul_seq = group3.grd_dutscheapplist.getCellValue(ds_main_dutscheapp_dutscheapplist.rowposition, group3.grd_dutscheapplist.getBindCellIndex("body","chul_seq"));
- if( !utlf_isNull(chul_seq) ){
- sysf_messageBox("해당자료는 직원출장에서 생성된자료입니다. 직원출장에서 삭제해 주시기 바랍니다.", "I999");
- return;
- }
- fDelRow();
- }
- function fDelRow()
- {
- var oDs = this.objects[group3.grd_dutscheapplist.binddataset];
- var arrRows = grdf_getSelectedRows(group3.grd_dutscheapplist);
- for(var i=arrRows.length-1; i>=0; i--)
- {
- var iRowIdx = arrRows[i];
- var sCnfmYn = group3.grd_dutscheapplist.getCellValue(iRowIdx, group3.grd_dutscheapplist.getBindCellIndex("body", "deprtmangraprvyn"));
- var sInptYn = group3.grd_dutscheapplist.getCellValue(iRowIdx, group3.grd_dutscheapplist.getBindCellIndex("body", "deprtmangrinptyn"));
-
- if(sCnfmYn == "Y")
- {
- sysf_messageBox("부서장 승인이 난 내역은 삭제 할 수 없습니다.", "I999");
- continue;
- }
- else
- {
- if(sInptYn == "Y")
- {
- sysf_messageBox("부서장 확인된 내역이 아니어도\n\n부서장이 입력한 내역이므로 삭제 할 수 없습니다.", "I999");
- continue;
- }
- else
- {
- if(ds_main_dutscheapp_dutscheapplist.getRowType(iRowIdx) == 2)
- {
- oDs.deleteRow(iRowIdx)
- }
- else
- {
- grdf_setStatus(group3.grd_chngapplist, "D", arrRows);
- }
- }
- }
-
- }
- }
- function group3_grd_dutcdlist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
- {
- fSetDutCdAppList();
- }
- function fSetDutCdAppList()
- {
- if (ds_main_dutscheapp_dutscheapplist.rowposition > -1)
- {
- var sDeprtAppYn = group3.grd_dutscheapplist.getCellValue(ds_main_dutscheapp_dutscheapplist.rowposition, group3.grd_dutscheapplist.getBindCellIndex("body","deprtmangraprvyn"));
- var sFromDD = group3.grd_dutscheapplist.getCellValue(ds_main_dutscheapp_dutscheapplist.rowposition, group3.grd_dutscheapplist.getBindCellIndex("body","srvarmfromdd"));
- var sSetCd = group3.grd_dutcdlist.getCellValue(ds_main_dutcd_dutcdlist.rowposition, group3.grd_dutcdlist.getBindCellIndex("body","dutcd"));
-
- if(sDeprtAppYn != "Y")
- {
- ds_main_dutscheapp_dutscheapplist.setColumn(ds_main_dutscheapp_dutscheapplist.rowposition, "dutcd", sSetCd);
- if(ds_main_dutscheapp_dutscheapplist.getRowType(ds_main_dutscheapp_dutscheapplist.rowposition) == 1)
- {
- ds_main_dutscheapp_dutscheapplist.updatecontrol = false;
- ds_main_dutscheapp_dutscheapplist.enableevent = false;
- ds_main_dutscheapp_dutscheapplist.setRowType(ds_main_dutscheapp_dutscheapplist.rowposition, "U");
- ds_main_dutscheapp_dutscheapplist.enableevent = true;
- ds_main_dutscheapp_dutscheapplist.updatecontrol = true;
- }
- //if(sSetCd == "B")
- //{
- group3.grd_dutscheapplist.setCellPos(group3.grd_dutscheapplist.getBindCellIndex("body","dutcd"));
- //ds_main_dutscheapp_dutscheapplist_oncolumnchanged();
- //}
- }
- else
- {
- sysf_messageBox("부서장 승인 된 내역입니다.", "I999");
- }
- }
- }
- function group3_btn_saveexcel_onclick(obj:Button, e:ClickEventInfo)
- {
- grdf_exportExcel(group3.grd_dutscheapplist, "excel", "sheetname1" , true, "" , "" , true);
- }
- function group5_btn_save_onclick(obj:Button, e:ClickEventInfo)
- {
- fSave();
- }
- function fSave()
- {
- var bSave = true;
- var iCnt = 0;
-
- for(var i=0; i<ds_main_dutscheapp_dutscheapplist.rowcount; i++)
- {
- if(ds_main_dutscheapp_dutscheapplist.getRowType(i) == 1)
- {
- continue;
- }
- else
- {
- iCnt++;
- }
-
- var sDutCd = group3.grd_dutscheapplist.getCellValue(i, group3.grd_dutscheapplist.getBindCellIndex("body","dutcd"));
- var sFromDD = group3.grd_dutscheapplist.getCellValue(i, group3.grd_dutscheapplist.getBindCellIndex("body","srvarmfromdd"));
- var sToDD = group3.grd_dutscheapplist.getCellValue(i, group3.grd_dutscheapplist.getBindCellIndex("body","srvarmtodd"));
- var sAppResn = group3.grd_dutscheapplist.getCellValue(i, group3.grd_dutscheapplist.getBindCellIndex("body","appresn"));
- if( utlf_isNull(sDutCd) || utlf_isNull(sFromDD) || utlf_isNull(sToDD) || utlf_isNull(sAppResn) )
- {
- bSave = false;
- }
- }
- if(bSave && iCnt > 0)
- {
- misfSave("TXRPD03701");
- fRetrieve();
- }
- else if(!bSave)
- {
- sysf_messageBox("[ 근무코드 | 시작일 | 종료일 | 신청사유 ] 는 입력하셔야 합니다.", "I999");
- }
- }
- ]]></Script>
- </Form>
- </FDL>
|