123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMANT00900" position="absolute 0 0 1201 786" titletext="선택식/개별관리" oninit="SMANT00900_oninit" onload="SMANT00900_onload">
- <Layouts>
- <Layout>
- <Div position="absolute 0 24 1194 59" align="align:center top;" id="group4" class="div_SA">
- <Layouts>
- <Layout>
- <Static text="일자 :" position="absolute 35 9 95 26" id="caption5" class="search_name" anchor="default"/>
- <Calendar position="absolute 99 8 199 27" id="ipt_fromdd" class="input_s_essential" anchor="default" autoselect="true"/>
- <Calendar position="absolute 219 8 319 27" id="ipt_todd" class="input_s_essential" anchor="default" autoselect="true"/>
- <Static text="~" position="absolute 202 8 214 25" id="caption11" class="search_n_b" anchor="default"/>
- <Button position="absolute 1129 7 1185 29" id="btn_search2" class="btn1" text="조회" anchor="default" onclick="group4_btn_search2_onclick"/>
- <Shape position="absolute 1116 8 1122 28" linetype="vertical" id="line2" anchor="default"/>
- </Layout>
- </Layouts>
- </Div>
- <Div position="absolute 0 24 1194 59" align="align:center top;" id="group5" class="div_SA">
- <Layouts>
- <Layout>
- <Static text="일자 :" position="absolute 15 9 75 26" id="caption7" class="search_name" anchor="default"/>
- <Calendar position="absolute 79 8 179 27" id="ipt_appdd" class="input_s_essential" anchor="default" autoselect="true"/>
- <Button position="absolute 183 10 196 25" id="btn_before2" class="icon_pre" text="" anchor="default" onclick="group5_btn_before2_onclick"/>
- <Button position="absolute 196 10 209 25" id="btn_next2" class="icon_next" text="" anchor="default" onclick="group5_btn_next2_onclick"/>
- <Button position="absolute 1129 7 1185 29" id="btn_search3" class="btn1" text="조회" anchor="default" onclick="group5_btn_search3_onclick"/>
- <Shape position="absolute 1116 8 1122 28" linetype="vertical" id="line3" anchor="default"/>
- </Layout>
- </Layouts>
- </Div>
- <Div position="absolute 0 25 1194 60" align="align:center top;" id="group2" visible="true" class="div_SA">
- <Layouts>
- <Layout>
- <Static text="일자 :" position="absolute 10 9 70 26" id="caption1" class="search_name" anchor="default"/>
- <Calendar position="absolute 74 8 169 27" id="ipt_prcpdd" class="input_s_essential" anchor="default" autoselect="true"/>
- <Button position="absolute 173 10 186 25" id="btn_before" class="icon_pre" text="" anchor="default" onclick="group2_btn_before_onclick"/>
- <Button position="absolute 186 10 199 25" id="btn_next" class="icon_next" text="" anchor="default" onclick="group2_btn_next_onclick"/>
- <Button position="absolute 1129 7 1185 29" id="btn_search" class="btn1" text="조회" anchor="default" onclick="group2_btn_search_onclick"/>
- <Shape position="absolute 1116 8 1122 28" linetype="vertical" id="line1" anchor="default"/>
- <Static text="병동 :" position="absolute 445 10 536 27" id="caption2" class="search_name" anchor="default"/>
- <Combo position="absolute 499 8 602 27" id="cmb_wardcd" class="combo_s_essential" innerdataset="@ds_init_basecode_ward_dept" datacolumn="depthngnm" codecolumn="deptcd" anchor="default" onitemchanged="group2_cmb_wardcd_onitemchanged"/>
- <Radio position="absolute 290 8 449 28" id="rdo_dietmeal" 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 230 10 295 27" id="caption3" class="search_name" anchor="default"/>
- <Static text="병실 :" position="absolute 621 9 685 26" id="caption4" class="search_name" anchor="default"/>
- <Combo position="absolute 677 8 757 27" id="cmb_roomcd" class="combo_search" innerdataset="@ds_init_basecode_room_room" datacolumn="cdnm" codecolumn="cdid" anchor="default"/>
- <Static text="등록번호/환자명 :" position="absolute 779 9 913 26" id="caption8" class="search_name" anchor="default"/>
- <Static text="/" position="absolute 976 9 1000 26" id="caption9" anchor="default"/>
- <MaskEdit position="absolute 905 8 975 27" id="ipt_pid" class="input_search" mask="9999999999" anchor="default" onkeydown="group2_ipt_pid_onkeydown" autoselect="true"/>
- <Edit position="absolute 985 8 1050 27" id="ipt_hngnm" class="input_search" anchor="default" onkeydown="group2_ipt_hngnm_onkeydown" autoselect="true"/>
- <Button position="absolute 1055 10 1071 26" id="btn_hngnm" class="icon_search" text="" anchor="default" onclick="group2_btn_hngnm_onclick"/>
- <Button id="btn_eraser" taborder="1" class="icon_eraser" position="absolute 1075 5 1101 31" tooltiptext="처방 입력자 초기화" onclick="group2_btn_eraser_onclick"/>
- </Layout>
- </Layouts>
- </Div>
- <Tab position="absolute 0 62 1194 762" id="switch1" onchanged="switch1_onchanged" class="tab_Normal" tabindex="1">
- <Tabpages>
- <Tabpage text="선택식관리" id="case1">
- <Layouts>
- <Layout>
- <Shape position="absolute 5 11 1188 17" linetype="horizontal" id="line5" class="line_10"/>
- <Grid position="absolute 5 16 1188 628" id="grd_choidiet" binddataset="ds_main_choimeal_choimeallist" oncelldblclick="switch1_case1_grd_choidiet_oncelldblclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="24"/>
- <Column size="70"/>
- <Column size="0"/>
- <Column size="70"/>
- <Column size="90"/>
- <Column size="90"/>
- <Column size="74"/>
- <Column size="40"/>
- <Column size="180"/>
- <Column size="280"/>
- <Column size="280"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- </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="SBS"/>
- <Cell col="8" text="식사명"/>
- <Cell col="9" text="특이사항"/>
- <Cell col="10" text="Remark"/>
- <Cell col="11" text="처방일자"/>
- <Cell col="12" text="끼니"/>
- <Cell col="13" text="등록수정여부"/>
- <Cell col="14" text="코드"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" expr="currow + 1"/>
- <Cell col="1" text="bind:bfroom"/>
- <Cell col="2" text="bind:ward"/>
- <Cell col="3" text="bind:room"/>
- <Cell col="4" text="bind:pid"/>
- <Cell col="5" text="bind:hngnm"/>
- <Cell col="6" displaytype="checkbox" edittype="checkbox" text="bind:chk" expr="expr:chk == 'Y' || chk == '1' ? '1' : '0'"/>
- <Cell col="7" text="bind:gubun"/>
- <Cell col="8" text="bind:dietnm"/>
- <Cell col="9" text="bind:remfactnm"/>
- <Cell col="10" text="bind:remark"/>
- <Cell col="11" text="bind:prcpdd"/>
- <Cell col="12" text="bind:dietmeal"/>
- <Cell col="13" text="bind:iuflag"/>
- <Cell col="14" text="bind:dietcd"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static text="선택식 건수" position="absolute 1005 639 1084 662" align="align:center middle;" id="caption13" class="cell_1"/>
- <Shape position="absolute 1005 634 1188 640" linetype="horizontal" id="line4" class="line_10"/>
- <Shape position="absolute 1005 660 1188 666" linetype="horizontal" id="line6" class="line_3"/>
- <Edit readonly="true" position="absolute 1088 640 1188 659" align="align:center middle;" id="opt_count" class="output"/>
- </Layout>
- </Layouts>
- </Tabpage>
- <Tabpage text="선택식통계" id="case2">
- <Layouts>
- <Layout>
- <Grid position="absolute 5 16 1188 665" align="align:center middle;" id="grd_choidietstats" binddataset="ds_main_choimealstats_choimealstatslist">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="24"/>
- <Column size="110"/>
- <Column size="150"/>
- <Column size="100"/>
- <Column size="150"/>
- <Column size="100"/>
- <Column size="150"/>
- <Column size="100"/>
- </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="선택식수"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" expr="currow + 1"/>
- <Cell col="1" displaytype="date" text="bind:prcpdd" calendardisplaynulltype="none"/>
- <Cell col="2" displaytype="text" edittype="text" text="bind:breakmealnm"/>
- <Cell col="3" text="bind:breakmealcnt"/>
- <Cell col="4" displaytype="text" edittype="text" text="bind:lunchmealnm"/>
- <Cell col="5" text="bind:lunchmealcnt"/>
- <Cell col="6" displaytype="text" edittype="text" text="bind:dinnermealnm"/>
- <Cell col="7" text="bind:dinnermealcnt"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Shape position="absolute 5 11 1188 17" linetype="horizontal" id="line7" class="line_10"/>
- </Layout>
- </Layouts>
- </Tabpage>
- <Tabpage text="선택식안내문" id="case4">
- <Layouts>
- <Layout>
- <Grid position="absolute 5 16 1188 666" align="align:center middle;" id="grd_choimealguideflag" binddataset="ds_main_choimealguidedocu_fixcol">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="170"/>
- <Column size="170"/>
- <Column size="170"/>
- <Column size="170"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell text="아 침"/>
- <Cell col="1" text="아 침"/>
- <Cell col="2" text="점 심"/>
- <Cell col="3" text="점 심"/>
- <Cell row="1" text="식단 ①"/>
- <Cell row="1" col="1" text="식단 ②"/>
- <Cell row="1" col="2" text="식단 ①"/>
- <Cell row="1" col="3" text="식단 ②"/>
- </Band>
- <Band id="body">
- <Cell text="bind:fixcol1"/>
- <Cell col="1" text="bind:fixcol2"/>
- <Cell col="2" text="bind:fixcol3"/>
- <Cell col="3" text="bind:fixcol4"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Grid position="absolute 5 63 178 666" align="align:center middle;" id="grd_choimealguide1" binddataset="ds_main_choimealguidedocu_choimealguide1">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="170"/>
- </Columns>
- <Band id="head">
- <Cell text=""/>
- </Band>
- <Band id="body">
- <Cell text="bind:breakgnrldish" edittype="text" displaytype="text"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Grid position="absolute 175 63 346 666" align="align:center middle;" id="grd_choimealguide2" binddataset="ds_main_choimealguidedocu_choimealguide2">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="170"/>
- </Columns>
- <Band id="head">
- <Cell text=""/>
- </Band>
- <Band id="body">
- <Cell text="bind:breakchoidish" edittype="text" displaytype="text"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Grid position="absolute 345 63 516 666" align="align:center middle;" id="grd_choimealguide3" binddataset="ds_main_choimealguidedocu_choimealguide3">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="170"/>
- </Columns>
- <Band id="head">
- <Cell text=""/>
- </Band>
- <Band id="body">
- <Cell text="bind:lunchgnrldish" edittype="text" displaytype="text"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Grid position="absolute 515 63 685 666" align="align:center middle;" id="grd_choimealguide4" binddataset="ds_main_choimealguidedocu_choimealguide4">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="170"/>
- </Columns>
- <Band id="head">
- <Cell text=""/>
- </Band>
- <Band id="body">
- <Cell text="bind:lunchchoidish" edittype="text" displaytype="text"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Shape position="absolute 5 11 1188 17" linetype="horizontal" id="line8" class="line_10"/>
- <Button position="absolute 695 20 759 39" id="btn_gridadd" class="btn5" text="행추가" onclick="switch1_case4_btn_gridadd_onclick"/>
- </Layout>
- </Layouts>
- </Tabpage>
- <Tabpage text="개별식단환자관리" id="case3">
- <Layouts>
- <Layout>
- <Grid position="absolute 5 16 1188 649" id="grd_inddiet" binddataset="ds_main_indcase_indcaselist" tooltiptype="hover" tooltiptext="Remark1 또는 Remark2에 내용이 있고 적용 "V"면 간호 식이처방 변경시 동일차수 식사라도 변경불가 대상입니다">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="24"/>
- <Column size="110"/>
- <Column size="55"/>
- <Column size="70"/>
- <Column size="80"/>
- <Column size="80"/>
- <Column size="200"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="160"/>
- <Column size="80"/>
- <Column size="240"/>
- <Column size="59"/>
- </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="특이사항"/>
- <Cell col="11" text="Remark1"/>
- <Cell col="12" text="Remark2"/>
- <Cell col="13" text="적용"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" expr="currow + 1"/>
- <Cell col="1" style="align:left;" text="bind:ward"/>
- <Cell col="2" style="align:left;" text="bind:room"/>
- <Cell col="3" text="bind:pid"/>
- <Cell col="4" text="bind:hngnm"/>
- <Cell col="5" text="bind:sex"/>
- <Cell col="6" style="align:left;" text="bind:dietnm"/>
- <Cell col="7" style="align:left;" text="bind:prcpdd"/>
- <Cell col="8" style="align:left;" text="bind:dietmeal"/>
- <Cell col="9" style="align:left;" text="bind:iuflag"/>
- <Cell col="10" style="align:left;" text="bind:remfactnm"/>
- <Cell col="11" displaytype="combo" edittype="combo" text="bind:remark2" combodataset="ds_cbo_remark2" combocodecol="value" combodatacol="label"/>
- <Cell col="12" displaytype="text" edittype="text" text="bind:remark3"/>
- <Cell col="13" displaytype="checkbox" edittype="checkbox" text="bind:chk" expr="expr:chk == 'Y' || chk == '1' ? '1' : '0' "/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Shape position="absolute 5 11 1188 17" linetype="horizontal" id="line9" class="line_10"/>
- </Layout>
- </Layouts>
- </Tabpage>
- <Tabpage text="소아선택식" id="case5">
- <Layouts>
- <Layout>
- <Shape position="absolute 5 11 1188 17" linetype="horizontal" id="line10" class="line_10"/>
- <Grid position="absolute 5 16 1188 628" id="grd_childdiet" binddataset="ds_main_childmeal_childmeallist" oncelldblclick="switch1_case5_grd_childdiet_oncelldblclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="24"/>
- <Column size="70"/>
- <Column size="0"/>
- <Column size="70"/>
- <Column size="90"/>
- <Column size="90"/>
- <Column size="74"/>
- <Column size="40"/>
- <Column size="180"/>
- <Column size="280"/>
- <Column size="280"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- </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="SBS"/>
- <Cell col="8" text="식사명"/>
- <Cell col="9" text="특이사항"/>
- <Cell col="10" text="Remark"/>
- <Cell col="11" text="처방일자"/>
- <Cell col="12" text="끼니"/>
- <Cell col="13" text="등록수정여부"/>
- <Cell col="14" text="코드"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" expr="currow + 1"/>
- <Cell col="1" text="bind:bfroom"/>
- <Cell col="2" text="bind:ward"/>
- <Cell col="3" text="bind:room"/>
- <Cell col="4" text="bind:pid"/>
- <Cell col="5" text="bind:hngnm"/>
- <Cell col="6" displaytype="checkbox" edittype="checkbox" text="bind:chk" expr="expr:chk == 'Y' || chk == '1' ? '1' : '0'"/>
- <Cell col="7" text="bind:gubun"/>
- <Cell col="8" text="bind:dietnm"/>
- <Cell col="9" text="bind:remfactnm"/>
- <Cell col="10" text="bind:remark"/>
- <Cell col="11" text="bind:prcpdd"/>
- <Cell col="12" text="bind:dietmeal"/>
- <Cell col="13" text="bind:iuflag"/>
- <Cell col="14" text="bind:dietcd"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static text="선택식 건수" position="absolute 1005 639 1084 662" align="align:center middle;" id="caption10" class="cell_1"/>
- <Shape position="absolute 1005 634 1188 640" linetype="horizontal" id="line11" class="line_10"/>
- <Shape position="absolute 1005 661 1188 667" linetype="horizontal" id="line12" class="line_3"/>
- <Edit readonly="true" position="absolute 1088 640 1188 659" align="align:center middle;" id="output1" class="output"/>
- </Layout>
- </Layouts>
- </Tabpage>
- </Tabpages>
- </Tab>
- <Static id="caption6" text="선택식/개별관리" class="tit_1" position="absolute 0 0 146 25"/>
- <Button position="absolute 1143 65 1194 84" id="btn_excel" class="btn7" text="엑셀" onclick="btn_excel_onclick"/>
- <Button id="btn_print" taborder="1" text="선택식안내문출력" class="btn3" position="absolute 1 761 129 783" onclick="btn_print_onclick"/>
- <Button id="btn_save" taborder="2" text="저장" class="btn4" enable="false" position="absolute 1138 761 1194 783" onclick="btn_save_onclick"/>
- <Button id="btCase1" taborder="3" text="선택식관리" position="absolute 6 66 80 86" onclick="btCase1_onclick"/>
- <Button id="btCase5" taborder="4" text="소아선택식" position="absolute 82 66 156 86" onclick="btCase5_onclick"/>
- <Button id="btCase2" taborder="5" text="선택식통계" position="absolute 158 66 232 86" onclick="btCase2_onclick"/>
- <Button id="btCase4" taborder="6" text="선택식안내문" position="absolute 234 66 313 86" onclick="btCase4_onclick"/>
- <Button id="btCase3" taborder="7" text="개별식환자관리" position="absolute 315 66 413 86" onclick="btCase3_onclick"/>
- <Button id="btn_sbs" taborder="8" text="SBS일괄적용" position="absolute 1038 64 1138 84" onclick="btn_sbs_onclick"/>
- <Button id="btn_sbsCnt" taborder="9" text="SBS 건수" position="absolute 963 64 1033 84" onclick="btn_sbsCnt_onclick" visible="false"/>
- <Div id="Div00" taborder="10" text="Div00" position="absolute 834 99 1182 305" style="background:white;border:1 solid #808080ff ;" visible="false">
- <Layouts>
- <Layout>
- <Static id="caption1" text="SBS 건수" class="tit_2" position="absolute 5 4 160 22" anchor="default"/>
- <Shape id="line02" class="line_10" position="absolute 4 20 340 26" anchor="default"/>
- <Grid id="grd_rst_sbsinfo" taborder="1" binddataset="ds_rst_sbsinfo" position="absolute 5 25 341 147" anchor="default" autofittype="col">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="80"/>
- <Column size="80"/>
- <Column size="80"/>
- <Column size="80"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell text="병동"/>
- <Cell col="1" text="식사"/>
- <Cell col="2" text="구분"/>
- <Cell col="3" text="건수"/>
- </Band>
- <Band id="body">
- <Cell text="bind:wardcd"/>
- <Cell col="1" text="bind:dietmeal"/>
- <Cell col="2" text="bind:gubun"/>
- <Cell col="3" text="bind:cnt"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button id="btn_close" taborder="2" text="닫기" onclick="btn_close_onclick" class="btn4" position="absolute 145 162 201 184" anchor="default"/>
- </Layout>
- </Layouts>
- </Div>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_main_choimeal_choimeallist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_choimeal_choimeallist_oncolumnchanged">
- <ColumnInfo>
- <Column id="bfroom" type="STRING" size="256"/>
- <Column id="ward" type="STRING" size="256"/>
- <Column id="room" type="STRING" size="256"/>
- <Column id="pid" type="STRING" size="256"/>
- <Column id="hngnm" type="STRING" size="256"/>
- <Column id="dietnm" type="STRING" size="256"/>
- <Column id="remfactnm" type="STRING" size="256"/>
- <Column id="remark" type="STRING" size="256"/>
- <Column id="chk" type="STRING" size="256"/>
- <Column id="prcpdd" type="STRING" size="256"/>
- <Column id="dietmeal" type="STRING" size="256"/>
- <Column id="iuflag" type="STRING" size="256"/>
- <Column id="dietcd" type="STRING" size="256"/>
- <Column id="gubun" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_childmeal_childmeallist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_childmeal_childmeallist_oncolumnchanged">
- <ColumnInfo>
- <Column id="bfroom" type="STRING" size="256"/>
- <Column id="ward" type="STRING" size="256"/>
- <Column id="room" type="STRING" size="256"/>
- <Column id="pid" type="STRING" size="256"/>
- <Column id="hngnm" type="STRING" size="256"/>
- <Column id="dietnm" type="STRING" size="256"/>
- <Column id="remfactnm" type="STRING" size="256"/>
- <Column id="remark" type="STRING" size="256"/>
- <Column id="chk" type="STRING" size="256"/>
- <Column id="prcpdd" type="STRING" size="256"/>
- <Column id="dietmeal" type="STRING" size="256"/>
- <Column id="iuflag" type="STRING" size="256"/>
- <Column id="dietcd" type="STRING" size="256"/>
- <Column id="gubun" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_choimealstats_choimealstatslist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="prcpdd" type="STRING" size="256"/>
- <Column id="breakmealnm" type="STRING" size="256"/>
- <Column id="breakmealcnt" type="STRING" size="256"/>
- <Column id="lunchmealnm" type="STRING" size="256"/>
- <Column id="lunchmealcnt" type="STRING" size="256"/>
- <Column id="dinnermealnm" type="STRING" size="256"/>
- <Column id="dinnermealcnt" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="prcpdd"/>
- <Col id="breakmealnm"/>
- <Col id="breakmealcnt"/>
- <Col id="lunchmealnm"/>
- <Col id="lunchmealcnt"/>
- <Col id="dinnermealnm"/>
- <Col id="dinnermealcnt"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_choimealguidedocu_fixcol" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="fixcol1" type="STRING" size="256"/>
- <Column id="fixcol2" type="STRING" size="256"/>
- <Column id="fixcol3" type="STRING" size="256"/>
- <Column id="fixcol4" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="fixcol1"/>
- <Col id="fixcol2"/>
- <Col id="fixcol3"/>
- <Col id="fixcol4"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_choimealguidedocu_choimealguide1" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="breakgnrldish" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="breakgnrldish"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_choimealguidedocu_choimealguide2" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="breakchoidish" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="breakchoidish"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_choimealguidedocu_choimealguide3" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="lunchgnrldish" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="lunchgnrldish"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_choimealguidedocu_choimealguide4" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="lunchchoidish" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_indcase_indcaselist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_indcase_indcaselist_oncolumnchanged">
- <ColumnInfo>
- <Column id="chk" type="STRING" size="256"/>
- <Column id="ward" type="STRING" size="256"/>
- <Column id="room" type="STRING" size="256"/>
- <Column id="pid" type="STRING" size="256"/>
- <Column id="hngnm" type="STRING" size="256"/>
- <Column id="sex" type="STRING" size="256"/>
- <Column id="dietnm" type="STRING" size="256"/>
- <Column id="prcpdd" type="STRING" size="256"/>
- <Column id="dietmeal" type="STRING" size="256"/>
- <Column id="iuflag" type="STRING" size="256"/>
- <Column id="remfactnm" type="STRING" size="256"/>
- <Column id="remark2" type="STRING" size="256"/>
- <Column id="remark3" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="chk"/>
- <Col id="ward"/>
- <Col id="room"/>
- <Col id="pid"/>
- <Col id="hngnm"/>
- <Col id="sex"/>
- <Col id="dietnm"/>
- <Col id="prcpdd"/>
- <Col id="dietmeal"/>
- <Col id="iuflag"/>
- <Col id="remfactnm"/>
- <Col id="remark2"/>
- <Col id="remark3"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_patinfo_patinfolist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_send_reqdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="prcpdd" type="STRING" size="256"/>
- <Column id="dietmeal" type="STRING" size="256"/>
- <Column id="ward" type="STRING" size="256"/>
- <Column id="roomcd" type="STRING" size="256"/>
- <Column id="count" type="STRING" size="256"/>
- <Column id="fromdd" type="STRING" size="256"/>
- <Column id="todd" type="STRING" size="256"/>
- <Column id="appdd" type="STRING" size="256"/>
- <Column id="pid" type="STRING" size="256"/>
- <Column id="hngnm" type="STRING" size="256"/>
- <Column id="initflag" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_send_execdata_choimeallist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_send_execdata1_indcaselist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_send_execdata5_childmeallist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_send_choimealguide" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="breakgnrldish1" type="STRING" size="256"/>
- <Column id="breakgnrldish2" type="STRING" size="256"/>
- <Column id="breakgnrldish3" type="STRING" size="256"/>
- <Column id="breakgnrldish4" type="STRING" size="256"/>
- <Column id="breakgnrldish5" type="STRING" size="256"/>
- <Column id="breakchoidish1" type="STRING" size="256"/>
- <Column id="breakchoidish2" type="STRING" size="256"/>
- <Column id="breakchoidish3" type="STRING" size="256"/>
- <Column id="breakchoidish4" type="STRING" size="256"/>
- <Column id="breakchoidish5" type="STRING" size="256"/>
- <Column id="lunchgnrldish1" type="STRING" size="256"/>
- <Column id="lunchgnrldish2" type="STRING" size="256"/>
- <Column id="lunchgnrldish3" type="STRING" size="256"/>
- <Column id="lunchgnrldish4" type="STRING" size="256"/>
- <Column id="lunchgnrldish5" type="STRING" size="256"/>
- <Column id="lunchchoidish1" type="STRING" size="256"/>
- <Column id="lunchchoidish2" type="STRING" size="256"/>
- <Column id="lunchchoidish3" type="STRING" size="256"/>
- <Column id="lunchchoidish4" type="STRING" size="256"/>
- <Column id="lunchchoidish5" type="STRING" size="256"/>
- <Column id="lunchchoidish6" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="breakgnrldish1"/>
- <Col id="breakgnrldish2"/>
- <Col id="breakgnrldish3"/>
- <Col id="breakgnrldish4"/>
- <Col id="breakgnrldish5"/>
- <Col id="breakchoidish1"/>
- <Col id="breakchoidish2"/>
- <Col id="breakchoidish3"/>
- <Col id="breakchoidish4"/>
- <Col id="breakchoidish5"/>
- <Col id="lunchgnrldish1"/>
- <Col id="lunchgnrldish2"/>
- <Col id="lunchgnrldish3"/>
- <Col id="lunchgnrldish4"/>
- <Col id="lunchgnrldish5"/>
- <Col id="lunchchoidish1"/>
- <Col id="lunchchoidish2"/>
- <Col id="lunchchoidish3"/>
- <Col id="lunchchoidish4"/>
- <Col id="lunchchoidish5"/>
- <Col id="lunchchoidish6"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_send_popup" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="flag" type="STRING" size="256"/>
- <Column id="pid" type="STRING" size="256"/>
- <Column id="prcpdd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="flag"/>
- <Col id="pid"/>
- <Col id="prcpdd"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_basecode_ward_dept" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="deptcd" type="STRING" size="256"/>
- <Column id="depthngnm" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="deptcd"/>
- <Col id="depthngnm"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_basecode_room_room" 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_ward" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_FormData_PopData" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="pid" type="STRING" size="256"/>
- <Column id="dnorid" type="STRING" size="256"/>
- <Column id="trnptid" type="STRING" size="256"/>
- <Column id="trnptkind" type="STRING" size="256"/>
- <Column id="patdnorflag" type="STRING" size="256"/>
- <Column id="trnptbfaftflag" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="pid"/>
- <Col id="dnorid"/>
- <Col id="trnptid"/>
- <Col id="trnptkind"/>
- <Col id="patdnorflag"/>
- <Col id="trnptbfaftflag"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_hidden" 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_casegb" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="gb" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="gb"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_temp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_cbo_remark2" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="label" type="STRING" size="256"/>
- <Column id="value" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="label"/>
- <Col id="value"/>
- </Row>
- <Row>
- <Col id="label">개별관리</Col>
- <Col id="value">01</Col>
- </Row>
- <Row>
- <Col id="label">소금1g</Col>
- <Col id="value">02</Col>
- </Row>
- <Row>
- <Col id="label">소금2g</Col>
- <Col id="value">03</Col>
- </Row>
- <Row>
- <Col id="label">소금3g</Col>
- <Col id="value">04</Col>
- </Row>
- <Row>
- <Col id="label">소금4g</Col>
- <Col id="value">05</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_rst_sbsinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="wardcd" type="STRING" size="256"/>
- <Column id="dietmeal" type="STRING" size="255"/>
- <Column id="gubun" type="STRING" size="255"/>
- <Column id="cnt" type="BIGDECIMAL" size="255"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_sbsinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="prcpdd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="group5.ipt_appdd" propid="value" datasetid="ds_send_reqdata" columnid="appdd"/>
- <BindItem id="item1" compid="group4.ipt_fromdd" propid="value" datasetid="ds_send_reqdata" columnid="fromdd"/>
- <BindItem id="item2" compid="group4.ipt_todd" propid="value" datasetid="ds_send_reqdata" columnid="todd"/>
- <BindItem id="item3" compid="group2.ipt_prcpdd" propid="value" datasetid="ds_send_reqdata" columnid="prcpdd"/>
- <BindItem id="item4" compid="group2.rdo_dietmeal" propid="value" datasetid="ds_send_reqdata" columnid="dietmeal"/>
- <BindItem id="item5" compid="group2.cmb_wardcd" propid="value" datasetid="ds_send_reqdata" columnid="ward"/>
- <BindItem id="item6" compid="group2.cmb_roomcd" propid="value" datasetid="ds_send_reqdata" columnid="roomcd"/>
- <BindItem id="item7" compid="group2.ipt_pid" propid="value" datasetid="ds_send_reqdata" columnid="pid"/>
- <BindItem id="item8" compid="group2.ipt_hngnm" propid="value" datasetid="ds_send_reqdata" columnid="hngnm"/>
- <BindItem id="item9" compid="switch1.case1.opt_count" propid="value" datasetid="ds_send_reqdata" columnid="count"/>
- <BindItem id="item10" compid="switch1.case5.output1" propid="value" datasetid="ds_send_reqdata" columnid="count"/>
- </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 'com_departmentcodexp::ZSD001.xjs';
- var arErrorCode = new HashArray();
- function SMANT00900_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj); //폼 초기화
- grdf_initGrid(switch1.case1.grd_choidiet);
- grdf_initGrid(switch1.case3.grd_inddiet);
- grdf_initGrid(switch1.case5.grd_childdiet);
- }
- function SMANT00900_onload(obj:Form, e:LoadEventInfo)
- {
- ds_send_reqdata.setColumn(0, "initflag", "2");
-
- group5.btn_search3.enable = frmf_checkAuth("R");
- group4.btn_search2.enable = frmf_checkAuth("R");
- group5.btn_search3.enable = frmf_checkAuth("R");
- btn_save.enable = frmf_checkAuth("X");
-
- var today = utlf_getCurrentDate();
- appf_getDeptCodeList(sysf_getUserInfo('dutplceinstcd'), 'orduseyn', 'W', 'depthngnm', 'asc', today.toDate().getDateFormat('YYYYMMDD'), '', 'asc', 'ds_init_basecode_ward_dept', false, null);
-
- frmf_addComboItem("group2.cmb_wardcd", "전체", "");
-
- ds_send_reqdata.setColumn(0, "prcpdd", utlf_getCurrentDate());
- ds_send_reqdata.setColumn(0, "fromdd", utlf_getCurrentDate());
- ds_send_reqdata.setColumn(0, "todd", utlf_getCurrentDate());
- ds_send_reqdata.setColumn(0, "appdd", utlf_getCurrentDate());
- ds_send_reqdata.setColumn(0, "dietmeal", "1");
- ds_send_reqdata.setColumn(0, "ward", "");
- ds_casegb.setColumn(0, "gb", "1");
- fvisible(); //컨트롤을 숨기거나 보이기
-
- //화면open시 현재시간을 계산하여 선택식관리 탭화면의 끼니구분 자동setting
- var tm = utlf_getCurrentTime();
- if ( tm.substr(0,4) < 1030 ) {
- ds_send_reqdata.setColumn(0, "dietmeal", "1");
- } else if ( (tm.substr(0,4) >= 1030) && (tm.substr(0,4) < 1600) ) {
- ds_send_reqdata.setColumn(0, "dietmeal", "2");
- } else {
- ds_send_reqdata.setColumn(0, "dietmeal", "3");
- }
-
- switch1.tabindex = 0;
- }
- function fvisible() {
- btn_excel.visible = true;
- btn_print.visible = false;
- btn_save.visible = true;
- group2.visible = true;
- group4.visible = false;
- group5.visible = false;
- }
- function switch1_case1_grd_choidiet_oncelldblclick(obj:Grid, e:GridClickEventInfo)
- {
- //환자별식사력조회 화면으로 연결
- if ( e.col >= 0 && e.row >= 0 && ds_main_choimeal_choimeallist.rowcount > 0) {
- // 'P'는 선택식환자관리 화면임을 뜻하는 구분자임.
- ds_send_popup.setColumn(0, "flag", "P");
- ds_send_popup.setColumn(0, "pid", ds_main_choimeal_choimeallist.getColumn(ds_main_choimeal_choimeallist.rowposition, "pid"));
- ds_send_popup.setColumn(0, "prcpdd", ds_main_choimeal_choimeallist.getColumn(ds_main_choimeal_choimeallist.rowposition, "prcpdd"));
-
- var objArg = new Object();
- objArg.arg_ds_main_receivedata = ds_send_popup;
-
- frmf_open("SMANT01000", "SMANT01000", objArg, null, "", "", "", null, null, null, null, null, "M");
- }
- }
- function group5_btn_before2_onclick(obj:Button, e:ClickEventInfo)
- {
- var dd = ds_send_reqdata.getColumn(0, "appdd");
- dd = dd.toDate().getAddDate(-1, "D");
- dd = dd.getDateFormat();
- ds_send_reqdata.setColumn(0, "appdd", dd);
- }
- function group5_btn_next2_onclick(obj:Button, e:ClickEventInfo)
- {
- var dd = ds_send_reqdata.getColumn(0, "appdd");
- dd = dd.toDate().getAddDate(1, "D");
- dd = dd.getDateFormat();
- ds_send_reqdata.setColumn(0, "appdd", dd);
- }
- function group5_btn_search3_onclick(obj:Button, e:ClickEventInfo)
- {
- var oParam = {};
- oParam.id = "TRANT00904";
- oParam.service = "dietsumapp.ChoiMealPatMngt";
- oParam.method = "reqGetChoiMealGuideDocu";
- oParam.inds = "reqdata=ds_send_reqdata";
- oParam.outds = "ds_main_choimealguidedocu_fixcol=fixcol ds_main_choimealguidedocu_choimealguide1=choimealguide1 " +
- "ds_main_choimealguidedocu_choimealguide2=choimealguide2 ds_main_choimealguidedocu_choimealguide3=choimealguide3 ds_main_choimealguidedocu_choimealguide4=choimealguide4";
- oParam.async = false;
- oParam.callback = "cf_TRANT00904";
- tranf_submit(oParam);
-
- if ( arErrorCode.pop("TRANT00904") > -1 ){
- var cnt1 = ds_main_choimealguidedocu_choimealguide1.rowcount;
- if( cnt1 < 11 ){
- for (var i = 0 ; i < 11-cnt1 ; i++ ){
- ds_main_choimealguidedocu_choimealguide1.addRow();
- }
- }
-
- var cnt2 = ds_main_choimealguidedocu_choimealguide2.rowcount;
- if( cnt2 < 11 ){
- for (var i = 0 ; i < 11-cnt2 ; i++ ){
- ds_main_choimealguidedocu_choimealguide2.addRow();
- }
- }
-
- var cnt3 = ds_main_choimealguidedocu_choimealguide3.rowcount;
- if( cnt3 < 11 ){
- for (var i = 0 ; i < 11-cnt3 ; i++ ){
- ds_main_choimealguidedocu_choimealguide3.addRow();
- }
- }
-
- var cnt4 = ds_main_choimealguidedocu_choimealguide4.rowcount;
- if( cnt4 < 11 ){
- for (var i = 0 ; i < 11-cnt4 ; i++ ){
- ds_main_choimealguidedocu_choimealguide4.addRow();
- }
- }
- }
- ds_send_choimealguide.clearData();
- ds_send_choimealguide.addRow();
- }
- function cf_TRANT00904(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- function btCase1_onclick(obj:Button, e:ClickEventInfo)
- {
- ds_casegb.setColumn(0, "gb", "1");
- fvisible(); //컨트롤을 숨기거나 보이기
- switch1.tabindex = 0;
- }
- function btCase5_onclick(obj:Button, e:ClickEventInfo)
- {
- ds_casegb.setColumn(0, "gb", "5");
- fvisible(); //컨트롤을 숨기거나 보이기
- switch1.tabindex = 4;
- }
- function btCase2_onclick(obj:Button, e:ClickEventInfo)
- {
- ds_casegb.setColumn(0, "gb", "2");
- switch1.tabindex = 1;
- btn_excel.visible = true;
- btn_print.visible = false;
- btn_save.visible = false;
- group2.visible = false;
- group4.visible = true;
- group5.visible = false;
- }
- function btCase4_onclick(obj:Button, e:ClickEventInfo)
- {
- ds_casegb.setColumn(0, "gb", "4");
- switch1.tabindex = 2;
- btn_excel.visible = false;
- btn_print.visible = true;
- btn_save.visible = false;
- group2.visible = false;
- group4.visible = false;
- group5.visible = true;
- }
- function btCase3_onclick(obj:Button, e:ClickEventInfo)
- {
- ds_casegb.setColumn(0, "gb", "3");
- switch1.tabindex = 3;
- fvisible(); //컨트롤을 숨기거나 보이기
- }
- function switch1_case4_btn_gridadd_onclick(obj:Button, e:ClickEventInfo)
- {
- ds_main_choimealguidedocu_choimealguide1.addRow();
- ds_main_choimealguidedocu_choimealguide2.addRow();
- ds_main_choimealguidedocu_choimealguide3.addRow();
- ds_main_choimealguidedocu_choimealguide4.addRow();
- }
- function group4_btn_search2_onclick(obj:Button, e:ClickEventInfo)
- {
- var fromdd = ds_send_reqdata.getColumn(0, "fromdd");
- var todd = ds_send_reqdata.getColumn(0, "todd");
- if (utlf_getDateInterval(fromdd, todd) < 0) {
- sysf_messageBox("조회 시작일은 종료일보다 클 수", "I004");
- return;
- } else {
- var oParam = {};
- oParam.id = "TRANT00903";
- oParam.service = "dietsumapp.ChoiMealPatMngt";
- oParam.method = "reqGetChoiMealStats";
- oParam.inds = "reqdata=ds_send_reqdata";
- oParam.outds = "ds_main_choimealstats_choimealstatslist=choimealstatslist";
- oParam.async = false;
- tranf_submit(oParam);
- }
- }
- function group2_btn_before_onclick(obj:Button, e:ClickEventInfo)
- {
- var dd = ds_send_reqdata.getColumn(0, "prcpdd");
- dd = dd.toDate().getAddDate(-1, "D");
- dd = dd.getDateFormat();
- ds_send_reqdata.setColumn(0, "prcpdd", dd);
- }
- function group2_btn_next_onclick(obj:Button, e:ClickEventInfo)
- {
- var dd = ds_send_reqdata.getColumn(0, "prcpdd");
- dd = dd.toDate().getAddDate(1, "D");
- dd = dd.getDateFormat();
- ds_send_reqdata.setColumn(0, "prcpdd", dd);
- }
- function group2_cmb_wardcd_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
- {
- ds_send_reqdata.setColumn(0, "roomcd", "");
-
- if( utlf_isNull(ds_send_reqdata.getColumnInfo("wardcd")) ){
- ds_send_reqdata.addColumn("wardcd", "string");
- }
- ds_send_reqdata.setColumn(0, "wardcd", ds_send_reqdata.getColumn(0, "ward"));
- //선택병동의 병실 조회
- var oParam = {};
- oParam.id = "TRANT01004";
- oParam.service = "dietsumapp.DietSum";
- oParam.method = "reqGetRoom";
- oParam.inds = "req=ds_send_reqdata";
- oParam.outds = "ds_init_basecode_room_room=ret";
- oParam.async = false;
- tranf_submit(oParam);
-
- ds_init_basecode_room_room.updateColID("wardroomcdid", "cdid");
- ds_init_basecode_room_room.updateColID("wardroomcdnm", "cdnm");
- }
- function group2_ipt_pid_onkeydown(obj:MaskEdit, e:KeyEventInfo)
- {
- if(e.keycode == 13){
- obj.updateToDataset();
- group2_btn_search_onclick();
- }
- }
- function group2_btn_search_onclick(obj:Button, e:ClickEventInfo)
- {
- if (ds_casegb.getColumn(0, "gb") == "1"){
- readfunc();
- }else if (ds_casegb.getColumn(0, "gb") == "3"){
- readfunc2();
- }else if (ds_casegb.getColumn(0, "gb") == "5"){
- readfunc5();
- }
- }
- function readfunc() {
- ds_main_choimeal_choimeallist.clearData();
- ds_main_choimeal_choimeallist.addRow();
-
- if( utlf_isNull(ds_send_reqdata.getColumnInfo("wardcd")) ){
- ds_send_reqdata.addColumn("wardcd", "string");
- }
- ds_send_reqdata.setColumn(0, "wardcd", ds_send_reqdata.getColumn(0, "ward"));
-
- var oParam = {};
- oParam.id = "TRANT00901";
- oParam.service = "dietsumapp.ChoiMealPatMngt";
- oParam.method = "reqGetChoiMeal";
- oParam.inds = "reqdata=ds_send_reqdata";
- oParam.outds = "ds_main_choimeal_choimeallist=choimeallist";
- oParam.async = false;
- tranf_submit(oParam);
- ds_main_choimeal_choimeallist.addColumn("chk", "string");
- // var msg = model.getValue("/root/properties/error/msg");
- // var refCnt = msg.substring(0, 1);
- // if( refCnt == "0" || refCnt == "") {
- // //messageBox("조회된 결과가", "I004");
- // }
- if (utlf_isNull(ds_main_choimeal_choimeallist.getColumn(0, "ward"))){
- ds_main_choimeal_choimeallist.clearData();
- btn_save.enable = false;
- }else{
- btn_save.enable = true;
- }
- selectfunc();
- }
- function selectfunc() {
- var k = 0;
- for (var i = 0; i < ds_main_choimeal_choimeallist.rowcount; i++){
- var schk = ds_main_choimeal_choimeallist.getColumn(i, "chk");
- if (schk == "Y"){
- k = parseInt(k) + 1;
- }
- }
- switch1.case1.opt_count.value = k;
- //ds_send_reqdata.setColumn(k, "count", k);
- }
- function readfunc2() {
- ds_main_indcase_indcaselist.clearData();
- ds_main_indcase_indcaselist.addRow();
-
- if( utlf_isNull(ds_send_reqdata.getColumnInfo("wardcd")) ){
- ds_send_reqdata.addColumn("wardcd", "string");
- }
- ds_send_reqdata.setColumn(0, "wardcd", ds_send_reqdata.getColumn(0, "ward"));
-
- var oParam = {};
- oParam.id = "TRANT00902";
- oParam.service = "dietsumapp.ChoiMealPatMngt";
- oParam.method = "reqGetIndMeal";
- oParam.inds = "reqdata=ds_send_reqdata";
- oParam.outds = "ds_main_indcase_indcaselist=indcaselist";
- oParam.async = false;
- tranf_submit(oParam);
-
- // var msg = model.getValue("/root/properties/error/msg");
- // var refCnt = msg.substring(0, 1);
- // if( refCnt == "0" || refCnt == "") {
- // //messageBox("조회된 결과가", "I004");
- // }
- if (utlf_isNull(ds_main_indcase_indcaselist.getColumn(0, "ward"))){
- ds_main_indcase_indcaselist.clearData();
- btn_save.enable = false;
- }else{
- btn_save.enable = true;
- }
- }
- function readfunc5() {
- ds_main_childmeal_childmeallist.clearData();
- ds_main_childmeal_childmeallist.addRow();
-
- if( utlf_isNull(ds_send_reqdata.getColumnInfo("wardcd")) ){
- ds_send_reqdata.addColumn("wardcd", "string");
- }
- ds_send_reqdata.setColumn(0, "wardcd", ds_send_reqdata.getColumn(0, "ward"));
-
- var oParam = {};
- oParam.id = "TRANT00905";
- oParam.service = "dietsumapp.ChoiMealPatMngt";
- oParam.method = "reqGetChildMeal";
- oParam.inds = "reqdata=ds_send_reqdata";
- oParam.outds = "ds_main_childmeal_childmeallist=childmeallist";
- oParam.async = false;
- tranf_submit(oParam);
-
- // var msg = model.getValue("/root/properties/error/msg");
- // var refCnt = msg.substring(0, 1);
- // if( refCnt == "0" || refCnt == "") {
- // //messageBox("조회된 결과가", "I004");
- // }
- if (utlf_isNull(ds_main_childmeal_childmeallist.getColumn(0, "ward"))){
- ds_main_childmeal_childmeallist.clearData();
- btn_save.enable = false;
- }else{
- btn_save.enable = true;
- }
- selectfunc5();
- }
- function selectfunc5() {
- var p = 0;
- for (var i = 0; i < ds_main_childmeal_childmeallist.rowcount; i++){
- var schk = ds_main_childmeal_childmeallist.getColumn(i, "chk");
- if (schk == "Y"){
- p = parseInt(p) + 1;
- }
- }
- switch1.case1.opt_count.value = p;
- //ds_send_reqdata.setColumn(0, "count", p);
- }
- function group2_ipt_hngnm_onkeydown(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13){
- obj.updateToDataset();
- group2_btn_search_onclick();
- }
- }
- function group2_btn_hngnm_onclick(obj:Button, e:ClickEventInfo)
- {
- dsf_createDsRow("ds_temp", [{col:"srchcond", val:"2"} //환자번호로조회
- ]);
-
- var objArg = new Object();
- objArg.arg_ds_send = ds_temp;
-
- frmf_modal("SPPMC02500", "SPPMC02500", objArg, null, "", 200, 200, null, null, null, null, null, "M");
-
- if(!utlf_isNull(this.objects["ds_patinfolist"])) {
- var srch_pid = ds_patinfolist.getColumn(0, "pid");
- var srch_hngnm = ds_patinfolist.getColumn(0, "hngnm");
-
- ds_send_reqdata.setColumn(0, "pid", srch_pid);
- ds_send_reqdata.setColumn(0, "hngnm", srch_hngnm);
- }
- group2_btn_search_onclick();
- }
- function ds_main_choimeal_choimeallist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
- {
- if(switch1.case1.grd_choidiet.currentcol == switch1.case1.grd_choidiet.getBindCellIndex("body", "chk")){
- ds_main_choimeal_choimeallist.updatecontrol = false;
- if( ds_main_choimeal_choimeallist.getColumn(ds_main_choimeal_choimeallist.rowposition, "chk") == "Y" ||
- ds_main_choimeal_choimeallist.getColumn(ds_main_choimeal_choimeallist.rowposition, "chk") == "1"){
- ds_main_choimeal_choimeallist.setColumn(ds_main_choimeal_choimeallist.rowposition, "chk", "Y");
- }else{
- ds_main_choimeal_choimeallist.setColumn(ds_main_choimeal_choimeallist.rowposition, "chk", "N");
- }
- ds_main_choimeal_choimeallist.updatecontrol = true;
- }
-
- selectfunc();
- }
- function ds_main_indcase_indcaselist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
- {
- if(switch1.case3.grd_inddiet.currentcol == switch1.case3.grd_inddiet.getBindCellIndex("body", "chk")){
- ds_main_choimeal_choimeallist.updatecontrol = false;
- if( ds_main_indcase_indcaselist.getColumn(ds_main_indcase_indcaselist.rowposition, "chk") == "Y" ||
- ds_main_indcase_indcaselist.getColumn(ds_main_indcase_indcaselist.rowposition, "chk") == "1"){
- ds_main_indcase_indcaselist.setColumn(ds_main_indcase_indcaselist.rowposition, "chk", "Y");
- }else{
- ds_main_indcase_indcaselist.setColumn(ds_main_indcase_indcaselist.rowposition, "chk", "N");
- }
- ds_main_indcase_indcaselist.updatecontrol = true;
- }
- }
- function ds_main_childmeal_childmeallist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
- {
- if(switch1.case5.grd_childdiet.currentcol == switch1.case5.grd_childdiet.getBindCellIndex("body", "chk")){
- ds_main_childmeal_childmeallist.updatecontrol = false;
- if( ds_main_childmeal_childmeallist.getColumn(ds_main_childmeal_childmeallist.rowposition, "chk") == "Y" ||
- ds_main_childmeal_childmeallist.getColumn(ds_main_childmeal_childmeallist.rowposition, "chk") == "1"){
- ds_main_childmeal_childmeallist.setColumn(ds_main_childmeal_childmeallist.rowposition, "chk", "Y");
- }else{
- ds_main_childmeal_childmeallist.setColumn(ds_main_childmeal_childmeallist.rowposition, "chk", "N");
- }
- ds_main_childmeal_childmeallist.updatecontrol = true;
- }
-
- selectfunc5();
- }
- function btn_excel_onclick(obj:Button, e:ClickEventInfo)
- {
- if (ds_casegb.getColumn(0, "gb") == "1"){
- grdf_exportExcel(switch1.case1.grd_choidiet, "선택식환자리스트" + utlf_getCurrentDate(), "sheetname1" , true, "" , "" , true);
- } else if (ds_casegb.getColumn(0, "gb") == "2"){
- grdf_exportExcel(switch1.case2.grd_choidietstats, "선택식통계" + utlf_getCurrentDate(), "sheetname1" , true, "" , "" , true);
- } else if (ds_casegb.getColumn(0, "gb") == "3"){
- grdf_exportExcel(switch1.case3.grd_inddiet, "개별식단환자리스트" + utlf_getCurrentDate(), "sheetname1" , true, "" , "" , true);
- }
- }
- function switch1_case5_grd_childdiet_oncelldblclick(obj:Grid, e:GridClickEventInfo)
- {
- //환자별식사력조회 화면으로 연결
- if ( e.col >= 0 && e.row >= 0 && ds_main_childmeal_childmeallist.rowcount > 0) {
- // 'P'는 선택식환자관리 화면임을 뜻하는 구분자임.
- ds_send_popup.setColumn(0, "flag", "P");
- ds_send_popup.setColumn(0, "pid", ds_main_childmeal_childmeallist.getColumn(ds_main_childmeal_childmeallist.rowposition, "pid"));
- ds_send_popup.setColumn(0, "prcpdd", ds_main_childmeal_childmeallist.getColumn(ds_main_childmeal_childmeallist.rowposition, "prcpdd"));
-
- var objArg = new Object();
- objArg.arg_ds_main_receivedata = ds_send_popup;
-
- frmf_open("SMANT01000", "SMANT01000", objArg, null, "", "", "", null, null, null, null, null, "M");
- }
- }
- function btn_save_onclick(obj:Button, e:ClickEventInfo)
- {
- if (ds_casegb.getColumn(0, "gb") == "1"){
- case1exec();
- readfunc();
- }else if (ds_casegb.getColumn(0, "gb") == "3"){
- case2exec();
- readfunc2();
- }else if (ds_casegb.getColumn(0, "gb") == "5"){
- case5exec();
- readfunc5();
- }
- }
- //개별식단환자관리 저장
- function case2exec() {
- ds_send_execdata1_indcaselist.clearData();
- ds_send_execdata1_indcaselist.addRow();
-
- var update = grdf_getGridUpdateData(switch1.case3.grd_inddiet);
- ds_send_execdata1_indcaselist.copyData(update, true);
-
- var oParam = {};
- oParam.id = "TXANT00902";
- oParam.service = "dietsumapp.ChoiMealPatMngt";
- oParam.method = "reqExeIndMeal";
- oParam.inds = "indcaselist=ds_send_execdata1_indcaselist";
- oParam.outds = "ds_hidden=item";
- oParam.async = false;
- tranf_submit(oParam);
-
- sysf_messageBox("정상적으로", "I001");
- // readfunc();
- }
- function case5exec() {
- ds_send_execdata5_childmeallist.clearData();
- ds_send_execdata5_childmeallist.addRow();
-
- var update = grdf_getGridUpdateData(switch1.case5.grd_childdiet);
- ds_send_execdata5_childmeallist.copyData(update, true);
-
- var oParam = {};
- oParam.id = "TXANT00905";
- oParam.service = "dietsumapp.ChoiMealPatMngt";
- oParam.method = "reqExeChildMeal";
- oParam.inds = "childmeallist=ds_send_execdata5_childmeallist";
- oParam.outds = "ds_hidden=item";
- oParam.async = false;
- tranf_submit(oParam);
- sysf_messageBox("정상적으로", "I001");
- }
- function case1exec() {
- ds_send_execdata_choimeallist.clearData();
- ds_send_execdata_choimeallist.addRow();
-
- var update = grdf_getGridUpdateData(switch1.case1.grd_choidiet);
- ds_send_execdata_choimeallist.copyData(update, true);
-
- var oParam = {};
- oParam.id = "TXANT00901";
- oParam.service = "dietsumapp.ChoiMealPatMngt";
- oParam.method = "reqExeChoiMeal";
- oParam.inds = "choimeallist=ds_send_execdata_choimeallist";
- oParam.outds = "ds_hidden=item";
- oParam.async = false;
- tranf_submit(oParam);
- sysf_messageBox("정상적으로", "I001");
- // readfunc();
- }
- function btn_print_onclick(obj:Button, e:ClickEventInfo)
- {
- var cnt = 1;
- var appdd = ds_send_reqdata.getColumn(0, "appdd");
- var mm = appdd.substr(4, 2);
- var dd = appdd.substr(6, 2);
- if ( sysf_messageBox(mm + "월 " + dd + "일 선택식안내문 출력을", "Q004") == 6 ) {
- // 2011.1.1 c y w 순서대로 출력
- ds_send_choimealguide.setColumn(0, "breakgnrldish1", ds_main_choimealguidedocu_choimealguide1.getColumn(0, "breakgnrldish"));
- ds_send_choimealguide.setColumn(0, "lunchgnrldish1", ds_main_choimealguidedocu_choimealguide3.getColumn(0, "lunchgnrldish"));
- ds_send_choimealguide.setColumn(0, "breakgnrldish2", ds_main_choimealguidedocu_choimealguide1.getColumn(1, "breakgnrldish"));
- ds_send_choimealguide.setColumn(0, "lunchgnrldish2", ds_main_choimealguidedocu_choimealguide3.getColumn(1, "lunchgnrldish"));
- ds_send_choimealguide.setColumn(0, "breakgnrldish3", ds_main_choimealguidedocu_choimealguide1.getColumn(2, "breakgnrldish"));
- ds_send_choimealguide.setColumn(0, "lunchgnrldish3", ds_main_choimealguidedocu_choimealguide3.getColumn(2, "lunchgnrldish"));
- ds_send_choimealguide.setColumn(0, "breakgnrldish4", ds_main_choimealguidedocu_choimealguide1.getColumn(3, "breakgnrldish"));
- ds_send_choimealguide.setColumn(0, "lunchgnrldish4", ds_main_choimealguidedocu_choimealguide3.getColumn(3, "lunchgnrldish"));
- ds_send_choimealguide.setColumn(0, "breakgnrldish5", ds_main_choimealguidedocu_choimealguide1.getColumn(4, "breakgnrldish"));
- ds_send_choimealguide.setColumn(0, "lunchgnrldish5", ds_main_choimealguidedocu_choimealguide3.getColumn(4, "lunchgnrldish"));
- //선택식 조식 - 주식부터 김치까지 순서대로 5개 메뉴 출력
- for (var i = 0; i < 6; i++) {
- if (!utlf_isNull(ds_main_choimealguidedocu_choimealguide2.getColumn(i, "breakchoidish"))) {
- ds_send_choimealguide.setColumn(0, "breakchoidish"+cnt, ds_main_choimealguidedocu_choimealguide2.getColumn(i, "breakchoidish"));
- cnt = cnt +1;
- }
- if (cnt == 5) {
- break;
- }
- }
-
- cnt = 1;
-
- //선택식 중식 - 주식부터 기타5까지 순서대로 6개 메뉴 출력
- for (var i = 0; i < 11; i++) {
- if (!utlf_isNull(ds_main_choimealguidedocu_choimealguide4.getColumn(i, "lunchchoidish"))) {
- ds_send_choimealguide.setColumn(0, "lunchchoidish"+cnt, ds_main_choimealguidedocu_choimealguide4.getColumn(i, "lunchchoidish"));
- cnt = cnt +1;
- }
- if (cnt == 6) {
- break;
- }
- }
-
- var objDOM = rptf_createDOM();
- rptf_setNodeListToDOM(objDOM, "root/send/choimealguide", ds_send_choimealguide); // 데이터셋 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(["RPANT00901"],[objParam], option);
- } else { return; }
- }
- function switch1_onchanged(obj:Tab, e:TabIndexChangeEventInfo)
- {
- switch( e.postindex ){
- case 0 :
- btCase1.setSelectStatus(true);
- btCase5.setSelectStatus(false);
- btCase2.setSelectStatus(false);
- btCase4.setSelectStatus(false);
- btCase3.setSelectStatus(false);
- btn_sbsCnt.visible = true;
- break;
-
- case 4 :
- btCase1.setSelectStatus(false);
- btCase5.setSelectStatus(true);
- btCase2.setSelectStatus(false);
- btCase4.setSelectStatus(false);
- btCase3.setSelectStatus(false);
- btn_sbsCnt.visible = false;
- break;
-
- case 1 :
- btCase1.setSelectStatus(false);
- btCase5.setSelectStatus(false);
- btCase2.setSelectStatus(true);
- btCase4.setSelectStatus(false);
- btCase3.setSelectStatus(false);
- btn_sbsCnt.visible = false;
- break;
-
- case 3 :
- btCase1.setSelectStatus(false);
- btCase5.setSelectStatus(false);
- btCase2.setSelectStatus(false);
- btCase4.setSelectStatus(false);
- btCase3.setSelectStatus(true);
- btn_sbsCnt.visible = false;
- break;
-
- case 2 :
- btCase1.setSelectStatus(false);
- btCase5.setSelectStatus(false);
- btCase2.setSelectStatus(false);
- btCase4.setSelectStatus(true);
- btCase3.setSelectStatus(false);
- btn_sbsCnt.visible = false;
- break;
-
- default :
- break;
- }
- }
- function btn_sbs_onclick(obj:Button, e:ClickEventInfo)
- {
- if (ds_casegb.getColumn(0, "gb") == "1"){ // 선택식 ** SBS 관련 일괄선택 기능 추가 by 김금련 2018.04.25
- ds_main_choimeal_choimeallist.enableevent = false;
- ds_main_choimeal_choimeallist.updatecontrol = false;
-
- for (var i = 0; i < switch1.case1.grd_choidiet.rowcount; i++){
- var sbs = ds_main_choimeal_choimeallist.getColumn(i, "gubun")
- if (sbs == "B"){
- ds_main_choimeal_choimeallist.setColumn (i, "chk", "Y");
- ds_main_choimeal_choimeallist.setRowType(i, 4);
- }
- }
-
- ds_main_choimeal_choimeallist.updatecontrol = true;
- ds_main_choimeal_choimeallist.enableevent = true;
-
- selectfunc(); // 건수 체크
- } else if (ds_casegb.getColumn(0, "gb") == "5"){ //소아선택식
- ds_main_childmeal_childmeallist.enableevent = false;
- ds_main_childmeal_childmeallist.updatecontrol = false;
-
- for (var i = 0; i < switch1.case5.grd_childdiet.rowcount; i++){
- var sbs = ds_main_childmeal_childmeallist.getColumn(i, "gubun")
- if (sbs == "B"){
- ds_main_childmeal_childmeallist.setColumn(i,"chk", "Y");
- ds_main_childmeal_childmeallist.setRowType(i, 4);
- }
- }
-
- ds_main_childmeal_childmeallist.updatecontrol = true;
- ds_main_childmeal_childmeallist.enableevent = true;
-
- selectfunc5(); // 건수 체크
- } else {
- alert("선택식관리,소아선택식 탭에서만 사용가능합니다.");
- return;
- }
- }
- function btn_sbsCnt_onclick(obj:Button, e:ClickEventInfo)
- {
- ds_sbsinfo.setColumn(0, "prcpdd", ds_send_reqdata.getColumn(0, "prcpdd"));
-
- var oParam = {};
- oParam.id = "TRANT00906";
- oParam.service = "dietsumapp.ChoiMealPatMngt";
- oParam.method = "reqGetSbsCnt";
- oParam.inds = "req=ds_sbsinfo";
- oParam.outds = "ds_rst_sbsinfo=sbscntinfo";
- oParam.async = false;
- oParam.callback = "cf_TRANT00906";
- tranf_submit(oParam);
-
- if( arErrorCode.pop("TRANT00906") > -1 ){
- Div00.visible = true;
- }else{
- Div00.visible = false;
- }
- }
- function cf_TRANT00906(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- function btn_close_onclick(obj:Button, e:ClickEventInfo)
- {
- Div00.visible = false;
- }
- function group2_btn_eraser_onclick(obj:Button, e:ClickEventInfo)
- {
- ds_send_reqdata.setColumn(0, "pid", "");
- ds_send_reqdata.setColumn(0, "hngnm", "");
- }
- ]]></Script>
- </Form>
- </FDL>
|