123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMANS01100" position="absolute 0 0 1204 781" titletext="영양팀 중분류별 통계" oninit="SMANS01100_oninit" onload="SMANS01100_onload">
- <Layouts>
- <Layout>
- <Div position="absolute 0 0 1195 25" id="grp_tle">
- <Layouts>
- <Layout>
- <Static text="병동별 식수 현황" position="absolute 0 0 143 25" id="caption6" class="tit_1"/>
- </Layout>
- </Layouts>
- </Div>
- <Div position="absolute 0 13 1195 757" id="grp_biz" scrollbars="autoboth">
- <Layouts>
- <Layout>
- <Static text="병동별 식수 통계" position="absolute 0 50 159 66" id="caption1" class="tit_2" anchor="default"/>
- <Shape position="absolute 0 67 1183 73" linetype="horizontal" id="line1" class="line_10" anchor="default"/>
- <Div position="absolute 0 10 1195 42" align="align:center top;" id="grp_sea" anchor="default">
- <Layouts>
- <Layout>
- <Shape position="absolute 0 2 1193 32" id="roundrect1" type="roundrectangle" anchor="default"/>
- <Static text="조회기간 :" position="absolute 15 9 101 26" id="caption2" class="search_name" anchor="default"/>
- <Shape position="absolute 1107 6 1113 28" linetype="vertical" id="line13" class="line_4" anchor="default"/>
- <Button position="absolute 1120 6 1176 28" id="btn_sea" class="btn1" taborder="4" text="조회" anchor="default" onclick="grp_biz_grp_sea_btn_sea_onclick"/>
- <Calendar position="absolute 207 8 292 27" id="ipt_todd" class="input_default" taborder="2" visible="false" anchor="default" autoselect="true"/>
- <Calendar position="absolute 106 8 191 27" id="ipt_fromdd" class="input_default" taborder="1" anchor="default" autoselect="true"/>
- </Layout>
- </Layouts>
- </Div>
- <Button position="absolute 1107 46 1183 65" id="btn_excsave" class="btn7" text="엑셀저장" anchor="default" onclick="grp_biz_btn_excsave_onclick"/>
- <Grid position="absolute 0 71 1183 735" id="grd_mealprcpcd" class="datagrid2" binddataset="ds_main_list_item" anchor="default" selecttype="multiarea" cellsizingtype="both" extendsizetype="row">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25" band="left"/>
- <Column size="263"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- </Columns>
- <Rows>
- <Row size="35" band="head"/>
- <Row size="24"/>
- <Row size="24" band="summ"/>
- </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="합계"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" text="expr:currow + 1"/>
- <Cell col="1" style="align:center middle;" text="bind:wardnm" enable="false"/>
- <Cell col="2" style="align:center middle;" text="bind:breakmeal" enable="false"/>
- <Cell col="3" style="align:center middle;" text="bind:lunchmeal" enable="false"/>
- <Cell col="4" style="align:center middle;" text="bind:dinnermeal" enable="false"/>
- <Cell col="5" displaytype="number" style="align:center middle;" text="bind:mdlsum" enable="false"/>
- </Band>
- <Band id="summary">
- <Cell style="background:#99ff99ff;background2:#99ff99ff;"/>
- <Cell col="1" style="align:center middle;background:#99ff99ff;background2:#99ff99ff;font:arial,9,bold;" text="총계"/>
- <Cell col="2" style="align:center middle;background:#99ff99ff;background2:#99ff99ff;font:arial,9,bold;" text="expr:getSum('breakmeal')"/>
- <Cell col="3" style="align:center middle;background:#99ff99ff;background2:#99ff99ff;font:arial,9,bold;" text="expr:getSum('lunchmeal')"/>
- <Cell col="4" style="align:center middle;background:#99ff99ff;background2:#99ff99ff;font:arial,9,bold;" text="expr:getSum('dinnermeal')"/>
- <Cell col="5" displaytype="number" style="align:center middle;background:#99ff99ff;background2:#99ff99ff;font:arial,9,bold;" text="expr:getSum('mdlsum')"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- </Layout>
- </Layouts>
- </Div>
- <Button position="absolute 10 755 66 777" id="btn_print" class="btn6" text="출력" onclick="btn_print_onclick"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_main_list_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="wardnm" type="STRING" size="256"/>
- <Column id="breakmeal" type="STRING" size="256"/>
- <Column id="lunchmeal" type="STRING" size="256"/>
- <Column id="dinnermeal" type="STRING" size="256"/>
- <Column id="mdlsum" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="wardnm"/>
- <Col id="breakmeal"/>
- <Col id="lunchmeal"/>
- <Col id="dinnermeal"/>
- <Col id="mdlsum"/>
- </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="fromdd" type="STRING" size="256"/>
- <Column id="todd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_send_globalinstance_instance1" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="grp_biz.grp_sea.ipt_todd" propid="value" datasetid="ds_send" columnid="todd"/>
- <BindItem id="item1" compid="grp_biz.grp_sea.ipt_fromdd" propid="value" datasetid="ds_send" columnid="fromdd"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2015-11-13
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2015-11-13 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- include "com_commonxp::comm_main.xjs";
- include "ast_examcurexp::AEZ0001.xjs";
- function SMANS01100_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SMANS01100_onload(obj:Form, e:LoadEventInfo)
- {
- lf_aezfSetSuppDeptcd(); // globalinstance 셋팅하기
- var fromdd = utlf_getCurrentDate(); // 적용일자 현재일자 셋팅
- var todd = utlf_getCurrentDate(); // 적용일자 현재일자 셋팅
-
- ds_main_list_item.clearData();
- ds_send.setColumn(0, "fromdd", fromdd);
- ds_send.setColumn(0, "todd", todd);
- }
- function grp_biz_grp_sea_btn_sea_onclick(obj:Button, e:ClickEventInfo)
- {
- if ( utlf_isNull(ds_send.getColumn(0, "fromdd")) ){
- sysf_messageBox("조회시작일자는", "I003");
- grp_biz.grp_sea.ipt_fromdd.setFocus();
- return;
- }
- if ( utlf_isNull(ds_send.getColumn(0, "todd")) ){
- sysf_messageBox("조회종료일자는", "I003");
- grp_biz.grp_sea.ipt_todd.setFocus();
- return;
- }
- if (utlf_isValidDateTime(ds_send.getColumn(0, "fromdd"), "YYYYMMDD") == false){
- sysf_messageBox("조회 시작일자의 형식이", "E016");
- grp_biz.grp_sea.ipt_fromdd.setFocus();
- return;
- }
- if (utlf_isValidDateTime(ds_send.getColumn(0, "todd"), "YYYYMMDD") == false){
- sysf_messageBox("조회 종료일자의 형식이", "E016");
- grp_biz.grp_sea.ipt_todd.setFocus();
- return;
- }
- if (ds_send.getColumn(0, "fromdd") > ds_send.getColumn(0, "todd")){
- sysf_messageBox("조회 시작일자는 종료일자 보다 클 수", "I004");
- grp_biz.grp_sea.ipt_fromdd.setFocus();
- return;
- }
- var oParam = {};
- oParam.id = "TRANS01101";
- oParam.service = "dietstatsapp.DietStats";
- oParam.method = "reqGetWardDiet";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_list_item=ret";
- oParam.async = false;
- tranf_submit(oParam);
- //grd_mealprcpcd.subtotalPosition = "below";
- // grd_mealprcpcd.subtotal("clear", -1, i, "format:(-,+)#,###; roundmode:round; roundpostion:2", "background-color:#99ff99; font-weight:bold; text-align:center", 1, "총계" );
- // for(var i=0; i < grd_mealprcpcd.cols; i++){
- // if(i >= grd_mealprcpcd.colRef("breakmeal")){
- // grd_mealprcpcd.subtotal("sum", -1, i, "format:(-,+)#,###; roundmode:round; roundpostion:2", "background-color:#99ff99; font-weight:bold; text-align:center", 1, "총계" );
- // }
- // }
- }
- function grp_biz_btn_excsave_onclick(obj:Button, e:ClickEventInfo)
- {
- grdf_exportExcel(grp_biz.grd_mealprcpcd, "", "sheetname1" , true, "" , "" , true);
- }
- function btn_print_onclick(obj:Button, e:ClickEventInfo)
- {
- //미리보기출력
- var objDOM = rptf_createDOM();
- rptf_setNodeListToDOM(objDOM, "root/main/list/item", ds_main_list_item); // 데이터셋 1
- rptf_setNodeListToDOM(objDOM, "root/send", ds_send); // 데이터셋 2
-
- 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(["RPANS01101"],[objParam], option);
- }
- ]]></Script>
- </Form>
- </FDL>
|