123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688 |
- <?xml version="1.0" encoding="utf-8" standalone="no"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMRPD31000" position="absolute 0 0 1204 794" titletext="전공의 수련현황 조회(과별)" oninit="SMRPD31000_oninit" onload="SMRPD31000_onload">
- <Layouts>
- <Layout>
- <Static id="caption3" text="※ OFF 는 주간에 등록된 것만 count 됩니다." position="absolute 5 762 812 782" style="color:#800000;" anchor="left bottom"/>
- <Static id="caption6" text="전공의 수련현황 조회(과별)" class="tit_1" position="absolute 0 0 198 25"/>
- <Button id="btn_print" taborder="1" text="출력" class="btn6" position="absolute 1139 20 1195 42" style="align:left ;" anchor="top right" onclick="btn_print_onclick"/>
- <Shape id="line2" class="line_6" position="absolute 0 43 1195 46" anchor="left top right"/>
- <Div id="grp_sea" anchor="left top right" taborder="2" style="align: top;" class="div_SA2" position="absolute 0 45 1195 85">
- <Layouts>
- <Layout width="1195" height="40">
- <Shape id="line5" linetype="vertical" class="line_4" position="absolute 1080 8 1083 32" anchor="top right"/>
- <Button id="btn_search" taborder="6" text="조회" class="btn1" position="absolute 1100 9 1156 31" style="align:left ;" anchor="top right" onclick="grp_sea_btn_search_onclick"/>
- <Edit id="opt_deptnm" taborder="7" readonly="true" class="output" position="absolute 622 10 812 29" anchor="default"/>
- <Static id="caption1" text="부서코드" class="search_name" position="absolute 445 11 521 28" anchor="default"/>
- <Edit id="ipt_deptcd" taborder="8" class="input_default" position="absolute 527 10 602 29" onkeypress="group3_grp_sea_ipt_deptcd_onkeypress" anchor="default" autoselect="true" autoskip="true" onkeyup="grp_sea_ipt_deptcd_onkeyup"/>
- <Button id="btn_deptcd" taborder="9" class="icon_search" position="absolute 604 11 620 27" anchor="default" onclick="grp_sea_btn_deptcd_onclick"/>
- <Static id="caption9" text="근무년월" class="search_name" position="absolute 275 11 356 28" anchor="default"/>
- <Button id="btn_emplnos" taborder="10" class="icon_search" position="absolute 938 11 954 27" anchor="default" onclick="grp_sea_btn_emplnos_onclick"/>
- <Static id="caption2" text="사번" class="search_name" position="absolute 824 11 880 28" anchor="default"/>
- <Edit id="ipt_emplnos" taborder="11" class="input_default" position="absolute 879 10 935 29" anchor="default" autoselect="true" autoskip="true" onkeyup="grp_sea_ipt_emplnos_onkeyup"/>
- <Edit id="ipt_emplnms" taborder="12" class="input_default" position="absolute 955 10 1061 29" anchor="default" autoselect="true" autoskip="true" onkeyup="grp_sea_ipt_emplnms_onkeyup"/>
- <Calendar id="ipt_ym" taborder="13" class="input_default" position="absolute 357 10 435 29" style="align:center ;" mask="yyyy-mm" anchor="default" autoselect="true" autoskip="true" dateformat="yyyy-MM" value="null" editformat="yyyy-MM" onchanged="grp_sea_ipt_ym_onchanged"/>
- <Combo id="cmb_instcd" taborder="14" class="combo_s_default" position="absolute 112 10 254 29" columncount="-1" rowcount="-1" anchor="default" onitemchanged="grp_sea_cmb_instcd_onitemchanged"/>
- <Static id="caption29" text="기관코드" class="search_name" position="absolute 31 11 107 28" anchor="default"/>
- </Layout>
- </Layouts>
- </Div>
- <Button id="btn_excel" taborder="3" text="엑셀출력" class="btn7" position="absolute 1115 93 1195 112" style="align:left ;" anchor="top right" onclick="btn_excel_onclick"/>
- <Shape id="line3" class="line_10" position="absolute 0 110 1195 121" anchor="left top right"/>
- <Grid id="grd_emplist" taborder="4" binddataset="ds_main_emplist" useinputpanel="false" position="absolute 0 117 1195 757" autoenter="select" autofittype="col" cellsizingtype="col" anchor="all">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="0"/>
- <Column size="55"/>
- <Column size="42"/>
- <Column size="52"/>
- <Column size="110"/>
- <Column size="26"/>
- <Column size="26"/>
- <Column size="26"/>
- <Column size="26"/>
- <Column size="26"/>
- <Column size="26"/>
- <Column size="26"/>
- <Column size="26"/>
- <Column size="26"/>
- <Column size="26"/>
- <Column size="26"/>
- <Column size="26"/>
- <Column size="26"/>
- <Column size="26"/>
- <Column size="26"/>
- <Column size="26"/>
- <Column size="26"/>
- <Column size="26"/>
- <Column size="26"/>
- <Column size="26"/>
- <Column size="26"/>
- <Column size="26"/>
- <Column size="26"/>
- <Column size="26"/>
- <Column size="26"/>
- <Column size="26"/>
- <Column size="26"/>
- <Column size="26"/>
- <Column size="26"/>
- <Column size="26"/>
- <Column size="26"/>
- <Column size="85"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <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"/>
- <Cell col="6"/>
- <Cell col="7"/>
- <Cell col="8"/>
- <Cell col="9"/>
- <Cell col="10"/>
- <Cell col="11"/>
- <Cell col="12"/>
- <Cell col="13"/>
- <Cell col="14"/>
- <Cell col="15"/>
- <Cell col="16"/>
- <Cell col="17"/>
- <Cell col="18"/>
- <Cell col="19"/>
- <Cell col="20"/>
- <Cell col="21"/>
- <Cell col="22"/>
- <Cell col="23"/>
- <Cell col="24"/>
- <Cell col="25"/>
- <Cell col="26"/>
- <Cell col="27"/>
- <Cell col="28"/>
- <Cell col="29"/>
- <Cell col="30"/>
- <Cell col="31"/>
- <Cell col="32"/>
- <Cell col="33"/>
- <Cell col="34"/>
- <Cell col="35"/>
- <Cell col="36" rowspan="2" text="월근로시간" taborder="undefined"/>
- <Cell col="37" text="사번"/>
- <Cell col="38" text="년차"/>
- <Cell col="39" text="사번"/>
- <Cell col="40" text="성명"/>
- <Cell col="41" text="근무형태"/>
- <Cell col="42" text="1"/>
- <Cell col="43" text="2"/>
- <Cell col="44" text="3"/>
- <Cell col="45" text="4"/>
- <Cell col="46" text="5"/>
- <Cell col="47" text="6"/>
- <Cell col="48" text="7"/>
- <Cell col="49" text="8"/>
- <Cell col="50" text="9"/>
- <Cell col="51" text="10"/>
- <Cell col="52" text="11"/>
- <Cell col="53" text="12"/>
- <Cell col="54" text="13"/>
- <Cell col="55" text="14"/>
- <Cell col="56" text="15"/>
- <Cell col="57" text="16"/>
- <Cell col="58" text="17"/>
- <Cell col="59" text="18"/>
- <Cell col="60" text="19"/>
- <Cell col="61" text="20"/>
- <Cell col="62" text="21"/>
- <Cell col="63" text="22"/>
- <Cell col="64" text="23"/>
- <Cell col="65" text="24"/>
- <Cell col="66" text="25"/>
- <Cell col="67" text="26"/>
- <Cell col="68" text="27"/>
- <Cell col="69" text="28"/>
- <Cell col="70" text="29"/>
- <Cell col="71" text="30"/>
- <Cell col="72" text="31"/>
- <Cell col="73" text="월근로시간"/>
- <Cell row="1"/>
- <Cell row="1" col="5" text="1"/>
- <Cell row="1" col="6" text="2"/>
- <Cell row="1" col="7" text="3"/>
- <Cell row="1" col="8" text="4"/>
- <Cell row="1" col="9" text="5"/>
- <Cell row="1" col="10" text="6"/>
- <Cell row="1" col="11" text="7"/>
- <Cell row="1" col="12" text="8"/>
- <Cell row="1" col="13" text="9"/>
- <Cell row="1" col="14" text="10"/>
- <Cell row="1" col="15" text="11"/>
- <Cell row="1" col="16" text="12"/>
- <Cell row="1" col="17" text="13"/>
- <Cell row="1" col="18" text="14"/>
- <Cell row="1" col="19" text="15"/>
- <Cell row="1" col="20" text="16"/>
- <Cell row="1" col="21" text="17"/>
- <Cell row="1" col="22" text="18"/>
- <Cell row="1" col="23" text="19"/>
- <Cell row="1" col="24" text="20"/>
- <Cell row="1" col="25" text="21"/>
- <Cell row="1" col="26" text="22"/>
- <Cell row="1" col="27" text="23"/>
- <Cell row="1" col="28" text="24"/>
- <Cell row="1" col="29" text="25"/>
- <Cell row="1" col="30" text="26"/>
- <Cell row="1" col="31" text="27"/>
- <Cell row="1" col="32" text="28"/>
- <Cell row="1" col="33" text="29"/>
- <Cell row="1" col="34" text="30"/>
- <Cell row="1" col="35" text="31"/>
- </Band>
- <Band id="body">
- <Cell/>
- <Cell col="1" text="bind:anual" suppress="1" suppressalign="middle,over"/>
- <Cell col="2" text="bind:emplno" suppress="2" suppressalign="middle,over"/>
- <Cell col="3" text="bind:emplnm" suppress="3" suppressalign="middle,over"/>
- <Cell col="4" style="align:center middle;padding:0 0 0 3;" text="bind:cdnm"/>
- <Cell col="5" displaytype="number" text="bind:d1" mask="#.#" maskchar=" "/>
- <Cell col="6" displaytype="number" text="bind:d2" mask="#.#" maskchar=" "/>
- <Cell col="7" displaytype="number" text="bind:d3" mask="#.#" maskchar=" "/>
- <Cell col="8" displaytype="number" text="bind:d4" mask="#.#" maskchar=" "/>
- <Cell col="9" displaytype="number" text="bind:d5" mask="#.#" maskchar=" "/>
- <Cell col="10" displaytype="number" text="bind:d6" mask="#.#" maskchar=" "/>
- <Cell col="11" displaytype="number" text="bind:d7" mask="#.#" maskchar=" "/>
- <Cell col="12" displaytype="number" text="bind:d8" mask="#.#" maskchar=" "/>
- <Cell col="13" displaytype="number" text="bind:d9" mask="#.#" maskchar=" "/>
- <Cell col="14" displaytype="number" text="bind:d10" mask="#.#" maskchar=" "/>
- <Cell col="15" displaytype="number" text="bind:d11" mask="#.#" maskchar=" "/>
- <Cell col="16" displaytype="number" text="bind:d12" mask="#.#" maskchar=" "/>
- <Cell col="17" displaytype="number" text="bind:d13" mask="#.#" maskchar=" "/>
- <Cell col="18" displaytype="number" text="bind:d14" mask="#.#" maskchar=" "/>
- <Cell col="19" displaytype="number" text="bind:d15" mask="#.#" maskchar=" "/>
- <Cell col="20" displaytype="number" text="bind:d16" mask="#.#" maskchar=" "/>
- <Cell col="21" displaytype="number" text="bind:d17" mask="#.#" maskchar=" "/>
- <Cell col="22" displaytype="number" text="bind:d18" mask="#.#" maskchar=" "/>
- <Cell col="23" displaytype="number" text="bind:d19" mask="#.#" maskchar=" "/>
- <Cell col="24" displaytype="number" text="bind:d20" mask="#.#" maskchar=" "/>
- <Cell col="25" displaytype="number" text="bind:d21" mask="#.#" maskchar=" "/>
- <Cell col="26" displaytype="number" text="bind:d22" mask="#.#" maskchar=" "/>
- <Cell col="27" displaytype="number" text="bind:d23" mask="#.#" maskchar=" "/>
- <Cell col="28" displaytype="number" text="bind:d24" mask="#.#" maskchar=" "/>
- <Cell col="29" displaytype="number" text="bind:d25" mask="#.#" maskchar=" "/>
- <Cell col="30" displaytype="number" text="bind:d26" mask="#.#" maskchar=" "/>
- <Cell col="31" displaytype="number" text="bind:d27" mask="#.#" maskchar=" "/>
- <Cell col="32" displaytype="number" text="bind:d28" mask="#.#" maskchar=" "/>
- <Cell col="33" displaytype="number" text="bind:d29" mask="#.#" maskchar=" "/>
- <Cell col="34" displaytype="number" text="bind:d30" mask="#.#" maskchar=" "/>
- <Cell col="35" displaytype="number" text="bind:d31" mask="#.#" maskchar=" "/>
- <Cell col="36" text="bind:msum"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static id="caption21" text="수련 현황" class="tit_2" position="absolute 0 96 80 118"/>
- <Static id="caption26" text="※ 교육수련담당 확인 처리된 자료만 조회됩니다." position="absolute 270 757 555 777" style="color:#ff0000;" anchor="left bottom" visible="false"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_main_condition" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_condition_oncolumnchanged">
- <ColumnInfo>
- <Column id="instcd" type="STRING" size="256"/>
- <Column id="ym" type="STRING" size="256"/>
- <Column id="deptcd" type="STRING" size="256"/>
- <Column id="deptnm" type="STRING" size="256"/>
- <Column id="emplno" type="STRING" size="256"/>
- <Column id="emplnm" type="STRING" size="256"/>
- <Column id="powertp" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="instcd"/>
- <Col id="ym"/>
- <Col id="deptcd"/>
- <Col id="deptnm"/>
- <Col id="emplno"/>
- <Col id="emplnm"/>
- <Col id="powertp"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_emplist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="emplno" type="STRING" size="256" sumtext="사번"/>
- <Column id="anual" type="STRING" size="256" sumtext="년차"/>
- <Column id="emplnm" type="STRING" size="256" sumtext="성명"/>
- <Column id="deptnm" type="STRING" size="256" sumtext="부서명"/>
- <Column id="cdnm" type="STRING" size="256" sumtext="근무형태"/>
- <Column id="d1" type="STRING" size="256" sumtext="d1"/>
- <Column id="d2" type="STRING" size="256" sumtext="d2"/>
- <Column id="d3" type="STRING" size="256" sumtext="d3"/>
- <Column id="d4" type="STRING" size="256" sumtext="d4"/>
- <Column id="d5" type="STRING" size="256" sumtext="d5"/>
- <Column id="d6" type="STRING" size="256" sumtext="d6"/>
- <Column id="d7" type="STRING" size="256" sumtext="d7"/>
- <Column id="d8" type="STRING" size="256" sumtext="d8"/>
- <Column id="d9" type="STRING" size="256" sumtext="d9"/>
- <Column id="d10" type="STRING" size="256" sumtext="d10"/>
- <Column id="d11" type="STRING" size="256" sumtext="d11"/>
- <Column id="d12" type="STRING" size="256" sumtext="d12"/>
- <Column id="d13" type="STRING" size="256" sumtext="d13"/>
- <Column id="d14" type="STRING" size="256" sumtext="d14"/>
- <Column id="d15" type="STRING" size="256" sumtext="d15"/>
- <Column id="d16" type="STRING" size="256" sumtext="d16"/>
- <Column id="d17" type="STRING" size="256" sumtext="d17"/>
- <Column id="d18" type="STRING" size="256" sumtext="d18"/>
- <Column id="d19" type="STRING" size="256" sumtext="d19"/>
- <Column id="d20" type="STRING" size="256" sumtext="d20"/>
- <Column id="d21" type="STRING" size="256" sumtext="d21"/>
- <Column id="d22" type="STRING" size="256" sumtext="d22"/>
- <Column id="d23" type="STRING" size="256" sumtext="d23"/>
- <Column id="d24" type="STRING" size="256" sumtext="d24"/>
- <Column id="d25" type="STRING" size="256" sumtext="d25"/>
- <Column id="d26" type="STRING" size="256" sumtext="d26"/>
- <Column id="d27" type="STRING" size="256" sumtext="d27"/>
- <Column id="d28" type="STRING" size="256" sumtext="d28"/>
- <Column id="d29" type="STRING" size="256" sumtext="d29"/>
- <Column id="d30" type="STRING" size="256" sumtext="d30"/>
- <Column id="d31" type="STRING" size="256" sumtext="d31"/>
- <Column id="msum" type="STRING" size="256" sumtext="월근로시간"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_powerinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_print_daylist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_main_daylist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="dd" type="STRING" size="256"/>
- <Column id="day" type="STRING" size="256"/>
- <Column id="holiflag" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="dd"/>
- <Col id="day"/>
- <Col id="holiflag"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_print_holiflaglist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="h1" type="STRING" size="256"/>
- <Column id="h2" type="STRING" size="256"/>
- <Column id="h3" type="STRING" size="256"/>
- <Column id="h4" type="STRING" size="256"/>
- <Column id="h5" type="STRING" size="256"/>
- <Column id="h6" type="STRING" size="256"/>
- <Column id="h7" type="STRING" size="256"/>
- <Column id="h8" type="STRING" size="256"/>
- <Column id="h9" type="STRING" size="256"/>
- <Column id="h10" type="STRING" size="256"/>
- <Column id="h11" type="STRING" size="256"/>
- <Column id="h12" type="STRING" size="256"/>
- <Column id="h13" type="STRING" size="256"/>
- <Column id="h14" type="STRING" size="256"/>
- <Column id="h15" type="STRING" size="256"/>
- <Column id="h16" type="STRING" size="256"/>
- <Column id="h17" type="STRING" size="256"/>
- <Column id="h18" type="STRING" size="256"/>
- <Column id="h19" type="STRING" size="256"/>
- <Column id="h20" type="STRING" size="256"/>
- <Column id="h21" type="STRING" size="256"/>
- <Column id="h22" type="STRING" size="256"/>
- <Column id="h23" type="STRING" size="256"/>
- <Column id="h24" type="STRING" size="256"/>
- <Column id="h25" type="STRING" size="256"/>
- <Column id="h26" type="STRING" size="256"/>
- <Column id="h27" type="STRING" size="256"/>
- <Column id="h28" type="STRING" size="256"/>
- <Column id="h29" type="STRING" size="256"/>
- <Column id="h30" type="STRING" size="256"/>
- <Column id="h31" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_print" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="ym" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <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" sumtext="기관코드"/>
- <Column id="ym" type="STRING" size="256" sumtext="년월"/>
- </ColumnInfo>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="grp_sea.cmb_instcd" propid="value" datasetid="ds_main_condition" columnid="instcd"/>
- <BindItem id="item1" compid="grp_sea.ipt_ym" propid="value" datasetid="ds_main_condition" columnid="ym"/>
- <BindItem id="item2" compid="grp_sea.ipt_deptcd" propid="value" datasetid="ds_main_condition" columnid="deptcd"/>
- <BindItem id="item3" compid="grp_sea.opt_deptnm" propid="value" datasetid="ds_main_condition" columnid="deptnm"/>
- <BindItem id="item4" compid="grp_sea.ipt_emplnos" propid="value" datasetid="ds_main_condition" columnid="emplno"/>
- <BindItem id="item5" compid="grp_sea.ipt_emplnms" propid="value" datasetid="ds_main_condition" columnid="emplnm"/>
- </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_humtrafactmngtxp::RPB001.xjs";
- var arErrorCode = new HashArray();
- function SMRPD31000_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SMRPD31000_onload(obj:Form, e:LoadEventInfo)
- {
- grdf_initGrid(grd_emplist);
- fOpenForm();
- }
- function fOpenForm()
- {
- misfComboInstCdListMulti("grp_sea.cmb_instcd", utlf_getCurrentDate(),"","N");
- grp_sea.cmb_instcd.value = sysf_getUserInfo("dutplceinstcd");
-
- ds_main_emplist.clearData();
- ds_main_condition.setColumn(0, "ym", String(utlf_getCurrentDate()).substring(0, 6));
-
- var oParam = {};
- oParam.id = "TRRPD30305";
- oParam.service = "dligclaznsmngtapp.DutScheMngt";
- oParam.method = "reqGetDutyPowerInfo";
- oParam.inds = "req=ds_main_condition";
- oParam.outds = "ds_main_powerinfo=powerinfo";
- oParam.async = false;
- oParam.callback = "cf_TRRPD30305";
- tranf_submit(oParam);
- if(arErrorCode.pop("TRRPD30305") > -1)
- {
- var powertp = ds_main_powerinfo.getColumn(0, "powertp");
- ds_main_condition.setColumn(0, "powertp", powertp);
-
- if(utlf_isNull(powertp)){}
- else if(powertp == "1"){}
- else if(powertp == "2") {}
- else if(powertp == "3")
- {
- if(sysf_getUserInfo("dutplceinstcd") == "031")
- {
- grp_sea.cmb_instcd.enable = true;
- }
- }
- else if(powertp == "4"){}
- }
- }
- function cf_TRRPD30305(sSvcId, nErrorCode, sErrorMsg)
- {
- arErrorCode.push(sSvcId, nErrorCode);
- if(nErrorCode < 0) return;
- }
- function grp_sea_cmb_instcd_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
- {
- misfGridInit(grd_emplist);
- }
- function grp_sea_ipt_ym_onchanged(obj:Calendar, e:ChangeEventInfo)
- {
- ds_main_condition.setColumn(0, "ym", String(obj.value).substr(0,6));
- ds_main_emplist.clearData();
- }
- function ds_main_condition_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
- {
- if(e.columnid == "deptcd")
- {
- grp_sea.ipt_deptcd.value = e.newvalue;
- grp_sea.ipt_deptcd.setFocus();
- ds_main_emplist.clearData();
- grp_sea.opt_deptnm.value = "";
- misfValidationCheck("02", "", "deptcd,deptnm" );
- }
- if(e.columnid == "emplno")
- {
- grp_sea.ipt_emplnos.setFocus();
- var recv_list = "emplno,emplnm" ;
- rpbfValidationCheck("EMPLNO", recv_list);
-
- if (String(grp_sea.ipt_emplnos.value).length > 0)
- {
- grp_sea.btn_search.click();
- }
- }
- if(e.columnid == "emplnm")
- {
- grp_sea.ipt_emplnms.setFocus();
- var recv_list = "emplno,emplnm" ;
- rpbfValidationCheck("EMPLNM", recv_list);
-
- if (String(grp_sea.ipt_emplnos.value).length > 0)
- {
- grp_sea.btn_search.click();
- }
- }
- }
- function grp_sea_btn_deptcd_onclick(obj:Button, e:ClickEventInfo)
- {
- var vOrigDeptcd = grp_sea.ipt_deptcd.value;
-
- var recv_list = "deptcd,deptnm";
- misfOpenPopUpList("02", grp_sea.ipt_deptcd,"", recv_list) ;
- if(vOrigDeptcd != grp_sea.ipt_deptcd.value)
- {
- ds_main_emplist.clearData();
- }
- }
- function grp_sea_ipt_deptcd_onkeyup(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13)
- {
- obj.updateToDataset();
- }
- }
- function btn_excel_onclick(obj:Button, e:ClickEventInfo)
- {
- grdf_exportExcel(grd_emplist, "excel", "savetype", "true", "", "user");
- }
- function btn_print_onclick(obj:Button, e:ClickEventInfo)
- {
- for(var i = 1; i <= 31; i++)
- {
- dsf_makeValue(ds_print_daylist, "dy"+i, "string", grd_emplist.getCellProperty("Head", 4+i, "text"), 0);
- }
-
- var iLength = ds_main_daylist.rowcount;
- for(var i = 1; i <= 31; i++)
- {
- ds_print_holiflaglist.setColumn(0, "h" + i, "8");
-
- for(var k = 0; k < iLength; k++)
- {
- if(ds_main_daylist.getColumn(k, "dd") == i)
- {
- ds_print_holiflaglist.setColumn(0, "h"+i, ds_main_daylist.getColumn(k, "holiflag"));
- }
- }
- }
- ds_print.setColumn(0, "ym", ds_main_condition.getColumn(0, "ym"));
-
- var objDOM = rptf_createDOM();
- rptf_setNodeListToDOM(objDOM, "/root/print", ds_print);
- rptf_setNodeListToDOM(objDOM, "/root/print/holiflaglist", ds_print_holiflaglist);
- rptf_setNodeListToDOM(objDOM, "/root/print/daylist", ds_print_daylist);
- rptf_setNodeListToDOM(objDOM, "/root/main/emplist", ds_main_emplist);
- var objParam = new Object();
- objParam.xml_data_XML1 = objDOM.documentElement.source;
- var option = "";
- rptf_exeReportPreview30(["RPRPD31001"],[objParam], option);
- }
- function grp_sea_btn_search_onclick(obj:Button, e:ClickEventInfo)
- {
- fGetEmpList();
-
- var oParam = {};
- oParam.id = "TRRPD30902";
- oParam.service = "dligclaznsmngtapp.DutScheMngt";
- oParam.method = "reqGetMonDayList";
- oParam.inds = "req=ds_main_condition";
- oParam.outds = "ds_main_daylist=daylist";
- oParam.async = false;
- oParam.callback = "cf_TRRPD30902";
- tranf_submit(oParam);
- if(arErrorCode.pop("TRRPD30902") > -1)
- {
- var iLength = ds_main_daylist.rowcount;
-
- for(var i = 1; i <= 31; i++)
- {
- ds_main_emplist.setColumn(0, "d" + i, "");
-
- for(var k = 0; k < iLength; k++)
- {
- if(ds_main_daylist.getColumn(k, "dd") == i)
- {
- grd_emplist.setCellProperty("Head", parseInt(i+4), "text", ds_main_daylist.getColumn(k, "day"));
-
- if(ds_main_daylist.getColumn(k, "holiflag") != "8")
- {
- grd_emplist.setCellProperty("Head", parseInt(i+4), "color", "red");
- // grd_emplist.setCellProperty("Head", parseInt(i+4), "background", "#faeefa");
- // grd_emplist.setCellProperty("Head", parseInt(i+4), "background2", "#faeefa");
- grd_emplist.setCellProperty("Head", parseInt(i+4), "font", "arial,9,bold");
- grd_emplist.setCellProperty("Body", parseInt(i+4), "background", "#faeefa");
- grd_emplist.setCellProperty("Body", parseInt(i+4), "background2", "#faeefa");
- }
- else
- {
- grd_emplist.setCellProperty("Head", parseInt(i+4), "color", "black");
- // grd_emplist.setCellProperty("Head", parseInt(i+4), "background", "");
- // grd_emplist.setCellProperty("Head", parseInt(i+4), "background2", "");
- grd_emplist.setCellProperty("Head", parseInt(i+4), "font", "");
- grd_emplist.setCellProperty("Body", parseInt(i+4), "background", "");
- grd_emplist.setCellProperty("Body", parseInt(i+4), "background2", "");
- }
- }
- }
- }
-
- for(var i = 1; i <= 31; i++)
- {
- if(utlf_isNull(grd_emplist.getCellProperty("Head", parseInt(i+4), "text")))
- {
- misfColHidden(grd_emplist, "d"+i, true);
- }
- else
- {
- misfColHidden(grd_emplist, "d"+i, false);
- }
- }
- }
- }
- function cf_TRRPD30902(sSvcId, nErrorCode, sErrorMsg)
- {
- arErrorCode.push(sSvcId, nErrorCode);
- if(nErrorCode < 0) return;
- }
- function fGetEmpList()
- {
- if(String(ds_main_condition.getColumn(0, "ym")).length != 6 )
- {
- sysf_messageBox("근무년월을 정확하게 입력하십시요. ", "E999", "");
- grp_sea.ipt_ym.setFocus();
- return;
- }
- ds_main_emplist.clearData();
-
- if(sysf_getUserInfo("dutplceinstcd") == "032")
- {
- var sDeptcd = grp_sea.ipt_deptcd.value;
- if( sDeptcd == "2110500000" || sDeptcd == "2112300000" || sDeptcd == "2112400000" || sDeptcd == "2112500000" ||
- sDeptcd == "2112600000" || sDeptcd == "2112700000" || sDeptcd == "2112800000" || sDeptcd == "2112900000" )
- {
- ds_main_condition.setColumn(0, "deptcd", "2110000000");
- }
- }
- var oParam = {};
- oParam.id = "TRRPD30901";
- oParam.service = "dligclaznsmngtapp.DutScheMngt";
- oParam.method = "reqGetDutyEmpListAll";
- oParam.inds = "req=ds_main_condition";
- oParam.outds = "ds_main_emplist=emplist";
- oParam.async = false;
- //oParam.callback = "cf_TRRPD30901";
- tranf_submit(oParam);
- }
- function grp_sea_btn_emplnos_onclick(obj:Button, e:ClickEventInfo)
- {
- var recv_list = "emplno,emplnm" ;
- rpbfOpenPopUpList("SPRPB00101", grp_sea.ipt_emplnos, recv_list, "", "N");
- if (String(grp_sea.ipt_emplnos.value).length > 0)
- {
- grp_sea.btn_search.click();
- }
- }
- function grp_sea_ipt_emplnos_onkeyup(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13)
- {
- obj.updateToDataset();
- //grp_sea.btn_search.click();
- }
- }
- function grp_sea_ipt_emplnms_onkeyup(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13)
- {
- obj.updateToDataset();
- grp_sea.btn_search.click();
- }
- }
- ]]></Script>
- </Form>
- </FDL>
|