123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143 |
- <?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>
- <data>
- <chk/>
- <foodcd/>
- <foodnm/>
- <foodlrgcd/>
- <foodmdlcd/>
- <fromdd/>
- <todd/>
- </data>
- </main>
- <send>
- <searchitem>
- <foodnm/>
- </searchitem>
- <data/>
- </send>
- <init>
- <basecode>
- <food>
- <A0051>
- <cdid/>
- <cdnm/>
- </A0051>
- </food>
- <foodmdl>
- <A0357>
- <cdid/>
- <cdnm/>
- </A0357>
- </foodmdl>
- </basecode>
- </init>
- <temp>
- <receivedata>
- </receivedata>
- </temp>
- </root>
- </instance>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- zbcfGetCodeList( new Array( "A0051", "A0357"), new Array("/root/init/basecode/food", "/root/init/basecode/foodmdl" ) );
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- <submission id="TRZBC00101"/>
- <submission id="TRANT00501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchitem" resultref="/root/main"/>
- <submission id="TXANT00501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" resultref="/root/hidden"/>
- <bind id="bind_foodunit" ref="/root/main/data/foodunit" readonly="../foodunit!=''"/>
- </model>
- </xhtml:head>
- <xhtml:body pagewidth="600" pageheight="450" guideline="2,14;1,1194;2,784;2,757;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="grp_biz" scroll="auto" style="left:10px; top:0px; width:550px; height:420px; ">
- <group id="group2" style="left:0px; top:0px; width:548px; height:35px; ">
- <shape id="roundrect1" appearance="roundrect" style="left:0px; top:0px; width:546px; height:35px; "/>
- <caption id="caption2" class="search_name" style="left:15px; top:8px; width:86px; height:17px; ">식품명 :</caption>
- <button id="btn_search" class="btn1_letter2" navindex="6" style="left:475px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- submit("TRANT00501");
- ]]>
- </script>
- </button>
- <line id="line13" class="line_4" style="x1:460px; y1:7px; x2:460px; y2:29px; border-color:#ffe4bb; "/>
- <input id="ipt_dishnm" ref="/root/send/searchitem/foodnm" class="input_search" style="left:90px; top:8px; width:215px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- inputEnterKey("btn_search", "DOMActivate");
- ]]>
- </script>
- </input>
- </group>
- <caption id="caption1" class="tit_2" style="left:5px; top:45px; width:135px; height:13px; ">식품검색</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:60px; x2:548px; y2:60px; "/>
- <datagrid id="grd_data" nodeset="/root/main/data" caption="선택^코드^식품명^대분류^중분류^caption1^caption2" colsep="^" colwidth="40, 80, 186, 93, 106, 100, 100" dataheight="25" mergecells="byrow" rowheader="seq" rowheight="25" rowsep="|" style="left:0px; top:65px; width:548px; height:320px; text-align:center; ">
- <col checkvalue="Y,N" ref="chk" type="checkbox"/>
- <col ref="foodcd"/>
- <col ref="foodnm" style="text-align:left; "/>
- <col disabled="true" ref="foodlrgcd" type="combo" style="text-align:left; ">
- <choices>
- <itemset nodeset="/root/init/basecode/food/A0051">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="foodmdlcd" type="combo" style="text-align:left; ">
- <choices>
- <itemset nodeset="/root/init/basecode/foodmdl/A0357">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="fromdd" visibility="hidden"/>
- <col ref="todd" visibility="hidden"/>
- </datagrid>
- </group>
- <group id="grp_btn" scroll="auto" style="left:10px; top:386px; width:550px; height:27px; ">
- <button id="btn_can" class="btn4_letter2" style="left:489px; top:5px; width:56px; height:22px; ">
- <caption>취소</caption>
- <script type="javascript" ev:event="xforms-activate">
- <![CDATA[
- window.close();
- ]]>
- </script>
- </button>
- <button id="button1" class="btn4_letter2" style="left:429px; top:5px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="xforms-activate">
- <![CDATA[
- var icnt = 0;
- for (var i = 1; i < grd_data.rows; i++){
- if (model.getValue("/root/main/data[" + i + "]/chk") == "Y"){
- icnt = parseInt(icnt) + 1;
- }
- }
- if (icnt == 0){
- messageBox("처리할 자료를 선택하시기 바랍니다.", "E999", "");
- return;
- }
- model.setValue("/root/send/data", grd_data.getUpdateData());
- submit("TXANT00501");
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|