1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMRPD01900" position="absolute 0 0 1198 797" titletext="표준번표대상자" onload="SMRPD01900_onload">
- <Layouts>
- <Layout>
- <Div position="absolute 0 16 1195 29" id="group1">
- <Layouts>
- <Layout>
- <Static id="caption4" class="patient_text_black" position="absolute 0 0 0 0"/>
- </Layout>
- </Layouts>
- </Div>
- <Div position="absolute 0 26 1195 54" id="group5" scrollbars="autoboth" anchor="left top right">
- <Layouts>
- <Layout>
- <Shape position="absolute 0 21 1195 27" id="line75" class="line_6" anchor="left top right"/>
- <Button position="absolute 1070 0 1126 22" id="btn_save" class="btn4" text="저장" anchor="top right" onclick="group5_btn_save_onclick"/>
- <Button position="absolute 1127 0 1195 22" id="btn_clear" class="btn4" text="초기화" anchor="top right" onclick="group5_btn_clear_onclick"/>
- </Layout>
- </Layouts>
- </Div>
- <Div position="absolute 0 50 1196 795" id="group3" scrollbars="autohorz" anchor="all">
- <Layouts>
- <Layout>
- <Shape position="absolute 194 69 849 75" id="line1" class="line_10" anchor="left top right"/>
- <Div position="absolute 0 1 1195 41" align="align:center top;" id="group4" anchor="left top right" class="div_SA2">
- <Layouts>
- <Layout>
- <Shape position="absolute 1107 6 1113 34" linetype="vertical" id="line3" class="line_4" anchor="top right"/>
- <Static text="근무부서 :" position="absolute 293 11 379 28" id="caption1" class="search_name" anchor="default"/>
- <Static text="사원번호 :" position="absolute 617 11 703 28" id="caption2" class="search_name" anchor="default"/>
- <Edit position="absolute 703 10 773 29" id="ipt_emplno" class="input_search" taborder="6" anchor="default" autoselect="true" onkeydown="group3_group4_ipt_emplno_onkeydown"/>
- <Button position="absolute 778 12 794 28" id="btn_empl" class="icon_search" text="" anchor="default" onclick="group3_group4_btn_empl_onclick"/>
- <Edit position="absolute 799 10 919 29" id="ipt_emplnm" class="input_search" taborder="7" anchor="default" autoselect="true" onkeydown="group3_group4_ipt_emplnm_onkeydown"/>
- <Button position="absolute 1125 9 1181 31" align="align:left middle;" id="btn_search" class="btn1" taborder="8" text="조회" anchor="top right" onclick="group3_group4_btn_search_onclick"/>
- <Static text="적용일자 :" position="absolute 119 10 205 27" id="caption7" class="search_name" visible="false" anchor="default"/>
- <Combo position="absolute 380 10 459 29" id="cmb_dutplce" class="combo_essential" visible="false" anchor="default"/>
- <Calendar position="absolute 197 10 287 29" align="align:center middle;" id="ipt_appdd" class="input_essential" taborder="1" visible="false" anchor="default" onchanged="group3_group4_ipt_appdd_onchanged"/>
- <Edit position="absolute 380 10 460 29" align="align:center middle;" id="ipt_dutdeptcd" class="input_search" taborder="4" anchor="default" onkeydown="group3_group4_ipt_dutdeptcd_onkeydown" autoselect="true"/>
- <Edit position="absolute 483 10 603 29" id="ipt_dutdeptnm" class="input_search" taborder="5" anchor="default" autoselect="true" onkeydown="group3_group4_ipt_dutdeptnm_onkeydown"/>
- <Button position="absolute 464 12 480 28" id="btn_dutdept" class="icon_search" text="" anchor="default" onclick="group3_group4_btn_dutdept_onclick"/>
- <Combo position="absolute 102 10 255 29" id="cmb_instcd" class="combo_search" taborder="1" anchor="default"/>
- <Static text="소속기관 :" position="absolute 14 11 100 28" id="caption8" class="search_name" anchor="default"/>
- </Layout>
- </Layouts>
- </Div>
- <Static text="관리부서 목록" position="absolute 0 53 136 70" id="caption9" class="tit_2" anchor="default"/>
- <Shape position="absolute 0 69 193 75" linetype="horizontal" id="line4" class="line_10" anchor="default"/>
- <Static text="표준번표 적용대상자" position="absolute 194 53 349 70" id="caption3" class="tit_2" anchor="default"/>
- <Grid position="absolute 194 74 849 744" id="grd_stndduttabletrgtmanlist" class="text_center" binddataset="ds_main_stndduttabletrgtmanlist" anchor="all" oncellclick="group3_grd_stndduttabletrgtmanlist_oncellclick" onexpandup="group3_grd_stndduttabletrgtmanlist_onexpandup" ontextchanged="group3_grd_stndduttabletrgtmanlist_ontextchanged" cellclickbound="cell" autoenter="select">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25" band="left"/>
- <Column size="0"/>
- <Column size="65"/>
- <Column size="60"/>
- <Column size="55"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="100"/>
- <Column size="70"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="70"/>
- <Column size="40"/>
- <Column size="60"/>
- <Column size="0"/>
- <Column size="32"/>
- <Column size="30"/>
- <Column size="31"/>
- <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" taborder="undefined"/>
- <Cell col="1" rowspan="2" text="기관코드" taborder="undefined"/>
- <Cell col="2" rowspan="2" text="사원번호" taborder="undefined"/>
- <Cell col="3" rowspan="2" text="성명" taborder="undefined"/>
- <Cell col="4" rowspan="2" text="직종" taborder="undefined"/>
- <Cell col="5" text="소속부서"/>
- <Cell col="6" text="현소속부서"/>
- <Cell col="7" text="근무부서"/>
- <Cell col="8" rowspan="2" text="근무지" taborder="undefined"/>
- <Cell col="9" rowspan="2" text="분류" taborder="undefined"/>
- <Cell col="10" text="팀"/>
- <Cell col="11" text="유닛"/>
- <Cell col="12" text="직군"/>
- <Cell col="13" text="직열"/>
- <Cell col="14" rowspan="2" text="근무유형" taborder="undefined"/>
- <Cell col="15" colspan="2" text="통상근무" taborder="undefined"/>
- <Cell col="17" text="야간근무"/>
- <Cell col="18" colspan="2" text="야간근무" taborder="undefined"/>
- <Cell col="20" rowspan="2" text="정렬순서" wordwrap="char" taborder="undefined"/>
- <Cell col="21" text="flag"/>
- <Cell col="22" text="적용일자"/>
- <Cell row="1" col="5" text="소속부서"/>
- <Cell row="1" col="6" text="현소속부서"/>
- <Cell row="1" col="7" text="근무부서"/>
- <Cell row="1" col="10" text="팀"/>
- <Cell row="1" col="11" text="유닛"/>
- <Cell row="1" col="12" text="직군"/>
- <Cell row="1" col="13" text="직열"/>
- <Cell row="1" col="15" text="코드"/>
- <Cell row="1" col="16" text="코드명"/>
- <Cell row="1" col="17" text="Grade"/>
- <Cell row="1" col="18" text="순번"/>
- <Cell row="1" col="19" text="여부"/>
- <Cell row="1" col="21" text="flag"/>
- <Cell row="1" col="22" text="적용일자"/>
- </Band>
- <Band id="body">
- <Cell celltype="head"/>
- <Cell col="1" text="bind:instcd"/>
- <Cell col="2" displaytype="text" edittype="text" class="input_essential" text="bind:emplno" editautoselect="true" expandshow="show" enable="false"/>
- <Cell col="3" displaytype="text" edittype="text" text="bind:emplnm" editautoselect="true" enable="false"/>
- <Cell col="4" text="bind:jobkindnm"/>
- <Cell col="5" text="bind:posdeptcd"/>
- <Cell col="6" text="bind:posdeptnm"/>
- <Cell col="7" text="bind:dutdeptcd"/>
- <Cell col="8" text="bind:dutdeptnm"/>
- <Cell col="9" displaytype="combo" edittype="combo" style="padding:1 2 1 2;" text="bind:untitle" combodisplayrowcount="20"/>
- <Cell col="10" text="bind:teamcd"/>
- <Cell col="11" text="bind:unitcd"/>
- <Cell col="12" text="bind:grupjoblncd"/>
- <Cell col="13" text="bind:joblncd"/>
- <Cell col="14" displaytype="combo" edittype="combo" style="padding:1 2 1 2;" text="bind:dutkindcd" combodataset="ds_cmb_dutkindcd" combocodecol="value" combodatacol="label" combodisplayrowcount="20"/>
- <Cell col="15" displaytype="text" edittype="text" text="bind:dutcd" editautoselect="true" expandshow="show"/>
- <Cell col="16" displaytype="text" edittype="text" text="bind:dutnm" editautoselect="true"/>
- <Cell col="17" displaytype="text" edittype="text" text="bind:dutgrde"/>
- <Cell col="18" displaytype="text" edittype="text" text="bind:dutseq" editautoselect="true"/>
- <Cell col="19" displaytype="checkbox" edittype="checkbox" text="bind:nigtdutyn" expr="expr:(nigtdutyn=="Y"||nigtdutyn==1)?1:0"/>
- <Cell col="20" displaytype="text" edittype="text" text="bind:prntseq" editautoselect="true"/>
- <Cell col="21" text="bind:flag"/>
- <Cell col="22" displaytype="date" edittype="date" class="input_essential" text="bind:appdd" mask="yyyy-mm-dd" enable="false"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Grid position="absolute 0 74 193 744" align="align:center middle;" id="grd_dutdeptlist" binddataset="ds_main_dutdeptlist" anchor="left top bottom" oncelldblclick="group3_grd_dutdeptlist_oncelldblclick" onselectchanged="group3_grd_dutdeptlist_onselectchanged">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25" band="left"/>
- <Column size="0"/>
- <Column size="125"/>
- <Column size="30"/>
- <Column size="100"/>
- <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" taborder="undefined"/>
- <Cell col="1" rowspan="2" text="기관코드" taborder="undefined"/>
- <Cell col="2" rowspan="2" text="부서명" taborder="undefined"/>
- <Cell col="3" rowspan="2" text="정원" taborder="undefined"/>
- <Cell col="4" rowspan="2" text="정원적용일자" taborder="undefined"/>
- <Cell col="5" text="부서코드"/>
- <Cell row="1" col="5" text="부서코드"/>
- </Band>
- <Band id="body">
- <Cell celltype="head"/>
- <Cell col="1" text="bind:instcd"/>
- <Cell col="2" style="align:left top;padding:5 2 1 2;" text="bind:dutdeptnm" wordwrap="word"/>
- <Cell col="3" displaytype="text" edittype="text" text="bind:nrcnt"/>
- <Cell col="4" displaytype="expr:utlf_isNull(appdd) ? 'normal' : 'date'" edittype="date" text="bind:appdd" editautoselect="true"/>
- <Cell col="5" text="bind:dutdeptcd"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button position="absolute 769 47 849 69" align="align:left middle;" id="btn_excadd" class="btn7" text="엑셀입력" anchor="top right" onclick="group3_btn_excadd_onclick"/>
- <Button position="absolute 632 47 685 69" id="btn_grddel" class="btn2" text="행삭제" anchor="top right" onclick="group3_btn_grddel_onclick"/>
- <Button position="absolute 577 47 630 69" id="btn_grdadd" class="btn2" text="행추가" anchor="top right" onclick="group3_btn_grdadd_onclick"/>
- <Button position="absolute 687 47 767 69" id="btn_excsave" class="btn7" text="엑셀저장" anchor="top right" onclick="group3_btn_excsave_onclick"/>
- <Edit readonly="true" position="absolute 480 50 505 69" id="output1" visible="false" anchor="default"/>
- <Edit readonly="true" position="absolute 515 50 540 69" id="output2" visible="false" anchor="default"/>
- <Grid position="absolute 850 74 1195 744" align="align:center middle;" id="grd_dutdetaillist" binddataset="ds_main_dutdetaillist" anchor="top right bottom" onexpandup="group3_grd_dutdetaillist_onexpandup" autoenter="select">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25" band="left"/>
- <Column size="65"/>
- <Column size="60"/>
- <Column size="60"/>
- <Column size="69"/>
- <Column size="0"/>
- <Column size="50"/>
- <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" taborder="undefined"/>
- <Cell col="1" rowspan="2" text="사원번호" taborder="undefined"/>
- <Cell col="2" rowspan="2" text="성명" taborder="undefined"/>
- <Cell col="3" rowspan="2" text="분류" taborder="undefined"/>
- <Cell col="4" rowspan="2" text="년월" taborder="undefined"/>
- <Cell col="5" text="부서"/>
- <Cell col="6" rowspan="2" text="부서장" taborder="undefined"/>
- <Cell col="7"/>
- <Cell col="8"/>
- <Cell row="1" col="5" text="부서"/>
- <Cell row="1" col="7"/>
- <Cell row="1" col="8"/>
- </Band>
- <Band id="body">
- <Cell celltype="head"/>
- <Cell col="1" displaytype="text" edittype="text" class="input_essential" text="bind:emplno" editautoselect="true" expandshow="show" enable="false"/>
- <Cell col="2" displaytype="text" edittype="text" text="bind:emplnm" editautoselect="true" enable="false"/>
- <Cell col="3" displaytype="combo" edittype="combo" style="padding:1 2 1 2;" text="bind:untitle" combodisplayrowcount="20"/>
- <Cell col="4" displaytype="expr:utlf_isNull(dutym) ? 'normal' : 'date'" edittype="date" text="bind:dutym" mask="expr:utlf_isNull(dutym) ? '' : 'yyyy-MM'" editautoselect="true"/>
- <Cell col="5" text="bind:dutdeptnm"/>
- <Cell col="6" displaytype="text" edittype="text" text="bind:fstrgstrid" editautoselect="true"/>
- <Cell col="7" text="bind:dutdeptcd"/>
- <Cell col="8" text="bind:beforedutym"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Shape position="absolute 850 69 1195 75" linetype="horizontal" id="line2" class="line_10" anchor="top right"/>
- <Button position="absolute 1098 47 1151 69" id="btn_deldutdetaillist" class="btn2" visible="false" text="행삭제" anchor="top right" onclick="group3_btn_deldutdetaillist_onclick"/>
- <Button position="absolute 1153 47 1195 69" id="btn_savedutdetaillist" class="btn2" visible="false" text="저장" anchor="top right" onclick="group3_btn_savedutdetaillist_onclick"/>
- <Button position="absolute 1043 47 1096 69" id="btn_adddutdetaillist" class="btn2" visible="false" text="행추가" anchor="top right" onclick="group3_btn_adddutdetaillist_onclick"/>
- <Combo position="absolute 370 50 435 69" id="cmb_delauth" visible="false" anchor="default"/>
- <Button position="absolute 151 47 193 69" id="button1" class="btn2" visible="false" text="저장" anchor="default" onclick="group3_button1_onclick"/>
- </Layout>
- </Layouts>
- </Div>
- <Static id="caption6" text="표준번표대상자등록" class="tit_1" position="absolute 0 0 160 25"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_hidden_savelist_detail" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep"/>
- <Dataset id="ds_send_srchdetail" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="srchemplno" type="STRING" size="256"/>
- <Column id="srchdeptcd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="srchemplno"/>
- <Col id="srchdeptcd"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep" oncolumnchanged="ds_send_oncolumnchanged">
- <ColumnInfo>
- <Column id="instcd" type="STRING" size="256"/>
- <Column id="appdd" type="STRING" size="256"/>
- <Column id="posdeptcd" type="STRING" size="256"/>
- <Column id="posdeptnm" type="STRING" size="256"/>
- <Column id="dutunitcd" type="STRING" size="256"/>
- <Column id="dutunitnm" type="STRING" size="256"/>
- <Column id="emplno" type="STRING" size="256"/>
- <Column id="emplnm" type="STRING" size="256"/>
- <Column id="stndduttabletrgtmanlist" type="STRING" size="256"/>
- <Column id="dummy" type="STRING" size="256"/>
- <Column id="flag" type="STRING" size="256"/>
- <Column id="dutdeptcd" type="STRING" size="256"/>
- <Column id="dutdeptnm" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="instcd"/>
- <Col id="appdd"/>
- <Col id="posdeptcd"/>
- <Col id="posdeptnm"/>
- <Col id="dutunitcd"/>
- <Col id="dutunitnm"/>
- <Col id="emplno"/>
- <Col id="emplnm"/>
- <Col id="stndduttabletrgtmanlist"/>
- <Col id="dummy"/>
- <Col id="flag"/>
- <Col id="dutdeptcd"/>
- <Col id="dutdeptnm"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_temp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="temp" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="temp"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_delauth" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="delauth" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo/>
- </Dataset>
- <Dataset id="ds_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="init" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="init"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_stndduttabletrgtmanlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_main_dutdetaillist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_main_dutdeptlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep"/>
- <Dataset id="ds_hidden_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" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_cmb_dutkindcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="label" type="STRING" size="256"/>
- <Column id="value" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="label">통상근무</Col>
- <Col id="value">A</Col>
- </Row>
- <Row>
- <Col id="label">격일제 근무</Col>
- <Col id="value">B</Col>
- </Row>
- <Row>
- <Col id="label">3교대근무</Col>
- <Col id="value">C</Col>
- </Row>
- </Rows>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="group3.group4.ipt_emplno" propid="value" datasetid="ds_send" columnid="emplno"/>
- <BindItem id="item1" compid="group3.group4.ipt_emplnm" propid="value" datasetid="ds_send" columnid="emplnm"/>
- <BindItem id="item2" compid="group3.group4.cmb_dutplce" propid="value" datasetid="ds_send" columnid="dutunitcd"/>
- <BindItem id="item3" compid="group3.group4.ipt_appdd" propid="value" datasetid="ds_send" columnid="appdd"/>
- <BindItem id="item4" compid="group3.group4.ipt_dutdeptcd" propid="value" datasetid="ds_send" columnid="dutunitcd"/>
- <BindItem id="item5" compid="group3.group4.ipt_dutdeptnm" propid="value" datasetid="ds_send" columnid="dutunitnm"/>
- <BindItem id="item6" compid="group3.group4.cmb_instcd" propid="value" datasetid="ds_send" columnid="instcd"/>
- <BindItem id="item7" compid="group3.output1" propid="value" datasetid="ds_send" columnid="dutdeptcd"/>
- <BindItem id="item8" compid="group3.output2" propid="value" datasetid="ds_send" columnid="dutdeptnm"/>
- <BindItem id="item9" compid="group3.cmb_delauth" propid="value" datasetid="_root" columnid="delauth"/>
- </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
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- //=======================================================================================
- // Lib Include
- //---------------------------------------------------------------------------------------
- include "com_commonxp::comm_main.xjs";
- include "mis_miscommonxp::MIS.xjs";
- include "mis_dligclaznsmngtxp::RPD001.xjs";
- include "mis_humtrafactmngtxp::RPB001.xjs";
- //=======================================================================================
- // Global Form Variable
- //---------------------------------------------------------------------------------------
- var arErrorCode = new HashArray();
- //=======================================================================================
- // Function
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Argument : N/A
- * Description : 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
- ****************************************************************************************/
- function fInitialize()
- {
- misfGridInit(group3.grd_dutdeptlist);
- misfGridInit(group3.grd_stndduttabletrgtmanlist);
- misfGridInit(group3.grd_dutdetaillist);
- misfMsterDetailSet(group3.grd_dutdeptlist,null,"TRRPD01901","N");
- misfMsterDetailSet(group3.grd_stndduttabletrgtmanlist,null, "TRRPD01902", "Y");
-
- ds_send.clearData(); ds_send.addRow();
-
- misfComboInstCdListMulti("group3.group4.cmb_instcd",group3.group4.ipt_appdd.value,"","N");
- misfComboComCdListMulti("R0426,R0426,R9996","group3.grd_stndduttabletrgtmanlist.untitle,group3.grd_dutdetaillist.untitle,group3.cmb_delauth");
-
- group3.cmb_delauth.value = sysf_getUserInfo("userid");
-
- misfGetAndSetUserInfo();
- misfGetUserAuth();
-
- rpdfSetControlAuth();
- rpdfComboCdList(group3.group4.cmb_dutplce); // 권한별 근무부서 세팅
- rpdfSetDutUnitCombo();
-
- fSetComBoBind();
-
- ds_send.setColumn( 0, "dutunitcd", DUT_UNIT_CD);
- ds_send.setColumn( 0, "dutunitnm", DUT_UNIT_NM);
- ds_send.setColumn( 0, "dutdeptcd", DUT_UNIT_CD);
- ds_send.setColumn( 0, "dutdeptnm", DUT_UNIT_NM);
- ds_send.setColumn( 0, "instcd", sysf_getUserInfo("dutplceinstcd"));
-
- if(sysf_getUserInfo("dutplceinstcd") == "001" && DUTY_PART_YN == "Y")
- {
- group3.group4.cmb_instcd.enable = true;
- group3.group4.ipt_dutdeptcd.enable = true;
- group3.group4.ipt_dutdeptnm.enable = true;
- group3.group4.btn_dutdept.enable = true;
- group3.button1.visible = true;
- }
- else if ( DUTY_PART_YN == "Y" ) {
- group3.group4.ipt_dutdeptcd.enable = true;
- group3.group4.ipt_dutdeptnm.enable = true;
- group3.group4.btn_dutdept.enable = true;
- group3.button1.visible = true;
- }
- else
- {
- group3.group4.cmb_instcd.enable = false;
- group3.group4.ipt_dutdeptcd.enable = false;
- group3.group4.ipt_dutdeptnm.enable = false;
- group3.group4.btn_dutdept.enable = false;
- group3.button1.visible = false;
- }
-
- //화면 권한 설정
- group5.btn_save.enable = frmf_checkAuth("X");
- group3.group4.btn_search.enable = frmf_checkAuth("X");
-
- if(group3.group4.cmb_dutplce.length == 1)
- {
- //rpdfSetControlByJobRespCd("ipt_appdd,group3.group4.ipt_dutdeptcd,group3.group4.btn_dutdept,group3.group4.ipt_dutdeptnm,group3.group4.ipt_emplno,group3.group4.btn_empl,group3.group4.ipt_emplnm,group3.btn_grdadd,group3.btn_grddel,group3.btn_excsave,group3.btn_excadd,group3.group4.btn_search,group5.btn_save,btn_clear");
- }
-
- group3.group4.ipt_appdd.value = "20000101";
-
- var iRowIdx = ds_main_dutdeptlist.findRow("dutdeptcd", DUT_UNIT_CD);
- if(iRowIdx >= 0)
- {
- ds_main_dutdeptlist.rowposition = iRowIdx;
- group3.grd_dutdeptlist.setCellPos(group3.grd_dutdeptlist.getBindCellIndex("body","dutdeptnm"));
- group3.grd_dutdeptlist.setFocus();
- frmf_inputEnterKey("group3.grd_dutdeptlist", "oncelldblclick", new GridClickEventInfo);
- }
-
- if(group3.cmb_delauth.text == "1"){
- group3.btn_deldutdetaillist.visible = true;
- group3.btn_adddutdetaillist.visible = true;
- group3.btn_savedutdetaillist.visible = true;
- }
-
- }
-
- /****************************************************************************************
- * Argument : N/A
- * Description : 콤보설정. 인덱스가 헷갈림 테스트 필수
- ****************************************************************************************/
- function fSetComBoBind()
- {
- rpdfComboCdList(group3.group4.cmb_dutplce);
- ds_init_cmb_dutplce_combocodelist.copyData(ds_init_combocd_combocodelist);
- ds_main_dutdeptlist.updatecontrol = false;
- if(ds_init_cmb_dutplce_combocodelist.rowcount == 0)
- {
- ds_main_dutdeptlist.clearData();
- dsf_makeValue( ds_main_dutdeptlist, "instcd", "string", sysf_getUserInfo("dutplceinstcd"));
- dsf_makeValue( ds_main_dutdeptlist, "dutdeptcd", "string", DUT_UNIT_CD);
- dsf_makeValue( ds_main_dutdeptlist, "dutdeptnm", "string", DUT_UNIT_NM);
- group3.group4.cmb_dutplce.value = DUT_UNIT_NM;
- }
- else
- {
- var bAdd = true;
- var iStartIdx = -1;
-
- for(var i = 0; i < ds_init_cmb_dutplce_combocodelist.rowcount; i++)
- {
- if(ds_init_cmb_dutplce_combocodelist.getColumn(i, "cdid") == DUT_UNIT_CD) bAdd = false;
- }
-
- if(bAdd)
- {
- iStartIdx++;
- dsf_makeValue(ds_main_dutdeptlist, "instcd", "string", sysf_getUserInfo("dutplceinstcd"), iStartIdx);
- dsf_makeValue(ds_main_dutdeptlist, "dutdeptcd", "string", DUT_UNIT_CD, iStartIdx);
- dsf_makeValue(ds_main_dutdeptlist, "dutdeptnm", "string", DUT_UNIT_NM, iStartIdx);
- }
-
- var iIdx = 0;
- for(var i = 0; i < ds_init_cmb_dutplce_combocodelist.rowcount ; i++)
- {
- dsf_makeValue(ds_main_dutdeptlist, "instcd", "string", sysf_getUserInfo("dutplceinstcd"), i+iStartIdx);
- dsf_makeValue(ds_main_dutdeptlist, "dutdeptcd", "string", ds_init_cmb_dutplce_combocodelist.getColumn(iIdx, "cdid"), i+iStartIdx);
- dsf_makeValue(ds_main_dutdeptlist, "dutdeptnm", "string", ds_init_cmb_dutplce_combocodelist.getColumn(iIdx, "cdnm"), i+iStartIdx);
- dsf_makeValue(ds_main_dutdeptlist, "nrcnt", "string", ds_init_cmb_dutplce_combocodelist.getColumn(iIdx, "nrcnt"), i+iStartIdx);
- dsf_makeValue(ds_main_dutdeptlist, "appdd", "string", ds_init_cmb_dutplce_combocodelist.getColumn(iIdx, "appdd"), i+iStartIdx);
-
- iIdx++;
- }
- }
- ds_main_dutdeptlist.updatecontrol = true;
- }
-
- /****************************************************************************************
- * Argument : N/A
- * Description : 조회
- ****************************************************************************************/
- function fRetrieve()
- {
- if(utlf_isNull(group3.group4.ipt_appdd.value))
- {
- sysf_messageBox("적용일자를","C002");
- return;
- }
-
- ds_send.setColumn(0, "flag", "1");
-
- misfMsterDetailRetrieve();
-
- // group3.grd_dutdeptlist.col = 2;
- group3.grd_dutdeptlist.setFocus();
- group3.grd_dutdeptlist.setCellPos(2);
- }
-
- /****************************************************************************************
- * Argument : N/A
- * Description : 저장
- ****************************************************************************************/
- function fSave()
- {
- var updtdata = grdf_getGridUpdateData(group3.grd_stndduttabletrgtmanlist, "all");
- if (updtdata.rowcount == 0 )
- {
- sysf_messageBox("변경된 데이터가","I004");
- return;
- }
-
- var null_check1 = "";
- var null_chech2 = "";
-
- for(var i = 0; i < ds_main_stndduttabletrgtmanlist.rowcount; i++)
- {
- null_check1 = dsf_getColumnNullToEmpty(ds_main_stndduttabletrgtmanlist, i, "emplno");
- null_check2 = dsf_getColumnNullToEmpty(ds_main_stndduttabletrgtmanlist, i, "appdd");
-
- if(null_check1 == "")
- {
- sysf_messageBox("사원번호는","I003");
- return;
- }
- else if(null_check2 == "")
- {
- sysf_messageBox("적용일자는","I003");
- return;
- }
- }
-
- misfSave("TXRPD01901");
-
- // group3.grd_stndduttabletrgtmanlist.endEditCell();
- // group3.grd_stndduttabletrgtmanlist.dispatch("onclick");
- frmf_inputEnterKey("group3.grd_stndduttabletrgtmanlist", "oncellclick", new GridClickEventInfo);
- }
- /****************************************************************************************
- * Argument : N/A
- * Description : 초기화
- ****************************************************************************************/
- function fReset()
- {
- var updtdata = grdf_getGridUpdateData(group3.grd_stndduttabletrgtmanlist, "all");
- if (updtdata.rowcount > 0)
- {
- var ret = sysf_messageBox("그리드에 작업 중인 내용이 있습니다. 초기화 작업을","Q003");
- if (ret != 6) // not OK
- {
- return;
- }
- }
-
- fInitialize();
- }
-
- /****************************************************************************************
- * Argument : N/A
- * Description : 행추가
- ****************************************************************************************/
- function fAddRow()
- {
- var null_check1 = group3.group4.ipt_appdd.value;
- if(utlf_isNull(null_check1))
- {
- sysf_messageBox("적용일자를","C002");
- return;
- }
-
- misfGridIUD(group3.grd_stndduttabletrgtmanlist,"A");
-
- group3.grd_stndduttabletrgtmanlist.setFocus();
- group3.grd_stndduttabletrgtmanlist.setCellPos(2);
- group3.grd_stndduttabletrgtmanlist.showEditor(true);
- group3.grd_stndduttabletrgtmanlist.setEditCaret(-1);
- }
- /****************************************************************************************
- * Argument : N/A
- * Description : Detail내역 저장로직
- ****************************************************************************************/
- function fDetailSave(){
- ds_main_dutdetaillist.enableevent = false;
- ds_main_dutdetaillist.updatecontrol = false;
- for(var i = 0; i < ds_main_dutdetaillist.rowcount ;i++){
- ds_main_dutdetaillist.setColumn(i, "dutym", utlf_transNullToEmpty(ds_main_dutdetaillist.getColumn(i, "dutym")).substr(0, 6))
- }
- ds_main_dutdetaillist.updatecontrol = true;
- ds_main_dutdetaillist.enableevent = true;
-
- var dsUpdate = grdf_getGridUpdateData(group3.grd_dutdetaillist, "all");
- grdf_setStatusColumn(dsUpdate, "status");
- ds_hidden_savelist_detail.copyData(dsUpdate, true);
-
- var oParam = {};
- oParam.id = "TXRPD01902";
- oParam.service = "dligclaznsmngtapp.DutScheMngt";
- oParam.method = "reqSetStndduttabletrgtmandetail";
- oParam.inds = "detail=ds_hidden_savelist_detail";
- oParam.outds = "";
- oParam.async = false;
- oParam.callback = "cf_TXRPD01902";
- tranf_submit(oParam);
- if (arErrorCode.pop("TXRPD01902") > -1) {
- sysf_messageBox("저장되었습니다.", "I000");
- frmf_inputEnterKey("group3.grd_stndduttabletrgtmanlist", "oncellclick", new GridClickEventInfo);
- }
- }
- function cf_TXRPD01902(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
-
- //=======================================================================================
- // Event
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Components : Form
- * Description : 화면 처음 초기화시 폼초기화
- ****************************************************************************************/
- function SMRPD01900_onload(obj:Form, e:LoadEventInfo) {
- frmf_initForm(obj);
- //grdf_initGrid(grd_XXX);
- grdf_setGridSort(group3.grd_dutdeptlist);
- grdf_setRowTypeIcon(group3.grd_dutdeptlist, 0);
- grdf_setGridSort(group3.grd_stndduttabletrgtmanlist);
- grdf_setRowTypeIcon(group3.grd_stndduttabletrgtmanlist, 0);
- grdf_setGridSort(group3.grd_dutdetaillist);
- grdf_setRowTypeIcon(group3.grd_dutdetaillist, 0);
- fInitialize();
- }
- /****************************************************************************************
- * Components : Button
- * Description : 저장
- ****************************************************************************************/
- function group5_btn_save_onclick(obj:Button, e:ClickEventInfo) {
- fSave();
- }
- /****************************************************************************************
- * Components : Button
- * Description : 초기화
- ****************************************************************************************/
- function group5_btn_clear_onclick(obj:Button, e:ClickEventInfo) {
- fReset();
- }
- /****************************************************************************************
- * Components : Edit
- * Description : 근무부서 코드 입력
- ****************************************************************************************/
- function group3_group4_ipt_emplno_onkeydown(obj:Edit, e:KeyEventInfo) {
- if(e.keycode == 13)
- {
- if(ds_send.getColumn(0,"emplno") == obj.text) return;
- obj.updateToDataset();
- }
- }
- /****************************************************************************************
- * Components : Button
- * Description : 사원번호 검색 팝업
- ****************************************************************************************/
- function group3_group4_btn_empl_onclick(obj:Button, e:ClickEventInfo) {
- rpbfOpenPopUpList("SPRPB00101", group3.group4.ipt_emplno, "emplno,emplnm,dutunitcd,dutunitnm", "", "N");
- }
- /****************************************************************************************
- * Components : Button
- * Description : 사원 명 넣고 검색
- ****************************************************************************************/
- function group3_group4_ipt_emplnm_onkeydown(obj:Edit, e:KeyEventInfo) {
- if(e.keycode == 13)
- {
- obj.updateToDataset();
- }
- }
- /****************************************************************************************
- * Components : Button
- * Description : 조회
- ****************************************************************************************/
- function group3_group4_btn_search_onclick(obj:Button, e:ClickEventInfo) {
- fRetrieve();
- }
- /****************************************************************************************
- * Components : Edit
- * Description : 근무부서 코드 입력
- ****************************************************************************************/
- function group3_group4_ipt_dutdeptcd_onkeydown(obj:Edit, e:KeyEventInfo) {
- if(e.keycode == 13)
- {
- obj.updateToDataset();
- }
- }
- /****************************************************************************************
- * Components : Edit
- * Description : 근무부서 명 입력
- ****************************************************************************************/
- function group3_group4_ipt_dutdeptnm_onkeydown(obj:Edit, e:KeyEventInfo) {
- if(e.keycode == 13)
- {
- obj.updateToDataset();
- }
- }
- /****************************************************************************************
- * Components : Button
- * Description : 근무부서 조회 팝업
- ****************************************************************************************/
- function group3_group4_btn_dutdept_onclick(obj:Button, e:ClickEventInfo) {
- misfOpenPopUpList("02", group3.group4.ipt_dutdeptcd, "", "dutunitcd,dutunitnm", group3.group4.cmb_instcd.value, "instcd");
- }
- /****************************************************************************************
- * Components : Grid
- * Description : 표준번표 적용대상자 내용 변경
- ****************************************************************************************/
- function group3_grd_stndduttabletrgtmanlist_ontextchanged(obj:Grid, e:GridEditTextChangedEventInfo) {
- if(e.col == obj.getBindCellIndex("body","nigtdutyn"))
- {
- var sYn = ds_main_stndduttabletrgtmanlist.getColumn(e.row, "nigtdutyn");
- if(sYn == "Y")
- {
- ds_main_stndduttabletrgtmanlist.setColumn(e.row, "dutkindcd", "C");
- }
- else
- {
- ds_main_stndduttabletrgtmanlist.setColumn(e.row, "dutkindcd", "A");
- }
- }
- else if(e.col == obj.getBindCellIndex("body","dutkindcd"))
- {
- var sDutKind = ds_main_stndduttabletrgtmanlist.getColumn(e.row, "dutkindcd");
- if(sDutKind == "C")
- {
- ds_main_stndduttabletrgtmanlist.setColumn(e.row, "nigtdutyn", "Y");
- }
- else
- {
- ds_main_stndduttabletrgtmanlist.setColumn(e.row, "nigtdutyn", "N");
- }
- }
- }
- /****************************************************************************************
- * Components : Grid
- * Description : 표준번표 적용대상자 버튼 클릭
- ****************************************************************************************/
- function group3_grd_stndduttabletrgtmanlist_onexpandup(obj:Grid, e:GridMouseEventInfo)
- {
- if(e.col == obj.getBindCellIndex("body","emplno")) //부서코드 버튼을 눌렀을 때
- {
- rpbfOpenPopUpList("SPRPB00101", group3.grd_stndduttabletrgtmanlist, "emplno,emplnm", "", "N");
- }
- else if(e.col == obj.getBindCellIndex("body","dutcd")) //근무코드 버튼을 눌렀을 때
- {
- misfOpenPopUpList("09", group3.grd_stndduttabletrgtmanlist, "", "dutcd,dutnm", group3.group4.cmb_instcd.value, "instcd");
- }
- }
- /****************************************************************************************
- * Components : Grid
- * Description : 표준번표 적용대상자 선택
- ****************************************************************************************/
- function group3_grd_stndduttabletrgtmanlist_oncellclick(obj:Grid, e:GridClickEventInfo) {
- if(ds_main_stndduttabletrgtmanlist.rowposition >= 0){
- if( !utlf_isNull(obj.getCellText(ds_main_stndduttabletrgtmanlist.rowposition, obj.getBindCellIndex("body","emplno")))
- && obj.getCellText(ds_main_stndduttabletrgtmanlist.rowposition, obj.getBindCellIndex("body","emplno")) != "사원번호" ){
- ds_send_srchdetail.setColumn(0,"srchemplno", obj.getCellText(ds_main_stndduttabletrgtmanlist.rowposition, obj.getBindCellIndex("body","emplno")));
- ds_send_srchdetail.setColumn(0,"srchdeptcd", obj.getCellText(ds_main_stndduttabletrgtmanlist.rowposition, obj.getBindCellIndex("body","dutdeptcd")));
-
- var oParam = {};
- oParam.id = "TRRPD01903";
- oParam.service = "dligclaznsmngtapp.DutScheMngt";
- oParam.method = "reqGetstndduttabletrgtmandetaillist";
- oParam.inds = "req=ds_send_srchdetail";
- oParam.outds = "ds_main_dutdetaillist=dutdetaillist";
- oParam.async = false;
- //oParam.callback = "cf_TRRPD01903";
- tranf_submit(oParam);
-
- ds_main_dutdetaillist.addColumn("beforedutym", "string");
- ds_main_dutdetaillist.enableevent = false;
- ds_main_dutdetaillist.updatecontrol = false;
- for(var i = 0; i < ds_main_dutdetaillist.rowcount;i++){
- ds_main_dutdetaillist.setColumn(i, "beforedutym", ds_main_dutdetaillist.getColumn(i, "dutym"));
- }
- ds_main_dutdetaillist.updatecontrol = true;
- ds_main_dutdetaillist.enableevent = true;
-
- if( ds_main_stndduttabletrgtmanlist.getRowType(e.row) != 2 ){
- group3.btn_savedutdetaillist.enable = true;
- }else{
- group3.btn_savedutdetaillist.enable = false;
- }
- }else{
- group3.btn_savedutdetaillist.enable = false;
- }
- }
- }
- /****************************************************************************************
- * Components : Grid
- * Description : 관리부서 목록 선택
- ****************************************************************************************/
- function group3_grd_dutdeptlist_onselectchanged(obj:Grid, e:GridSelectEventInfo) {
- if(JOB_RESP_CD == "1901" || JOB_RESP_CD == "1070" || e.row > -1)
- {
- frmf_inputEnterKey("group3.grd_dutdeptlist", "oncelldblclick", new GridClickEventInfo);
- }
- }
- /****************************************************************************************
- * Components : Grid
- * Description : 관리부서 목록 선택
- ****************************************************************************************/
- function group3_grd_dutdeptlist_oncelldblclick(obj:Grid, e:GridClickEventInfo) {
- if(JOB_RESP_CD == "1901" || JOB_RESP_CD == "1070" || ds_main_dutdeptlist.rowposition > -1)
- {
- ds_send.setColumn(0,"dutunitcd", ds_main_dutdeptlist.getColumn(ds_main_dutdeptlist.rowposition, "dutdeptcd"));
- ds_send.setColumn(0,"dutunitnm", ds_main_dutdeptlist.getColumn(ds_main_dutdeptlist.rowposition, "dutdeptnm"));
- ds_send.setColumn(0,"dutdeptcd", ds_main_dutdeptlist.getColumn(ds_main_dutdeptlist.rowposition, "dutdeptcd"));
- ds_send.setColumn(0,"dutdeptnm", ds_main_dutdeptlist.getColumn(ds_main_dutdeptlist.rowposition, "dutdeptnm"));
- ds_send.setColumn(0,"flag", "1");
-
- submitFunc("TRRPD01902");
-
- for(var i = 0; i < ds_main_stndduttabletrgtmanlist.rowcount; i++)
- {
- if(ds_main_stndduttabletrgtmanlist.getColumn(i, "flag") == "0")
- {
- grdf_setStatus(group3.grd_stndduttabletrgtmanlist, "I", [i]);
- misfSetReadOnlyCol(group3.grd_stndduttabletrgtmanlist, "appdd", false, i);
- ds_main_stndduttabletrgtmanlist.setColumn(i,"appdd",group3.group4.ipt_appdd.value);
- }
- }
-
- // model.dispatch("onmouseup");
-
- var grdcnt = ds_main_stndduttabletrgtmanlist.rowcount;
- if( grdcnt > 0 ){
- ds_main_stndduttabletrgtmanlist.rowposition;
- group3.grd_stndduttabletrgtmanlist.setFocus();
- frmf_inputEnterKey("group3.grd_stndduttabletrgtmanlist", "oncellclick", new GridClickEventInfo);
- }
- }
- }
- /****************************************************************************************
- * Components : Button
- * Description : 표준번표 적용대상자 엑셀입력
- ****************************************************************************************/
- function group3_btn_excadd_onclick(obj:Button, e:ClickEventInfo) {
- ds_main_stndduttabletrgtmanlist.clearData();
- grdf_ImportExcel("ds_main_stndduttabletrgtmanlist", 2, group3.grd_stndduttabletrgtmanlist, 0);
- }
- /****************************************************************************************
- * Components : Button
- * Description : 표준번표 적용대상자 행삭제
- ****************************************************************************************/
- function group3_btn_grddel_onclick(obj:Button, e:ClickEventInfo) {
- misfGridIUD(group3.grd_stndduttabletrgtmanlist,"D");
- }
- /****************************************************************************************
- * Components : Button
- * Description : 표준번표 적용대상자 행추가
- ****************************************************************************************/
- function group3_btn_grdadd_onclick(obj:Button, e:ClickEventInfo) {
- fAddRow();
- group3.btn_savedutdetaillist.enable = false;
- }
- /****************************************************************************************
- * Components : Button
- * Description : 표준번표 적용대상자 엑셀저장
- ****************************************************************************************/
- function group3_btn_excsave_onclick(obj:Button, e:ClickEventInfo) {
- misfSaveExcel(group3.grd_stndduttabletrgtmanlist);
- }
- /****************************************************************************************
- * Components : Button
- * Description : 우측 그리드 행삭제
- ****************************************************************************************/
- function group3_btn_deldutdetaillist_onclick(obj:Button, e:ClickEventInfo) {
- if( group3.grd_stndduttabletrgtmanlist.getCellText(group3.grd_stndduttabletrgtmanlist.currentrow, group3.grd_stndduttabletrgtmanlist.getBindCellIndex("body","emplno")) == ""
- || group3.grd_stndduttabletrgtmanlist.getCellText(group3.grd_stndduttabletrgtmanlist.currentrow, group3.grd_stndduttabletrgtmanlist.getBindCellIndex("body","emplno")) == "사원번호" ){
- sysf_messageBox("표준번표 적용대상자를 선택후 진행해주세요.","E999","");
- return;
- }
-
- misfGridIUD(group3.grd_dutdetaillist,"D");
- }
- /****************************************************************************************
- * Components : Button
- * Description : 우측 그리드 행추가
- ****************************************************************************************/
- function group3_btn_savedutdetaillist_onclick(obj:Button, e:ClickEventInfo) {
- if( utlf_isNull(group3.grd_stndduttabletrgtmanlist.getCellText(group3.grd_stndduttabletrgtmanlist.currentrow, group3.grd_stndduttabletrgtmanlist.getBindCellIndex("body","emplno")))
- || group3.grd_stndduttabletrgtmanlist.getCellText(group3.grd_stndduttabletrgtmanlist.currentrow, group3.grd_stndduttabletrgtmanlist.getBindCellIndex("body","emplno")) == "사원번호" ){
- sysf_messageBox("표준번표 적용대상자를 선택후 진행해주세요.","E999","");
- return;
- }
- var updtdata = grdf_getGridUpdateData(group3.grd_dutdetaillist, "all");
- if (updtdata.rowcount == 0 ){
- sysf_messageBox("변경된 데이터가","I004");
- return;
- }
- var semplno = "";
- var sdutym = "";
- var dupleCnt = 0;
- var cnt = ds_main_dutdetaillist.rowcount;
- if( cnt > 0 ){
- for( var i = 0; i < ds_main_dutdetaillist.rowcount ; i++){
- dupleCnt = 0;
- if( dsf_getColumnNullToEmpty(ds_main_dutdetaillist, i, "emplno") == "" ){
- sysf_messageBox("사원번호는 필수입력값입니다.", "E999", "");
- return;
- }
- if( dsf_getColumnNullToEmpty(ds_main_dutdetaillist, i, "emplnm") == "" ){
- sysf_messageBox("성명은 필수입력값입니다.", "E999", "");
- return;
- }
- if( dsf_getColumnNullToEmpty(ds_main_dutdetaillist, i, "dutym") == "" ){
- sysf_messageBox("년월은 필수입력값입니다.", "E999", "");
- return;
- }
- if( dsf_getColumnNullToEmpty(ds_main_dutdetaillist, i, "untitle") == "" ){
- sysf_messageBox("분류는 필수입력값입니다.", "E999", "");
- return;
- }
-
- semplno = dsf_getColumnNullToEmpty(ds_main_dutdetaillist, i, "emplno");
- sdutym = dsf_getColumnNullToEmpty(ds_main_dutdetaillist, i, "dutym");
-
- for( var j = 0; j < ds_main_dutdetaillist.rowcount ; j++){
- if( semplno == dsf_getColumnNullToEmpty(ds_main_dutdetaillist, j, "emplno") &&
- sdutym == dsf_getColumnNullToEmpty(ds_main_dutdetaillist, j, "dutym") ){
- dupleCnt++;
- }
- }
- if( dupleCnt > 1 ){
- sysf_messageBox("사원번호와 년월이 중복된 값이 있습니다. [ " + semplno + " / " + group3.grd_dutdetaillist.getCellText(i, "dutym") + " ]" , "E999", "");
- return;
- }
- }
- }
- fDetailSave();
- }
- /****************************************************************************************
- * Components : Button
- * Description : 우측 그리드 행추가
- ****************************************************************************************/
- function group3_btn_adddutdetaillist_onclick(obj:Button, e:ClickEventInfo) {
- if( group3.grd_stndduttabletrgtmanlist.getCellText(group3.grd_stndduttabletrgtmanlist.currentrow, group3.grd_stndduttabletrgtmanlist.getBindCellIndex("body","emplno")) == ""
- || group3.grd_stndduttabletrgtmanlist.getCellText(group3.grd_stndduttabletrgtmanlist.currentrow, group3.grd_stndduttabletrgtmanlist.getBindCellIndex("body","emplno")) == "사원번호" ){
- sysf_messageBox("표준번표 적용대상자를 선택후 진행해주세요.","E999","");
- return;
- }
- var cnt = 0;
- misfGridIUD(group3.grd_dutdetaillist,"A");
-
- cnt = ds_main_dutdetaillist.rowcount - 1;
- ds_main_dutdetaillist.setColumn(cnt, "dutdeptcd", ds_main_stndduttabletrgtmanlist.getColumn(ds_main_stndduttabletrgtmanlist.rowposition, "dutdeptcd"));
- ds_main_dutdetaillist.setColumn(cnt, "dutdeptnm", ds_main_stndduttabletrgtmanlist.getColumn(ds_main_stndduttabletrgtmanlist.rowposition, "dutdeptnm"));
- ds_main_dutdetaillist.setColumn(cnt, "emplno", ds_main_stndduttabletrgtmanlist.getColumn(ds_main_stndduttabletrgtmanlist.rowposition, "emplno"));
- ds_main_dutdetaillist.setColumn(cnt, "emplnm", ds_main_stndduttabletrgtmanlist.getColumn(ds_main_stndduttabletrgtmanlist.rowposition, "emplnm"));
- ds_main_dutdetaillist.setColumn(cnt, "dutym", utlf_getCurrentDate().substring(0,6));
- dsf_makeValue(ds_main_dutdetaillist, "beforedutym", "string", utlf_getCurrentDate().substring(0,6), cnt);
- group3.grd_dutdetaillist.setFocus();
- group3.grd_dutdetaillist.setCellPos(1);
- group3.grd_dutdetaillist.showEditor(true);
- group3.grd_dutdetaillist.setEditCaret(-1);
- }
- /****************************************************************************************
- * Components : Button
- * Description : 관리부서 목록 저장
- ****************************************************************************************/
- function group3_button1_onclick(obj:Button, e:ClickEventInfo) {
- var updtdata = grdf_getGridUpdateData(group3.grd_dutdeptlist, "all");
- if (updtdata.rowcount == 0 ){
- sysf_messageBox("변경된 데이터가","I004");
- return;
- }
- grdf_setStatusColumn(updtdata, "status");
- dsf_createDs("ds_hidden_savelist_nrcnt");
- ds_hidden_savelist_nrcnt.copyData(updtdata, true);
- var oParam = {};
- oParam.id = "TXRPD01903";
- oParam.service = "dligclaznsmngtapp.DutScheMngt";
- oParam.method = "reqSetDutDeptNrCnt";
- oParam.inds = "nrcnt=ds_hidden_savelist_nrcnt";
- oParam.outds = "";
- oParam.async = false;
- oParam.callback = "cf_TXRPD01903";
- tranf_submit(oParam);
-
- if (arErrorCode.pop("TXRPD01903") > -1) {
- sysf_messageBox("저장되었습니다.", "I000");
- fInitialize();
- }
- }
- function cf_TXRPD01903(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- function ds_send_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
- {
- if(e.columnid == "dutunitcd") {
- group3.group4.ipt_dutdeptcd.setFocus();
- misfValidationCheck("02", "", "dutunitcd,dutunitnm", group3.group4.cmb_instcd.value, "instcd");
- }
- if(e.columnid == "dutunitnm") {
- group3.group4.ipt_dutdeptcd.setFocus();
- misfValidationCheck("02", "", "dutunitcd,dutunitnm", group3.group4.cmb_instcd.value, "instcd" );
- }
- if(e.columnid == "emplno") {
- group3.group4.ipt_emplno.setFocus();
- rpbfValidationCheck("EMPLNO", "emplno,emplnm,dutunitcd,dutunitnm");
- }
- if(e.columnid == "emplnm") {
- group3.group4.ipt_emplno.setFocus();
- misfValidationCheck("01-2", "", "emplno,emplnm");
- group3.group4.btn_search.setFocus();
- }
- }
- /****************************************************************************************
- * Components : Calendar
- * Description : 일자변경
- ****************************************************************************************/
- function group3_group4_ipt_appdd_onchanged(obj:Calendar, e:ChangeEventInfo)
- {
- var instcd = group3.group4.cmb_instcd.value;
- if( utlf_getStringLength(group3.group4.ipt_appdd.value) == "8" ) {
- misfComboInstCdListMulti("group3.group4.cmb_instcd",group3.group4.ipt_appdd.value,"","Y");
- group3.group4.cmb_instcd.value = instcd;
- }
- }
- /****************************************************************************************
- * Components : Grid
- * Description : 그리드 버튼 클릭
- ****************************************************************************************/
- function group3_grd_dutdetaillist_onexpandup(obj:Grid, e:GridMouseEventInfo)
- {
- if(e.col == obj.getBindCellIndex("body","emplno"))
- {
- rpbfOpenPopUpList("SPRPB00101", group3.grd_dutdetaillist, "emplno,emplnm", "", "N");
- }
- }
- ]]></Script>
- </Form>
- </FDL>
|