123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMANT01600" position="absolute 0 0 1202 789" titletext="환자식급식실천표" oninit="SMANT01600_oninit" onload="SMANT01600_onload">
- <Layouts>
- <Layout>
- <Tab position="absolute 0 71 1194 773" id="switch2" class="tab_Normal" onchanged="switch2_onchanged">
- <Tabpages>
- <Tabpage text="식단별" id="case1">
- <Layouts>
- <Layout>
- <Grid position="absolute 0 0 1192 668" id="grd_gnrldish" binddataset="ds_main_gnrldish" onkeydown="switch2_case1_grd_gnrldish_onkeydown" autoenter="key">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="24"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="100"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="100"/>
- <Column size="0"/>
- <Column size="110"/>
- <Column size="70"/>
- <Column size="0"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="0"/>
- <Column size="70"/>
- <Column size="60"/>
- <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="분류"/>
- <Cell col="5" text="분류명"/>
- <Cell col="6" text="식단코드"/>
- <Cell col="7" text="식단명"/>
- <Cell col="8" text="재료코드"/>
- <Cell col="9" text="재료명(식품명)"/>
- <Cell col="10" text="1인량"/>
- <Cell col="11" text="h_1인량"/>
- <Cell col="12" text="식수(명) 계산량"/>
- <Cell col="13" text="식수(명) 조절량"/>
- <Cell col="14" text="h_식수(명)"/>
- <Cell col="15" text="발주량"/>
- <Cell col="16" text="단위"/>
- <Cell col="17" text="비고"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" expr="currow + 1"/>
- <Cell col="1" text="bind:appdd"/>
- <Cell col="2" text="bind:mealflag"/>
- <Cell col="3" text="bind:menuflag"/>
- <Cell col="4" displaytype="combo" style="padding:1 2 1 2;" text="bind:dishtableflag" suppress="1" suppressalign="middle,over" combodataset="ds_init_basecode_diettable_A0417" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
- <Cell col="5" text="bind:dishtablenm"/>
- <Cell col="6" text="bind:dishcd"/>
- <Cell col="7" style="align:left;" text="bind:dishnm" suppress="2" suppressalign="middle,over"/>
- <Cell col="8" text="bind:foodcd"/>
- <Cell col="9" style="align:left top;padding:5 2 1 2;" text="bind:foodnm" wordwrap="word"/>
- <Cell col="10" displaytype="text" edittype="text" style="align:right middle;" text="bind:foodqty"/>
- <Cell col="11" text="bind:h_foodqty"/>
- <Cell col="12" displaytype="number" edittype="none" text="bind:psnnor1" mask="#,##0" maskchar=" " suppress="3" suppressalign="middle,over"/>
- <Cell col="13" displaytype="number" edittype="masknumber" text="bind:psnno1" mask="#,##0" maskchar=" " suppress="4" suppressalign="middle,over"/>
- <Cell col="14" text="bind:h_psnno1"/>
- <Cell col="15" displaytype="number" edittype="masknumber" style="align:right middle;" text="bind:totalqty" mask="#,##9.0"/>
- <Cell col="16" displaytype="combo" style="align:center;padding:1 2 1 2;" text="bind:foodunit" combodataset="ds_init_miscode_plceordunit" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
- <Cell col="17" displaytype="text" edittype="text" text="bind:dishrem" suppress="5" suppressalign="middle,over"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button position="absolute 1080 4 1133 23" id="btn_recalc1" class="btn2" text="재계산" onclick="switch2_case1_btn_recalc1_onclick"/>
- </Layout>
- </Layouts>
- </Tabpage>
- <Tabpage text="식품(재료)별" id="case2">
- <Layouts>
- <Layout>
- <Grid position="absolute 0 0 1192 668" id="grd_gnrlfood" binddataset="ds_main_gnrlfood" onkeydown="switch2_case2_grd_gnrlfood_onkeydown" autoenter="key">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="24"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="100"/>
- <Column size="0"/>
- <Column size="110"/>
- <Column size="70"/>
- <Column size="0"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="0"/>
- <Column size="70"/>
- <Column size="60"/>
- <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="재료코드"/>
- <Cell col="5" text="재료명(식품명)"/>
- <Cell col="6" text="식단코드"/>
- <Cell col="7" text="식단명"/>
- <Cell col="8" text="1인량"/>
- <Cell col="9" text="h_1인량"/>
- <Cell col="10" text="식수(명) 계산량"/>
- <Cell col="11" text="식수(명) 조절량"/>
- <Cell col="12" text="h_식수(명)"/>
- <Cell col="13" text="발주량"/>
- <Cell col="14" text="단위"/>
- <Cell col="15" text="비고"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" 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:foodcd"/>
- <Cell col="5" style="align:left top;padding:5 2 1 2;" text="bind:foodnm" wordwrap="word" suppress="1"/>
- <Cell col="6" text="bind:dishcd"/>
- <Cell col="7" style="align:left top;padding:5 2 1 2;" text="bind:dishnm" wordwrap="word"/>
- <Cell col="8" displaytype="number" edittype="text" text="bind:foodqty"/>
- <Cell col="9" text="bind:h_foodqty"/>
- <Cell col="10" displaytype="number" text="bind:psnnor1" mask="#,##0" maskchar=" "/>
- <Cell col="11" displaytype="number" edittype="masknumber" text="bind:psnno1" mask="#,##0" maskchar=" "/>
- <Cell col="12" text="bind:h_psnno1"/>
- <Cell col="13" displaytype="number" edittype="masknumber" text="bind:totalqty" mask="#,##9.0"/>
- <Cell col="14" displaytype="combo" style="align:center;padding:1 2 1 2;" text="bind:foodunit" combodataset="ds_init_miscode_plceordunit" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
- <Cell col="15" text="bind:dishrem"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button position="absolute 1080 4 1133 23" id="btn_recalc2" class="btn2" text="재계산" onclick="switch2_case2_btn_recalc2_onclick"/>
- </Layout>
- </Layouts>
- </Tabpage>
- <Tabpage text="식단별" id="case3">
- <Layouts>
- <Layout>
- <Grid position="absolute 0 0 1192 668" id="grd_curedish" binddataset="ds_main_curedish" onkeydown="switch2_case3_grd_curedish_onkeydown" autoenter="key">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="24"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="100"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="48"/>
- <Column size="0"/>
- <Column size="110"/>
- <Column size="70"/>
- <Column size="0"/>
- <Column size="70"/>
- <Column size="70"/>
- <Column size="0"/>
- <Column size="70"/>
- <Column size="70"/>
- <Column size="0"/>
- <Column size="70"/>
- <Column size="70"/>
- <Column size="0"/>
- <Column size="70"/>
- <Column size="60"/>
- <Column size="150"/>
- </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" text="적용일자"/>
- <Cell col="2" text="끼니"/>
- <Cell col="3" text="식단구분"/>
- <Cell col="4" text="1분류"/>
- <Cell col="5" text="분류명"/>
- <Cell col="6" text="식단코드"/>
- <Cell col="7" rowspan="2" text="식단명" taborder="undefined"/>
- <Cell col="8" text="재료코드"/>
- <Cell col="9" rowspan="2" text="재료명(식품명)" taborder="undefined"/>
- <Cell col="10" rowspan="2" text="1인량" taborder="undefined"/>
- <Cell col="11" text="h_1인량"/>
- <Cell col="12" colspan="8" text="염분기준식수(명)" taborder="undefined"/>
- <Cell col="20" text="염분기준식수(명)"/>
- <Cell col="21" rowspan="2" text="발주량" taborder="undefined"/>
- <Cell col="22" rowspan="2" text="단위" taborder="undefined"/>
- <Cell col="23" rowspan="2" text="비고" taborder="undefined"/>
- <Cell row="1" col="1" text="적용일자"/>
- <Cell row="1" col="2" text="끼니"/>
- <Cell row="1" col="3" text="식단구분"/>
- <Cell row="1" col="4" text="분류"/>
- <Cell row="1" col="5" text="분류명"/>
- <Cell row="1" col="6" text="식단코드"/>
- <Cell row="1" col="8" text="재료코드"/>
- <Cell row="1" col="11" text="h_1인량"/>
- <Cell row="1" col="12" text="당뇨 계산"/>
- <Cell row="1" col="13" text="당뇨 조절"/>
- <Cell row="1" col="14" text="h_당뇨"/>
- <Cell row="1" col="15" text="경저염 계산"/>
- <Cell row="1" col="16" text="경저염 조절"/>
- <Cell row="1" col="17" text="h_경저염"/>
- <Cell row="1" col="18" text="저염 계산"/>
- <Cell row="1" col="19" text="저염 조절"/>
- <Cell row="1" col="20" text="h_저염"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" expr="currow + 1"/>
- <Cell col="1" text="bind:appdd"/>
- <Cell col="2" text="bind:mealflag"/>
- <Cell col="3" text="bind:menuflag"/>
- <Cell col="4" displaytype="combo" style="align:left middle;" text="bind:dishtableflag" wordwrap="word" suppress="1" suppressalign="middle,over" combodataset="ds_init_basecode_diettable_A0417" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
- <Cell col="5" style="align:middle;" text="bind:dishtablenm"/>
- <Cell col="6" style="align:middle;" text="bind:dishcd"/>
- <Cell col="7" style="align:left middle;" text="bind:dishnm" wordwrap="word" suppress="2" suppressalign="middle,over"/>
- <Cell col="8" style="align:middle;" text="bind:foodcd"/>
- <Cell col="9" style="align:left top;padding:5 2 1 2;" text="bind:foodnm" wordwrap="word"/>
- <Cell col="10" displaytype="text" edittype="text" text="bind:foodqty" editautoselect="true"/>
- <Cell col="11" text="bind:h_foodqty"/>
- <Cell col="12" displaytype="number" style="align:right;" text="bind:psnnor1" mask="#,##0" suppress="3" suppressalign="middle,over"/>
- <Cell col="13" displaytype="number" edittype="masknumber" style="align:right;" text="bind:psnno1" mask="#,##0" editautoselect="true" suppress="4" suppressalign="middle,over"/>
- <Cell col="14" displaytype="number" edittype="masknumber" style="align:right;" text="bind:h_psnno1" mask="#,##0" suppressalign="middle,over"/>
- <Cell col="15" displaytype="number" style="align:right;" text="bind:psnnor2" mask="#,##0" suppress="5" suppressalign="middle,over"/>
- <Cell col="16" displaytype="number" edittype="masknumber" style="align:right;" text="bind:psnno2" mask="#,##0" editautoselect="true" suppress="6" suppressalign="middle,over"/>
- <Cell col="17" displaytype="number" edittype="masknumber" style="align:right;" text="bind:h_psnno2" mask="#,##0" suppress="0" suppressalign="middle,over"/>
- <Cell col="18" displaytype="number" style="align:right;" text="bind:psnnor3" mask="#,##0" suppress="7" suppressalign="middle,over"/>
- <Cell col="19" displaytype="number" edittype="masknumber" style="align:right;" text="bind:psnno3" mask="#,##0" editautoselect="true" suppress="8" suppressalign="middle,over"/>
- <Cell col="20" text="bind:h_psnno3"/>
- <Cell col="21" displaytype="number" edittype="text" style="align:right middle;" text="bind:totalqty" editautoselect="true"/>
- <Cell col="22" displaytype="combo" style="padding:1 2 1 2;" text="bind:foodunit" combodataset="ds_init_miscode_plceordunit" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
- <Cell col="23" displaytype="text" edittype="text" text="bind:dishrem" editautoselect="true" suppress="9" suppressalign="middle,over"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button position="absolute 1080 4 1133 23" id="btn_recalc3" class="btn2" text="재계산" onclick="switch2_case3_btn_recalc3_onclick"/>
- </Layout>
- </Layouts>
- </Tabpage>
- <Tabpage text="식품(재료)별" id="case4">
- <Layouts>
- <Layout>
- <Grid position="absolute 0 0 1192 668" id="grd_curefood" binddataset="ds_main_curefood" onkeydown="switch2_case4_grd_curefood_onkeydown" autoenter="key">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="24"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="100"/>
- <Column size="0"/>
- <Column size="110"/>
- <Column size="70"/>
- <Column size="0"/>
- <Column size="70"/>
- <Column size="70"/>
- <Column size="0"/>
- <Column size="70"/>
- <Column size="70"/>
- <Column size="0"/>
- <Column size="70"/>
- <Column size="70"/>
- <Column size="0"/>
- <Column size="70"/>
- <Column size="60"/>
- <Column size="150"/>
- </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" text="적용일자"/>
- <Cell col="2" text="끼니"/>
- <Cell col="3" text="식단구분"/>
- <Cell col="4" text="재료코드"/>
- <Cell col="5" rowspan="2" text="재료명(식품명)" taborder="undefined"/>
- <Cell col="6" text="식단코드"/>
- <Cell col="7" rowspan="2" text="식단명" taborder="undefined"/>
- <Cell col="8" rowspan="2" text="1인량" taborder="undefined"/>
- <Cell col="9" text="h_1인량"/>
- <Cell col="10" colspan="8" text="염분기준식수(명)" taborder="undefined"/>
- <Cell col="18" text="염분기준식수(명)"/>
- <Cell col="19" rowspan="2" text="발주량" taborder="undefined"/>
- <Cell col="20" rowspan="2" text="단위" taborder="undefined"/>
- <Cell col="21" rowspan="2" text="비고" taborder="undefined"/>
- <Cell row="1" col="1" text="적용일자"/>
- <Cell row="1" col="2" text="끼니"/>
- <Cell row="1" col="3" text="식단구분"/>
- <Cell row="1" col="4" text="재료코드"/>
- <Cell row="1" col="6" text="식단코드"/>
- <Cell row="1" col="9" text="h_1인량"/>
- <Cell row="1" col="10" text="당뇨 계산"/>
- <Cell row="1" col="11" text="당뇨 조절"/>
- <Cell row="1" col="12" text="h_당뇨"/>
- <Cell row="1" col="13" text="경저염 계산"/>
- <Cell row="1" col="14" text="경저염 조절"/>
- <Cell row="1" col="15" text="h_경저염"/>
- <Cell row="1" col="16" text="저염 계산"/>
- <Cell row="1" col="17" text="저염 조절"/>
- <Cell row="1" col="18" text="h_저염"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" 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:foodcd"/>
- <Cell col="5" text="bind:foodnm"/>
- <Cell col="6" text="bind:dishcd"/>
- <Cell col="7" text="bind:dishnm"/>
- <Cell col="8" displaytype="text" edittype="text" text="bind:foodqty"/>
- <Cell col="9" text="bind:h_foodqty"/>
- <Cell col="10" displaytype="number" text="bind:psnnor1" mask="#,###"/>
- <Cell col="11" displaytype="number" edittype="masknumber" text="bind:psnno1" mask="#,###"/>
- <Cell col="12" displaytype="number" edittype="masknumber" text="bind:h_psnno1"/>
- <Cell col="13" displaytype="number" text="bind:psnnor2" mask="#,###"/>
- <Cell col="14" displaytype="number" edittype="masknumber" text="bind:psnno2" mask="#,###"/>
- <Cell col="15" displaytype="number" edittype="masknumber" text="bind:h_psnno2"/>
- <Cell col="16" displaytype="number" text="bind:psnnor3" mask="#,###"/>
- <Cell col="17" displaytype="number" edittype="masknumber" text="bind:psnno3" mask="#,###"/>
- <Cell col="18" text="bind:h_psnno3"/>
- <Cell col="19" displaytype="text" edittype="text" text="bind:totalqty"/>
- <Cell col="20" displaytype="combo" text="bind:foodunit" combodataset="ds_init_miscode_plceordunit" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
- <Cell col="21" text="bind:dishrem"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button position="absolute 1080 4 1133 23" id="btn_recalc4" class="btn2" text="재계산" onclick="switch2_case4_btn_recalc4_onclick"/>
- </Layout>
- </Layouts>
- </Tabpage>
- </Tabpages>
- </Tab>
- <Static id="caption6" text="환자식급식실천표" class="tit_1" position="absolute 0 0 150 25"/>
- <Button id="btn_print" taborder="1" text="출력" class="btn6" position="absolute 5 762 61 784" onclick="btn_print_onclick"/>
- <Button id="btn_reset" taborder="2" text="초기화" class="btn4" position="absolute 1060 762 1128 784" onclick="btn_reset_onclick"/>
- <Button id="btn_save" taborder="3" text="저장" class="btn4" position="absolute 1133 762 1189 784" onclick="btn_save_onclick"/>
- <Div id="grp_sea" taborder="4" position="absolute 0 25 1194 60" class="div_SA">
- <Layouts>
- <Layout>
- <Static id="caption2" text="급식실천표일자 :" class="search_name" position="absolute 555 11 685 28"/>
- <Static id="caption3" text="식단구분 :" class="search_name" position="absolute 16 11 105 28"/>
- <Shape id="line13" linetype="vertical" class="line_4" position="absolute 1097 6 1103 28"/>
- <Button id="btn_beforedd1" taborder="1" class="icon_pre" position="absolute 778 10 791 25" onclick="grp_sea_btn_beforedd1_onclick"/>
- <Button id="btn_nextdd1" taborder="2" class="icon_next" position="absolute 791 10 804 25" onclick="grp_sea_btn_nextdd1_onclick"/>
- <Calendar id="ipt_appdd" taborder="3" class="input_search" position="absolute 682 8 772 27" autoselect="true"/>
- <Radio id="rdo_menuflag" taborder="4" columncount="2" rowcount="1" codecolumn="codecolumn" datacolumn="datacolumn" class="radio_search" position="absolute 105 8 225 28">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">Q1</Col>
- <Col id="datacolumn">일반식</Col>
- </Row>
- <Row>
- <Col id="codecolumn">Q2</Col>
- <Col id="datacolumn">치료식</Col>
- </Row>
- </Rows>
- </Dataset>
- </Radio>
- <Button id="btn_search" taborder="5" text="조회" class="btn1" position="absolute 1118 7 1174 29" onclick="grp_sea_btn_search_onclick"/>
- <Static id="caption4" text="끼니 :" class="search_name" position="absolute 236 11 296 28"/>
- <Combo id="cmb_mealflag" taborder="6" innerdataset="@ds_init_basecode_meal_A0055" codecolumn="cdid" datacolumn="cdnm" class="combo_s_essential" position="absolute 298 8 355 27"/>
- <Button id="btn_beforedd2" taborder="7" class="icon_pre" position="absolute 1053 10 1066 25" onclick="grp_sea_btn_beforedd2_onclick"/>
- <Static id="caption1" text="예정식수일자 :" class="search_name" position="absolute 841 11 955 28"/>
- <Button id="btn_nextdd2" taborder="8" class="icon_next" position="absolute 1066 10 1079 25" onclick="grp_sea_btn_nextdd2_onclick"/>
- <Calendar id="ipt_psnnodd" taborder="9" class="input_search" position="absolute 957 8 1047 27" autoselect="true"/>
- <CheckBox id="chk_pastyn" taborder="10" class="checkbox_search" position="absolute 395 8 530 28" text="과거데이터조회여부" truevalue="Y" onclick="grp_sea_chk_pastyn_onclick"/>
- </Layout>
- </Layouts>
- </Div>
- <Button id="btn_dish" taborder="6" text="식단별" position="absolute 2 62 102 82" onclick="btn_dish_onclick"/>
- <Shape id="line2" class="line_10" position="absolute 0 81 1195 87" anchor="left top right"/>
- <Button id="btn_food" taborder="7" text="식품(재료)별" position="absolute 104 62 204 82" onclick="btn_food_onclick"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_main_gnrldish" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_gnrldish_oncolumnchanged">
- <ColumnInfo>
- <Column id="appdd" type="STRING" size="256"/>
- <Column id="mealflag" type="STRING" size="256"/>
- <Column id="menuflag" 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="foodcd" type="STRING" size="256"/>
- <Column id="foodnm" type="STRING" size="256"/>
- <Column id="plceordexchbase" type="STRING" size="256"/>
- <Column id="foodqty" type="STRING" size="256"/>
- <Column id="h_foodqty" type="STRING" size="256"/>
- <Column id="psnno1" type="STRING" size="256"/>
- <Column id="h_psnno1" type="STRING" size="256"/>
- <Column id="totalqty" type="STRING" size="256"/>
- <Column id="foodunit" type="STRING" size="256"/>
- <Column id="dishrem" type="STRING" size="256"/>
- <Column id="psnnor1" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="appdd"/>
- <Col id="mealflag"/>
- <Col id="menuflag"/>
- <Col id="dishtableflag"/>
- <Col id="dishtablenm"/>
- <Col id="dishcd"/>
- <Col id="dishnm"/>
- <Col id="foodcd"/>
- <Col id="foodnm"/>
- <Col id="plceordexchbase"/>
- <Col id="foodqty"/>
- <Col id="h_foodqty"/>
- <Col id="psnno1"/>
- <Col id="h_psnno1"/>
- <Col id="totalqty"/>
- <Col id="foodunit"/>
- <Col id="dishrem"/>
- <Col id="psnnor1"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_gnrlfood" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="appdd" type="STRING" size="256"/>
- <Column id="mealflag" type="STRING" size="256"/>
- <Column id="menuflag" type="STRING" size="256"/>
- <Column id="foodcd" type="STRING" size="256"/>
- <Column id="foodnm" type="STRING" size="256"/>
- <Column id="plceordexchbase" type="STRING" size="256"/>
- <Column id="dishcd" type="STRING" size="256"/>
- <Column id="dishnm" type="STRING" size="256"/>
- <Column id="foodqty" type="STRING" size="256"/>
- <Column id="h_foodqty" type="STRING" size="256"/>
- <Column id="psnno1" type="STRING" size="256"/>
- <Column id="h_psnno1" type="STRING" size="256"/>
- <Column id="totalqty" type="STRING" size="256"/>
- <Column id="foodunit" type="STRING" size="256"/>
- <Column id="dishrem" type="STRING" size="256"/>
- <Column id="psnnor1" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="appdd"/>
- <Col id="mealflag"/>
- <Col id="menuflag"/>
- <Col id="foodcd"/>
- <Col id="foodnm"/>
- <Col id="plceordexchbase"/>
- <Col id="dishcd"/>
- <Col id="dishnm"/>
- <Col id="foodqty"/>
- <Col id="h_foodqty"/>
- <Col id="psnno1"/>
- <Col id="h_psnno1"/>
- <Col id="totalqty"/>
- <Col id="foodunit"/>
- <Col id="dishrem"/>
- <Col id="psnnor1"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_curedish" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_curedish_oncolumnchanged">
- <ColumnInfo>
- <Column id="appdd" type="STRING" size="256"/>
- <Column id="mealflag" type="STRING" size="256"/>
- <Column id="menuflag" 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="foodcd" type="STRING" size="256"/>
- <Column id="foodnm" type="STRING" size="256"/>
- <Column id="plceordexchbase" type="STRING" size="256"/>
- <Column id="foodqty" type="STRING" size="256"/>
- <Column id="h_foodqty" type="STRING" size="256"/>
- <Column id="psnno1" type="STRING" size="256"/>
- <Column id="h_psnno1" type="STRING" size="256"/>
- <Column id="psnno2" type="STRING" size="256"/>
- <Column id="h_psnno2" type="STRING" size="256"/>
- <Column id="psnno3" type="STRING" size="256"/>
- <Column id="h_psnno3" type="STRING" size="256"/>
- <Column id="totalqty" type="STRING" size="256"/>
- <Column id="foodunit" type="STRING" size="256"/>
- <Column id="dishrem" type="STRING" size="256"/>
- <Column id="psnnor1" type="STRING" size="256"/>
- <Column id="psnnor2" type="STRING" size="256"/>
- <Column id="psnnor3" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="appdd"/>
- <Col id="mealflag"/>
- <Col id="menuflag"/>
- <Col id="dishtableflag"/>
- <Col id="dishtablenm"/>
- <Col id="dishcd"/>
- <Col id="dishnm"/>
- <Col id="foodcd"/>
- <Col id="foodnm"/>
- <Col id="plceordexchbase"/>
- <Col id="foodqty"/>
- <Col id="h_foodqty"/>
- <Col id="psnno1"/>
- <Col id="h_psnno1"/>
- <Col id="psnno2"/>
- <Col id="h_psnno2"/>
- <Col id="psnno3"/>
- <Col id="h_psnno3"/>
- <Col id="totalqty"/>
- <Col id="foodunit"/>
- <Col id="dishrem"/>
- <Col id="psnnor1"/>
- <Col id="psnnor2"/>
- <Col id="psnnor3"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_curefood" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="appdd" type="STRING" size="256"/>
- <Column id="mealflag" type="STRING" size="256"/>
- <Column id="menuflag" type="STRING" size="256"/>
- <Column id="foodcd" type="STRING" size="256"/>
- <Column id="foodnm" type="STRING" size="256"/>
- <Column id="plceordexchbase" type="STRING" size="256"/>
- <Column id="dishcd" type="STRING" size="256"/>
- <Column id="dishnm" type="STRING" size="256"/>
- <Column id="foodqty" type="STRING" size="256"/>
- <Column id="h_foodqty" type="STRING" size="256"/>
- <Column id="psnno1" type="STRING" size="256"/>
- <Column id="h_psnno1" type="STRING" size="256"/>
- <Column id="psnno2" type="STRING" size="256"/>
- <Column id="h_psnno2" type="STRING" size="256"/>
- <Column id="psnno3" type="STRING" size="256"/>
- <Column id="h_psnno3" type="STRING" size="256"/>
- <Column id="totalqty" type="STRING" size="256"/>
- <Column id="foodunit" type="STRING" size="256"/>
- <Column id="dishrem" type="STRING" size="256"/>
- <Column id="psnnor1" type="STRING" size="256"/>
- <Column id="psnnor2" type="STRING" size="256"/>
- <Column id="psnnor3" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="appdd"/>
- <Col id="mealflag"/>
- <Col id="menuflag"/>
- <Col id="foodcd"/>
- <Col id="foodnm"/>
- <Col id="plceordexchbase"/>
- <Col id="dishcd"/>
- <Col id="dishnm"/>
- <Col id="foodqty"/>
- <Col id="h_foodqty"/>
- <Col id="psnno1"/>
- <Col id="h_psnno1"/>
- <Col id="psnno2"/>
- <Col id="h_psnno2"/>
- <Col id="psnno3"/>
- <Col id="h_psnno3"/>
- <Col id="totalqty"/>
- <Col id="foodunit"/>
- <Col id="dishrem"/>
- <Col id="psnnor1"/>
- <Col id="psnnor2"/>
- <Col id="psnnor3"/>
- </Row>
- </Rows>
- </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"/>
- <Column id="menuflag" type="STRING" size="256"/>
- <Column id="mealflag" type="STRING" size="256"/>
- <Column id="psnnodd" type="STRING" size="256"/>
- <Column id="pastyn" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="appdd"/>
- <Col id="menuflag"/>
- <Col id="mealflag"/>
- <Col id="psnnodd"/>
- <Col id="pastyn"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_send_req" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="dish" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="dish"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_temp_ret" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="count" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="count"/>
- </Row>
- </Rows>
- </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="cdid" type="STRING" size="256"/>
- <Column id="cdnm" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="cdid"/>
- <Col id="cdnm"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_basecode_diettable_A0417" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cdid" type="STRING" size="256"/>
- <Column id="cdnm" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="cdid"/>
- <Col id="cdnm"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_miscode_plceordunit" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cdid" type="STRING" size="256"/>
- <Column id="cdnm" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="cdid"/>
- <Col id="cdnm"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_baseinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="inithalf" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="inithalf"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_req" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_init_baseinfo_inithalf_A170" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_send_req_dish" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="grp_sea.rdo_menuflag" propid="value" datasetid="ds_send_searchitem" columnid="menuflag"/>
- <BindItem id="item1" compid="grp_sea.cmb_mealflag" propid="value" datasetid="ds_send_searchitem" columnid="mealflag"/>
- <BindItem id="item2" compid="grp_sea.chk_pastyn" propid="value" datasetid="ds_send_searchitem" columnid="pastyn"/>
- <BindItem id="item3" compid="grp_sea.ipt_appdd" propid="value" datasetid="ds_send_searchitem" columnid="appdd"/>
- <BindItem id="item4" compid="grp_sea.ipt_psnnodd" propid="value" datasetid="ds_send_searchitem" columnid="psnnodd"/>
- </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::combolist.xjs"
- var arErrorCode = new HashArray();
- function SMANT01600_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj); //폼 초기화
- }
- function SMANT01600_onload(obj:Form, e:LoadEventInfo)
- {
- switch2.tabindex = 2;
-
- finit();
- //식재료 발주단위 조회
- var oParam = {};
- oParam.id = "TRANT02503";
- oParam.service = "dietsumapp.DietSum";
- oParam.method = "reqGetPlceOrdUnit";
- oParam.inds = "req=ds_req";
- oParam.outds = "ds_init_miscode_plceordunit=ret";
- oParam.async = false;
- tranf_submit(oParam);
-
- var arrParam = [{dsNm: "ds_init_baseinfo_inithalf_A170" , cdGrpId: "A170"}
- ]
- lf_getAstCodeList(arrParam);
- // dsf_setFixVal(oDataset, "minimum:true,join:false");
- // var oParam = {};
- // oParam.id = "TRAAA00001";
- // oParam.service = "examcurebaseapp.ComCode";
- // oParam.method = "reqGetComboList";
- // oParam.inds = "cmd=ds_ req=ds_";
- // oParam.outds = "ds_=${repeat_ref}";
- // oParam.async = false;
- // oParam.callback = "cf_TRAAA00001";
- //
- // tranf_submit(oParam);
-
- ds_init_baseinfo_inithalf_A170.deleteRow(0);
-
- grp_sea.btn_search.enable = frmf_checkAuth("R");
- btn_save.enable = frmf_checkAuth("X");
- //btn_excel.disabled = !checkAuth("P");
- // 2010.12.29 c y w 과거데이터조회여부에 따라 예정식수일자 조회조건 visible 셋팅.
- if( ds_send_searchitem.getColumn(0, "pastyn" ) == "Y"){
- caption1.visible = false;
- ipt_psnnodd.visible = false;
- btn_beforedd2.visible = false;
- btn_nextdd2.visible = false;
- }else{
- grp_sea.caption1.visible = true;
- grp_sea.ipt_psnnodd.visible = true;
- grp_sea.btn_beforedd2.visible = true;
- grp_sea.btn_nextdd2.visible = true;
- }
- }
- function finit() {
- // 화면open시 공통코드 setting
- var arrParam = [{dsNm: "ds_init_basecode_meal_A0055", cdGrpId: "A0055"},
- {dsNm: "ds_init_basecode_diettable_A0417", cdGrpId: "A0417"}];
- appf_getCodeList(arrParam);
-
- //끼니에 '전체' 추가
- frmf_addComboItem("grp_sea.cmb_mealflag","전체","0","init");
- grp_sea.cmb_mealflag.value = "0";
- ds_main_curedish.clearData();
- ds_main_curefood.clearData();
- ds_main_gnrldish.clearData();
- ds_main_gnrlfood.clearData();
- ds_send_searchitem.clearData();
- ds_send_searchitem.addRow();
-
- //model.setFocus("ipt_pid");
- ds_send_searchitem.setColumn(0, "appdd", utlf_getCurrentDate());
- ds_send_searchitem.setColumn(0, "psnnodd", utlf_getCurrentDate());
- ds_send_searchitem.setColumn(0, "menuflag", "Q1");
- ds_send_searchitem.setColumn(0, "mealflag", "0");
- btn_dish_onclick();
- }
- function btn_dish_onclick(obj:Button, e:ClickEventInfo)
- {
- if ( ds_send_searchitem.getColumn(0, "menuflag") == 'Q1' ) {
- switch2.tabindex = 0;
- } else {
- switch2.tabindex = 2;
- }
- }
- function btn_food_onclick(obj:Button, e:ClickEventInfo)
- {
- if ( ds_send_searchitem.getColumn(0, "menuflag")=='Q1' ) {
- switch2.tabindex = 1;
- } else {
- switch2.tabindex = 3;
- }
- }
- function grp_sea_chk_pastyn_onclick(obj:CheckBox, e:ClickEventInfo)
- {
- if( ds_send_searchitem.getColumn(0, "pastyn" ) == "Y"){
- grp_sea.caption1.visible = false;
- grp_sea.ipt_psnnodd.visible = false;
- grp_sea.btn_beforedd2.visible = false;
- grp_sea.btn_nextdd2.visible = false;
- }else{
- ds_send_searchitem.setColumn(0, "pastyn", "");
- grp_sea.caption1.visible = true;
- grp_sea.ipt_psnnodd.visible = true;
- grp_sea.btn_beforedd2.visible = true;
- grp_sea.btn_nextdd2.visible = true;
- }
- }
- function grp_sea_btn_beforedd1_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);
- }
- function grp_sea_btn_nextdd1_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);
- }
- function grp_sea_btn_beforedd2_onclick(obj:Button, e:ClickEventInfo)
- {
- var dd = ds_send_searchitem.getColumn(0, "psnnodd");
- dd = dd.toDate().getAddDate(-1, "D");
- dd = dd.getDateFormat();
- ds_send_searchitem.setColumn(0, "psnnodd", dd);
- }
- function grp_sea_btn_nextdd2_onclick(obj:Button, e:ClickEventInfo)
- {
- var dd = ds_send_searchitem.getColumn(0, "psnnodd");
- dd = dd.toDate().getAddDate(1, "D");
- dd = dd.getDateFormat();
- ds_send_searchitem.setColumn(0, "psnnodd", dd);
- }
- function columnAdd(dataset, colname, coldata, gubun){
- dataset.enableevent = false;
- dataset.updatecontrol = false;
-
- if(utlf_isNull(dataset.getColumnInfo(colname))){
- dataset.addColumn(colname, "string");
- }
- if(dataset.rowcount > 0 && gubun == true){
- for(var i = 0; i < dataset.rowcount;i++){
- dataset.setColumn(i, colname, dataset.getColumn(i, coldata));
- }
- }
-
- dataset.updatecontrol = true;
- dataset.enableevent = true;
- }
- function grp_sea_btn_search_onclick(obj:Button, e:ClickEventInfo)
- {
- ds_main_gnrldish.clearData();
- ds_main_gnrlfood.clearData();
- ds_main_curedish.clearData();
- ds_main_curefood.clearData();
-
- var oParam = {};
- oParam.id = "TRANT01601";
- oParam.service = "dietsumapp.DietSum";
- oParam.method = "reqGetDietTable";
- oParam.inds = "req=ds_send_searchitem";
- oParam.outds = "ds_main_gnrldish=gnrldish ds_main_gnrlfood=gnrlfood ds_main_curedish=curedish ds_main_curefood=curefood";
- oParam.async = false;
- tranf_submit(oParam);
-
- columnAdd(ds_main_gnrldish, "h_foodqty", "foodqty", true);
- columnAdd(ds_main_gnrldish, "h_psnno1", "psnno1", true);
-
- columnAdd(ds_main_gnrlfood, "h_foodqty", "foodqty", true);
- columnAdd(ds_main_gnrlfood, "h_psnno1", "psnno1", true);
-
- columnAdd(ds_main_curedish, "h_foodqty", "foodqty", true);
- columnAdd(ds_main_curedish, "h_psnno1", "psnno1", true);
- columnAdd(ds_main_curedish, "h_psnno2", "psnno2", true);
- columnAdd(ds_main_curedish, "h_psnno3", "psnno3", true);
-
- columnAdd(ds_main_curefood, "h_foodqty", "foodqty", true);
- columnAdd(ds_main_curefood, "h_psnno1", "psnno1", true);
- columnAdd(ds_main_curefood, "h_psnno2", "psnno2", true);
- columnAdd(ds_main_curefood, "h_psnno3", "psnno3", true);
-
- ds_main_gnrldish.addColumn("dishrem", "string");
- ds_main_gnrlfood.addColumn("dishrem", "string");
- ds_main_curedish.addColumn("dishrem", "string");
- ds_main_curefood.addColumn("dishrem", "string");
-
- dsf_makeValue(ds_send_req, "savemealflag", "string", "");
-
- //식단명별로 식수인원,비고 컬럼 셀병합
- if ( ds_send_searchitem.getColumn(0, "menuflag") == "Q1" ) { //일반식일 경우
- //fmerge1();
- switch2.tabindex = 0;
- } else { //치료식일 경우
- //fmerge2();
- switch2.tabindex = 2;
- }
-
- //과거데이터조회가 아닐경우 row status가 null이기 때문에 무조건 'insert'로 초기화한다.
- for (var i = 0; i < ds_main_gnrldish.rowcount; i++) {
- ds_main_gnrldish.enableevent = false;
- ds_main_gnrldish.updatecontrol = false;
- ds_main_gnrldish.setRowType(i, 2);
- ds_main_gnrldish.updatecontrol = true;
- ds_main_gnrldish.enableevent = true;
- }
- for (var i = 0; i < ds_main_curedish.rowcount; i++) {
- ds_main_curedish.enableevent = false;
- ds_main_curedish.updatecontrol = false;
- ds_main_curedish.setRowType(i, 2);
- ds_main_curedish.updatecontrol = true;
- ds_main_curedish.enableevent = true;
- }
- }
- function switch2_case1_btn_recalc1_onclick(obj:Button, e:ClickEventInfo)
- {
- var shalf = ds_init_baseinfo_inithalf_A170.getColumn(0, "cdid");
- shalf = (parseInt(shalf) * -1) - 1;
- //alert(shalf);
- for (var i = 0; i < ds_main_gnrldish.rowcount; i++) {
- var i_foodqty = ds_main_gnrldish.getColumn(i, "foodqty");
- var i_hfoodqty = ds_main_gnrldish.getColumn(i, "h_foodqty");
- var i_psnno = ds_main_gnrldish.getColumn(i, "psnno1");
- var i_hpsnno = ds_main_gnrldish.getColumn(i, "h_psnno1");
- var totalqty;
- //1인량만 수정된 경우
- if ( (i_foodqty != i_hfoodqty) && (i_psnno == i_hpsnno) ) {
- var i_plceordexchbase = ds_main_gnrldish.getColumn(i, "plceordexchbase");
- totalqty = parseFloat(i_foodqty) * parseInt(i_psnno) / parseFloat(i_plceordexchbase);
- totalqty = totalqty.toString().getRound(shalf, "HALF_UP");
- ds_main_gnrldish.setColumn(i, "totalqty", parseFloat(totalqty));
- ds_main_gnrldish.setColumn(i, "h_foodqty", parseFloat(i_foodqty));
- }
- //식수가 수정된 경우
- else if ( i_psnno != i_hpsnno ) {
- for (var k = i; k < ds_main_gnrldish.rowcount; k++) {
- var k_foodqty = ds_main_gnrldish.getColumn(k, "foodqty");
- var k_plceordexchbase = ds_main_gnrldish.getColumn(k, "plceordexchbase");
- totalqty = parseFloat(k_foodqty) * parseInt(i_psnno) / parseFloat(k_plceordexchbase);
- totalqty = totalqty.toString().getRound(shalf, "HALF_UP");
-
- ds_main_gnrldish.setColumn(k, "totalqty", parseFloat(totalqty));
- ds_main_gnrldish.setColumn(k, "h_foodqty", parseFloat(k_foodqty));
- ds_main_gnrldish.setColumn(k, "psnno1", parseInt(i_psnno));
- ds_main_gnrldish.setColumn(k, "h_psnno1", parseInt(i_psnno));
-
- var dishtableflag = ds_main_gnrldish.getColumn(k, "dishtableflag");
- var dishcd = ds_main_gnrldish.getColumn(k, "dishcd");
- var dishtableflag2 = ds_main_gnrldish.getColumn(eval(k) + 1, "dishtableflag");
- var dishcd2 = ds_main_gnrldish.getColumn(eval(k) + 1, "dishcd");
-
- if ( (dishtableflag != dishtableflag2) || (dishcd != dishcd2) ) {
- break;
- }
- }
- }
- }
- }
- function ds_main_gnrldish_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
- {
- var dishtableflag = ds_main_gnrldish.getColumn(ds_main_gnrldish.rowposition, "dishtableflag");
- var dishcd = ds_main_gnrldish.getColumn(ds_main_gnrldish.rowposition, "dishcd");
-
- if( e.columnid == "dishrem" ){
- var dishrem = ds_main_gnrldish.getColumn(ds_main_gnrldish.rowposition, "dishrem");
-
- for (var k = ds_main_gnrldish.rowposition-1; k >= 0; k--) {
- var dishtableflag2 = ds_main_gnrldish.getColumn(eval(k), "dishtableflag");
- var dishcd2 = ds_main_gnrldish.getColumn(eval(k), "dishcd");
- if ( (dishtableflag != dishtableflag2) || (dishcd != dishcd2) ) {
- break;
- } else {
- ds_main_gnrldish.setColumn(eval(k), "dishrem", dishrem);
- }
- }
-
- for (var k = ds_main_gnrldish.rowposition+1; k < ds_main_gnrldish.rowcount; k++) {
- var dishtableflag2 = ds_main_gnrldish.getColumn(eval(k), "dishtableflag");
- var dishcd2 = ds_main_gnrldish.getColumn(eval(k), "dishcd");
- if ( (dishtableflag != dishtableflag2) || (dishcd != dishcd2) ) {
- break;
- } else {
- ds_main_gnrldish.setColumn(eval(k), "dishrem", dishrem);
- }
- }
- }else if( e.columnid == "psnno1" ){
- var psnno1 = ds_main_gnrldish.getColumn(ds_main_gnrldish.rowposition, "psnno1");
-
- for (var k = ds_main_gnrldish.rowposition-1; k >= 0; k--) {
- var dishtableflag2 = ds_main_gnrldish.getColumn(eval(k), "dishtableflag");
- var dishcd2 = ds_main_gnrldish.getColumn(eval(k), "dishcd");
- if ( (dishtableflag != dishtableflag2) || (dishcd != dishcd2) ) {
- break;
- } else {
- ds_main_gnrldish.setColumn(eval(k), "psnno1", psnno1);
- }
- }
-
- for (var k = ds_main_gnrldish.rowposition+1; k < ds_main_gnrldish.rowcount; k++) {
- var dishtableflag2 = ds_main_gnrldish.getColumn(eval(k), "dishtableflag");
- var dishcd2 = ds_main_gnrldish.getColumn(eval(k), "dishcd");
- if ( (dishtableflag != dishtableflag2) || (dishcd != dishcd2) ) {
- break;
- } else {
- ds_main_gnrldish.setColumn(eval(k), "psnno1", psnno1);
- }
- }
- }
- }
- function switch2_case2_btn_recalc2_onclick(obj:Button, e:ClickEventInfo)
- {
- var shalf = ds_init_baseinfo_inithalf_A170.getColumn(0, "cdid");
- shalf = (parseInt(shalf) * -1) - 1;
- for (var i = 0; i < ds_main_gnrlfood.rowcount; i++) {
- var foodqty = ds_main_gnrlfood.getColumn(i, "foodqty");
- var hfoodqty = ds_main_gnrlfood.getColumn(i, "h_foodqty");
- var psnno1 = ds_main_gnrlfood.getColumn(i, "psnno1");
- var hpsnno1 = ds_main_gnrlfood.getColumn(i, "h_psnno1");
- var plceordexchbase = ds_main_gnrlfood.getColumn(i, "plceordexchbase");
- if ( (foodqty != hfoodqty) || (psnno1 != hpsnno1) ) {
- var totalqty = parseFloat(foodqty) * parseInt(psnno1) / parseFloat(plceordexchbase);
- //totalqty = totalqty.toString().getRound(-2, "HALF_UP");
- totalqty = totalqty.toString().getRound(shalf, "HALF_UP");
- ds_main_gnrlfood.setColumn(i, "totalqty", parseFloat(totalqty));
- ds_main_gnrlfood.setColumn(i, "h_foodqty", parseFloat(foodqty));
- ds_main_gnrlfood.setColumn(i, "h_psnno1", parseInt(psnno1));
- }
- }
- }
- function ds_main_curedish_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
- {
- // 현재 선택된 그리드의 행을 지정
- var s = ds_main_curedish.rowposition;
- // alert("선택된 그리드 행 인덱스 : "+ s);
-
- // 비교조건에 사용하기 위한 그룹핑용 기준코드 값 가져오기
- var dishtableflag = ds_main_curedish.getColumn(s, "dishtableflag");
- var dishcd = ds_main_curedish.getColumn(s, "dishcd");
-
- // var dishnm = model.getValue("/root/main/curedish[" + (s-1) + "]/dishnm");
- // var foodnm = model.getValue("/root/main/curedish[" + (s-1) + "]/foodnm");
- // alert("dishtableflag : " + dishtableflag);
- // alert("dishcd : " + dishcd);
- // alert("dishnm : " + dishnm);
- // alert("foodnm : " + foodnm);
- var t_psnno1 = ds_main_curedish.getColumn(s, "psnno1");
- // alert("psnno1 : " + h_psnno1);
- var t_psnno2 = ds_main_curedish.getColumn(s, "psnno2");
- var t_psnno3 = ds_main_curedish.getColumn(s, "psnno3");
- var t_dishrem = ds_main_curedish.getColumn(s, "dishrem");
- for ( k=ds_main_curedish.rowposition-1; k>=0; k--) {
- var dishtableflag2 = ds_main_curedish.getColumn(k, "dishtableflag");
- var dishcd2 = ds_main_curedish.getColumn(k, "dishcd");
-
- if ( (dishtableflag != dishtableflag2) || (dishcd != dishcd2) ) {
- break;
- } else {
- // 실제 인스턴스 값
- ds_main_curedish.setColumn(k, "psnno1", t_psnno1);
- ds_main_curedish.setColumn(k, "psnno2", t_psnno2);
- ds_main_curedish.setColumn(k, "psnno3", t_psnno3);
- // 히든으로
- ds_main_curedish.setColumn(k, "h_psnno1", t_psnno1);
- ds_main_curedish.setColumn(k, "h_psnno2", t_psnno2);
- ds_main_curedish.setColumn(k, "h_psnno3", t_psnno3);
-
- ds_main_curedish.setColumn(k, "dishrem", t_dishrem);
- }
- }
-
- for ( k=ds_main_curedish.rowposition+1; k<ds_main_curedish.rowcount; k++) {
- var dishtableflag2 = ds_main_curedish.getColumn(k, "dishtableflag");
- var dishcd2 = ds_main_curedish.getColumn(k, "dishcd");
-
- if ( (dishtableflag != dishtableflag2) || (dishcd != dishcd2) ) {
- break;
- } else {
- // 실제 인스턴스 값
- ds_main_curedish.setColumn(k, "psnno1", t_psnno1);
- ds_main_curedish.setColumn(k, "psnno2", t_psnno2);
- ds_main_curedish.setColumn(k, "psnno3", t_psnno3);
- // 히든으로
- ds_main_curedish.setColumn(k, "h_psnno1", t_psnno1);
- ds_main_curedish.setColumn(k, "h_psnno2", t_psnno2);
- ds_main_curedish.setColumn(k, "h_psnno3", t_psnno3);
-
- ds_main_curedish.setColumn(k, "dishrem", t_dishrem);
- }
- }
- }
- function switch2_case3_btn_recalc3_onclick(obj:Button, e:ClickEventInfo)
- {
- var shalf = ds_init_baseinfo_inithalf_A170.getColumn(0, "cdid");
- shalf = (parseInt(shalf) * -1) - 1;
-
- for (var i = 0; i < ds_main_curedish.rowcount; i++) {
- var i_foodqty = ds_main_curedish.getColumn(i, "foodqty");
- var i_hfoodqty = ds_main_curedish.getColumn(i, "h_foodqty");
- var i_psnno1 = ds_main_curedish.getColumn(i, "psnno1");
- var i_hpsnno1 = ds_main_curedish.getColumn(i, "h_psnno1");
- var i_psnno2 = ds_main_curedish.getColumn(i, "psnno2");
- var i_hpsnno2 = ds_main_curedish.getColumn(i, "h_psnno2");
- var i_psnno3 = ds_main_curedish.getColumn(i, "psnno3");
- var i_hpsnno3 = ds_main_curedish.getColumn(i, "h_psnno3");
- var totalqty;
- //1인량만 수정된 경우
- if ( (i_foodqty != i_hfoodqty) && (i_psnno1 == i_hpsnno1) && (i_psnno2 == i_hpsnno2) && (i_psnno3 == i_hpsnno3) ) {
- if ( utlf_isNull(i_psnno1) ) { i_psnno1 = 0; }
- if ( utlf_isNull(i_psnno2) ) { i_psnno2 = 0; }
- if ( utlf_isNull(i_psnno3) ) { i_psnno3 = 0; }
- var i_plceordexchbase = ds_main_curedish.getColumn(i, "plceordexchbase");
- totalqty = parseFloat(i_foodqty) * (parseInt(i_psnno1)+parseInt(i_psnno2)+parseInt(i_psnno3)) / parseFloat(i_plceordexchbase);
- totalqty = totalqty.toString().getRound(shalf, "HALF_UP");
- ds_main_curedish.setColumn(i, "totalqty", parseFloat(totalqty));
- ds_main_curedish.setColumn(i, "h_foodqty", parseFloat(i_foodqty));
- }
- //식수가 수정된 경우
- else if ( (i_psnno1 != i_hpsnno1) || (i_psnno2 != i_hpsnno2) || (i_psnno3 != i_hpsnno3) ) {
- for (var k = i; k < ds_main_curedish.rowcount; k++) {
- if ( utlf_isNull(i_psnno1) ) { i_psnno1 = 0; }
- if ( utlf_isNull(i_psnno2) ) { i_psnno2 = 0; }
- if ( utlf_isNull(i_psnno3) ) { i_psnno3 = 0; }
- var k_foodqty = ds_main_curedish.getColumn(k, "foodqty");
- var k_plceordexchbase = ds_main_curedish.getColumn(k, "plceordexchbase");
- totalqty = parseFloat(k_foodqty) * (parseInt(i_psnno1)+parseInt(i_psnno2)+parseInt(i_psnno3)) / parseFloat(k_plceordexchbase);
- totalqty = totalqty.toString().getRound(shalf, "HALF_UP");
- ds_main_curedish.setColumn(k, "totalqty", parseFloat(totalqty));
- ds_main_curedish.setColumn(k, "h_foodqty", parseFloat(k_foodqty));
- ds_main_curedish.setColumn(k, "psnno1", parseInt(i_psnno1));
- ds_main_curedish.setColumn(k, "h_psnno1", parseInt(i_psnno1));
- ds_main_curedish.setColumn(k, "psnno2", parseInt(i_psnno2));
- ds_main_curedish.setColumn(k, "h_psnno2", parseInt(i_psnno2));
- ds_main_curedish.setColumn(k, "psnno3", parseInt(i_psnno3));
- ds_main_curedish.setColumn(k, "h_psnno3", parseInt(i_psnno3));
-
- var dishtableflag = ds_main_curedish.getColumn(k, "dishtableflag");
- var dishcd = ds_main_curedish.getColumn(k, "dishcd");
- var dishtableflag2 = ds_main_curedish.getColumn(eval(k) + 1, "dishtableflag");
- var dishcd2 = ds_main_curedish.getColumn(eval(k) + 1, "dishcd");
-
- if ( (dishtableflag != dishtableflag2) || (dishcd != dishcd2) ) {
- break;
- }
- }
- }
- }
- }
- function switch2_case4_btn_recalc4_onclick(obj:Button, e:ClickEventInfo)
- {
- for (var i = 0; i < ds_main_curefood.rowcount; i++) {
- var foodqty = ds_main_curefood.getColumn(i, "foodqty");
- var hfoodqty = ds_main_curefood.getColumn(i, "h_foodqty");
- var psnno1 = ds_main_curefood.getColumn(i, "psnno1");
- var hpsnno1 = ds_main_curefood.getColumn(i, "h_psnno1");
- var psnno2 = ds_main_curefood.getColumn(i, "psnno2");
- var hpsnno2 = ds_main_curefood.getColumn(i, "h_psnno2");
- var psnno3 = ds_main_curefood.getColumn(i, "psnno3");
- var hpsnno3 = ds_main_curefood.getColumn(i, "h_psnno3");
- var plceordexchbase = ds_main_curefood.getColumn(i, "plceordexchbase");
- if ( (foodqty != hfoodqty) || (psnno1 != hpsnno1) || (psnno2 != hpsnno2) || (psnno3 != hpsnno3) ) {
- if ( utlf_isNull(psnno1) ) { psnno1 = 0; }
- if ( utlf_isNull(psnno2) ) { psnno2 = 0; }
- if ( utlf_isNull(psnno3) ) { psnno3 = 0; }
- var totalqty = parseFloat(foodqty) * (parseInt(psnno1) + parseInt(psnno2) + parseInt(psnno3)) / parseFloat(plceordexchbase);
- totalqty = totalqty.toString().getRound(-2, "HALF_UP");
- ds_main_curefood.setColumn(i, "totalqty", parseFloat(totalqty));
- ds_main_curefood.setColumn(i, "h_foodqty", parseFloat(foodqty));
- ds_main_curefood.setColumn(i, "h_psnno1", parseInt(psnno1));
- ds_main_curefood.setColumn(i, "h_psnno2", parseInt(psnno2));
- ds_main_curefood.setColumn(i, "h_psnno3", parseInt(psnno3));
- }
- }
- }
- var enterrow = 0;
- var bolgubun = false;
- function switch2_case3_grd_curedish_onkeydown(obj:Grid, e:KeyEventInfo)
- {
- if(e.keycode == 13){
- enterrow = ds_main_curedish.rowposition;
- obj.showEditor(false);
- }else if( e.keycode == 40 && (obj.getCellPos() == 13 || obj.getCellPos() == 16 || obj.getCellPos() == 19 || obj.getCellPos() == 23) ){
- var dishtableflag = ds_main_curedish.getColumn(ds_main_curedish.rowposition, "dishtableflag");
- var dishcd = ds_main_curedish.getColumn(ds_main_curedish.rowposition, "dishcd");
-
- for (var k = ds_main_curedish.rowposition+1; k < ds_main_curedish.rowcount; k++) {
- var dishtableflag2 = ds_main_curedish.getColumn(eval(k), "dishtableflag");
- var dishcd2 = ds_main_curedish.getColumn(eval(k), "dishcd");
- if ( (dishtableflag != dishtableflag2) || (dishcd != dishcd2) ) {
- ds_main_curedish.rowposition = k-1;
- break;
- } else {
- continue;
- }
- }
- }else if( e.keycode == 38 && (obj.getCellPos() == 13 || obj.getCellPos() == 16 || obj.getCellPos() == 19 || obj.getCellPos() == 23) ){
- var dishtableflag = ds_main_curedish.getColumn(ds_main_curedish.rowposition, "dishtableflag");
- var dishcd = ds_main_curedish.getColumn(ds_main_curedish.rowposition, "dishcd");
-
- for (var k = ds_main_curedish.rowposition-1; k >= 0; k--) {
- var dishtableflag2 = ds_main_curedish.getColumn(eval(k), "dishtableflag");
- var dishcd2 = ds_main_curedish.getColumn(eval(k), "dishcd");
- if ( (dishtableflag != dishtableflag2) || (dishcd != dishcd2) ) {
- ds_main_curedish.rowposition = k+1;
- break;
- } else {
- continue;
- }
- }
- }//dishrem
- }
- var row40;
- function switch2_case1_grd_gnrldish_onkeydown(obj:Grid, e:KeyEventInfo)
- {
- if(e.keycode == 13){
- obj.showEditor(false);
- }else if( e.keycode == 40 && (obj.getCellPos() == 13 || obj.getCellPos() == 17) ){
- var dishtableflag = ds_main_gnrldish.getColumn(ds_main_gnrldish.rowposition, "dishtableflag");
- var dishcd = ds_main_gnrldish.getColumn(ds_main_gnrldish.rowposition, "dishcd");
-
- for (var k = ds_main_gnrldish.rowposition+1; k < ds_main_gnrldish.rowcount; k++) {
- var dishtableflag2 = ds_main_gnrldish.getColumn(eval(k), "dishtableflag");
- var dishcd2 = ds_main_gnrldish.getColumn(eval(k), "dishcd");
- if ( (dishtableflag != dishtableflag2) || (dishcd != dishcd2) ) {
- ds_main_gnrldish.rowposition = k-1;
- break;
- } else {
- continue;
- }
- }
- }else if( e.keycode == 38 && (obj.getCellPos() == 13 || obj.getCellPos() == 17) ){
- var dishtableflag = ds_main_gnrldish.getColumn(ds_main_gnrldish.rowposition, "dishtableflag");
- var dishcd = ds_main_gnrldish.getColumn(ds_main_gnrldish.rowposition, "dishcd");
-
- for (var k = ds_main_gnrldish.rowposition-1; k >= 0; k--) {
- var dishtableflag2 = ds_main_gnrldish.getColumn(eval(k), "dishtableflag");
- var dishcd2 = ds_main_gnrldish.getColumn(eval(k), "dishcd");
- if ( (dishtableflag != dishtableflag2) || (dishcd != dishcd2) ) {
- ds_main_gnrldish.rowposition = k+1;
- break;
- } else {
- continue;
- }
- }
- }
- }
- function switch2_case2_grd_gnrlfood_onkeydown(obj:Grid, e:KeyEventInfo)
- {
- if(e.keycode == 13){
- obj.showEditor(false);
- }
- }
- function switch2_case4_grd_curefood_onkeydown(obj:Grid, e:KeyEventInfo)
- {
- if(e.keycode == 13){
- obj.showEditor(false);
- }
- }
- function btn_reset_onclick(obj:Button, e:ClickEventInfo)
- {
- finit();
- }
- function btn_save_onclick(obj:Button, e:ClickEventInfo)
- {
- var appdd = ds_send_searchitem.getColumn(0, "appdd");
- var menu = grp_sea.rdo_menuflag.text;
- var meal = grp_sea.cmb_mealflag.text;
- var yy = utlf_transNullToEmpty(appdd).substr(0,4);
- var mm = utlf_transNullToEmpty(appdd).substr(4,2);
- var dd = utlf_transNullToEmpty(appdd).substr(6,2);
-
- if ( ds_main_gnrldish.rowcount > 0 || ds_main_curedish.rowcount > 0 ) {
- //if ( messageBox("", "Q002") == 6 ) {
- if ( sysf_messageBox(menu+" "+mm+"월 "+dd+"일 "+meal+" 급식실천표를", "Q002") == 6 ) {
-
- var appdd = ds_send_searchitem.getColumn(0, "appdd");
-
- //일반식일 경우
- if ( ds_send_searchitem.getColumn(0, "menuflag")=='Q1' ) {
- //필수입력항목 체크
- for (var i = 0; i < ds_main_gnrldish.rowcount; i++) {
- if ( (utlf_isNull(ds_main_gnrldish.getColumn(i, "foodqty"))) ||
- (utlf_isNull(ds_main_gnrldish.getColumn(i, "psnno1"))) ||
- (utlf_isNull(ds_main_gnrldish.getColumn(i, "psnnor1"))) ||
- (utlf_isNull(ds_main_gnrldish.getColumn(i, "totalqty"))) ) {
- sysf_messageBox("1인량,식수,발주량 항목은", "I003");
- return;
- }
- //저장할 날짜를 급식실천표일자로 setting
- ds_main_gnrldish.setColumn(i, "appdd", appdd);
- }
- var updateData = grdf_getGridUpdateData(switch2.case1.grd_gnrldish);
- ds_send_req_dish.copyData(updateData, true);
- }
- //치료식일 경우
- else if ( ds_send_searchitem.getColumn(0, "menuflag") == 'Q2' ) {
- //필수입력항목 체크
- for (var i = 0; i < ds_main_curedish.rowcount; i++) {
- if ( (utlf_isNull(ds_main_curedish.getColumn(i, "foodqty"))) ||
- ( (utlf_isNull(ds_main_curedish.getColumn(i, "psnno1"))) &&
- (utlf_isNull(ds_main_curedish.getColumn(i, "psnno2"))) &&
- (utlf_isNull(ds_main_curedish.getColumn(i, "psnno3"))) ) ||
- ( (utlf_isNull(ds_main_curedish.getColumn(i, "psnnor1"))) &&
- (utlf_isNull(ds_main_curedish.getColumn(i, "psnnor2"))) &&
- (utlf_isNull(ds_main_curedish.getColumn(i, "psnnor3"))) ) ||
- (utlf_isNull(ds_main_curedish.getColumn(i, "totalqty"))) ) {
- sysf_messageBox("1인량,염분기준식수,발주량 항목은", "I003");
- return;
- }
- //저장할 날짜를 급식실천표일자로 setting
- ds_main_curedish.setColumn(i, "appdd", appdd);
- }
- var updateData = grdf_getGridUpdateData(switch2.case3.grd_curedish);
- ds_send_req_dish.clearData();
- ds_send_req_dish.copyData(updateData, true);
- }
-
- // 데이터 존재여부 체크
- var oParam = {};
- oParam.id = "TRANT01602";
- oParam.service = "dietsumapp.DietSum";
- oParam.method = "reqGetDietTableCnt";
- oParam.inds = "req=ds_send_searchitem";
- oParam.outds = "ds_temp_ret=ret";
- oParam.async = false;
- tranf_submit(oParam);
- dsf_makeValue(ds_send_req, "savemealflag", "string", grp_sea.cmb_mealflag.value);
-
- if ( ds_temp_ret.getColumn(0, "count") > 0 ) {
- if ( sysf_messageBox("데이터가 이미 존재합니다. 다시", "Q002") == 6 ) {
- var oParam = {};
- oParam.id = "TXANT01601";
- oParam.service = "dietsumapp.DietSum";
- oParam.method = "reqExeDietTable";
- oParam.inds = "req=ds_send_req_dish savemeal=ds_send_req";
- oParam.outds = "";
- oParam.async = false;
- tranf_submit(oParam);
- grp_sea_btn_search_onclick();//저장후 재조회
- } else { return; }
- } else {
- var oParam = {};
- oParam.id = "TXANT01601";
- oParam.service = "dietsumapp.DietSum";
- oParam.method = "reqExeDietTable";
- oParam.inds = "req=ds_send_req_dish savemeal=ds_send_req";
- oParam.outds = "";
- oParam.async = false;
- tranf_submit(oParam);
- grp_sea_btn_search_onclick();//저장후 재조회
- }
- } else { return; }
- } else {
- sysf_messageBox("저장할 데이터가", "I004");
- return;
- }
- }
- function btn_print_onclick(obj:Button, e:ClickEventInfo)
- {
- var appdd = ds_send_searchitem.getColumn(0, "appdd");
- var menu = grp_sea.rdo_menuflag.text;
- var meal = grp_sea.cmb_mealflag.text;
- var yy = utlf_transNullToEmpty(appdd).substr(0,4);
- var mm = utlf_transNullToEmpty(appdd).substr(4,2);
- var dd = utlf_transNullToEmpty(appdd).substr(6,2);
- var dw = utlf_getDateTime(appdd.toDate(), 'W');
- //식단별 탭화면일때
- if ( switch2.tabindex == 0 || switch2.tabindex == 2 ) {
- if ( ds_main_gnrldish.rowcount > 0 || ds_main_curedish.rowcount > 0 ) {
- if ( sysf_messageBox(menu+" "+dd+"일 "+meal+" 입니다.", "Q003") == 6 ) {
- if ( ds_main_gnrldish.rowcount > 0 ) { //일반식일 경우
- //분류항목 코드를 코드명으로 전환
- ds_main_gnrldish.addColumn("dishtablenm", "string");
- for (var i = 0; i < ds_main_gnrldish.rowcount; i++ ) {
- var dishtableflag = ds_main_gnrldish.getColumn(i, "dishtableflag");
- var dishtablenm = ds_init_basecode_diettable_A0417.lookup("cdid", dishtableflag, "cdnm");
- ds_main_gnrldish.setColumn(i, "dishtablenm", dishtablenm);
- }
-
- ds_main_gnrldish.addColumn("menu", "string");
- ds_main_gnrldish.setColumn(0, "menu", menu);
- //model.makeNode("/root/main/dish[1]/mealflag");
- ds_main_gnrldish.setColumn(0, "mealflag", meal);
- //model.makeNode("/root/main/dish[1]/appdd");
- ds_main_gnrldish.setColumn(0, "appdd", yy+"년 "+mm+"월 "+dd+"일 "+dw+"요일");
-
- var objDOM = rptf_createDOM();
- rptf_setNodeListToDOM(objDOM, "root/main/gnrldish", ds_main_gnrldish); // 데이터셋 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(["RPANT01601"],[objParam], option);
-
- }
- else if ( ds_main_curedish.rowcount > 0 ) { //치료식일 경우
- //분류항목 코드를 코드명으로 전환
- ds_main_curedish.addColumn("dishtablenm", "string");
- ds_main_curedish.addColumn("dishtablenm", "menu");
- for (var i = 0; i < ds_main_curedish.rowcount; i++ ) {
- var dishtableflag = ds_main_curedish.getColumn(i, "dishtableflag");
- var dishtablenm = ds_init_basecode_diettable_A0417.lookup("cdid", dishtableflag, "cdnm");
- ds_main_curedish.setColumn(i, "dishtablenm", dishtablenm);
- }
-
- ds_main_curedish.addColumn("menu", "string");
- ds_main_curedish.setColumn(0, "menu", menu);
- ds_main_curedish.setColumn(0, "mealflag", meal);
- ds_main_curedish.setColumn(0, "appdd", yy+"년 "+mm+"월 "+dd+"일 "+dw+"요일");
-
- var objDOM = rptf_createDOM();
- rptf_setNodeListToDOM(objDOM, "root/main/curedish", ds_main_curedish); // 데이터셋 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(["RPANT01603"],[objParam], option);
-
- }
- } else { return; }
- } else {
- sysf_messageBox("출력할 데이터가", "I004")
- return;
- }
- }
- //식품(재료)별 탭화면일때
- else if ( switch2.tabindex == 1 || switch2.tabindex == 3 ) {
- if ( ds_main_gnrlfood.rowcount > 0 || ds_main_curefood.rowcount > 0 ) {
- if ( sysf_messageBox(menu+" "+dd+"일 "+meal+" 입니다.", "Q003") == 6 ) {
- if ( ds_main_gnrlfood.rowcount > 0 ) { //일반식일 경우
- ds_main_gnrlfood.addColumn("menu", "string");
- ds_main_gnrlfood.setColumn(0, "menu", menu);
- ds_main_gnrlfood.setColumn(0, "mealflag", meal);
- ds_main_gnrlfood.setColumn(0, "appdd", yy+"년 "+mm+"월 "+dd+"일 "+dw+"요일");
-
- var objDOM = rptf_createDOM();
- rptf_setNodeListToDOM(objDOM, "root/main/gnrlfood", ds_main_gnrlfood); // 데이터셋 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(["RPANT01602"],[objParam], option);
- }
- else if ( grd_curefood.rows-2 > 0 ) { //치료식일 경우
-
- ds_main_curefood.addColumn("menu", "string");
- ds_main_curefood.setColumn(0, "menu", menu);
- ds_main_curefood.setColumn(0, "mealflag", meal);
- ds_main_curefood.setColumn(0, "appdd", yy+"년 "+mm+"월 "+dd+"일 "+dw+"요일");
-
- var objDOM = rptf_createDOM();
- rptf_setNodeListToDOM(objDOM, "root/main/curefood", ds_main_curefood); // 데이터셋 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(["RPANT01604"],[objParam], option);
-
- }
-
- } else { return; }
- } else {
- sysf_messageBox("출력할 데이터가", "I004")
- return;
- }
- }
- }
- function switch2_onchanged(obj:Tab, e:TabIndexChangeEventInfo)
- {
- switch( e.postindex ){
- case 0 :
- case 2 :
- btn_dish.setSelectStatus(true);
- btn_food.setSelectStatus(false);
- break;
-
- case 1 :
- case 3 :
- btn_dish.setSelectStatus(false);
- btn_food.setSelectStatus(true);
- break;
-
- default :
- break;
- }
- }
- ]]></Script>
- </Form>
- </FDL>
|