SPANT01100_식사항목검색.xrw 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  3. <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">
  4. <xhtml:head>
  5. <xhtml:title>식사명검색</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <dietinfo>
  11. <dietlist>
  12. <dietlrgcd/>
  13. <dietmdlcd/>
  14. <dietsmlcd/>
  15. <dietcd/>
  16. <dietnm/>
  17. </dietlist>
  18. </dietinfo>
  19. </main>
  20. <send>
  21. <reqdata>
  22. <dietlrgcd/>
  23. <dietmdlcd/>
  24. <dietnm/>
  25. </reqdata>
  26. <reqdata1>
  27. <dietlrgcd/>
  28. </reqdata1>
  29. </send>
  30. <init>
  31. <cmb_info>
  32. </cmb_info>
  33. <baseinfo>
  34. <dietlrgcd/>
  35. <dietmdlcd/>
  36. <dietsmlcd/>
  37. </baseinfo>
  38. </init>
  39. <hidden>
  40. <uid>
  41. <myself/>
  42. <opener/>
  43. </uid>
  44. <tmp/>
  45. </hidden>
  46. </root>
  47. </instance>
  48. <script type="javascript" ev:event="xforms-ready">
  49. <![CDATA[
  50. model.removeNodeset("/root/main/dietinfo/dietlist");
  51. //model.setValue("/root/send/reqdata/dietlrgcd", model.getValue("/root/send/reqdata1/dietlrgcd"))
  52. zbcfGetCodeList(new Array("A0046", "A0047", "A0048"), new Array("/root/init/baseinfo/dietlrgcd", "/root/init/baseinfo/dietmdlcd", "/root/init/baseinfo/dietsmlcd"));
  53. submit("TRZBC00101");
  54. model.refresh();
  55. ]]>
  56. </script>
  57. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  58. <submission id="TRANT01100" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/dietinfo"/>
  59. </model>
  60. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  61. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  62. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  63. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  64. <script type="javascript" src="../../../pam/pamcomnweb/js/PAM.js"/>
  65. <script type="javascript">
  66. <![CDATA[
  67. function clickfunc(){
  68. if (grd_dietlist.row > 0){
  69. //opener.model.setValue("/root/send/reqdata/dietlrgcd", model.getValue("/root/send/reqdata/dietlrgcd"));
  70. opener.model.setValue("/root/send/reqdata/dietlrgcd", model.getValue("/root/main/dietinfo/dietlist[" + grd_dietlist.row + "]/dietlrgcd"));
  71. opener.model.setValue("/root/send/reqdata/dietcd", model.getValue("/root/main/dietinfo/dietlist[" + grd_dietlist.row + "]/dietcd"));
  72. opener.model.setValue("/root/send/reqdata/dietnm", model.getValue("/root/main/dietinfo/dietlist[" + grd_dietlist.row + "]/dietnm"));
  73. opener.model.setValue("/root/main/popupendflag", "ok");
  74. opener.model.refresh();
  75. window.close();
  76. }
  77. }
  78. ]]>
  79. </script>
  80. </xhtml:head>
  81. <xhtml:body pagewidth="534" pageheight="343" guideline="2,343;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  82. <group id="group3" scroll="auto" style="left:0px; top:0px; width:518px; height:316px; ">
  83. <group id="group2" style="left:0px; top:0px; width:518px; height:35px; ">
  84. <shape id="roundrect1" appearance="roundrect" style="left:0px; top:0px; width:517px; height:35px; "/>
  85. <caption id="caption2" class="search_name" style="left:15px; top:8px; width:86px; height:17px; ">중분류 :</caption>
  86. <button id="btn_search" class="btn1_letter2" navindex="3" style="left:445px; top:7px; width:56px; height:22px; ">
  87. <caption>조회</caption>
  88. <script type="javascript" ev:event="DOMActivate">
  89. <![CDATA[
  90. submit("TRANT01100");
  91. if (model.getValue("/root/main/dietinfo/dietlist[" + 1 + "]/dietcd") == ""){
  92. model.removeNodeset("/root/main/dietinfo/dietlist");
  93. }
  94. model.refresh();
  95. ]]>
  96. </script>
  97. </button>
  98. <line id="line13" class="line_4" style="x1:429px; y1:7px; x2:429px; y2:29px; border-color:#ffe4bb; "/>
  99. <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; ">
  100. <choices>
  101. <itemset nodeset="/root/init/baseinfo/dietlrgcd/A0046">
  102. <label ref="cdnm"/>
  103. <value ref="cdid"/>
  104. </itemset>
  105. </choices>
  106. </select1>
  107. <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; ">
  108. <choices>
  109. <itemset nodeset="/root/init/baseinfo/dietmdlcd/A0047">
  110. <label ref="cdnm"/>
  111. <value ref="cdid"/>
  112. </itemset>
  113. </choices>
  114. <script type="javascript" ev:event="xforms-value-changed">
  115. <![CDATA[
  116. model.setValue("/root/send/reqdata/dietnm", "");
  117. model.refresh();
  118. ]]>
  119. </script>
  120. </select1>
  121. <input id="ipt_dietnm" ref="/root/send/reqdata/dietnm" navindex="2" style="left:230px; top:8px; width:140px; height:19px; ">
  122. <script type="javascript" ev:event="onkeypress">
  123. <![CDATA[
  124. inputEnterKey("btn_search", "DOMActivate");
  125. ]]>
  126. </script>
  127. </input>
  128. </group>
  129. <caption id="caption1" class="tit_2" style="left:5px; top:45px; width:95px; height:14px; ">식사명</caption>
  130. <line id="line1" class="line_1" style="x1:0px; y1:60px; x2:517px; y2:60px; "/>
  131. <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; ">
  132. <col ref="dietlrgcd" type="combo">
  133. <choices>
  134. <itemset nodeset="/root/init/baseinfo/dietlrgcd/A0046">
  135. <label ref="cdnm"/>
  136. <value ref="cdid"/>
  137. </itemset>
  138. </choices>
  139. </col>
  140. <col disabled="true" ref="dietmdlcd" type="combo">
  141. <choices>
  142. <itemset nodeset="/root/init/baseinfo/dietmdlcd/A0047">
  143. <label ref="cdnm"/>
  144. <value ref="cdid"/>
  145. </itemset>
  146. </choices>
  147. </col>
  148. <col disabled="true" ref="dietsmlcd" type="combo">
  149. <choices>
  150. <itemset nodeset="/root/init/baseinfo/dietsmlcd/A0048">
  151. <label ref="cdnm"/>
  152. <value ref="cdid"/>
  153. </itemset>
  154. </choices>
  155. </col>
  156. <col ref="dietcd"/>
  157. <col ref="dietnm"/>
  158. <script type="javascript" ev:event="onaftersort">
  159. <![CDATA[
  160. grd_dietlist.gridToInstance();
  161. ]]>
  162. </script>
  163. <script type="javascript" ev:event="ondblclick">
  164. <![CDATA[
  165. clickfunc();
  166. ]]>
  167. </script>
  168. </datagrid>
  169. </group>
  170. <group id="group1" scroll="auto" style="left:0px; top:316px; width:518px; height:27px; ">
  171. <button id="btn_confirm" class="btn4_letter2" style="left:402px; top:5px; width:56px; height:22px; ">
  172. <caption>확인</caption>
  173. <script type="javascript" ev:event="DOMActivate">
  174. <![CDATA[
  175. clickfunc();
  176. ]]>
  177. </script>
  178. </button>
  179. <button id="btn_cancel" class="btn4_letter2" style="left:461px; top:5px; width:56px; height:22px; ">
  180. <caption>취소</caption>
  181. <script type="javascript" ev:event="DOMActivate">
  182. <![CDATA[
  183. opener.model.setValue("/root/main/popupendflag", "cancel");
  184. window.close();
  185. ]]>
  186. </script>
  187. </button>
  188. <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:518px; y2:0px; "/>
  189. </group>
  190. </xhtml:body>
  191. </xhtml:html>