SPANT00500_미반영식품검색.xrw 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/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. <data>
  11. <chk/>
  12. <foodcd/>
  13. <foodnm/>
  14. <foodlrgcd/>
  15. <foodmdlcd/>
  16. <fromdd/>
  17. <todd/>
  18. </data>
  19. </main>
  20. <send>
  21. <searchitem>
  22. <foodnm/>
  23. </searchitem>
  24. <data/>
  25. </send>
  26. <init>
  27. <basecode>
  28. <food>
  29. <A0051>
  30. <cdid/>
  31. <cdnm/>
  32. </A0051>
  33. </food>
  34. <foodmdl>
  35. <A0357>
  36. <cdid/>
  37. <cdnm/>
  38. </A0357>
  39. </foodmdl>
  40. </basecode>
  41. </init>
  42. <temp>
  43. <receivedata>
  44. </receivedata>
  45. </temp>
  46. </root>
  47. </instance>
  48. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  49. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  50. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  51. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  52. <script type="javascript" ev:event="xforms-ready">
  53. <![CDATA[
  54. zbcfGetCodeList( new Array( "A0051", "A0357"), new Array("/root/init/basecode/food", "/root/init/basecode/foodmdl" ) );
  55. btn_search.dispatch("DOMActivate");
  56. ]]>
  57. </script>
  58. <submission id="TRZBC00101"/>
  59. <submission id="TRANT00501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchitem" resultref="/root/main"/>
  60. <submission id="TXANT00501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" resultref="/root/hidden"/>
  61. <bind id="bind_foodunit" ref="/root/main/data/foodunit" readonly="../foodunit!=''"/>
  62. </model>
  63. </xhtml:head>
  64. <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; ">
  65. <group id="grp_biz" scroll="auto" style="left:10px; top:0px; width:550px; height:420px; ">
  66. <group id="group2" style="left:0px; top:0px; width:548px; height:35px; ">
  67. <shape id="roundrect1" appearance="roundrect" style="left:0px; top:0px; width:546px; height:35px; "/>
  68. <caption id="caption2" class="search_name" style="left:15px; top:8px; width:86px; height:17px; ">식품명 :</caption>
  69. <button id="btn_search" class="btn1_letter2" navindex="6" style="left:475px; top:7px; width:56px; height:22px; ">
  70. <caption>조회</caption>
  71. <script type="javascript" ev:event="DOMActivate">
  72. <![CDATA[
  73. submit("TRANT00501");
  74. ]]>
  75. </script>
  76. </button>
  77. <line id="line13" class="line_4" style="x1:460px; y1:7px; x2:460px; y2:29px; border-color:#ffe4bb; "/>
  78. <input id="ipt_dishnm" ref="/root/send/searchitem/foodnm" class="input_search" style="left:90px; top:8px; width:215px; height:19px; ">
  79. <script type="javascript" ev:event="onkeypress">
  80. <![CDATA[
  81. inputEnterKey("btn_search", "DOMActivate");
  82. ]]>
  83. </script>
  84. </input>
  85. </group>
  86. <caption id="caption1" class="tit_2" style="left:5px; top:45px; width:135px; height:13px; ">식품검색</caption>
  87. <line id="line1" class="line_1" style="x1:0px; y1:60px; x2:548px; y2:60px; "/>
  88. <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; ">
  89. <col checkvalue="Y,N" ref="chk" type="checkbox"/>
  90. <col ref="foodcd"/>
  91. <col ref="foodnm" style="text-align:left; "/>
  92. <col disabled="true" ref="foodlrgcd" type="combo" style="text-align:left; ">
  93. <choices>
  94. <itemset nodeset="/root/init/basecode/food/A0051">
  95. <label ref="cdnm"/>
  96. <value ref="cdid"/>
  97. </itemset>
  98. </choices>
  99. </col>
  100. <col disabled="true" ref="foodmdlcd" type="combo" style="text-align:left; ">
  101. <choices>
  102. <itemset nodeset="/root/init/basecode/foodmdl/A0357">
  103. <label ref="cdnm"/>
  104. <value ref="cdid"/>
  105. </itemset>
  106. </choices>
  107. </col>
  108. <col ref="fromdd" visibility="hidden"/>
  109. <col ref="todd" visibility="hidden"/>
  110. </datagrid>
  111. </group>
  112. <group id="grp_btn" scroll="auto" style="left:10px; top:386px; width:550px; height:27px; ">
  113. <button id="btn_can" class="btn4_letter2" style="left:489px; top:5px; width:56px; height:22px; ">
  114. <caption>취소</caption>
  115. <script type="javascript" ev:event="xforms-activate">
  116. <![CDATA[
  117. window.close();
  118. ]]>
  119. </script>
  120. </button>
  121. <button id="button1" class="btn4_letter2" style="left:429px; top:5px; width:56px; height:22px; ">
  122. <caption>저장</caption>
  123. <script type="javascript" ev:event="xforms-activate">
  124. <![CDATA[
  125. var icnt = 0;
  126. for (var i = 1; i < grd_data.rows; i++){
  127. if (model.getValue("/root/main/data[" + i + "]/chk") == "Y"){
  128. icnt = parseInt(icnt) + 1;
  129. }
  130. }
  131. if (icnt == 0){
  132. messageBox("처리할 자료를 선택하시기 바랍니다.", "E999", "");
  133. return;
  134. }
  135. model.setValue("/root/send/data", grd_data.getUpdateData());
  136. submit("TXANT00501");
  137. btn_search.dispatch("DOMActivate");
  138. ]]>
  139. </script>
  140. </button>
  141. </group>
  142. </xhtml:body>
  143. </xhtml:html>