123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMRPD02640" position="absolute 0 0 1197 782" titletext="SMRPD02640_질병휴가및휴직자관리" oninit="SMRPD02640_oninit" onload="SMRPD02640_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 44 1195 50" anchor="left top right"/>
- <Button id="btn_save" taborder="1" text="저장" class="btn4" position="absolute 1136 23 1192 45" anchor="top right" onclick="btn_save_onclick"/>
- <Div id="group4" anchor="left top right" taborder="2" class="div_SA2" position="absolute 0 48 1195 108">
- <Layouts>
- <Layout>
- <Shape id="line3" linetype="vertical" class="line_4" position="absolute 1105 8 1111 53" anchor="top right"/>
- <Button id="btn_search" taborder="4" text="조회" class="btn1" position="absolute 1124 19 1180 41" anchor="top right" onclick="group4_btn_search_onclick"/>
- <Static id="caption1" text="사원번호 :" class="search_name" position="absolute 452 34 538 51"/>
- <Button id="btn_emplno" taborder="5" class="icon_search" position="absolute 618 34 634 50" onclick="group4_btn_emplno_onclick"/>
- <Edit id="ipt_emplnm" taborder="6" class="input_search" enable="false" position="absolute 637 33 741 52"/>
- <Edit id="ipt_emplno" taborder="7" autoselect="true" autoskip="true" class="input_search" position="absolute 540 33 614 52" onkeyup="group4_ipt_emplno_onkeyup"/>
- <Static id="caption2" text="신청일자 :" class="search_name" position="absolute 451 11 540 27"/>
- <Calendar id="ipt_srvarmfromdd" taborder="8" autoselect="true" autoskip="true" class="input_s_essential" position="absolute 540 9 639 28" mask="yyyy-mm-dd"/>
- <Calendar id="ipt_srvarmtodd" taborder="9" autoselect="true" autoskip="true" class="input_s_essential" position="absolute 654 9 753 28" mask="yyyy-mm-dd"/>
- <Static id="caption7" text="~" position="absolute 642 12 653 27"/>
- <Combo id="cmb_instcd" taborder="10" class="combo_search" position="absolute 108 10 338 29"/>
- <Static id="caption8" text="소속기관 :" class="search_name" position="absolute 20 11 106 28"/>
- <Button id="btn_dutdept" taborder="11" class="icon_search" position="absolute 192 34 208 50" onclick="group4_btn_dutdept_onclick"/>
- <Static id="caption5" text="관리부서 :" class="search_name" position="absolute 20 33 107 50"/>
- <Edit id="ipt_dutdeptnm" taborder="12" class="input_search" enable="false" position="absolute 211 32 338 51"/>
- <Edit id="ipt_dutdeptcd" taborder="13" autoselect="true" autoskip="true" class="input_search" position="absolute 108 32 188 51" onkeyup="group4_ipt_dutdeptcd_onkeyup"/>
- </Layout>
- </Layouts>
- </Div>
- <Button id="btn_add" taborder="3" text="행추가" class="btn2" visible="false" position="absolute 1003 114 1056 133" anchor="top right" onclick="btn_add_onclick"/>
- <Button id="btn_del" taborder="4" text="행삭제" class="btn2" position="absolute 1059 114 1112 133" anchor="top right" onclick="btn_del_onclick"/>
- <Grid id="grd_dutschesicklist" taborder="5" binddataset="ds_main_dutschesick_dutschesicklist" useinputpanel="false" position="absolute 0 138 1194 778" autoenter="select" cellsizingtype="col" anchor="all" onexpanddown="grd_dutschesicklist_onexpanddown" onkeydown="grd_dutschesicklist_onkeydown">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="23" band="left"/>
- <Column size="53" band="left"/>
- <Column size="51" band="left"/>
- <Column size="57" band="left"/>
- <Column size="0" band="left"/>
- <Column size="80" band="left"/>
- <Column size="80" band="left"/>
- <Column size="40" band="left"/>
- <Column size="166" band="left"/>
- <Column size="60"/>
- <Column size="91"/>
- <Column size="60"/>
- <Column size="142"/>
- <Column size="80"/>
- <Column size="69"/>
- <Column size="66"/>
- <Column size="60"/>
- <Column size="227"/>
- <Column size="0"/>
- <Column size="0"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1" text="사번"/>
- <Cell col="2" text="성명"/>
- <Cell col="3" text="근무코드"/>
- <Cell col="4" text="신청일"/>
- <Cell col="5" text="시작일"/>
- <Cell col="6" text="종료일"/>
- <Cell col="7" text="일수"/>
- <Cell col="8" text="사유"/>
- <Cell col="9" text="질병코드"/>
- <Cell col="10" text="질병명"/>
- <Cell col="11" text="진단일수"/>
- <Cell col="12" text="진단병원"/>
- <Cell col="13" text="진단의사"/>
- <Cell col="14" text="면허번호"/>
- <Cell col="15" colspan="2" text="관리자사번 / 성명" taborder="undefined"/>
- <Cell col="17" text="비고"/>
- <Cell col="18" text="기관코드"/>
- <Cell col="19"/>
- </Band>
- <Band id="body">
- <Cell celltype="head"/>
- <Cell col="1" edittype="none" text="bind:emplno" enable="false"/>
- <Cell col="2" text="bind:emplnm"/>
- <Cell col="3" edittype="none" text="bind:dutcd"/>
- <Cell col="4" displaytype="none" edittype="none" text="bind:srvarmappdd"/>
- <Cell col="5" displaytype="date" edittype="none" text="bind:srvarmfromdd" calendardisplaynulltype="nulltext"/>
- <Cell col="6" displaytype="date" edittype="none" text="bind:srvarmtodd" calendardisplaynulltype="nulltext"/>
- <Cell col="7" text="bind:srvarmdayno"/>
- <Cell col="8" edittype="none" style="align:left top;padding:2 2 2 2;" text="bind:appresn" wordwrap="word"/>
- <Cell col="9" displaytype="text" edittype="text" style="background:#ff99ccff;" text="bind:sickcode"/>
- <Cell col="10" displaytype="text" edittype="text" style="background:#ff99ccff;" text="bind:sicknm"/>
- <Cell col="11" displaytype="text" edittype="text" style="align:right middle;background:#ff99ccff;" text="bind:diagday" maskchar=" "/>
- <Cell col="12" displaytype="text" edittype="text" style="background:#ff99ccff;" text="bind:diaghosp"/>
- <Cell col="13" displaytype="text" edittype="text" style="background:#ff99ccff;" text="bind:diagdr"/>
- <Cell col="14" displaytype="text" edittype="text" style="background:#ff99ccff;" text="bind:licns"/>
- <Cell col="15" displaytype="text" edittype="text" style="background:#ff99ccff;" text="bind:adminid" expandshow="show"/>
- <Cell col="16" style="background:#ff99ccff;" text="bind:adminnm"/>
- <Cell col="17" displaytype="text" edittype="text" style="background:#ff99ccff;" text="bind:cmt"/>
- <Cell col="18" text="bind:dutplcedeptcd"/>
- <Cell col="19" text="bind:instcd"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Shape id="line1" class="line_10" position="absolute 0 133 1194 139" anchor="left top right"/>
- <Static id="caption3" text="질병휴가 및 휴직자 현황" class="tit_2" position="absolute 0 117 185 138"/>
- <Button id="btn_excel" taborder="6" text="엑셀저장" class="btn7" position="absolute 1114 114 1194 133" anchor="top right" onclick="btn_excel_onclick"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_send_search" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_send_search_oncolumnchanged">
- <ColumnInfo>
- <Column id="instcd" type="STRING" size="256"/>
- <Column id="srvarmfromdd" type="STRING" size="256"/>
- <Column id="srvarmtodd" 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"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="instcd"/>
- <Col id="srvarmfromdd"/>
- <Col id="srvarmtodd"/>
- <Col id="dutunitcd"/>
- <Col id="dutunitnm"/>
- <Col id="emplno"/>
- <Col id="emplnm"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_dutschesick_dutschesicklist" 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="srvarmfromdd" type="STRING" size="256" sumtext="복무시작일자"/>
- <Column id="emplno" type="STRING" size="256" sumtext="사원번호"/>
- <Column id="emplnm" type="STRING" size="256" sumtext="성명"/>
- <Column id="dutcd" type="STRING" size="256" sumtext="근무코드"/>
- <Column id="dutplcedeptcd" type="STRING" size="256" sumtext="근무지부서코드"/>
- <Column id="srvarmappdd" type="STRING" size="256" sumtext="복무신청일자"/>
- <Column id="srvarmtodd" type="STRING" size="256" sumtext="복무종료일자"/>
- <Column id="srvarmdayno" type="STRING" size="256" sumtext="일수"/>
- <Column id="appresn" type="STRING" size="256" sumtext="신청사유"/>
- <Column id="sickcode" type="STRING" size="256" sumtext="질병코드"/>
- <Column id="sicknm" type="STRING" size="256" sumtext="질병명"/>
- <Column id="diagday" type="STRING" size="256" sumtext="진단일수"/>
- <Column id="diaghosp" type="STRING" size="256" sumtext="진단병원"/>
- <Column id="diagdr" type="STRING" size="256" sumtext="진단의사"/>
- <Column id="licns" type="STRING" size="256" sumtext="면허번호"/>
- <Column id="adminid" type="STRING" size="256" sumtext="관리자"/>
- <Column id="adminnm" type="STRING" size="256" sumtext="관리자성명"/>
- <Column id="cmt" type="STRING" size="256" sumtext="비고"/>
- </ColumnInfo>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="group4.cmb_instcd" propid="value" datasetid="ds_send_search" columnid="instcd"/>
- <BindItem id="item1" compid="group4.ipt_srvarmfromdd" propid="value" datasetid="ds_send_search" columnid="srvarmfromdd"/>
- <BindItem id="item2" compid="group4.ipt_srvarmtodd" propid="value" datasetid="ds_send_search" columnid="srvarmtodd"/>
- <BindItem id="item3" compid="group4.ipt_dutdeptcd" propid="value" datasetid="ds_send_search" columnid="dutunitcd"/>
- <BindItem id="item4" compid="group4.ipt_dutdeptnm" propid="value" datasetid="ds_send_search" columnid="dutunitnm"/>
- <BindItem id="item5" compid="group4.ipt_emplno" propid="value" datasetid="ds_send_search" columnid="emplno"/>
- <BindItem id="item6" compid="group4.ipt_emplnm" propid="value" datasetid="ds_send_search" 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";
- include "mis_dligclaznsmngtxp::RPD001.xjs";
- function SMRPD02640_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SMRPD02640_onload(obj:Form, e:LoadEventInfo)
- {
- grdf_initGrid(grd_dutschesicklist);
- grdf_setRowTypeIcon(grd_dutschesicklist, 0);
-
- fInit();
- }
- function fInit()
- {
- misfGridInit(grd_dutschesicklist);
-
- misfComboInstCdListMulti("group4.cmb_instcd",utlf_getCurrentDate(),"","N");
-
- misfGetAndSetUserInfo();
-
- ds_send_search.setColumn(0, "instcd", sysf_getUserInfo("dutplceinstcd"));
- ds_send_search.setColumn(0, "srvarmfromdd", utlf_getCurrentDate().toDate().getAddDate(-7).getDateFormat("YYYYMMDD"));
- ds_send_search.setColumn(0, "srvarmtodd", utlf_getCurrentDate());
-
- if(sysf_getUserInfo("userid") == "MIS" || sysf_getUserInfo("userid") == "97089")
- {
- group4.cmb_instcd.enable = true;
- }
- }
- function ds_send_search_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
- {
- if(e.columnid == "dutunitcd")
- {
- group4.ipt_dutdeptcd.value = e.newvalue;
- group4.ipt_dutdeptcd.setFocus();
-
- misfValidationCheck("02", "", "dutunitcd,dutunitnm", group4.cmb_instcd.value, "instcd" );
- }
-
- if(e.columnid == "emplno")
- {
- group4.ipt_emplno.value = e.newvalue;
- group4.ipt_emplno.setFocus();
-
- rpbfValidationCheck("EMPLNO", "emplno,emplnm");
- }
- }
- function group4_ipt_dutdeptcd_onkeyup(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13)
- {
- obj.updateToDataset();
- misfValidationCheck("02", "", "dutunitcd,dutunitnm", group4.cmb_instcd.value, "instcd" );
- }
- }
- function group4_btn_dutdept_onclick(obj:Button, e:ClickEventInfo)
- {
- misfOpenPopUpList("02", group4.ipt_dutdeptcd,"","dutunitcd,dutunitnm", group4.cmb_instcd.value + "," + group4.ipt_srvarmfromdd.value, "instcd,basedd");
- }
- function group4_ipt_emplno_onkeyup(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13)
- {
- obj.updateToDataset();
- rpbfValidationCheck("EMPLNO", "emplno,emplnm");
- }
- }
- function group4_btn_emplno_onclick(obj:Button, e:ClickEventInfo)
- {
- rpbfOpenPopUpList("SPRPB00101", group4.ipt_emplno, "emplno,emplnm", "", "N");
- }
- function group4_btn_search_onclick(obj:Button, e:ClickEventInfo)
- {
- misfGridInit(grd_dutschesicklist);
- var oParam = {};
- oParam.id = "TRRPD02641";
- oParam.service = "dligclaznsmngtapp.DutAppMngt";
- oParam.method = "reqGetDutScheSickList";
- oParam.inds = "req=ds_send_search";
- oParam.outds = "ds_main_dutschesick_dutschesicklist=dutschesicklist";
- oParam.async = false;
- //oParam.callback = "cf_TRRPD02641";
- tranf_submit(oParam);
- }
- function btn_add_onclick(obj:Button, e:ClickEventInfo)
- {
- var addRow = ds_main_dutschesick_dutschesicklist.addRow();
- ds_main_dutschesick_dutschesicklist.setColumn(addRow, "srvarmappdd", utlf_getCurrentDate());
- }
- function btn_del_onclick(obj:Button, e:ClickEventInfo)
- {
- misfGridIUD(grd_dutschesicklist, "D");
- }
- function btn_excel_onclick(obj:Button, e:ClickEventInfo)
- {
- misfSaveExcel(grd_dutschesicklist);
- }
- function grd_dutschesicklist_onexpanddown(obj:Grid, e:GridMouseEventInfo)
- {
- if (e.cell == obj.getBindCellIndex("Body", "emplno"))
- {
- rpbfOpenPopUpList("SPRPB00101", grd_dutschesicklist, "emplno,emplnm,jobkindnm,dutplcedeptnm", "", "N");
- }
- else if (e.cell == obj.getBindCellIndex("Body", "adminid"))
- {
- misfOpenPopUpList("01", grd_dutschesicklist, "", "adminid,adminnm");
- }
- }
- function grd_dutschesicklist_onkeydown(obj:Grid, e:KeyEventInfo)
- {
- if(e.keycode == 13)
- {
- if (e.cell == obj.getBindCellIndex("Body", "emplno"))
- {
- rpbfValidationCheck("EMPLNO", "emplno,emplnm,jobkindnm,dutplcedeptnm");
- }
- else if (e.cell == obj.getBindCellIndex("Body", "adminid"))
- {
- rpbfValidationCheck("EMPLNO", "adminid,adminnm");
- }
-
- var sickcode = obj.getBindCellIndex("Body", "sickcode");
- var licns = obj.getBindCellIndex("Body", "licns");
-
- if (obj.currentcell >= sickcode && obj.currentcell <= licns)
- {
- obj.setCellPos(parseInt(obj.currentcol+1));
- obj.showEditor(true);
- }
- }
- }
- function btn_save_onclick(obj:Button, e:ClickEventInfo)
- {
- var oParam = {};
- oParam.id = "TXRPD02641";
- oParam.service = "dligclaznsmngtapp.DutAppMngt";
- oParam.method = "reqExeDutScheSickList";
- oParam.inds = "dutschesicklist=ds_main_dutschesick_dutschesicklist:u";
- oParam.outds = "";
- oParam.async = false;
- oParam.callback = "cf_TXRPD02641";
- tranf_submit(oParam);
- }
- function cf_TXRPD02641(sSvcId, nErrorCode, sErrorMsg)
- {
- if(nErrorCode < 0)
- {
- return;
- }
- else
- {
- group4.btn_search.click();
- }
- }
- ]]></Script>
- </Form>
- </FDL>
|