123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMRNB00900" inheritanceid="" position="absolute 0 0 1024 768" titletext="본원직원식수현황" onload="SMRNB00800_onload" ontimer="SMRNB00800_ontimer">
- <Layouts>
- <Layout>
- <Static id="cap_title" text="본원직원식수현황" class="tit_1" position="absolute 0 0 140 25"/>
- <Static id="cap_time" position="absolute 758 1 1023 24" style="background:darkseagreen;padding:0 0 0 4;align:center middle;font:Dotum,10,bold;" anchor="top right"/>
- <Button id="btn_print" taborder="27" text="출력" class="btn6" position="absolute 908 26 964 48" anchor="top right" onclick="btn_print_onclick" visible="false"/>
- <Button id="btn_close" taborder="30" text="종료" class="btn4" position="absolute 967 26 1023 48" anchor="top right" onclick="btn_close_onclick"/>
- <Static id="cap_messege_title" position="absolute 116 741 233 764" anchor="left bottom" style="background:lightblue;padding:0 0 0 4;"/>
- <Static id="cap_messege" position="absolute 235 741 908 764" anchor="left bottom" style="background:lightblue;padding:0 0 0 4;font:Dotum,9,bold;"/>
- <Shape id="line7" class="line_6" position="absolute 0 47 1023 53" anchor="left top right"/>
- <Static id="caption1" text="본원직원식수현황" class="tit_2" position="absolute 0 99 133 115"/>
- <Shape id="line1" class="line_10" position="absolute 0 115 1023 121" anchor="left top right"/>
- <Div id="grp_search" taborder="34" class="div_SA2" position="absolute 0 51 1023 91" anchor="left top right">
- <Layouts>
- <Layout>
- <Static id="cap_searchdd" text="조회기간" class="search_name" position="absolute 314 12 388 29" anchor="default"/>
- <Button id="btn_search" taborder="4" text="조회" onclick="grp_search_btn_search_onclick" class="btn1" position="absolute 953 9 1009 31" style="align:center;" anchor="top right"/>
- <Shape id="line7" linetype="vertical" class="line_4" position="absolute 938 7 941 34" anchor="top right"/>
- <Calendar id="ipt_fromdd" taborder="5" autoselect="true" class="input_essential" position="absolute 391 9 509 30" anchor="default" value="null" dateformat="yyyy-MM-dd ddd"/>
- <Static id="cap_01" text="~" position="absolute 513 12 525 28" anchor="default"/>
- <Calendar id="ipt_todd" taborder="6" autoselect="true" class="input_essential" position="absolute 527 9 645 30" anchor="default" dateformat="yyyy-MM-dd ddd"/>
- <Static id="cap_gubun" text="식사구분" class="search_name" position="absolute 10 12 76 29"/>
- <Radio id="rdo_gubun" taborder="7" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 86 10 298 30" style="textpadding:0 10 0 3;" onitemchanged="grp_search_rdo_gubun_onitemchanged" columncount="-1" index="-1" rowcount="-1">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn" size="256"/>
- <Column id="datacolumn" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">J</Col>
- <Col id="datacolumn">조식</Col>
- </Row>
- <Row>
- <Col id="codecolumn">M</Col>
- <Col id="datacolumn">중식</Col>
- </Row>
- <Row>
- <Col id="codecolumn">S</Col>
- <Col id="datacolumn">석식</Col>
- </Row>
- <Row>
- <Col id="codecolumn">A</Col>
- <Col id="datacolumn">전체</Col>
- </Row>
- </Rows>
- </Dataset>
- </Radio>
- <CheckBox id="chk_takeout" taborder="8" text="TakeOut" position="absolute 673 9 773 29" falsevalue="N" truevalue="Y" value="N"/>
- </Layout>
- </Layouts>
- </Div>
- <Div id="div_prt" taborder="35" position="absolute 1 120 1023 734" anchor="all" scrollbars="none"/>
- </Layout>
- </Layouts>
- <Bind>
- <BindItem id="item19" compid="cap_messege" propid="text" datasetid="ds_messege" columnid="cmt"/>
- <BindItem id="item15" compid="grp_search.ipt_fromdd" propid="value" datasetid="ds_send" columnid="fromdd"/>
- <BindItem id="item20" compid="grp_search.ipt_todd" propid="value" datasetid="ds_send" columnid="todd"/>
- <BindItem id="item0" compid="grp_search.rdo_gubun" propid="value" datasetid="ds_send" columnid="gubun"/>
- <BindItem id="item1" compid="grp_search.chk_takeout" propid="value" datasetid="ds_send" columnid="takeout"/>
- </Bind>
- <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="fromdd" type="STRING" size="256"/>
- <Column id="todd" type="STRING" size="256"/>
- <Column id="gubun" type="STRING" size="256"/>
- <Column id="takeout" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="instcd"/>
- <Col id="fromdd"/>
- <Col id="todd"/>
- <Col id="gubun"/>
- <Col id="takeout"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_sicksulist" firefirstcount="0" firenextcount="0" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- </Objects>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2017-12-04
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2017-06-19 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- //=======================================================================================
- // Lib Include
- //---------------------------------------------------------------------------------------
- include "com_commonxp::comm_main.xjs";
- include "mis_miscommonxp::MIS.xjs";
- //=======================================================================================
- // Global Form Variable
- //---------------------------------------------------------------------------------------
- var arErrorCode = new HashArray();
- //=======================================================================================
- // Function
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Argument : N/A
- * Description : 초기화
- ****************************************************************************************/
- function lf_init() {
- var sInstcd = sysf_getUserInfo("dutplceinstcd");
- var sScrid = frmf_getMenuParam();
- ds_send.setColumn(0, "instcd", sInstcd);
- ds_send.setColumn(0, "fromdd", utlf_getCurrentDate());
- ds_send.setColumn(0, "todd", utlf_getCurrentDate());
- ds_send.setColumn(0, "gubun", "M");
-
- cap_messege_title.style.background = "lightblue";
- cap_messege.text = "";
- }
- /****************************************************************************************
- * Argument : N/A
- * Description : 시간설정
- ****************************************************************************************/
- function lf_setTime() {
- var cTime = utlf_getCurrentDateTime();
- cap_time.text = cTime.substr(0,4)+"/"+cTime.substr(4,2)+"/"+cTime.substr(6,2)+" "+cTime.substr(9,2)+":"+cTime.substr(11,2)+":"+cTime.substr(13,2);
- }
- /****************************************************************************************
- * Argument : N/A
- * Description : 조회함수
- ****************************************************************************************/
- function lf_userAuth() {
- if(sysf_getUserInfo("userid").substr(0,4).toUpperCase() == "EVER") {
- btn_print.enable = false;
- grp_search.enable = false;
- }
- }
- //=======================================================================================
- // Event
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Components : Form
- * Description : 화면 처음 초기화시 폼초기화
- ****************************************************************************************/
- function SMRNB00800_onload(obj:Form, e:LoadEventInfo)
- {
- frmf_initForm(obj);
-
- lf_init();
- // lf_userAuth();
-
- lf_setTime();
- this.setTimer(0, 1000);
- }
- /****************************************************************************************
- * Components : Form
- * Description : 화면 타이머 설정 시계표시
- ****************************************************************************************/
- function SMRNB00800_ontimer(obj:Form, e:TimerEventInfo)
- {
- if(e.timerid == 0) {
- lf_setTime();
- }
- }
- /****************************************************************************************
- * Components : Button
- * Description : 종료
- ****************************************************************************************/
- function btn_close_onclick(obj:Button, e:ClickEventInfo)
- {
- this.close();
- }
- /****************************************************************************************
- * Components : Button
- * Description : 조회
- ****************************************************************************************/
- function grp_search_btn_search_onclick(obj:Button, e:ClickEventInfo)
- {
- var oParam = {};
- oParam.id = "TRRNB00014";
- oParam.service = "sicksuapp.SicksuMngt";
- oParam.method = "reqGetSicksuList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_sicksulist=foodprintlist";
- oParam.async = false;
- oParam.callback = "cf_TRRNB00014";
- tranf_submit(oParam);
-
- if(arErrorCode.pop("TRRNB00014") > -1) {
- cap_messege_title.style.background = "lightblue";
- cap_messege.text = "조회되었습니다.";
-
- var objDOM = rptf_createDOM(); // DOM 객체 설정
- rptf_setNodeListToDOM(objDOM, "/root/main/sicksulist" , ds_main_sicksulist);
- var objParam = new Object();
- objParam.xml_data_XML1 = objDOM.documentElement.source;
- objParam.fromdd = ds_send.getColumn(0,"fromdd");
- objParam.todd = ds_send.getColumn(0,"todd");
-
- var sRexId = "";
- var sGubun = ds_send.getColumn(0,"gubun");
- if(sGubun == "J" || sGubun == "S") {
- sRexId = "RPRNB00902";
- } else if(sGubun == "M") {
- if(ds_send.getColumn(0,"takeout") == "Y") sRexId = "RPRNB00904";
- else sRexId = "RPRNB00901";
- } else if(sGubun == "A") {
- sRexId = "RPRNB00903";
- }
-
- var option = "open=1;save=1;directprint=0;printdialog=0;print=1;zoom=1;";
- rptf_exeReportPreview30([sRexId],[objParam], option, "", "div_prt");
- } else {
- cap_messege_title.style.background = "red";
- cap_messege.text = "조회를 실패하였습니다.";
- }
- }
- function cf_TRRNB00014(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- /****************************************************************************************
- * Components : Button
- * Description : 출력
- ****************************************************************************************/
- function btn_print_onclick(obj:Button, e:ClickEventInfo)
- {
- // var objDOM = rptf_createDOM(); // DOM 객체 설정
- // rptf_setNodeListToDOM(objDOM, "/root/main/statlist" , ds_main_statlist);
- // var objParam = new Object();
- // objParam.xml_data_XML1 = objDOM.documentElement.source;
- // objParam.searchdd = ds_send.getColumn(0,"searchdd");
- //
- // var option = "open=1;save=1;directprint=1;printdialog=1;print=1;zoom=1;callback=lf_complete";
- // rptf_exeReportPreview30([gRexId],[objParam], option);
- }
- function grp_search_rdo_gubun_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
- {
- if(e.postvalue == "J" || e.postvalue == "S") {
- // grp_search.ipt_todd.visible = false;
- // grp_search.cap_01.visible = false;
- grp_search.chk_takeout.visible = false;
- } else if(e.postvalue == "M"){
- // grp_search.ipt_todd.visible = true;
- // grp_search.cap_01.visible = true;
- grp_search.chk_takeout.visible = true;
- } else {
- // grp_search.ipt_todd.visible = true;
- // grp_search.cap_01.visible = true;
- grp_search.chk_takeout.visible = false;
- }
- }
- ]]></Script>
- </Form>
- </FDL>
|