123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMRPD06300" position="absolute 0 0 1211 784" titletext="개인별 당직/응급당직 위로금명세서" oninit="SMRPD06300_oninit" onload="SMRPD06300_onload">
- <Layouts>
- <Layout>
- <Div position="absolute 0 38 1195 782" id="group2" scrollbars="autoboth">
- <Layouts>
- <Layout>
- <Shape id="roundrect1" type="roundrectangle" position="absolute 0 10 1195 45"/>
- <Shape position="absolute 632 16 638 38" linetype="vertical" id="line13" class="line_4"/>
- <Static text="당직 내역" position="absolute 0 53 162 69" id="caption278" class="tit_2"/>
- <Shape position="absolute 0 69 1195 75" linetype="horizontal" id="line207" class="line_10"/>
- <Button position="absolute 1086 48 1194 67" id="btn_download" class="btn2" taborder="6" text="엑셀 Download" onclick="group2_btn_download_onclick"/>
- <Grid position="absolute 0 74 1195 665" id="grd_dutsumlist" taborder="1" binddataset="ds_main_list_dutsumlist">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="20" band="left"/>
- <Column size="129"/>
- <Column size="61"/>
- <Column size="70"/>
- <Column size="40"/>
- <Column size="70"/>
- <Column size="50"/>
- <Column size="86"/>
- <Column size="50"/>
- <Column size="86"/>
- <Column size="100"/>
- </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" rowspan="2" text="직종" taborder="undefined"/>
- <Cell col="6" colspan="2" text="당직" taborder="undefined"/>
- <Cell col="8" colspan="2" text="응급당직" taborder="undefined"/>
- <Cell col="10" rowspan="2" text="합계" taborder="undefined"/>
- <Cell row="1" col="6" text="일수"/>
- <Cell row="1" col="7" text="숙직"/>
- <Cell row="1" col="8" text="일수"/>
- <Cell row="1" col="9" text="숙직"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" expr="expr:currow + 1"/>
- <Cell col="1" text="bind:dutplcedeptnm" suppress="1" suppressalign="middle,over"/>
- <Cell col="2" text="bind:emplno"/>
- <Cell col="3" text="bind:emplnm"/>
- <Cell col="4" text="bind:anual"/>
- <Cell col="5" text="bind:jobkindnm"/>
- <Cell col="6" displaytype="number" style="align:center;" text="bind:ilsu" mask="#,###"/>
- <Cell col="7" displaytype="number" text="bind:amt" mask="#,###"/>
- <Cell col="8" displaytype="number" style="align:center;" text="bind:ilsu_e" mask="#,###"/>
- <Cell col="9" displaytype="number" text="bind:amt_e" mask="#,###"/>
- <Cell col="10" displaytype="number" text="bind:total" mask="#,###"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static text="소속기관 :" position="absolute 45 19 131 36" id="caption5" class="search_name"/>
- <Static text="조회기간 :" position="absolute 300 19 386 36" id="caption1" class="search_name"/>
- <Calendar position="absolute 380 18 480 37" align="align:center middle;" id="ipt_frdutyd" class="input_search" taborder="3" mask="yyyy-mm-dd" autoselect="true"/>
- <Combo position="absolute 125 18 265 37" id="cmb_instcd" class="combo_search" enable="false" taborder="2" onitemchanged="group2_cmb_instcd_onitemchanged"/>
- <Button position="absolute 655 17 711 39" id="btn_search" class="btn1" taborder="5" text="조회" onclick="group2_btn_search_onclick"/>
- <Static text="~" position="absolute 482 20 497 35" id="caption4"/>
- <Calendar position="absolute 496 18 596 37" align="align:center middle;" id="ipt_todutyd" class="input_search" taborder="4" mask="yyyy-mm-dd" autoselect="true"/>
- <Static text="※ 유의사항" position="absolute 0 673 85 693" id="caption3" style="color:#ff0000ff;font:Dotum,9,bold;"/>
- <Static text="1. 부서, 년차, 직종은 조회기간의 마지막 일자를 기준으로 인사발령정보를 참조하여 보여줍니다." position="absolute 15 695 535 715" id="caption7" style="color:#ff0000ff;"/>
- <Static text="2. 인턴의 의,치과 여부는 "인턴평가대상자관리" 프로그램에 개인별로 등록된 치과구분을 사용합니다." position="absolute 15 713 573 733" id="caption8" style="color:#ff0000ff;"/>
- </Layout>
- </Layouts>
- </Div>
- <Div id="grp_btn" taborder="1" position="absolute 0 12 1195 42">
- <Layouts>
- <Layout>
- <Shape id="line4" class="line_6" position="absolute 0 24 1195 30"/>
- <Button id="btn_printLot" taborder="1" text="출력" onclick="grp_btn_btn_printLot_onclick" class="btn6" position="absolute 1138 3 1194 25"/>
- </Layout>
- </Layouts>
- </Div>
- <Static id="caption6" text="개인별 당직/응급당직 위로금명세서" class="tit_1" position="absolute 0 0 245 24"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_send_retrparams" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_send_retrparams_oncolumnchanged">
- <ColumnInfo>
- <Column id="instcd" type="STRING" size="256"/>
- <Column id="frdutyd" type="STRING" size="256"/>
- <Column id="todutyd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_list_dutsumlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="no" type="STRING" size="256" sumtext="순번"/>
- <Column id="dutplcedeptnm" type="STRING" size="256" sumtext="부서명"/>
- <Column id="emplno" type="STRING" size="256" sumtext="사원번호"/>
- <Column id="emplnm" type="STRING" size="256" sumtext="성명"/>
- <Column id="anual" type="STRING" size="256" sumtext="연차"/>
- <Column id="jobkindnm" type="STRING" size="256" sumtext="직종명"/>
- <Column id="ilsu" type="STRING" size="256" sumtext="일수"/>
- <Column id="amt" type="STRING" size="256" sumtext="숙직"/>
- <Column id="ilsu_e" type="STRING" size="256" sumtext="일수(응급)"/>
- <Column id="amt_e" type="STRING" size="256" sumtext="요일"/>
- <Column id="total" type="STRING" size="256" sumtext="합계"/>
- </ColumnInfo>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="group2.cmb_instcd" propid="value" datasetid="ds_send_retrparams" columnid="instcd"/>
- <BindItem id="item1" compid="group2.ipt_frdutyd" propid="value" datasetid="ds_send_retrparams" columnid="frdutyd"/>
- <BindItem id="item2" compid="group2.ipt_todutyd" propid="value" datasetid="ds_send_retrparams" columnid="todutyd"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name : 경대 의료정보시스템
- * Job Name : mis_dligclaznsmngtxp -> SMRPD06300
- * Creator : yjh
- * Make Date : 2018-01-03
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2018-01-03 yjh TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- //=======================================================================================
- // Lib Include
- //---------------------------------------------------------------------------------------
- include "com_commonxp::comm_main.xjs";
- include "mis_miscommonxp::MIS.xjs";
- //=======================================================================================
- // Global Form Variable
- //---------------------------------------------------------------------------------------
- //=======================================================================================
- // Function
- //---------------------------------------------------------------------------------------
- function fInitialize()
- {
- ds_main_list_dutsumlist.clearData();
-
- // misfComboComCdListMulti("Z0007","cmb_instcd");
- ds_send_retrparams.enableevent = false;
- ds_send_retrparams.updatecontrol = false;
-
- ds_send_retrparams.setColumn(0, "frdutyd", utlf_getCurrentDate());
- ds_send_retrparams.setColumn(0, "todutyd", utlf_getCurrentDate());
-
- ds_send_retrparams.updatecontrol = true;
- ds_send_retrparams.enableevent = true;
-
- misfComboInstCdListMulti("group2.cmb_instcd", utlf_getCurrentDate(),"","N");
-
- misfGetAndSetUserInfo();
-
- ds_send_retrparams.setColumn(0, "instcd", sysf_getUserInfo("dutplceinstcd"));
-
- //cmb_instcd.disabled = true;
-
- //btn_search.dispatch("DOMActivate");
- }
- //=======================================================================================
- // Event
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Components : Form
- * Components ID : SMRPD06300
- * Event : oninit
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 처음 초기화시
- ****************************************************************************************/
- function SMRPD06300_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj); //폼 초기화
- }
- /****************************************************************************************
- * Components : Form
- * Components ID : SMRPD06300
- * Event : onload
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 로딩 완료시
- ****************************************************************************************/
- function SMRPD06300_onload(obj:Form, e:LoadEventInfo)
- {
- grdf_setGridSort(group2.grd_dutsumlist);
-
- fInitialize();
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_download
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 엑셀 Download버튼 클릭시
- ****************************************************************************************/
- function group2_btn_download_onclick(obj:Button, e:ClickEventInfo)
- {
- //조회된 자료가 없으면 먼저 조회하라고 message
- if(ds_main_list_dutsumlist.rowcount < 1) {
- sysf_messageBox("조회된 결과가 존재하지 않습니다. \n\n먼저 조회 후 Download 하십시요. ", "E999", "");
- return;
- }
-
- misfSaveExcel(group2.grd_dutsumlist, "당직내역");
- }
- function ds_send_retrparams_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
- {
- switch( e.columnid ){
- case "frdutyd" :
- misfGridInit(group2.grd_dutsumlist);
- break;
-
- case "todutyd" :
- misfGridInit(group2.grd_dutsumlist);
- break;
-
- default :
- break;
- }
- }
- /****************************************************************************************
- * Components : Combo
- * Components ID : cmb_instcd
- * Event : onitemchanged
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 콤보 값 변경시
- ****************************************************************************************/
- function group2_cmb_instcd_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
- {
- misfGridInit(group2.grd_dutsumlist);
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_search
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 조회버튼 클릭시
- ****************************************************************************************/
- function group2_btn_search_onclick(obj:Button, e:ClickEventInfo)
- {
- if( utlf_transNullToEmpty(group2.ipt_frdutyd.value+"").length != 8 ) {
- sysf_messageBox("조회기간이 정확하게 입력되지 않았습니다. 조회기간을 확인하세요. ", "E999", "");
- group2.ipt_frdutyd.setFocus();
- return;
- }
- // if( ipt_frdutyd.value < "20150101" ) {
- // messageBox("2015년 1월 1일 이전 자료는 조회가 불가능합니다. \n\n하단 유의사항을 참조하세요. ", "E999", "");
- // ipt_frdutyd.value = "20150101";
- // return;
- // }
- if( utlf_transNullToEmpty(group2.ipt_todutyd.value+"").length != 8 ) {
- sysf_messageBox("조회기간이 정확하게 입력되지 않았습니다. 조회기간을 확인하세요. ", "E999", "");
- group2.ipt_todutyd.setFocus();
- return;
- }
-
- var oParam = {};
- oParam.id = "TRRPD06301";
- oParam.service = "dligclaznsmngtapp.DutScheMngt";
- oParam.method = "reqGetPersonalDangjikList";
- oParam.inds = "req=ds_send_retrparams";
- oParam.outds = "ds_main_list_dutsumlist=dutsumlist";
- oParam.async = false;
- //oParam.callback = "cf_TRRPD06301";
- tranf_submit(oParam);
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_printLot
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 출력버튼 클릭시
- ****************************************************************************************/
- function grp_btn_btn_printLot_onclick(obj:Button, e:ClickEventInfo)
- {
- var objDOM = rptf_createDOM(); // DOM 객체 설정
- rptf_setNodeListToDOM(objDOM, "/root/main/list/dutsumlist", ds_main_list_dutsumlist); // 데이터셋 1
- rptf_setNodeListToDOM(objDOM, "/root/send/retrparams", ds_send_retrparams); // 데이터셋 1
-
- var objParam = new Object();
- objParam.xml_data_XML1 = objDOM.documentElement.source; // 최상의노드 XML 스트링 추출
-
- var option = "open=1;save=1;directprint=0;print=1;zoom=0;";
-
- rptf_exeReportPreview30(["RPRPD06301"],[objParam], option);
- }
- ]]></Script>
- </Form>
- </FDL>
|