123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMANS00200" position="absolute 0 0 1216 805" titletext="환자 급식 관리 현황" oninit="SMANS00200_oninit" onload="SMANS00200_onload" scrollbars="none">
- <Layouts>
- <Layout>
- <Div position="absolute 0 0 1195 25" id="grp_tle">
- <Layouts>
- <Layout>
- <Static text="환자급식관리현황" position="absolute 5 0 154 25" id="caption6" class="tit_1"/>
- </Layout>
- </Layouts>
- </Div>
- <Div position="absolute 0 13 1195 813" id="grp_biz" scrollbars="none">
- <Layouts>
- <Layout>
- <Div position="absolute 5 10 1185 47" align="align:center top;" id="group1">
- <Layouts>
- <Layout>
- <Shape position="absolute 0 2 1178 37" id="roundrect1" type="roundrectangle" anchor="default"/>
- <Static text="조회년월 :" position="absolute 15 11 101 28" id="caption2" class="search_name" anchor="default"/>
- <Shape position="absolute 1092 9 1098 31" linetype="vertical" id="line13" class="line_4" anchor="default"/>
- <Button position="absolute 1110 9 1166 31" id="btn_search" class="btn1" taborder="4" text="조회" anchor="default" onclick="grp_biz_group1_btn_search_onclick"/>
- <MaskEdit position="absolute 110 10 185 29" align="align:center middle;" id="ipt_fromdd" mask="####-##" anchor="default" style="align:center middle;" maskchar=" " trimtype="both" type="string" displaynulltext=" " autoselect="true" autoskip="true"/>
- <MaskEdit position="absolute 205 9 280 28" align="align:center middle;" id="ipt_todd" mask="####-##" anchor="default" style="align:center middle;" maskchar=" " trimtype="both" type="string" displaynulltext=" " autoselect="true"/>
- <Static text="~" position="absolute 190 9 202 26" id="caption11" class="search_n_b" anchor="default" style="font:Dotum,9,bold;"/>
- </Layout>
- </Layouts>
- </Div>
- <Shape position="absolute 5 51 1185 57" linetype="horizontal" id="line1" class="line_10"/>
- <Grid position="absolute 5 55 1185 780" align="align:center middle;" id="grd_patmeal" visible="false" taborder="5" binddataset="ds_main_patmeal_patmeallist">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25"/>
- <Column size="130"/>
- <Column size="60"/>
- <Column size="60"/>
- <Column size="60"/>
- <Column size="60"/>
- <Column size="60"/>
- <Column size="60"/>
- <Column size="60"/>
- <Column size="60"/>
- <Column size="60"/>
- <Column size="60"/>
- <Column size="60"/>
- <Column size="60"/>
- <Column size="100"/>
- <Column size="104"/>
- <Column size="104"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell rowspan="2"/>
- <Cell col="1" rowspan="2" text="구분"/>
- <Cell col="2" rowspan="2" text="caption1"/>
- <Cell col="3" rowspan="2" text="caption2"/>
- <Cell col="4" rowspan="2" text="caption3"/>
- <Cell col="5" rowspan="2" text="caption4"/>
- <Cell col="6" rowspan="2" text="caption5"/>
- <Cell col="7" rowspan="2" text="caption6"/>
- <Cell col="8" rowspan="2" text="caption7"/>
- <Cell col="9" rowspan="2" text="caption8"/>
- <Cell col="10" rowspan="2" text="caption9"/>
- <Cell col="11" rowspan="2" text="caption10"/>
- <Cell col="12" rowspan="2" text="caption11"/>
- <Cell col="13" rowspan="2" text="caption12"/>
- <Cell col="14" rowspan="2" text="합계"/>
- <Cell col="15" colspan="2" text="비고"/>
- <Cell row="1" col="15" text="caption"/>
- <Cell row="1" col="16" text="증감비(%)"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" text="expr:currow + 1"/>
- <Cell col="1" text="bind:dietcd"/>
- <Cell col="2" text="bind:mm01"/>
- <Cell col="3" text="bind:mm02"/>
- <Cell col="4" text="bind:mm03"/>
- <Cell col="5" text="bind:mm04"/>
- <Cell col="6" text="bind:mm05"/>
- <Cell col="7" text="bind:mm06"/>
- <Cell col="8" text="bind:mm07"/>
- <Cell col="9" text="bind:mm08"/>
- <Cell col="10" text="bind:mm09"/>
- <Cell col="11" text="bind:mm10"/>
- <Cell col="12" text="bind:mm11"/>
- <Cell col="13" text="bind:mm12"/>
- <Cell col="14" text="bind:mdlsum"/>
- <Cell col="15" text="bind:lastsum"/>
- <Cell col="16" text="bind:difrate"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Div id="grp_biz2" taborder="6" position="absolute 5 55 1185 780" scrollbars="none"/>
- </Layout>
- </Layouts>
- </Div>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_main_patmeal_patmeallist" 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"/>
- <Column id="dietcd" type="STRING" size="256"/>
- <Column id="mm01" type="STRING" size="256"/>
- <Column id="mm02" type="STRING" size="256"/>
- <Column id="mm03" type="STRING" size="256"/>
- <Column id="mm04" type="STRING" size="256"/>
- <Column id="mm05" type="STRING" size="256"/>
- <Column id="mm06" type="STRING" size="256"/>
- <Column id="mm07" type="STRING" size="256"/>
- <Column id="mm08" type="STRING" size="256"/>
- <Column id="mm09" type="STRING" size="256"/>
- <Column id="mm10" type="STRING" size="256"/>
- <Column id="mm11" type="STRING" size="256"/>
- <Column id="mm12" type="STRING" size="256"/>
- <Column id="mdlsum" type="STRING" size="256"/>
- <Column id="lastsum" type="STRING" size="256"/>
- <Column id="difrate" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="fromdd"/>
- <Col id="todd"/>
- <Col id="dietcd"/>
- <Col id="mm01"/>
- <Col id="mm02"/>
- <Col id="mm03"/>
- <Col id="mm04"/>
- <Col id="mm05"/>
- <Col id="mm06"/>
- <Col id="mm07"/>
- <Col id="mm08"/>
- <Col id="mm09"/>
- <Col id="mm10"/>
- <Col id="mm11"/>
- <Col id="mm12"/>
- <Col id="mdlsum"/>
- <Col id="lastsum"/>
- <Col id="difrate"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_gridcaption" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="mm1" type="STRING" size="256"/>
- <Column id="mm2" type="STRING" size="256"/>
- <Column id="mm3" type="STRING" size="256"/>
- <Column id="mm4" type="STRING" size="256"/>
- <Column id="mm5" type="STRING" size="256"/>
- <Column id="mm6" type="STRING" size="256"/>
- <Column id="mm7" type="STRING" size="256"/>
- <Column id="mm8" type="STRING" size="256"/>
- <Column id="mm9" type="STRING" size="256"/>
- <Column id="mm10" type="STRING" size="256"/>
- <Column id="mm11" type="STRING" size="256"/>
- <Column id="mm12" type="STRING" size="256"/>
- <Column id="lastyy" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="mm1"/>
- <Col id="mm2"/>
- <Col id="mm3"/>
- <Col id="mm4"/>
- <Col id="mm5"/>
- <Col id="mm6"/>
- <Col id="mm7"/>
- <Col id="mm8"/>
- <Col id="mm9"/>
- <Col id="mm10"/>
- <Col id="mm11"/>
- <Col id="mm12"/>
- <Col id="lastyy"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_send_data" 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"/>
- <Column id="lastfromdd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_init" 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.group1.ipt_fromdd" propid="value" datasetid="ds_send_data" columnid="fromdd"/>
- <BindItem id="item1" compid="grp_biz.group1.ipt_todd" propid="value" datasetid="ds_send_data" columnid="todd"/>
- </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";
- function SMANS00200_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SMANS00200_onload(obj:Form, e:LoadEventInfo)
- {
- grp_biz.group1.ipt_fromdd.value = utlf_getCurrentDate().substr(0, 6);
- grp_biz.group1.ipt_todd.value = utlf_getCurrentDate().substr(0, 6);
- //makeReportPreview(5,55,1170,700);
- }
- function grp_biz_group1_btn_search_onclick(obj:Button, e:ClickEventInfo)
- {
- if ( utlf_isNull(ds_send_data.getColumn(0, "fromdd"))){
- sysf_messageBox("조회시작년월은", "I003");
- grp_biz.group1.ipt_fromdd.setFocus();
- return;
- }
- if ( utlf_isNull(ds_send_data.getColumn(0, "todd"))){
- sysf_messageBox("조회종료년월은", "I003");
- grp_biz.group1.ipt_todd.setFocus();
- return;
- }
- if (utlf_isValidDateTime(ds_send_data.getColumn(0, "fromdd"), "YYYYMM") == false){
- sysf_messageBox("조회 시작년월의 형식이", "E016");
- grp_biz.group1.ipt_fromdd.setFocus();
- return;
- }
- if (utlf_isValidDateTime(ds_send_data.getColumn(0, "todd"), "YYYYMM") == false){
- sysf_messageBox("조회 종료년월의 형식이", "E016");
- grp_biz.group1.ipt_todd.setFocus();
- return;
- }
- if (ds_send_data.getColumn(0, "fromdd") > ds_send_data.getColumn(0, "todd")){
- sysf_messageBox("조회 시작년월은 종료년월 보다 클 수", "I004");
- grp_biz.group1.ipt_fromdd.setFocus();
- return;
- }
-
- var fromdd = ds_send_data.getColumn(0, "fromdd");
- var fromdd2 = fromdd + "01";
- fromdd2 = fromdd2.toDate().getAddDate(-1,"Y").getDateFormat("YYYYMM");
- ds_send_data.setColumn(0, "lastfromdd", fromdd2);
-
- var oParam = {};
- oParam.id = "TRANS00201";
- oParam.service = "dietstatsapp.DietStats";
- oParam.method = "reqGetPatDietYMStats";
- oParam.inds = "req=ds_send_data";
- oParam.outds = "ds_main_patmeal_patmeallist=ret";
- oParam.async = false;
- tranf_submit(oParam);
-
- //그리드의 caption을 조회년월에 따라 가변적으로 바꿔주기
- ds_main_gridcaption.clearData();
- ds_main_gridcaption.addRow();
- var sdate = ds_send_data.getColumn(0, "fromdd");
- var sdate1 = parseInt(sdate.substr(0, 4))-1;
- var sdate2 = sdate + "01";
-
- //출력물의 caption setting
- var todd = ds_send_data.getColumn(0, "todd");
- for (var i = 1; i <= 12; i++) {
- if (sdate2.toDate().getAddDate(+(i-1),"M").getDateFormat("YYYYMM") <= todd) {
- ds_main_gridcaption.setColumn(0, "mm" + i, sdate2.toDate().getAddDate(+(i-1),"M").getDateFormat("YYYY/MM"));
- }
- }
- ds_main_gridcaption.setColumn(0, "lastyy", sdate1);
-
- //미리보기출력
- var objDOM = rptf_createDOM();
- rptf_setNodeListToDOM(objDOM, "root/main/patmeal/patmeallist" , ds_main_patmeal_patmeallist); // 데이터셋 1
- rptf_setNodeListToDOM(objDOM, "root/send/data" , ds_send_data); // 데이터셋 2
- rptf_setNodeListToDOM(objDOM, "root/main/gridcaption" , ds_main_gridcaption); // 데이터셋 3
-
- 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(["RPANS00201"],[objParam], option, "", "grp_biz.grp_biz2");
- }
- ]]></Script>
- </Form>
- </FDL>
|