123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPAER02000" position="absolute 0 0 1195 760" titletext="치료실별치료사관리" oninit="SPAER02000_oninit" onload="SPAER02000_onload">
- <Layouts>
- <Layout>
- <Grid position="absolute 0 85 1195 760" id="grd_cureroomlist" binddataset="ds_main_excuroominfo" cellsizingtype="col" selecttype="multirow" anchor="all">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="100"/>
- <Column size="90"/>
- <Column size="90"/>
- <Column size="90"/>
- <Column size="90"/>
- <Column size="90"/>
- <Column size="90"/>
- <Column size="90"/>
- <Column size="90"/>
- <Column size="90"/>
- <Column size="90"/>
- <Column size="90"/>
- <Column size="90"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell text="구분"/>
- <Cell col="1" text="1월"/>
- <Cell col="2" text="2월"/>
- <Cell col="3" text="3월"/>
- <Cell col="4" text="4월"/>
- <Cell col="5" text="5월"/>
- <Cell col="6" text="6월"/>
- <Cell col="7" text="7월"/>
- <Cell col="8" text="8월"/>
- <Cell col="9" text="9월"/>
- <Cell col="10" text="10월"/>
- <Cell col="11" text="11월"/>
- <Cell col="12" text="12월"/>
- </Band>
- <Band id="body">
- <Cell style="align:left top;padding:5 2 0 5;" text="bind:item" wordwrap="char" suppress="1"/>
- <Cell col="1" style="align:left top;padding:5 2 0 5;" text="bind:m1" wordwrap="char"/>
- <Cell col="2" style="align:left top;padding:5 2 0 5;" text="bind:m2" wordwrap="char"/>
- <Cell col="3" style="align:left top;padding:5 2 0 5;" text="bind:m3" wordwrap="char"/>
- <Cell col="4" style="align:left top;padding:5 2 0 5;" text="bind:m4" wordwrap="char"/>
- <Cell col="5" style="align:left top;padding:5 2 0 5;" text="bind:m5" wordwrap="char"/>
- <Cell col="6" style="align:left top;padding:5 2 0 5;" text="bind:m6" wordwrap="char"/>
- <Cell col="7" style="align:left top;padding:5 2 0 5;" text="bind:m7" wordwrap="char"/>
- <Cell col="8" style="align:left top;padding:5 2 0 5;" text="bind:m8" wordwrap="char"/>
- <Cell col="9" style="align:left top;padding:5 2 0 5;" text="bind:m9" wordwrap="char"/>
- <Cell col="10" style="align:left top;padding:5 2 0 5;" text="bind:m10" wordwrap="char"/>
- <Cell col="11" style="align:left top;padding:5 2 0 5;" text="bind:m11" wordwrap="char"/>
- <Cell col="12" style="align:left top;padding:5 2 0 5;" text="bind:m12" wordwrap="char"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Div position="absolute 0 26 1195 61" align="align:center top;" id="group2" class="div_SA" anchor="left top right">
- <Layouts>
- <Layout>
- <Shape position="absolute 1108 7 1114 29" linetype="vertical" id="line13" anchor="top right"/>
- <Button position="absolute 1127 7 1183 29" id="btn_sea" class="btn1" text="조회" anchor="top right" onclick="group2_btn_sea_onclick"/>
- <Calendar position="absolute 417 7 502 26" align="align:center middle;" id="ipt_acptdd" class="input_default" mask="yyyy-mm" anchor="default" dateformat="yyyy-MM" value="null" editformat="yyyy-MM" autoselect="true"/>
- <Static text="조회기간 :" position="absolute 326 9 412 26" id="caption4" class="search_name" anchor="default"/>
- <Radio position="absolute 114 9 281 25" id="radio1" columncount="2" codecolumn="codecolumn" datacolumn="datacolumn" anchor="default" onitemchanged="group2_radio1_onitemchanged">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">1</Col>
- <Col id="datacolumn">근무지</Col>
- </Row>
- <Row>
- <Col id="codecolumn">2</Col>
- <Col id="datacolumn">근무자</Col>
- </Row>
- </Rows>
- </Dataset>
- </Radio>
- <Static text="조회조건 :" position="absolute 15 9 101 26" id="caption3" class="search_name" anchor="default"/>
- </Layout>
- </Layouts>
- </Div>
- <Shape position="absolute 0 82 1193 88" linetype="horizontal" id="line10" class="line_1" anchor="left top right"/>
- <Static text="이력 상세 정보" position="absolute 0 68 205 84" id="caption18" class="tit_2"/>
- <Button position="absolute 1181 66 1194 81" id="btn_Next" class="icon_next" text="" onclick="btn_Next_onclick" anchor="top right"/>
- <Button position="absolute 1072 66 1085 81" id="btn_Previous" class="icon_pre" text="" onclick="btn_Previous_onclick" anchor="top right"/>
- <Static text="근무이력관리" position="absolute 0 0 235 26" id="caption1" class="tit_1"/>
- <MaskEdit position="absolute 1090 63 1175 82" align="align:center middle;" id="input1" enable="false" mask="####-##" type="string" style=":disabled {align:center middle;}" anchor="top right"/>
- <Button position="absolute 990 64 1065 83" id="button3" class="btn7" text="엑셀저장" onclick="button3_onclick" anchor="top right"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_main_excuroominfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="Item" type="STRING"/>
- <Column id="m1" type="STRING"/>
- <Column id="m2" type="STRING"/>
- <Column id="m3" type="STRING"/>
- <Column id="m4" type="STRING"/>
- <Column id="m5" type="STRING"/>
- <Column id="m6" type="STRING"/>
- <Column id="m7" type="STRING"/>
- <Column id="m8" type="STRING"/>
- <Column id="m9" type="STRING"/>
- <Column id="m10" type="STRING"/>
- <Column id="m11" type="STRING"/>
- <Column id="m12" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="searchItem" type="STRING" size="256" sumtext="조회구분"/>
- <Column id="basesuppdeptcd" type="STRING" size="256" sumtext="부서코드"/>
- <Column id="sdate" type="STRING" size="256" sumtext="기준년월"/>
- <Column id="searchdate" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="searchItem"/>
- <Col id="basesuppdeptcd"/>
- <Col id="sdate"/>
- <Col id="searchdate"/>
- </Row>
- </Rows>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="input1" propid="value" datasetid="ds_send" columnid="sdate"/>
- <BindItem id="item1" compid="group2.radio1" propid="value" datasetid="ds_send" columnid="searchItem"/>
- <BindItem id="item2" compid="group2.ipt_acptdd" propid="value" datasetid="ds_send" columnid="searchdate"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2016-03-29
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2016-03-29 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- //=======================================================================================
- // Lib Include
- //---------------------------------------------------------------------------------------
- include "com_commonxp::comm_main.xjs";
- include "ast_examcurexp::AEZ0001.xjs";
- //=======================================================================================
- // Global Form Variable
- //---------------------------------------------------------------------------------------
- //=======================================================================================
- // Function
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Function : lf_Init
- * Description : 초기화
- * Argument :
- * retrun type :
- * Creator :
- ****************************************************************************************/
- function lf_Init(){
- ds_main_eqmtlist.clearData();
- }
- /****************************************************************************************
- * Function : GridHeader
- * Description : 초기화
- * Argument :
- * retrun type :
- * Creator :
- ****************************************************************************************/
- function GridHeader() {
- var setDate = utlf_transNullToEmpty(ds_send.getColumn(0, "sdate"));
- var sysDate = setDate.toDate("YYYYMM");
- var nowDate = sysDate.getAddDate(-12,"M");
- var scaption = "구분";
- for (var i = 1; i < 13; i ++){
- var nowDate = sysDate.getAddDate(1,"M");
- nowDate = nowDate.getDateFormat("YYYY-MM");
- grd_cureroomlist.setCellProperty("head", i, "text", nowDate + " 월");
- }
- }
- /****************************************************************************************
- * Argument : 01.sSvcId : 서비스 ID
- * : 02.nErrorCode : 에러코드
- * : 03.sErrorMsg : 에러메시지
- * Description : 의 콜백함수
- ****************************************************************************************/
- function cf_(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
- }
- //=======================================================================================
- // Event
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Components : Form
- * Components ID : SPAER02000
- * Event : oninit
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 초기화
- ****************************************************************************************/
- function SPAER02000_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- /****************************************************************************************
- * Components : Form
- * Components ID : SPAER02000
- * Event : onload
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 초기화
- ****************************************************************************************/
- function SPAER02000_onload(obj:Form, e:LoadEventInfo)
- {
- //grdf_setRowTypeIcon(grd_eqmtlist, 0);
- //grdf_setGridSort(grd_eqmtlist);
-
- //lf_Init();
-
- lf_aezfSetSuppDeptcd();
-
- //model.removeNodeset("/root/main/workHistory");
-
- var syymm = utlf_getCurrentDate();
- syymm = syymm.substr(0, 6);
- ds_send.setColumn(0, "searchdate", syymm);
- ds_send.setColumn(0, "sdate", syymm);
- ds_send.setColumn(0, "searchItem", "1");
-
- GridHeader();
-
- group2.btn_sea.click();
-
-
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : group2.btn_sea
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 조회 버튼 클릭
- ****************************************************************************************/
- function group2_btn_sea_onclick(obj:Button, e:ClickEventInfo)
- {
- ds_send.setColumn(0, "basesuppdeptcd", suppdeptcd);
-
- ds_main_excuroominfo.clearData();
-
- var oParam = {};
- oParam.id = "TRAER02001";
- oParam.service = "examcurebaseapp.ExecrCode";
- oParam.method = "reqGetExcuroomChgList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_excuroominfo=excuroomlist";
- oParam.async = false;
- oParam.callback = "cf_TRAER02001";
- tranf_submit(oParam);
-
- }
- function cf_TRAER02001(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : group2.radio1
- * Event : onitemchanged
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 조회조건 클릭
- ****************************************************************************************/
- function group2_radio1_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
- {
- group2.btn_sea.click();
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_Next
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 1개월 뒤 버튼
- ****************************************************************************************/
- function btn_Next_onclick(obj:Button, e:ClickEventInfo)
- {
- // 기준일자
- var setDate = utlf_transNullToEmpty(ds_send.getColumn(0, "sdate"));
- var sysDate = setDate.toDate("YYYYMM");
-
- // 익월
- var nowDate = sysDate.getAddDate(1,"M");
- nowDate = nowDate.getDateFormat("YYYYMM");
-
- ds_send.setColumn(0, "sdate", nowDate);
- GridHeader();
- group2.btn_sea.click();
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_Previous
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 1개월 전 버튼
- ****************************************************************************************/
- function btn_Previous_onclick(obj:Button, e:ClickEventInfo)
- {
- // 기준일자
- var setDate = utlf_transNullToEmpty(ds_send.getColumn(0, "sdate"));
- var sysDate = setDate.toDate("YYYYMM");
-
- // 익월
- var nowDate = sysDate.getAddDate(-1,"M");
- nowDate = nowDate.getDateFormat("YYYYMM");
-
- ds_send.setColumn(0, "sdate", nowDate);
- GridHeader();
- group2.btn_sea.click();
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : button3
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 엑셀버튼
- ****************************************************************************************/
- function button3_onclick(obj:Button, e:ClickEventInfo)
- {
- grdf_exportExcel(grd_cureroomlist, "근무이력관리", "sheet1");
- }
- ]]></Script>
- </Form>
- </FDL>
|