123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
- <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
- <xhtml:head>
- <xhtml:title>식사처방지침서관리</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <tree>
- <treeset>
- <levl/>
- <setno/>
- <supsetno/>
- <sortno/>
- <setnm/>
- </treeset>
- </tree>
- <data>
- <guidecnts>
- <setno/>
- <setnm/>
- <guidecnts/>
- <guiderem/>
- </guidecnts>
- <dietbase>
- <setno/>
- <seqno/>
- <dietclsnm/>
- <rice/>
- <gruel/>
- <watergruel/>
- <sidedish/>
- <etc/>
- </dietbase>
- <nutrbase>
- <setno/>
- <seqno/>
- <dietclsnm/>
- <calr/>
- <gluco/>
- <prot/>
- <lipo/>
- <sodium/>
- <potas/>
- </nutrbase>
- <foodbase>
- <setno/>
- <seqno/>
- <dietclsnm/>
- <cerealgrup/>
- <meatgrup/>
- <vegtgrup/>
- <lipidgrup/>
- <milkgrup/>
- <fruitgrup/>
- <calrsupply/>
- </foodbase>
- </data>
- </main>
- <send>
- <searchitem>
- <setno/>
- <setnm/>
- </searchitem>
- <data>
- <treeset>
- <status/>
- <levl/>
- <setno/>
- <supsetno/>
- <sortno/>
- <setnm/>
- </treeset>
- <guidecnts/>
- <dietbase/>
- <nutrbase/>
- <foodbase/>
- </data>
- </send>
- <temp>
- <treedata/>
- <treemenu>
- <menu>
- <label>추가</label>
- <func>fAddItem</func>
- </menu>
- <menu>
- <label>이름바꾸기</label>
- <func>fUpdtItem</func>
- </menu>
- <menu>
- <label>삭제</label>
- <func>fDelItem</func>
- </menu>
- </treemenu>
- <iptbox>
- <setnm/>
- </iptbox>
- </temp>
- <init>
- <basecode>
- <meal>
- <A0046>
- <cdid/>
- <cdnm/>
- </A0046>
- </meal>
- </basecode>
- </init>
- </root>
- </instance>
- <submission id="TRZBC00101"/>
- <submission id="TRANB00301" mediatype="application/x-www-form-urlencoded" method="post" resultref="/root/main/tree"/>
- <submission id="TXANB00301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data/treeset"/>
- <submission id="TRANB00302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchitem" resultref="/root/main/data"/>
- <submission id="TXANB00302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data/guidecnts"/>
- <submission id="TXANB00303" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- finit();
- btn_search.disabled = !checkAuth("R");
- btn_save.disabled = !checkAuth("X");
- btn_copy.disabled = !checkAuth("X");
- //btn_excel.disabled = !checkAuth("P");
- submit("TRANB00301"); // 식사처방지침서분류 Tree 조회
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- //초기화
- function finit() {
- // 화면open시 공통코드 setting
- zbcfGetCodeList( new Array( "A0046" ), new Array( "/root/init/basecode/meal" ) );
- model.resetInstanceNode("/root/main/data");
- model.resetInstanceNode("/root/send");
- model.removeNodeset("/root/main/data/dietbase");
- model.removeNodeset("/root/main/data/nutrbase");
- model.removeNodeset("/root/main/data/foodbase");
- group1.attribute("height") = 0; //아이템명 입력할 InputBox 숨김.
- //model.setValue("/root/send/food/flagcd1", "A");
- }
-
- //Tree에 아이템 추가
- function fAddItem() {
- if (trv_dietprcpguide.selectedIndex < 0) {
- messageBox("작성할 폴더를 선택한 후 작업", "I008");
- return;
- }
- var item = trv_dietprcpguide.item(trv_dietprcpguide.selectedIndex);
- var rowPos = item.index + 1;
- if (fSetItemBaseInfo(rowPos, "i") != -1) {
- model.setValue("root/send/data/treeset/status", "i");
- //model.refresh();
- fShowWndIptBox();
- }
- }
-
- //Tree 아이템 이름바꾸기
- function fUpdtItem() {
- var item = trv_dietprcpguide.item(trv_dietprcpguide.selectedIndex);
- var rowPos = item.index + 1;
- if (fSetItemBaseInfo(rowPos, "u") != -1) {
- fShowWndIptBox();
- }
- }
- //Tree 아이템 삭제
- function fDelItem() {
- var item = trv_dietprcpguide.item(trv_dietprcpguide.selectedIndex);
- var rowPos = item.index + 1;
- if (fSetItemBaseInfo(rowPos, "d") != -1) {
- fSaveTreeSet();
- }
- }
- //Tree 아이템 기본정보 setting
- function fSetItemBaseInfo(rowpos, status) {
- var setno = model.getValue("/root/main/tree/treeset" + "[" + rowpos + "]/setno");
- if (status == "u" && setno == 1) {
- messageBox("선택한 폴더는 수정", "E001");
- return -1;
- } else if (status == "d" && setno == 1) {
- messageBox("선택한 폴더는 삭제", "E001");
- return -1;
- }
-
- var levl = model.getValue("/root/main/tree/treeset" + "[" + rowpos + "]/levl");
- var supsetno = model.getValue("/root/main/tree/treeset" + "[" + rowpos + "]/supsetno");
- var setnm = model.getValue("/root/main/tree/treeset" + "[" + rowpos + "]/setnm");
- var sortno = model.getValue("/root/main/tree/treeset" + "[" + rowpos + "]/sortno");
- model.setValue("root/send/data/treeset/levl", levl);
- model.setValue("root/send/data/treeset/setno", setno);
- model.setValue("root/send/data/treeset/status", status);
- model.setValue("root/send/data/treeset/setnm", setnm);
- if (status == "i") {
- model.setValue("root/send/data/treeset/supsetno", setno);
- } else {
- model.setValue("root/send/data/treeset/supsetno", supsetno);
- }
-
- if (sortno == "")
- sortno = 1000;
- model.setValue("root/send/data/treeset/sortno", sortno);
- }
-
- //Tree에 추가 or 수정할 아이템명을 입력할 InputBox를 보여줌.
- function fShowWndIptBox() {
- //group1.attribute("top") = event.clientY;
- group1.attribute("top") = 400;
- group1.attribute("height") = 55;
- model.setFocus("ipt_setnm");
- }
-
- //Tree 저장
- function fSaveTreeSet() {
- var setnm = model.getValue("/root/temp/iptbox/setnm");
- model.setValue("root/send/data/treeset/setnm", setnm);
- //model.copyNode("/root/send/savedata", sPRMSPRCPSETLIST_HIDDEN);
- if ( submit("TXANB00301") ) {
- model.setValue("/root/temp/iptbox/setnm", "");
- submit("TRANB00301"); //저장후 재조회
- trv_dietprcpguide.rebuild();
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1196;1,454;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:132px; height:14px; ">식사처방지침서관리</caption>
- </group>
- <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
- <caption id="caption1" class="tit_2" style="left:5px; top:55px; width:134px; height:13px; ">식사처방지침서분류</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:70px; x2:454px; y2:70px; "/>
- <datagrid id="grd_foodbase" nodeset="/root/main/data/foodbase" caption="setno^seqno^식사분류^곡류군^어육류군^채소군^지방군^우유군^과일군^열량보충군" colsep="^" colwidth="0, 0, 130, 83, 83, 83, 83, 83, 83, 83" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:459px; top:630px; width:735px; height:110px; ">
- <col ref="setno"/>
- <col ref="seqno"/>
- <col ref="dietclsnm" type="input"/>
- <col ref="cerealgrup" type="input"/>
- <col ref="meatgrup" type="input"/>
- <col ref="vegtgrup" type="input"/>
- <col ref="lipidgrup" type="input"/>
- <col ref="milkgrup" type="input"/>
- <col ref="fruitgrup" type="input"/>
- <col ref="calrsupply" type="input"/>
- </datagrid>
- <group id="grp_sea" style="left:0px; top:10px; width:1195px; height:35px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption2" class="search_name" style="left:16px; top:9px; width:86px; height:17px; ">식사분류 :</caption>
- <button id="btn_search" class="btn1_letter2" style="left:1123px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- </button>
- <line id="line13" class="line_4" style="x1:1107px; y1:7px; x2:1107px; y2:29px; "/>
- <select1 id="cmb_mealcls" class="combo_search" appearance="minimal" style="left:105px; top:8px; width:230px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/basecode/meal/A0046">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- </group>
- <treeview id="trv_dietprcpguide" ref="/root/temp/treedata" dragmode="true" dropmode="true" expanddepth="5" fullrowselect="false" itemsettype="depth" style="left:0px; top:105px; width:454px; height:635px; ">
- <itemset nodeset="/root/main/tree/treeset">
- <label ref="setnm"/>
- <value ref="setno"/>
- <depth ref="levl"/>
- </itemset>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- setPopupMenu("trv_dietprcpguide", false , "/root/temp/treemenu/menu", "label", "func");
- ]]>
- </script>
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- initPopupMenu();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- model.setValue("/root/send/searchitem/setno", trv_dietprcpguide.value); //분류코드
- model.setValue("/root/send/searchitem/setnm", trv_dietprcpguide.label); //분류명
- submit("TRANB00302");
- ]]>
- </script>
- </treeview>
- <group id="group1" style="left:221px; top:400px; width:218px; height:55px; background-color:#99ccff; ">
- <caption id="caption4" style="left:5px; top:5px; width:41px; height:20px; font-weight:bold; vertical-align:middle; ">분류명</caption>
- <input id="ipt_setnm" ref="/root/temp/iptbox/setnm" class="input_default" style="left:55px; top:5px; width:154px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- inputEnterKey("btn_cnfm", "DOMActivate");
- var keycode = event.keyCode;
- if (keycode == 27) {
- group1.attribute("height") = 0;
- model.setFocus("trv_dietprcpguide");
- return;
- }
- ]]>
- </script>
- </input>
- <button id="btn_cnfm" class="btn2_letter2" style="left:122px; top:26px; width:42px; height:19px; ">
- <caption>확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- group1.attribute("height") = 0;
- model.setFocus("trv_dietprcpguide");
- model.refresh();
- fSaveTreeSet();
- ]]>
- </script>
- </button>
- <button id="btn_cncl" class="btn2_letter2" style="left:166px; top:26px; width:42px; height:19px; ">
- <caption>취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- group1.attribute("height") = 0;
- ]]>
- </script>
- </button>
- </group>
- <caption id="caption3" class="tit_2" style="left:464px; top:56px; width:147px; height:14px; ">식사처방지침서내용</caption>
- <line id="line2" class="line_1" style="x1:459px; y1:71px; x2:1194px; y2:71px; "/>
- <output id="opt_mealno" ref="/root/main/data/guidecnts/setno" class="output_fix" visibility="hidden" appearance="output" style="left:640px; top:50px; width:32px; height:19px; "/>
- <output id="opt_mealnm" ref="/root/main/data/guidecnts/setnm" class="output_fix" appearance="output" style="left:562px; top:77px; width:632px; height:19px; "/>
- <caption id="caption20" class="cell_1" style="left:459px; top:100px; width:100px; height:132px; vertical-align:middle; ">지침</caption>
- <line id="line5" class="line_2" style="x1:459px; y1:98px; x2:1194px; y2:98px; "/>
- <caption id="caption19" class="cell_1" style="left:459px; top:76px; width:100px; height:23px; vertical-align:middle; ">식사명</caption>
- <textarea id="tar_guide" ref="/root/main/data/guidecnts/guidecnts" navindex="1" style="left:562px; top:101px; width:632px; height:129px; "/>
- <line id="line6" class="line_3" style="x1:459px; y1:313px; x2:1194px; y2:313px; "/>
- <caption id="caption5" class="tit_2" style="left:464px; top:611px; width:134px; height:13px; ">1일 식품구성</caption>
- <line id="line4" class="line_1" style="x1:459px; y1:626px; x2:1194px; y2:626px; "/>
- <button id="btn_addrow3" class="btn2_letter3" style="left:1085px; top:605px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //Tree에서 분류 선택여부 체크
- if (model.getValue("/root/send/searchitem/setno") == "") {
- messageBox("좌측Tree에서 분류를 먼저", "C002");
- return;
- }
-
- grd_foodbase.addRow();
- if (model.getValue("/root/main/data/guidecnts/setno") == "") {
- model.setValue("/root/main/data/foodbase["+ grd_foodbase.row +"]/setno", model.getValue("/root/send/searchitem/setno"));
- } else {
- model.setValue("/root/main/data/foodbase["+ grd_foodbase.row +"]/setno", model.getValue("/root/main/data/guidecnts/setno"));
- }
- ]]>
- </script>
- </button>
- <button id="btn_delrow3" class="btn2_letter3" style="left:1141px; top:605px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_foodbase.deleteRow(grd_foodbase.row);
- ]]>
- </script>
- </button>
- <line id="line7" class="line_2" style="x1:0px; y1:97px; x2:454px; y2:97px; "/>
- <caption id="caption7" class="cell_1" style="left:0px; top:75px; width:75px; height:23px; vertical-align:middle; ">분류코드</caption>
- <input id="ipt_mealclscd" ref="/root/send/searchitem/setno" class="input_essential" style="left:78px; top:76px; width:122px; height:19px; "/>
- <caption id="caption8" class="cell_1" style="left:204px; top:75px; width:75px; height:23px; vertical-align:middle; ">분류명</caption>
- <input id="ipt_mealclsnm" ref="/root/send/searchitem/setnm" class="input_essential" style="left:282px; top:76px; width:172px; height:19px; "/>
- <button id="btn_copy" class="btn5_letter4" visibility="hidden" style="left:388px; top:49px; width:64px; height:19px; ">
- <caption>copy</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // if ( messageBox("분류를", "Q002") == 6 ) {
- // //식사처방지침서분류 tree 저장/수정
- // submit("TXANB00302");
- // submit("TRANB00302"); //저장후 재조회
- // } else { return; }
- ]]>
- </script>
- </button>
- <line id="line3" class="line_2" style="x1:459px; y1:234px; x2:1194px; y2:234px; "/>
- <caption id="caption9" class="cell_1" style="left:459px; top:236px; width:100px; height:75px; vertical-align:middle; ">비고</caption>
- <textarea id="tar_comment" ref="/root/main/data/guidecnts/guiderem" navindex="2" style="left:562px; top:237px; width:632px; height:73px; "/>
- <button id="btn_delrow1" class="btn2_letter3" style="left:1141px; top:315px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_dietbase.deleteRow(grd_dietbase.row);
- ]]>
- </script>
- </button>
- <datagrid id="grd_dietbase" nodeset="/root/main/data/dietbase" caption="setno^seqno^식사분류^밥(g)^죽(g)^미음(g)^찬(g)^기타(g)" colsep="^" colwidth="0, 0, 140, 95, 95, 95, 95, 190" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:459px; top:340px; width:735px; height:115px; ">
- <col ref="setno"/>
- <col ref="seqno"/>
- <col ref="dietclsnm" type="input"/>
- <col ref="rice" type="input"/>
- <col ref="gruel" type="input"/>
- <col ref="watergruel" type="input"/>
- <col ref="sidedish" type="input"/>
- <col ref="etc" type="input"/>
- </datagrid>
- <caption id="caption10" class="tit_2" style="left:464px; top:321px; width:134px; height:13px; ">식사제공 기준량</caption>
- <button id="btn_addrow1" class="btn2_letter3" style="left:1085px; top:315px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //Tree에서 분류 선택여부 체크
- if (model.getValue("/root/send/searchitem/setno") == "") {
- messageBox("좌측Tree에서 분류를 먼저", "C002");
- return;
- }
-
- grd_dietbase.addRow();
- if (model.getValue("/root/main/data/guidecnts/setno") == "") {
- model.setValue("/root/main/data/dietbase["+ grd_dietbase.row +"]/setno", model.getValue("/root/send/searchitem/setno"));
- } else {
- model.setValue("/root/main/data/dietbase["+ grd_dietbase.row +"]/setno", model.getValue("/root/main/data/guidecnts/setno"));
- }
- ]]>
- </script>
- </button>
- <line id="line8" class="line_1" style="x1:459px; y1:336px; x2:1194px; y2:336px; "/>
- <datagrid id="grd_nutrbase" nodeset="/root/main/data/nutrbase" caption="setno^seqno^식사분류^열량(㎉)^당질(g)^단백질(g)^지질(g)^나트륨(㎎)^칼륨(㎎)" colsep="^" colwidth="0, 0, 140, 95, 95, 95, 95, 95, 95" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:459px; top:485px; width:735px; height:115px; ">
- <col ref="setno"/>
- <col ref="seqno"/>
- <col ref="dietclsnm" type="input"/>
- <col ref="calr" type="input"/>
- <col ref="gluco" type="input"/>
- <col ref="prot" type="input"/>
- <col ref="lipo" type="input"/>
- <col ref="sodium" type="input"/>
- <col ref="potas" type="input"/>
- </datagrid>
- <button id="btn_delrow2" class="btn2_letter3" style="left:1141px; top:460px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_nutrbase.deleteRow(grd_nutrbase.row);
- ]]>
- </script>
- </button>
- <caption id="caption11" class="tit_2" style="left:464px; top:466px; width:134px; height:13px; ">1일 영양기준량</caption>
- <line id="line9" class="line_1" style="x1:459px; y1:481px; x2:1194px; y2:481px; "/>
- <button id="btn_addrow2" class="btn2_letter3" style="left:1085px; top:460px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //Tree에서 분류 선택여부 체크
- if (model.getValue("/root/send/searchitem/setno") == "") {
- messageBox("좌측Tree에서 분류를 먼저", "C002");
- return;
- }
-
- grd_nutrbase.addRow();
- if (model.getValue("/root/main/data/guidecnts/setno") == "") {
- model.setValue("/root/main/data/nutrbase["+ grd_nutrbase.row +"]/setno", model.getValue("/root/send/searchitem/setno"));
- } else {
- model.setValue("/root/main/data/nutrbase["+ grd_nutrbase.row +"]/setno", model.getValue("/root/main/data/guidecnts/setno"));
- }
- ]]>
- </script>
- </button>
- </group>
- <group id="grp_btn" style="left:0px; top:757px; width:1195px; height:27px; ">
- <button id="btn_reset" class="btn4_letter3" style="left:1067px; top:5px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- finit();
- ]]>
- </script>
- </button>
- <button id="btn_save" class="btn4_letter2" style="left:1138px; top:5px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if ( messageBox("", "Q002") == 6 ) {
- var update1 = getGridUpdateData(grd_dietbase); //식사제공기준량 그리드
- var update2 = getGridUpdateData(grd_nutrbase); //영양기준량 그리드
- var update3 = getGridUpdateData(grd_foodbase); //식품구성 그리드
- if ( (update1 != "") || (update2 != "") || (update3 != "") ) {
- //식사제공 기준량 그리드 필수입력항목 체크
- if ( update1 != "" ) {
- for ( i=1; i<grd_dietbase.rows; i++ ) {
- if ( model.getValue("/root/main/data/dietbase["+ i +"]/dietclsnm") == "" ) {
- messageBox("식사제공 기준량의 식사분류명 항목은", "I003");
- return;
- }
- }
- model.setValue("/root/send/data/dietbase", update1);
- }
-
- //영양기준량 그리드 필수입력항목 체크
- if ( update2 != "" ) {
- for ( i=1; i<grd_nutrbase.rows; i++ ) {
- if ( model.getValue("/root/main/data/nutrbase["+ i +"]/dietclsnm") == "" ) {
- messageBox("1일 영양기준량의 식사분류명 항목은", "I003");
- return;
- }
- }
- model.setValue("/root/send/data/nutrbase", update2);
- }
-
- //식품구성 그리드 필수입력항목 체크
- if ( update3 != "" ) {
- for ( i=1; i<grd_foodbase.rows; i++ ) {
- if ( model.getValue("/root/main/data/foodbase["+ i +"]/dietclsnm") == "" ) {
- messageBox("1일 식품구성의 식사분류명 항목은", "I003");
- return;
- }
- }
- model.setValue("/root/send/data/foodbase", update3);
- }
-
- submit("TXANB00303");
- model.resetInstanceNode("/root/send/data/dietbase");
- model.resetInstanceNode("/root/send/data/nutrbase");
- model.resetInstanceNode("/root/send/data/foodbase");
- }
-
- //식사처방지침서내용 저장/수정
- //신규입력일 경우
- if (model.getValue("/root/main/data/guidecnts/setno") == "") {
- model.setValue("/root/main/data/guidecnts/setno", model.getValue("/root/send/searchitem/setno"));
- }
- model.copyNode("/root/send/data/guidecnts", "/root/main/data/guidecnts");
- submit("TXANB00302");
- submit("TRANB00302"); //저장후 재조회
- } else { return; }
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|