123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMANT00600" position="absolute 0 0 1200 790" titletext="상차림현황" oninit="SMANT00600_oninit" onload="SMANT00600_onload">
- <Layouts>
- <Layout>
- <Div position="absolute 0 14 1195 758" id="grp_biz" scrollbars="autoboth">
- <Layouts>
- <Layout>
- <Div position="absolute 0 10 1194 45" align="align:center top;" id="grp_sea" class="div_SA" anchor="default">
- <Layouts>
- <Layout>
- <Static text="일자 :" position="absolute 71 9 125 26" id="caption2" class="search_name" anchor="default"/>
- <Shape position="absolute 1097 6 1103 28" linetype="vertical" id="line13" class="line_4" anchor="default"/>
- <Button position="absolute 223 10 236 25" id="btn_beforedd" class="icon_pre" text="" anchor="default" onclick="grp_biz_grp_sea_btn_beforedd_onclick"/>
- <Button position="absolute 236 10 249 25" id="btn_nextdd" class="icon_next" text="" anchor="default" onclick="grp_biz_grp_sea_btn_nextdd_onclick"/>
- <Calendar position="absolute 127 8 215 27" id="ipt_appdd" class="input_search" autoselect="true" anchor="default"/>
- <Button position="absolute 1118 7 1174 29" id="btn_search" class="btn1" text="조회" anchor="default" onclick="grp_biz_grp_sea_btn_search_onclick"/>
- <Static text="끼니 :" position="absolute 321 9 371 26" id="caption4" class="search_name" anchor="default"/>
- <Radio position="absolute 373 8 520 27" id="rdo_mealflag" class="radio_search" columncount="3" rowcount="1" codecolumn="codecolumn" datacolumn="datacolumn" anchor="default">
- <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>
- <Row>
- <Col id="codecolumn">3</Col>
- <Col id="datacolumn">석식</Col>
- </Row>
- </Rows>
- </Dataset>
- </Radio>
- <Static text="분류 :" position="absolute 540 9 590 26" id="caption1" class="search_name" anchor="default"/>
- <Combo position="absolute 590 8 725 27" id="cmb_dietmdlcd" class="combo_s_essential" codecolumn="codecolumn" datacolumn="datacolumn" anchor="default">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">04</Col>
- <Col id="datacolumn">당뇨식</Col>
- </Row>
- <Row>
- <Col id="codecolumn">05</Col>
- <Col id="datacolumn">신장질환식</Col>
- </Row>
- <Row>
- <Col id="codecolumn">06</Col>
- <Col id="datacolumn">간장질환식</Col>
- </Row>
- <Row>
- <Col id="codecolumn">07</Col>
- <Col id="datacolumn">위장질환식</Col>
- </Row>
- <Row>
- <Col id="codecolumn">08</Col>
- <Col id="datacolumn">심혈관질환식</Col>
- </Row>
- <Row>
- <Col id="codecolumn">09</Col>
- <Col id="datacolumn">경장영양식</Col>
- </Row>
- <Row>
- <Col id="codecolumn">10</Col>
- <Col id="datacolumn">기타치료식</Col>
- </Row>
- <Row>
- <Col id="codecolumn">11</Col>
- <Col id="datacolumn">검사식</Col>
- </Row>
- <Row>
- <Col id="codecolumn">12</Col>
- <Col id="datacolumn">멸균식</Col>
- </Row>
- <Row>
- <Col id="codecolumn">13</Col>
- <Col id="datacolumn">비급여식</Col>
- </Row>
- </Rows>
- </Dataset>
- </Combo>
- </Layout>
- </Layouts>
- </Div>
- <Tab position="absolute 0 49 1194 744" id="switch2" anchor="default" onchanged="grp_biz_switch2_onchanged" tabindex="3">
- <Tabpages>
- <Tabpage text="일반식" id="case1">
- <Layouts>
- <Layout>
- <Grid position="absolute 0 0 1192 668" id="grd_gnrlmeal" binddataset="ds_main_gnrlmeal" anchor="default">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="20" band="left"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="150"/>
- <Column size="150"/>
- <Column size="150"/>
- <Column size="150"/>
- <Column size="150"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1" text="일자"/>
- <Cell col="2" text="끼니"/>
- <Cell col="3" text="구분"/>
- <Cell col="4" text="A"/>
- <Cell col="5" text="B"/>
- <Cell col="6" text="C"/>
- <Cell col="7" text="D"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" expr="expr:currow + 1"/>
- <Cell col="1" text="bind:appdd"/>
- <Cell col="2" text="bind:mealflag"/>
- <Cell col="3" style="align:left;" text="bind:gnrlflag"/>
- <Cell col="4" text="bind:acount"/>
- <Cell col="5" text="bind:bcount"/>
- <Cell col="6" text="bind:ccount"/>
- <Cell col="7" text="bind:dcount"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- </Layout>
- </Layouts>
- </Tabpage>
- <Tabpage text="치료식찬" id="case2">
- <Layouts>
- <Layout>
- <Grid position="absolute 0 0 1192 668" id="grd_curesidemeal" binddataset="ds_main_curesidemeal" anchor="default">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="20" band="left"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="100"/>
- <Column size="0"/>
- <Column size="150"/>
- <Column size="80"/>
- <Column size="80"/>
- <Column size="80"/>
- <Column size="80"/>
- <Column size="80"/>
- <Column size="80"/>
- <Column size="200"/>
- </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" text="식단코드"/>
- <Cell col="6" rowspan="2" text="식단명" taborder="undefined"/>
- <Cell col="7" colspan="6" text="염분기준식수" taborder="undefined"/>
- <Cell col="13" rowspan="2" text="비고" taborder="undefined"/>
- <Cell row="1" col="5" text="식단코드"/>
- <Cell row="1" col="7" text="당뇨"/>
- <Cell row="1" col="8" text="당뇨다진"/>
- <Cell row="1" col="9" text="경저염"/>
- <Cell row="1" col="10" text="경저염다진"/>
- <Cell row="1" col="11" text="저염"/>
- <Cell row="1" col="12" text="저염다진"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" expr="expr:currow + 1"/>
- <Cell col="1" text="bind:appdd"/>
- <Cell col="2" text="bind:mealflag"/>
- <Cell col="3" text="bind:menuflag"/>
- <Cell col="4" text="bind:dishtableflag"/>
- <Cell col="5" text="bind:dishcd"/>
- <Cell col="6" text="bind:dishnm"/>
- <Cell col="7" displaytype="text" edittype="text" text="bind:psnno1"/>
- <Cell col="8" displaytype="text" edittype="text" text="bind:psnno2"/>
- <Cell col="9" displaytype="text" edittype="text" text="bind:psnno3"/>
- <Cell col="10" displaytype="text" edittype="text" text="bind:psnno4"/>
- <Cell col="11" displaytype="text" edittype="text" text="bind:psnno5"/>
- <Cell col="12" displaytype="text" edittype="text" text="bind:psnno6"/>
- <Cell col="13" displaytype="text" edittype="text" text="bind:remark"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- </Layout>
- </Layouts>
- </Tabpage>
- <Tabpage text="치료식주식" id="case3">
- <Layouts>
- <Layout>
- <Grid position="absolute 0 0 322 255" align="align:center middle;" id="grd_curericemeal" binddataset="ds_main_curericemeal" anchor="default">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="20" band="left"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="22"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1" text="일자"/>
- <Cell col="2" text="끼니"/>
- <Cell col="3" text="밥량(g)"/>
- <Cell col="4" text="흰밥"/>
- <Cell col="5" text="잡곡밥"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" expr="expr:currow + 1"/>
- <Cell col="1" text="bind:appdd"/>
- <Cell col="2" text="bind:mealflag"/>
- <Cell col="3" text="bind:riceflag"/>
- <Cell col="4" text="bind:whiterice"/>
- <Cell col="5" text="bind:mixrice"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Grid position="absolute 500 0 822 186" align="align:center middle;" id="grd_curegruelmeal" binddataset="ds_main_curegruelmeal" anchor="default">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="20" band="left"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="22"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1" text="일자"/>
- <Cell col="2" text="끼니"/>
- <Cell col="3" text="죽량(g)"/>
- <Cell col="4" text="흰죽"/>
- <Cell col="5" text="기타죽"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" expr="expr:currow + 1"/>
- <Cell col="1" text="bind:appdd"/>
- <Cell col="2" text="bind:mealflag"/>
- <Cell col="3" text="bind:gruelflag"/>
- <Cell col="4" text="bind:whitegruel"/>
- <Cell col="5" text="bind:etcgruel"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- </Layout>
- </Layouts>
- </Tabpage>
- <Tabpage text="치료식" id="case4">
- <Layouts>
- <Layout>
- <Grid position="absolute 0 0 1192 668" id="grd_curemeal" binddataset="ds_main2_curemeal_rows" anchor="default">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="40"/>
- <Column size="50"/>
- <Column size="100"/>
- </Columns>
- <Rows>
- <Row size="35" band="head"/>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell rowspan="2" text="끼니" taborder="undefined"/>
- <Cell col="1" rowspan="2" text="구분" taborder="undefined"/>
- <Cell col="2" rowspan="2" text="식단" taborder="undefined"/>
- </Band>
- <Band id="body">
- <Cell displaytype="combo" text="bind:mealflag" suppress="1" suppressalign="middle,over" combodataset="ds_init_basecode_meal_A0055" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
- <Cell col="1" style="align:left;" text="bind:dishtablenm" suppress="1" suppressalign="middle,over"/>
- <Cell col="2" style="align:left;" text="bind:dishnm"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- </Layout>
- </Layouts>
- </Tabpage>
- </Tabpages>
- </Tab>
- <Button position="absolute 1142 50 1191 69" id="btn_excel" class="btn7" text="엑셀" anchor="default" onclick="grp_biz_btn_excel_onclick"/>
- </Layout>
- </Layouts>
- </Div>
- <Div position="absolute 0 758 1195 785" id="grp_btn">
- <Layouts>
- <Layout>
- <Button position="absolute 5 5 61 27" id="btn_print" class="btn6" text="출력" onclick="grp_btn_btn_print_onclick"/>
- <Button position="absolute 1060 5 1128 27" id="btn_reset" class="btn4" visible="false" text="초기화" onclick="grp_btn_btn_reset_onclick"/>
- <Button position="absolute 1133 5 1189 27" id="btn_save" class="btn4" visible="false" text="저장"/>
- <Button position="absolute 70 5 151 27" id="button1" class="btn6" visible="false" text="신규출력" onclick="grp_btn_button1_onclick"/>
- </Layout>
- </Layouts>
- </Div>
- <Static id="caption6" text="상차림현황" class="tit_1" position="absolute 0 0 100 24"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_main2_curemeal_rows" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="mealflag" type="STRING"/>
- <Column id="dishtablenm" type="STRING"/>
- <Column id="dishnm" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_send_searchitem" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="appdd" type="STRING" size="256" sumtext="적용일자"/>
- <Column id="menuflag" type="STRING" size="256" sumtext="식사구분"/>
- <Column id="mealflag" type="STRING" size="256" sumtext="끼니구분"/>
- <Column id="dietmdlcd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_gnrlmeal" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="appdd" type="STRING" size="256" sumtext="적용일자"/>
- <Column id="mealflag" type="STRING" size="256" sumtext="끼니구분"/>
- <Column id="gnrlflag" type="STRING" size="256" sumtext="일반식구분"/>
- <Column id="acount" type="STRING" size="256" sumtext="Acount"/>
- <Column id="bcount" type="STRING" size="256" sumtext="Bcount"/>
- <Column id="ccount" type="STRING" size="256" sumtext="Ccount"/>
- <Column id="dcount" type="STRING" size="256" sumtext="Dcount"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_curesidemeal" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="appdd" type="STRING" size="256" sumtext="적용일자"/>
- <Column id="mealflag" type="STRING" size="256" sumtext="끼니구분"/>
- <Column id="menuflag" type="STRING" size="256" sumtext="식단구분"/>
- <Column id="dishtableflag" type="STRING" size="256" sumtext="식단표분류"/>
- <Column id="dishcd" type="STRING" size="256" sumtext="식단코드"/>
- <Column id="dishnm" type="STRING" size="256" sumtext="식단명"/>
- <Column id="psnno1" type="STRING" size="256" sumtext="당뇨식수"/>
- <Column id="psnno2" type="STRING" size="256" sumtext="당뇨다진식수"/>
- <Column id="psnno3" type="STRING" size="256" sumtext="경저염식수"/>
- <Column id="psnno4" type="STRING" size="256" sumtext="경저염다진식수"/>
- <Column id="psnno5" type="STRING" size="256" sumtext="저염식수"/>
- <Column id="psnno6" type="STRING" size="256" sumtext="저염다진식수"/>
- <Column id="remark" type="STRING" size="256" sumtext="비고"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_curericemeal" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="appdd" type="STRING" size="256" sumtext="적용일자"/>
- <Column id="mealflag" type="STRING" size="256" sumtext="끼니구분"/>
- <Column id="riceflag" type="STRING" size="256" sumtext="밥량구분"/>
- <Column id="whiterice" type="STRING" size="256" sumtext="흰밥식수"/>
- <Column id="mixrice" type="STRING" size="256" sumtext="잡곡밥식수"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_curegruelmeal" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="appdd" type="STRING" size="256" sumtext="적용일자"/>
- <Column id="mealflag" type="STRING" size="256" sumtext="끼니구분"/>
- <Column id="gruelflag" type="STRING" size="256" sumtext="죽량구분"/>
- <Column id="whitegruel" type="STRING" size="256" sumtext="흰죽식수"/>
- <Column id="etcgruel" type="STRING" size="256" sumtext="기타죽식수"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_temp_curemeal_header" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="dietcd" type="STRING" size="256"/>
- <Column id="dietnm" type="STRING" size="256"/>
- <Column id="mealcalrcnts" type="STRING" size="256"/>
- <Column id="columnid" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_temp_curemeal_rows" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="mealflag" type="STRING" size="256"/>
- <Column id="dishtableflag" type="STRING" size="256"/>
- <Column id="dishtablenm" type="STRING" size="256"/>
- <Column id="dishcd" type="STRING" size="256"/>
- <Column id="dishnm" type="STRING" size="256"/>
- <Column id="columnid" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_temp_curemeal_rows2" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="mealflag" type="STRING" size="256"/>
- <Column id="dishtableflag" type="STRING" size="256"/>
- <Column id="dishtablenm" type="STRING" size="256"/>
- <Column id="dishcd" type="STRING" size="256"/>
- <Column id="dishnm" type="STRING" size="256"/>
- <Column id="columnid" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_basecode_meal_A0055" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cdnm" type="STRING" size="256"/>
- <Column id="cdid" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="grp_biz.grp_sea.ipt_appdd" propid="value" datasetid="ds_send_searchitem" columnid="appdd"/>
- <BindItem id="item1" compid="grp_biz.grp_sea.rdo_mealflag" propid="value" datasetid="ds_send_searchitem" columnid="mealflag"/>
- <BindItem id="item2" compid="grp_biz.grp_sea.cmb_dietmdlcd" propid="value" datasetid="ds_send_searchitem" columnid="dietmdlcd"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name : 경대 의료정보시스템
- * Job Name : ast_dietxp -> SMANT00600
- * Creator : yjh
- * Make Date : 2017-10-20
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2017-10-20 yjh TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- //=======================================================================================
- // Lib Include
- //---------------------------------------------------------------------------------------
- include "com_commonxp::comm_main.xjs";
- //=======================================================================================
- // Global Form Variable
- //---------------------------------------------------------------------------------------
- //=======================================================================================
- // Function
- //---------------------------------------------------------------------------------------
- //var gvGridCaption = grd_curemeal.caption;
- function finit() {
- // 화면open시 공통코드 setting
- var arrParam = [{dsNm: "ds_init_basecode_meal_A0055", cdGrpId: "A0055"},
- {dsNm: "ds_init_basecode_diettable_A0417", cdGrpId: "A0417"},
- {dsNm: "ds_init_basecode_dietmdlcd_A0047", cdGrpId: "A0047"}]
- appf_getCodeList(arrParam);
-
- //model.resetInstanceNode("/root/main");
- ds_send_searchitem.clearData();
- ds_send_searchitem.addRow();
- ds_main_gnrlmeal.clearData();
- ds_main_curesidemeal.clearData();
- ds_main_curericemeal.clearData();
- ds_main_curegruelmeal.clearData();
- ds_main2_curemeal_rows.clearData();
-
- //model.setFocus("ipt_pid");
- ds_send_searchitem.setColumn(0, "appdd", utlf_getCurrentDate());
- ds_send_searchitem.setColumn(0, "menuflag", "Q1");
- ds_send_searchitem.setColumn(0, "dietmdlcd", "04");
-
- grp_biz.switch2.tabindex = 0;
- //화면open시 현재시간을 계산하여 끼니 자동setting
- //각 끼니별 2차 마감시간으로부터 2시간후까지는 이전끼니로 setting
- var tm = utlf_getCurrentTime();
- if ( tm.substr(0,4) <= 0830 ) { //조식 2차 마감시간은 06:30
- //if ( tm.substr(0,4) <= 0630 ) {
- ds_send_searchitem.setColumn(0, "mealflag", "1");
- } else if ( (tm.substr(0,4) > 0830) && (tm.substr(0,4) <= 1330) ) { //중식 2차 마감시간은 11:30
- //} else if ( (tm.substr(0,4) > 0630) && (tm.substr(0,4) <= 1130) ) {
- ds_send_searchitem.setColumn(0, "mealflag", "2");
- } else {
- ds_send_searchitem.setColumn(0, "mealflag", "3");
- }
- //치료식탭 관련
- //var gvGridCaption = grd_curemeal.caption;
-
- // grd_curemeal.mergeByFree(0,0,1,0);
- // grd_curemeal.mergeByFree(0,1,1,1);
- // grd_curemeal.mergeByFree(0,2,1,2);
- grp_biz.grp_sea.btn_search.click();
- }
- //치료식 상차림 현황 : temp 노드로 조회된 치료식 상차림 데이터를 main2 노드로 이동시킨다.
- function fAddGridColumns() {
- var nodelist = ds_temp_curemeal_header;
- var colcnt = ds_temp_curemeal_header.rowcount;
- //var grdCaption = grd_curemeal.caption.split("|"); // 헤더 caption을 2줄로 분리
- for (var i=0; i<colcnt; i++) {
- var columnid = ds_temp_curemeal_header.getColumn(i, "columnid");
- var dietnm = utlf_transNullToEmpty(ds_temp_curemeal_header.getColumn(i, "dietnm"));
- var mealcalrcnts = ds_temp_curemeal_header.getColumn(i, "mealcalrcnts");
- var nCol = grp_biz.switch2.case4.grd_curemeal.appendContentsCol();//.addColumn("ref:"+columnid+"; type:input; text-align:center;", false);
- grp_biz.switch2.case4.grd_curemeal.setCellProperty("Body", nCol, "text", "bind:"+columnid);
- grp_biz.switch2.case4.grd_curemeal.setCellProperty("Body", nCol, "displaytype", "text");
- grp_biz.switch2.case4.grd_curemeal.setCellProperty("Body", nCol, "edittype", "text");
- grp_biz.switch2.case4.grd_curemeal.setCellProperty("Body", nCol, "align", "center");
- //<col ref="bcount" style="text-align:right; "/>
-
- //식사처방명이 6글자 이상일 경우 첫번째 HeaderRow 높이 늘이기
- if( dietnm.length >= 6 ) {
- var dietnmLen = Math.ceil(dietnm.length / 2);
- dietnm = dietnm.substr(0, dietnmLen) + "\n" + dietnm.substr(dietnmLen);;
- }
-
- grp_biz.switch2.case4.grd_curemeal.setCellProperty("Head", nCol, "text", dietnm);
- grp_biz.switch2.case4.grd_curemeal.setCellProperty("Head", nCol+grp_biz.switch2.case4.grd_curemeal.getFormatColCount()-3, "text", mealcalrcnts);
-
- // grdCaption[0] = grdCaption[0] + "^" + dietnm;
- // grdCaption[1] = grdCaption[1] + "^" + mealcalrcnts;
- }
- //grd_curemeal.caption= grdCaption[0] + "|" + grdCaption[1];
-
- var nMergeStart = -1;
-
- for( var i=grp_biz.switch2.case4.grd_curemeal.getFormatColCount()-2 ; i>=2 ; i-- ){
- if( grp_biz.switch2.case4.grd_curemeal.getCellProperty("Head", i+1, "text") == grp_biz.switch2.case4.grd_curemeal.getCellProperty("Head", i, "text") ){
- if( nMergeStart == -1 ){
- nMergeStart = i+1;
- }
- }else{
- if( nMergeStart != -1 ){
- grp_biz.switch2.case4.grd_curemeal.mergeContentsCell("head", 0, i+1, 0, nMergeStart, i+1, false);
- }
-
- nMergeStart = -1;
- }
- }
- var grdnode = ds_main2_curemeal_rows;//instance1.selectSingleNode("/root/main2");
- if (!utlf_isNull(this.objects["ds_main2_curemeal_rows"])) {
- //ds_temp_curemeal_rows.assign(ds_main2_curemeal_rows);
- ds_main2_curemeal_rows.assign(ds_temp_curemeal_rows);
- }
- // grd_curemeal.mergeByFree(0,0,1,0);
- // grd_curemeal.mergeByFree(0,1,1,1);
- // grd_curemeal.mergeByFree(0,2,1,2);
- }
- //치료식 상차림 현황 : 치료식 그리드(grd_curemeal) 초기화
- function fInitGridColumns() {
- var cols = grp_biz.switch2.case4.grd_curemeal.getFormatColCount();
- for (var i=(cols-1); i>=3; i--) {
- grp_biz.switch2.case4.grd_curemeal.deleteContentsCol(i);
- }
-
- ds_main2_curemeal_rows.clearData();
- //grd_curemeal.caption = gvGridCaption;
- }
- //탭화면별로 컨트롤을 숨기거나 보이기
- function fvisible(str) {
- //일반식,치료식찬,치료식주식일 경우
- if ( str == '1' ) {
- //조회조건중 끼니 보임.
- grp_biz.grp_sea.caption4.visible = true;
- grp_biz.grp_sea.rdo_mealflag.visible = true;
- //조회조건중 분류 숨김.
- grp_biz.grp_sea.caption1.visible = false;
- grp_biz.grp_sea.cmb_dietmdlcd.visible = false;
- //엑셀버튼 숨김.
- grp_biz.btn_excel.visible = false;
- //출력버튼 보임.
- grp_btn.btn_print.visible = true;
- }
- //치료식일 경우
- else if ( str == '2' ) {
- //조회조건중 끼니 숨김.
- grp_biz.grp_sea.caption4.visible = false;
- grp_biz.grp_sea.rdo_mealflag.visible = false;
- //조회조건중 분류 보임.
- grp_biz.grp_sea.caption1.visible = true;
- grp_biz.grp_sea.cmb_dietmdlcd.visible = true;
- //엑셀버튼 보임.
- grp_biz.btn_excel.visible = true;
- //출력버튼 숨김.
- grp_btn.btn_print.visible = false;
- }
- }
- //=======================================================================================
- // Event
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Components : Form
- * Components ID : SMANT00600
- * Event : oninit
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 처음 초기화시
- ****************************************************************************************/
- function SMANT00600_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj); //폼 초기화
- }
- /****************************************************************************************
- * Components : Form
- * Components ID : SMANT00600
- * Event : onload
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 로딩 완료시
- ****************************************************************************************/
- function SMANT00600_onload(obj:Form, e:LoadEventInfo)
- {
- finit();
- grp_biz.grp_sea.btn_search.enable = frmf_checkAuth("R");
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_beforedd
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : <버튼 클릭시
- ****************************************************************************************/
- function grp_biz_grp_sea_btn_beforedd_onclick(obj:Button, e:ClickEventInfo)
- {
- var dd = ds_send_searchitem.getColumn(0, "appdd");
- dd = dd.toDate().getAddDate(-1, "D");
- dd = dd.getDateFormat();
- ds_send_searchitem.setColumn(0, "appdd", dd);
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_nextdd
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : >버튼 클릭시
- ****************************************************************************************/
- function grp_biz_grp_sea_btn_nextdd_onclick(obj:Button, e:ClickEventInfo)
- {
- var dd = ds_send_searchitem.getColumn(0, "appdd");
- dd = dd.toDate().getAddDate(1, "D");
- dd = dd.getDateFormat();
- ds_send_searchitem.setColumn(0, "appdd", dd);
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_search
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 조회버튼 클릭시
- ****************************************************************************************/
- function grp_biz_grp_sea_btn_search_onclick(obj:Button, e:ClickEventInfo)
- {
- var oParam = {};
- oParam.id = "TRANT00601";
- oParam.service = "dietsumapp.DietSum";
- oParam.method = "reqGetTableSet";
- oParam.inds = "req=ds_send_searchitem";
- oParam.outds = "ds_main_gnrlmeal=gnrlmeal ds_main_curesidemeal=curesidemeal ds_main_curericemeal=curericemeal ds_main_curegruelmeal=curegruelmeal";
- oParam.async = false;
- //oParam.callback = "cf_TRANT00601";
- tranf_submit(oParam);
-
- ds_main2_curemeal_rows.clearData();
-
- fInitGridColumns();
-
- if ( grp_biz.switch2.tabindex == 3 ) {
- fInitGridColumns();
-
- var oParam = {};
- oParam.id = "TRANT00602";
- oParam.service = "dietsumapp.DietSum";
- oParam.method = "reqGetCureTableSet";
- oParam.inds = "req=ds_send_searchitem";
- oParam.outds = "ds_temp_curemeal_header=header ds_temp_curemeal_rows=rows ds_temp_curemeal_rows2=rows2";
- oParam.async = false;
- //oParam.callback = "cf_TRANT00602";
- tranf_submit(oParam);
-
- for( var i=0 ; i<ds_temp_curemeal_rows2.rowcount ; i++ ){
- var sColNM = ds_temp_curemeal_rows2.getColumn(i, "columnid");
-
- if( utlf_isNull(ds_temp_curemeal_rows.getColumnInfo(sColNM)) ){
- ds_temp_curemeal_rows.addColumn(sColNM, "string");
- }
-
- var nRow = ds_temp_curemeal_rows.findRowExpr("mealflag=='"+ds_temp_curemeal_rows2.getColumn(i, "mealflag")+"' && dishtablenm=='"+ds_temp_curemeal_rows2.getColumn(i, "dishtablenm")+"' && dishnm=='"+ds_temp_curemeal_rows2.getColumn(i, "dishnm")+"'");
- ds_temp_curemeal_rows.setColumn(nRow, sColNM, ds_temp_curemeal_rows2.getColumn(i, "psncnt"));
- }
-
- fAddGridColumns();
-
- //첫번째 HeaderRow 높이 늘이기
- //grd_curemeal.rowHeight(0) = 35;
- //colWidth이 기본 100 이므로 70 으로 줄이기
- for( var i = 3; i < grp_biz.switch2.case4.grd_curemeal.getFormatColCount(); i++ ) {
- grp_biz.switch2.case4.grd_curemeal.setFormatColProperty(i, "size", 70);
- }
- //grd_curemeal.resizeCells();
- }
- }
- /****************************************************************************************
- * Components : Tab
- * Components ID : switch2
- * Event : onchanged
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 탭 변경시
- ****************************************************************************************/
- function grp_biz_switch2_onchanged(obj:Tab, e:TabIndexChangeEventInfo)
- {
- switch( e.postindex ){
- case 0 :
- fvisible('1'); //탭화면별로 컨트롤을 숨기거나 보이기
- break;
-
- case 1 :
- fvisible('1'); //탭화면별로 컨트롤을 숨기거나 보이기
- break;
-
- case 2 :
- fvisible('1'); //탭화면별로 컨트롤을 숨기거나 보이기
- break;
-
- case 3 :
- fvisible('2'); //탭화면별로 컨트롤을 숨기거나 보이기
- break;
-
- default :
- break;
- }
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_excel
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 엑셀버튼 클릭시
- ****************************************************************************************/
- function grp_biz_btn_excel_onclick(obj:Button, e:ClickEventInfo)
- {
- //치료식 탭화면일때
- if ( grp_biz.switch2.tabindex == 3 ) {
- if ( ds_main2_curemeal_rows.rowcount > 0 ) {
- grdf_exportExcel(grp_biz.switch2.case4.grd_curemeal, "치료식상차림현황", "grd_curemeal", false, "", "user", false);
- } else {
- sysf_messageBox("엑셀로 저장할 데이터가", "I004")
- return;
- }
- }
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_print
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 출력버튼 클릭시
- ****************************************************************************************/
- function grp_btn_btn_print_onclick(obj:Button, e:ClickEventInfo)
- {
- //일반식 탭화면일때
- if ( grp_biz.switch2.tabindex == 0 ) {
- var objDOM = rptf_createDOM(); // DOM 객체 설정
- rptf_setNodeListToDOM(objDOM, "root/main/gnrlmeal", ds_main_gnrlmeal); // 데이터셋
- rptf_setNodeListToDOM(objDOM, "root/send/searchitem", ds_send_searchitem); // 데이터셋
-
- 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(["RPANT00601"],[objParam], option);
- }
- //치료식찬 탭화면일때
- else if ( grp_biz.switch2.tabindex == 1 ) {
- if ( ds_main_curesidemeal.rowcount > 0 ) {
- var objDOM = rptf_createDOM(); // DOM 객체 설정
- rptf_setNodeListToDOM(objDOM, "root/main/curesidemeal", ds_main_curesidemeal); // 데이터셋
- rptf_setNodeListToDOM(objDOM, "root/send/searchitem", ds_send_searchitem); // 데이터셋
-
- 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(["RPANT00602"],[objParam], option);
- } else {
- sysf_messageBox("치료식찬 출력할 데이터가", "I004")
- return;
- }
- }
- //치료식주식 탭화면일때
- else if ( grp_biz.switch2.tabindex == 2 ) {
- var objDOM = rptf_createDOM(); // DOM 객체 설정
- rptf_setNodeListToDOM(objDOM, "root/main/curericemeal", ds_main_curericemeal); // 데이터셋
- rptf_setNodeListToDOM(objDOM, "root/send/searchitem", ds_send_searchitem); // 데이터셋
- rptf_setNodeListToDOM(objDOM, "root/main/curegruelmeal", ds_main_curegruelmeal); // 데이터셋
- var objDOM2 = rptf_createDOM(); // DOM 객체 설정
- rptf_setNodeListToDOM(objDOM2, "root/main/curericemeal", ds_main_curericemeal); // 데이터셋
- rptf_setNodeListToDOM(objDOM2, "root/send/searchitem", ds_send_searchitem); // 데이터셋
-
- var objParam = new Object();
- objParam.xml_data_XML1 = objDOM.documentElement.source; // 최상의노드 XML 스트링 추출
- objParam.xml_data_XML2 = objDOM2.documentElement.source; // 최상의노드 XML 스트링 추출
-
- var option = "open=1;save=1;directprint=0;print=1;zoom=0;";
-
- rptf_exeReportPreview30(["RPANT00603"],[objParam], option);
- //exeReportPreview("RPANT00604", "XMLSTR", "/root/main");
- }
- //치료식 탭화면일때
- else if ( grp_biz.switch2.tabindex == 3 ) {
- sysf_messageBox("치료식 출력은 엑셀로 처리", "I008");
- return;
- }
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_reset
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 초기화버튼 클릭시
- ****************************************************************************************/
- function grp_btn_btn_reset_onclick(obj:Button, e:ClickEventInfo)
- {
- finit();
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : button1
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 신규출력버튼 클릭시
- ****************************************************************************************/
- function grp_btn_button1_onclick(obj:Button, e:ClickEventInfo)
- {
- //일반식 탭화면일때
- if ( btn_gnrlmeal.selected ) {
- // exeReportPreview("RPANT00601", "XMLSTR", "/root/main");
- //추가수정 함
- exeReportPreview("RPANT00605", "XMLSTR", "/root/main");
- }
- //치료식찬 탭화면일때
- else if ( btn_curesidemeal.selected ) {
- if ( grd_curesidemeal.rows-2 > 0 ) {
- exeReportPreview("RPANT00602", "XMLSTR", "/root/main");
- } else {
- messageBox("치료식찬 출력할 데이터가", "I004")
- return;
- }
- }
- //치료식주식 탭화면일때
- else if ( btn_curemainmeal.selected ) {
- exeReportPreview("RPANT00603", "XMLSTR", "/root/main");
- //exeReportPreview("RPANT00604", "XMLSTR", "/root/main");
- }
- //치료식 탭화면일때
- else if ( btn_curemeal.selected ) {
- messageBox("치료식 출력은 엑셀로 처리", "I008");
- return;
- }
- }
- ]]></Script>
- </Form>
- </FDL>
|