123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.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>
- <dietinfo>
- <dietlist>
- <dietlrgcd/>
- <dietmdlcd/>
- <dietsmlcd/>
- <dietcd/>
- <dietnm/>
- </dietlist>
- </dietinfo>
- </main>
- <send>
- <reqdata>
- <dietlrgcd/>
- <dietmdlcd/>
- <dietnm/>
- </reqdata>
- <reqdata1>
- <dietlrgcd/>
- </reqdata1>
- </send>
- <init>
- <cmb_info>
- </cmb_info>
- <baseinfo>
- <dietlrgcd/>
- <dietmdlcd/>
- <dietsmlcd/>
- </baseinfo>
- </init>
- <hidden>
- <uid>
- <myself/>
- <opener/>
- </uid>
- <tmp/>
- </hidden>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- model.removeNodeset("/root/main/dietinfo/dietlist");
- //model.setValue("/root/send/reqdata/dietlrgcd", model.getValue("/root/send/reqdata1/dietlrgcd"))
- zbcfGetCodeList(new Array("A0046", "A0047", "A0048"), new Array("/root/init/baseinfo/dietlrgcd", "/root/init/baseinfo/dietmdlcd", "/root/init/baseinfo/dietsmlcd"));
- submit("TRZBC00101");
- model.refresh();
- ]]>
- </script>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
- <submission id="TRANT01100" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/dietinfo"/>
- </model>
- <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/dateHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../pam/pamcomnweb/js/PAM.js"/>
- <script type="javascript">
- <![CDATA[
- function clickfunc(){
- if (grd_dietlist.row > 0){
- //opener.model.setValue("/root/send/reqdata/dietlrgcd", model.getValue("/root/send/reqdata/dietlrgcd"));
- opener.model.setValue("/root/send/reqdata/dietlrgcd", model.getValue("/root/main/dietinfo/dietlist[" + grd_dietlist.row + "]/dietlrgcd"));
- opener.model.setValue("/root/send/reqdata/dietcd", model.getValue("/root/main/dietinfo/dietlist[" + grd_dietlist.row + "]/dietcd"));
- opener.model.setValue("/root/send/reqdata/dietnm", model.getValue("/root/main/dietinfo/dietlist[" + grd_dietlist.row + "]/dietnm"));
- opener.model.setValue("/root/main/popupendflag", "ok");
- opener.model.refresh();
- window.close();
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="534" pageheight="343" guideline="2,343;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group3" scroll="auto" style="left:0px; top:0px; width:518px; height:316px; ">
- <group id="group2" style="left:0px; top:0px; width:518px; height:35px; ">
- <shape id="roundrect1" appearance="roundrect" style="left:0px; top:0px; width:517px; 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="3" style="left:445px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- submit("TRANT01100");
- if (model.getValue("/root/main/dietinfo/dietlist[" + 1 + "]/dietcd") == ""){
- model.removeNodeset("/root/main/dietinfo/dietlist");
- }
- model.refresh();
- ]]>
- </script>
- </button>
- <line id="line13" class="line_4" style="x1:429px; y1:7px; x2:429px; y2:29px; border-color:#ffe4bb; "/>
- <select1 id="cmb_dietlrgcd" ref="/root/send/reqdata/dietlrgcd" class="combo_search" navindex="1" visibility="hidden" appearance="minimal" style="left:115px; top:15px; width:110px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/baseinfo/dietlrgcd/A0046">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="cmb_dietmdlcd" ref="/root/send/reqdata/dietmdlcd" class="combo_search" navindex="1" appearance="minimal" style="left:101px; top:8px; width:110px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/baseinfo/dietmdlcd/A0047">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.setValue("/root/send/reqdata/dietnm", "");
- model.refresh();
- ]]>
- </script>
- </select1>
- <input id="ipt_dietnm" ref="/root/send/reqdata/dietnm" navindex="2" style="left:230px; top:8px; width:140px; 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:95px; height:14px; ">식사명</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:60px; x2:517px; y2:60px; "/>
- <datagrid id="grd_dietlist" nodeset="/root/main/dietinfo/dietlist" caption="대분류명^중분류명^소분류명^식사코드^식사명" colsep="^" colwidth="0, 123, 133, 85, 151" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:65px; width:515px; height:249px; ">
- <col ref="dietlrgcd" type="combo">
- <choices>
- <itemset nodeset="/root/init/baseinfo/dietlrgcd/A0046">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="dietmdlcd" type="combo">
- <choices>
- <itemset nodeset="/root/init/baseinfo/dietmdlcd/A0047">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="dietsmlcd" type="combo">
- <choices>
- <itemset nodeset="/root/init/baseinfo/dietsmlcd/A0048">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="dietcd"/>
- <col ref="dietnm"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_dietlist.gridToInstance();
- ]]>
- </script>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- clickfunc();
- ]]>
- </script>
- </datagrid>
- </group>
- <group id="group1" scroll="auto" style="left:0px; top:316px; width:518px; height:27px; ">
- <button id="btn_confirm" class="btn4_letter2" style="left:402px; top:5px; width:56px; height:22px; ">
- <caption>확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- clickfunc();
- ]]>
- </script>
- </button>
- <button id="btn_cancel" class="btn4_letter2" style="left:461px; top:5px; width:56px; height:22px; ">
- <caption>취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- opener.model.setValue("/root/main/popupendflag", "cancel");
- window.close();
- ]]>
- </script>
- </button>
- <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:518px; y2:0px; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|