123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMRPD05200" position="absolute 0 0 1204 774" titletext="중간관리자근무표" oninit="SMRPD05200_oninit" onload="SMRPD05200_onload">
- <Layouts>
- <Layout>
- <Static id="caption6" text="중간관리자근무표" class="tit_1" position="absolute 0 0 230 25"/>
- <Shape id="line75" class="line_6" position="absolute 0 47 1195 53" anchor="left top right"/>
- <Button id="btn_print" taborder="1" text="출력" class="btn6" visible="false" position="absolute 0 26 56 48" onclick="btn_print_onclick"/>
- <Shape id="line1" class="line_10" position="absolute 0 117 1195 123" anchor="left top right"/>
- <Static id="caption9" text="근무 스케줄" class="tit_2" position="absolute 0 101 109 122"/>
- <Div id="group4" anchor="left top right" taborder="2" class="div_SA2" position="absolute 0 51 1195 91">
- <Layouts>
- <Layout>
- <Static id="caption5" text="부서구분 :" class="search_name" position="absolute 523 12 609 29"/>
- <Shape id="line3" linetype="vertical" class="line_4" position="absolute 1107 6 1113 33" anchor="top right"/>
- <Static id="caption1" text="근무년월 :" class="search_name" position="absolute 298 11 389 28"/>
- <Calendar id="ipt_dutym" taborder="5" class="input_search" position="absolute 385 10 495 29" mask="yyyy-mm" autoselect="true" autoskip="true" onchanged="group4_ipt_dutym_onchanged" dateformat="yyyy-MM" value="null" editformat="yyyy-MM" style="align:center middle;"/>
- <Button id="btn_search" taborder="6" text="조회" class="btn1" position="absolute 1125 9 1181 31" onclick="group4_btn_search_onclick" anchor="top right"/>
- <Combo id="cmb_dutplce" taborder="7" codecolumn="codecolumn" datacolumn="datacolumn" class="combo_search" enable="false" position="absolute 610 10 730 29" onitemchanged="group4_cmb_dutplce_onitemchanged">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">all</Col>
- <Col id="datacolumn">전체</Col>
- </Row>
- <Row>
- <Col id="codecolumn">dpt</Col>
- <Col id="datacolumn">간호부</Col>
- </Row>
- </Rows>
- </Dataset>
- </Combo>
- <Combo id="cmb_instcd" taborder="8" class="combo_search" enable="false" position="absolute 92 10 270 29"/>
- <Static id="caption29" text="근무기관 :" class="search_name" position="absolute 4 11 90 28"/>
- </Layout>
- </Layouts>
- </Div>
- <Button id="btn_excsave" taborder="3" text="엑셀저장" class="btn7" position="absolute 1115 98 1195 117" onclick="btn_excsave_onclick" anchor="top right"/>
- <Button id="btn_retrsrvp" taborder="4" text="복무계획신청내역" class="btn2" visible="false" position="absolute 998 98 1114 117" onclick="btn_retrsrvp_onclick" anchor="top right"/>
- <Grid id="grd_dutschelist" class="text_center" taborder="5" binddataset="ds_main_dutlist_dutschelist" autoenter="select" useinputpanel="false" cellsizingtype="col" position="absolute 0 122 1195 768" anchor="all">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="28" band="left"/>
- <Column size="0" band="left"/>
- <Column size="0" band="left"/>
- <Column size="0" band="left"/>
- <Column size="0" band="left"/>
- <Column size="70" band="left"/>
- <Column size="60" band="left"/>
- <Column size="0"/>
- <Column size="100"/>
- <Column size="70"/>
- <Column size="35"/>
- <Column size="35"/>
- <Column size="35"/>
- <Column size="35"/>
- <Column size="35"/>
- <Column size="35"/>
- <Column size="35"/>
- <Column size="35"/>
- <Column size="35"/>
- <Column size="35"/>
- <Column size="35"/>
- <Column size="35"/>
- <Column size="35"/>
- <Column size="35"/>
- <Column size="35"/>
- <Column size="35"/>
- <Column size="35"/>
- <Column size="35"/>
- <Column size="35"/>
- <Column size="35"/>
- <Column size="35"/>
- <Column size="35"/>
- <Column size="35"/>
- <Column size="35"/>
- <Column size="35"/>
- <Column size="35"/>
- <Column size="35"/>
- <Column size="35"/>
- <Column size="35"/>
- <Column size="35"/>
- <Column size="35"/>
- <Column size="35"/>
- <Column size="53"/>
- <Column size="53"/>
- <Column size="53"/>
- <Column size="53"/>
- <Column size="53"/>
- <Column size="53"/>
- <Column size="53"/>
- <Column size="55"/>
- <Column size="55"/>
- <Column size="150"/>
- </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" text="근무년월"/>
- <Cell col="2" text="근무부서"/>
- <Cell col="3" text="신청예정 실시구분"/>
- <Cell col="4" text="기관코드"/>
- <Cell col="5" rowspan="2" text="사원번호" taborder="undefined"/>
- <Cell col="6" rowspan="2" text="성명" taborder="undefined"/>
- <Cell col="7" text="근무지부서코드"/>
- <Cell col="8" rowspan="2" text="근무부서" taborder="undefined"/>
- <Cell col="9" rowspan="2" text="직위" taborder="undefined"/>
- <Cell col="10" rowspan="2" text="P" taborder="undefined"/>
- <Cell col="11" text="1"/>
- <Cell col="12" text="2"/>
- <Cell col="13" text="3"/>
- <Cell col="14" text="4"/>
- <Cell col="15" text="5"/>
- <Cell col="16" text="6"/>
- <Cell col="17" text="7"/>
- <Cell col="18" text="8"/>
- <Cell col="19" text="9"/>
- <Cell col="20" text="10"/>
- <Cell col="21" text="11"/>
- <Cell col="22" text="12"/>
- <Cell col="23" text="13"/>
- <Cell col="24" text="14"/>
- <Cell col="25" text="15"/>
- <Cell col="26" text="16"/>
- <Cell col="27" text="17"/>
- <Cell col="28" text="18"/>
- <Cell col="29" text="19"/>
- <Cell col="30" text="20"/>
- <Cell col="31" text="21"/>
- <Cell col="32" text="22"/>
- <Cell col="33" text="23"/>
- <Cell col="34" text="24"/>
- <Cell col="35" text="25"/>
- <Cell col="36" text="26"/>
- <Cell col="37" text="27"/>
- <Cell col="38" text="28"/>
- <Cell col="39" text="29"/>
- <Cell col="40" text="30"/>
- <Cell col="41" text="31"/>
- <Cell col="42" rowspan="2" text="Total 휴가수" taborder="undefined"/>
- <Cell col="43" rowspan="2" text="사용 휴가수" taborder="undefined"/>
- <Cell col="44" rowspan="2" text="보호 휴가수" taborder="undefined"/>
- <Cell col="45" rowspan="2" text="Day 합계" taborder="undefined"/>
- <Cell col="46" rowspan="2" text="Evening 합계" taborder="undefined"/>
- <Cell col="47" rowspan="2" text="Night 합계" taborder="undefined"/>
- <Cell col="48" rowspan="2" text="Off 합계" taborder="undefined"/>
- <Cell col="49" rowspan="2" text="시간제 근무합계" taborder="undefined"/>
- <Cell col="50" rowspan="2" text="시간제 주휴합계" taborder="undefined"/>
- <Cell col="51" rowspan="2" text="비고" taborder="undefined"/>
- <Cell row="1" col="1" text="근무년월"/>
- <Cell row="1" col="2" text="근무부서"/>
- <Cell row="1" col="3" text="신청예정 실시구분"/>
- <Cell row="1" col="4" text="기관코드"/>
- <Cell row="1" col="7" text="근무지부서코드"/>
- <Cell row="1" col="11" text="월"/>
- <Cell row="1" col="12" text="화"/>
- <Cell row="1" col="13" text="수"/>
- <Cell row="1" col="14" text="목"/>
- <Cell row="1" col="15" text="금"/>
- <Cell row="1" col="16" text="토"/>
- <Cell row="1" col="17" text="일"/>
- <Cell row="1" col="18" text="월"/>
- <Cell row="1" col="19" text="화"/>
- <Cell row="1" col="20" text="수"/>
- <Cell row="1" col="21" text="목"/>
- <Cell row="1" col="22" text="금"/>
- <Cell row="1" col="23" text="토"/>
- <Cell row="1" col="24" text="일"/>
- <Cell row="1" col="25" text="월"/>
- <Cell row="1" col="26" text="화"/>
- <Cell row="1" col="27" text="수"/>
- <Cell row="1" col="28" text="목"/>
- <Cell row="1" col="29" text="금"/>
- <Cell row="1" col="30" text="토"/>
- <Cell row="1" col="31" text="일"/>
- <Cell row="1" col="32" text="월"/>
- <Cell row="1" col="33" text="화"/>
- <Cell row="1" col="34" text="수"/>
- <Cell row="1" col="35" text="목"/>
- <Cell row="1" col="36" text="금"/>
- <Cell row="1" col="37" text="토"/>
- <Cell row="1" col="38" text="일"/>
- <Cell row="1" col="39" text="월"/>
- <Cell row="1" col="40" text="화"/>
- <Cell row="1" col="41" text="수"/>
- </Band>
- <Band id="body">
- <Cell celltype="head"/>
- <Cell col="1" text="bind:dutym"/>
- <Cell col="2" text="bind:dutplcedeptcd"/>
- <Cell col="3" text="bind:appscheexecflag"/>
- <Cell col="4" text="bind:instcd"/>
- <Cell col="5" text="bind:emplno"/>
- <Cell col="6" text="bind:emplnm"/>
- <Cell col="7" text="bind:dutplcedeptcdtemp"/>
- <Cell col="8" text="bind:dutplcedeptnm" wordwrap="word"/>
- <Cell col="9" text="bind:jobrespnm"/>
- <Cell col="10" text="bind:part"/>
- <Cell col="11" style="font:돋움체,9;" text="bind:day01"/>
- <Cell col="12" style="font:돋움체,9;" text="bind:day02"/>
- <Cell col="13" style="font:돋움체,9;" text="bind:day03"/>
- <Cell col="14" style="font:돋움체,9;" text="bind:day04"/>
- <Cell col="15" style="font:돋움체,9;" text="bind:day05"/>
- <Cell col="16" style="font:돋움체,9;" text="bind:day06"/>
- <Cell col="17" style="font:돋움체,9;" text="bind:day07"/>
- <Cell col="18" style="font:돋움체,9;" text="bind:day08"/>
- <Cell col="19" style="font:돋움체,9;" text="bind:day09"/>
- <Cell col="20" style="font:돋움체,9;" text="bind:day10"/>
- <Cell col="21" style="font:돋움체,9;" text="bind:day11"/>
- <Cell col="22" style="font:돋움체,9;" text="bind:day12"/>
- <Cell col="23" style="font:돋움체,9;" text="bind:day13"/>
- <Cell col="24" style="font:돋움체,9;" text="bind:day14"/>
- <Cell col="25" style="font:돋움체,9;" text="bind:day15"/>
- <Cell col="26" style="font:돋움체,9;" text="bind:day16"/>
- <Cell col="27" style="font:돋움체,9;" text="bind:day17"/>
- <Cell col="28" style="font:돋움체,9;" text="bind:day18"/>
- <Cell col="29" style="font:돋움체,9;" text="bind:day19"/>
- <Cell col="30" style="font:돋움체,9;" text="bind:day20"/>
- <Cell col="31" style="font:돋움체,9;" text="bind:day21"/>
- <Cell col="32" style="font:돋움체,9;" text="bind:day22"/>
- <Cell col="33" style="font:돋움체,9;" text="bind:day23"/>
- <Cell col="34" style="font:돋움체,9;" text="bind:day24"/>
- <Cell col="35" style="font:돋움체,9;" text="bind:day25"/>
- <Cell col="36" style="font:돋움체,9;" text="bind:day26"/>
- <Cell col="37" style="font:돋움체,9;" text="bind:day27"/>
- <Cell col="38" style="font:돋움체,9;" text="bind:day28"/>
- <Cell col="39" style="font:돋움체,9;" text="bind:day29"/>
- <Cell col="40" style="font:돋움체,9;" text="bind:day30"/>
- <Cell col="41" style="font:돋움체,9;" text="bind:day31"/>
- <Cell col="42" text="bind:holitotcnt"/>
- <Cell col="43" text="bind:useholidayno"/>
- <Cell col="44" displaytype="number" text="bind:mensholidayno"/>
- <Cell col="45" displaytype="number" text="bind:daysum"/>
- <Cell col="46" displaytype="number" text="bind:eveningsum"/>
- <Cell col="47" displaytype="number" text="bind:nigtsum"/>
- <Cell col="48" displaytype="number" text="bind:offsum"/>
- <Cell col="49" displaytype="number" text="bind:surp1_totduttm"/>
- <Cell col="50" displaytype="number" text="bind:surp2_otofftm"/>
- <Cell col="51" displaytype="text" edittype="text" text="bind:cmt"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_send" 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="dutym" type="STRING" size="256"/>
- <Column id="deptkind" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="instcd"/>
- <Col id="dutym"/>
- <Col id="deptkind">dpt</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_dutlist_dutschelist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="dutplcedeptcd" type="STRING" size="256" sumtext="근무부서코드"/>
- <Column id="dutplcedeptnm" type="STRING" size="256" sumtext="근무부서명"/>
- <Column id="dutym" type="STRING" size="256" sumtext="근무년월"/>
- <Column id="appscheexecflag" type="STRING" size="256" sumtext="신청예정실시구분"/>
- <Column id="emplno" type="STRING" size="256" sumtext="사원번호"/>
- <Column id="emplnm" type="STRING" size="256" sumtext="사원명"/>
- <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
- <Column id="dutplcedeptcdtemp" type="STRING" size="256" sumtext="근무지부서코드"/>
- <Column id="dutplcedeptnmtemp" type="STRING" size="256" sumtext="근무지부서명"/>
- <Column id="jobkindcd" type="STRING" size="256" sumtext="직종코드"/>
- <Column id="jobrespcd" type="STRING" size="256" sumtext="직책코드"/>
- <Column id="jobrespnm" type="STRING" size="256" sumtext="직책코드"/>
- <Column id="jobkindnm" type="STRING" size="256" sumtext="직종명"/>
- <Column id="part" type="STRING" size="256" sumtext="part"/>
- <Column id="day01" type="STRING" size="256" sumtext="day01"/>
- <Column id="day02" type="STRING" size="256" sumtext="day02"/>
- <Column id="day03" type="STRING" size="256" sumtext="day03"/>
- <Column id="day04" type="STRING" size="256" sumtext="day04"/>
- <Column id="day05" type="STRING" size="256" sumtext="day05"/>
- <Column id="day06" type="STRING" size="256" sumtext="day06"/>
- <Column id="day07" type="STRING" size="256" sumtext="day07"/>
- <Column id="day08" type="STRING" size="256" sumtext="day08"/>
- <Column id="day09" type="STRING" size="256" sumtext="day09"/>
- <Column id="day10" type="STRING" size="256" sumtext="day10"/>
- <Column id="day11" type="STRING" size="256" sumtext="day11"/>
- <Column id="day12" type="STRING" size="256" sumtext="day12"/>
- <Column id="day13" type="STRING" size="256" sumtext="day13"/>
- <Column id="day14" type="STRING" size="256" sumtext="day14"/>
- <Column id="day15" type="STRING" size="256" sumtext="day15"/>
- <Column id="day16" type="STRING" size="256" sumtext="day16"/>
- <Column id="day17" type="STRING" size="256" sumtext="day17"/>
- <Column id="day18" type="STRING" size="256" sumtext="day18"/>
- <Column id="day19" type="STRING" size="256" sumtext="day19"/>
- <Column id="day20" type="STRING" size="256" sumtext="day20"/>
- <Column id="day21" type="STRING" size="256" sumtext="day21"/>
- <Column id="day22" type="STRING" size="256" sumtext="day22"/>
- <Column id="day23" type="STRING" size="256" sumtext="day23"/>
- <Column id="day24" type="STRING" size="256" sumtext="day24"/>
- <Column id="day25" type="STRING" size="256" sumtext="day25"/>
- <Column id="day26" type="STRING" size="256" sumtext="day26"/>
- <Column id="day27" type="STRING" size="256" sumtext="day27"/>
- <Column id="day28" type="STRING" size="256" sumtext="day28"/>
- <Column id="day29" type="STRING" size="256" sumtext="day29"/>
- <Column id="day30" type="STRING" size="256" sumtext="day30"/>
- <Column id="day31" type="STRING" size="256" sumtext="day31"/>
- <Column id="brngfwrdoffqty" type="STRING" size="256" sumtext="이월off수"/>
- <Column id="nigtcnt" type="STRING" size="256" sumtext="night수"/>
- <Column id="holitotcnt" type="STRING" size="256" sumtext="total휴가수"/>
- <Column id="useholidayno" type="BIGDECIMAL" size="256" sumtext="사용휴가수"/>
- <Column id="mensholidayno" type="STRING" size="256" sumtext="생리휴가수"/>
- <Column id="holicnt" type="STRING" size="256" sumtext="holiday수"/>
- <Column id="startdut" type="STRING" size="256" sumtext="start duty"/>
- <Column id="lastdut" type="STRING" size="256" sumtext="last duty"/>
- <Column id="daysum" type="STRING" size="256" sumtext="day합계"/>
- <Column id="eveningsum" type="STRING" size="256" sumtext="evening합계"/>
- <Column id="nigtsum" type="STRING" size="256" sumtext="night합계"/>
- <Column id="offsum" type="STRING" size="256" sumtext="off합계"/>
- <Column id="surp1_totduttm" type="STRING" size="256" sumtext="여분1_총근무시간"/>
- <Column id="surp2_otofftm" type="STRING" size="256" sumtext="여분2_ot+off시간"/>
- <Column id="surp3_ottm" type="STRING" size="256" sumtext="여분3_ot근무시간"/>
- <Column id="surp4_sumdutrcogtm" type="STRING" size="256" sumtext="여분4_총근무인정시간"/>
- <Column id="surp5_sumduttm" type="STRING" size="256" sumtext="여분5_총근무할시간"/>
- <Column id="sumyearno" type="STRING" size="256" sumtext="연차합계"/>
- <Column id="educsum" type="STRING" size="256" sumtext="교육합계"/>
- <Column id="remunrsum" type="STRING" size="256" sumtext="보수합계"/>
- <Column id="posdeptcd" type="STRING" size="256" sumtext="소속부서코드"/>
- <Column id="empflag" type="STRING" size="256" sumtext="직원구분"/>
- <Column id="execschecloseyn" type="STRING" size="256" sumtext="실시마감여부"/>
- <Column id="deprtmangrdutcnfmyn" type="STRING" size="256" sumtext="부서장근무확정여부"/>
- <Column id="psnworkdutcnfnyn" type="STRING" size="256" sumtext="인사팀근무확정여부"/>
- <Column id="cmt" type="STRING" size="256" sumtext="비고"/>
- <Column id="emplappyn" type="STRING" size="256" sumtext="여부"/>
- <Column id="suppflag" type="STRING" size="256" sumtext="지원여부"/>
- <Column id="anual" type="STRING" size="256" sumtext="년차"/>
- <Column id="entcodd" type="STRING" size="256" sumtext="입사일자"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_daylist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="basedd" type="STRING" size="256" sumtext="날자"/>
- <Column id="holiflag" type="STRING" size="256" sumtext="휴일구분"/>
- <Column id="daynm" type="STRING" size="256" sumtext="요일명"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_send_winparams" 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="dutym" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_printlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="group4.cmb_instcd" propid="value" datasetid="ds_send" columnid="instcd"/>
- <BindItem id="item1" compid="group4.ipt_dutym" propid="value" datasetid="ds_send" columnid="dutym"/>
- <BindItem id="item2" compid="group4.cmb_dutplce" propid="value" datasetid="ds_send" columnid="deptkind"/>
- </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";
- var arrDayMax = new Array();
- var arrEveningMax = new Array();
- var arrNightMax = new Array();
- var DUTCODE_FLAG = false;
- var ZOOM_FLAG = false;
- var MOUSE_DOWN = false;
- var FIRST_CHECK = false;
- var iDay1ColIdx = 10;
- var iDay31ColIdx = 42;
- var bFirst = true;
- var sCurYM = "";
- var SELECTED_ROW = -1;
- function SMRPD05200_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SMRPD05200_onload(obj:Form, e:LoadEventInfo)
- {
- grdf_initGrid(grd_dutschelist);
- grdf_setRowTypeIcon(grd_dutschelist, 0);
-
- fInitialize();
- }
- function fInitialize()
- {
- ds_main_dutlist_dutschelist.clearData();
-
- //misfMsterDetailSet(grd_dutschelist, null, "TRRPD05201", "Y");
- misfComboInstCdListMulti("group4.cmb_instcd",utlf_getCurrentDate(),"","N");
- misfGetAndSetUserInfo();
- misfGetUserAuth();
-
- sCurYM = String(utlf_getCurrentDate()).substr(0, 6);
-
- ds_send.setColumn(0, "instcd", sysf_getUserInfo("dutplceinstcd"));
- ds_send.setColumn(0, "dutym", String(utlf_getCurrentDate()).substr(0, 6));
-
- if(sysf_getUserInfo("dutplceinstcd") == "001" && DUTY_PART_YN == "Y")
- {
- group4.cmb_instcd.enable = true;
- group4.cmb_dutplce.enable = true;
- }
-
- if(DUTY_PART_YN == "Y")
- {
- group4.cmb_dutplce.enable = true;
- }
- }
- function group4_ipt_dutym_onchanged(obj:Calendar, e:ChangeEventInfo)
- {
- var dutym = String(obj.value).substr(0,6);
- ds_send.setColumn(0, "dutym", dutym);
-
- var instcd = group4.cmb_instcd.value;
-
- if( utlf_getStringLength(dutym) == "6" )
- {
- ds_send.setColumn(0, "instcd", "");
-
- misfComboInstCdListMulti("group4.cmb_instcd",dutym+"31","","N");
- group4.cmb_instcd.value = instcd;
- }
- fDutYMValueChanged();
- }
- function fDutYMValueChanged()
- {
- dsf_makeValue(ds_send, "basedd", "string", ds_send.getColumn(0, "dutym"), 0);
- var oParam = {};
- oParam.id = "TRRPD02206";
- oParam.service = "dligclaznsmngtapp.DutScheMngt";
- oParam.method = "reqGetDayList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_daylist=daylist";
- oParam.async = false;
- //oParam.callback = "cf_TRRPD02206";
- tranf_submit(oParam);
- group4.btn_search.click();
- }
- function group4_cmb_dutplce_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
- {
- group4.btn_search.click();
- }
- function group4_btn_search_onclick(obj:Button, e:ClickEventInfo)
- {
- fRetrieve();
- }
- function fRetrieve()
- {
- var oParam = {};
- oParam.id = "TRRPD05201";
- oParam.service = "dligclaznsmngtapp.DutScheMngt";
- oParam.method = "reqGetDutScheListForMnger";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_dutlist_dutschelist=dutschelist";
- oParam.async = false;
- //oParam.callback = "cf_TRRPD05201";
- tranf_submit(oParam);
-
- dsf_makeValue(ds_send, "basedd", "string", ds_send.getColumn(0, "dutym"), 0);
-
- var oParam = {};
- oParam.id = "TRRPD02206";
- oParam.service = "dligclaznsmngtapp.DutScheMngt";
- oParam.method = "reqGetDayList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_daylist=daylist";
- oParam.async = false;
- //oParam.callback = "cf_TRRPD02206";
- tranf_submit(oParam);
-
- fSetCalendarScheList();
- }
- function fSetCalendarScheList()
- {
- var basedd = new Array();
- var holiflag = new Array();
- var daynm = new Array();
-
- for( var i = 0; i < 31; i++)
- {
- basedd[i] = ds_main_daylist.getColumn(i, "basedd");
- holiflag[i] = ds_main_daylist.getColumn(i, "holiflag");
- daynm[i] = ds_main_daylist.getColumn(i, "daynm");
- var colID = "";
-
- if(String(i+1).length != 2)
- {
- colID = "day0"+parseInt(i+1);
- }
- else
- {
- colID = "day"+parseInt(i+1);
- }
-
- if(utlf_isNull(basedd[i]))
- {
- misfColHidden(grd_dutschelist, colID, true);
-
- }
- else
- {
- misfColHidden(grd_dutschelist, colID, false);
- grd_dutschelist.setCellProperty("Head", parseInt(i+57), "text", daynm[i]);
- }
-
- if(holiflag[i] == "4")
- {
- misfSetGridColor(grd_dutschelist, colID, "#0000FF", "C" , "")
- grd_dutschelist.setCellProperty("Head", parseInt(i+11), "color", "#0000FF");
- grd_dutschelist.setCellProperty("Head", parseInt(i+57), "color", "#0000FF");
- }
- else if(holiflag[i] == "0")
- {
- misfSetGridColor(grd_dutschelist, colID, "#FF0000", "C" , "");
- grd_dutschelist.setCellProperty("Head", parseInt(i+11), "color", "#FF0000");
- grd_dutschelist.setCellProperty("Head", parseInt(i+57), "color", "#FF0000");
- }
- else
- {
- misfSetGridColor(grd_dutschelist, colID, "#000000", "C" , "");
- grd_dutschelist.setCellProperty("Head", parseInt(i+11), "color", "");
- grd_dutschelist.setCellProperty("Head", parseInt(i+57), "color", "");
- }
- }
- }
- function btn_retrsrvp_onclick(obj:Button, e:ClickEventInfo)
- {
- ds_send_winparams.setColumn(0, "instcd", ds_send.getColumn(0, "instcd"));
- ds_send_winparams.setColumn(0, "dutunitcd", ds_send.getColumn(0, "dutunitcd"));
- ds_send_winparams.setColumn(0, "dutym", ds_send.getColumn(0, "dutym"));
-
- var objArg = new Object();
- objArg.arg_ds_target = ds_send_winparams;
- frmf_modal("SPRPD02610", "SPRPD02610", objArg, "", "", "", "", "", "", "", "", "", "M");
- }
- function btn_excsave_onclick(obj:Button, e:ClickEventInfo)
- {
- var sName = group4.cmb_instcd.text+ " " + String(ds_send.getColumn(0, "dutym")).substr(0, 4) + "년 " + String(ds_send.getColumn(0, "dutym")).substr(4, 2) + "월 " + "중간 관리자 근무표 (" + group4.cmb_dutplce.text+ ")";
- misfSaveExcel(grd_dutschelist, sName);
- }
- function btn_print_onclick(obj:Button, e:ClickEventInfo)
- {
- fPrint();
- }
- function fPrint()
- {
- var objDOM = rptf_createDOM();
- rptf_setNodeListToDOM(objDOM, "/root/main/print/printlist", ds_main_printlist);
-
- var objParam = new Object();
- objParam.xml_data_XML1 = objDOM.documentElement.source;
-
- var option = "";
- rptf_exeReportPreview30(["RPRPD02201"],[objParam], option, "");
-
- ds_main_printlist.clearData();
- }
- ]]></Script>
- </Form>
- </FDL>
|