SMANB00600_영양검색조건관리.xrw 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232
  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. <valuitemcd/>
  12. <h_valuitemcd/>
  13. <dngrstatcd/>
  14. <h_dngrstatcd/>
  15. <minval/>
  16. <maxval/>
  17. </data>
  18. </main>
  19. <send>
  20. <searchitem>
  21. <valuitemcd/>
  22. </searchitem>
  23. <data>
  24. <griddata/>
  25. </data>
  26. </send>
  27. <hidden>
  28. <ret>
  29. <count/>
  30. </ret>
  31. </hidden>
  32. <init>
  33. <basecode>
  34. <dngrstat>
  35. <A0058>
  36. <cdid/>
  37. <cdnm/>
  38. </A0058>
  39. </dngrstat>
  40. </basecode>
  41. </init>
  42. </root>
  43. </instance>
  44. <script type="javascript" ev:event="xforms-ready">
  45. <![CDATA[
  46. finit();
  47. btn_search.disabled = !checkAuth("R");
  48. btn_save.disabled = !checkAuth("X");
  49. btn_excel.disabled = !checkAuth("P");
  50. ]]>
  51. </script>
  52. <script type="javascript">
  53. <![CDATA[
  54. function finit() {
  55. // 화면open시 공통코드 setting
  56. zbcfGetCodeList( new Array( "A0058" ), new Array( "/root/init/basecode/dngrstat" ) );
  57. model.setValue("/root/send/searchitem/valuitemcd", "1");
  58. model.resetInstanceNode("/root/send/data");
  59. //model.removeNodeset("/root/main/data");
  60. submit("TRANB00601");
  61. }
  62. ]]>
  63. </script>
  64. <submission id="TRZBC00101"/>
  65. <submission id="TRANB00601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchitem" resultref="/root/main"/>
  66. <submission id="TXANB00601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" resultref="/root/hidden/ret"/>
  67. </model>
  68. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  69. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  70. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  71. </xhtml:head>
  72. <xhtml:body guideline="1,1194;2,747;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  73. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  74. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:189px; height:14px; ">영양검색조건관리</caption>
  75. </group>
  76. <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  77. <group id="group2" style="left:0px; top:10px; width:1194px; height:35px; ">
  78. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:35px; background-color:#fffbf2; "/>
  79. <caption id="caption2" class="search_name" style="left:16px; top:8px; width:86px; height:17px; ">평가항목 :</caption>
  80. <button id="btn_search" class="btn1_letter2" style="left:1122px; top:7px; width:56px; height:22px; ">
  81. <caption>조회</caption>
  82. <script type="javascript" ev:event="DOMActivate">
  83. <![CDATA[
  84. submit("TRANB00601");
  85. ]]>
  86. </script>
  87. </button>
  88. <line id="line13" style="x1:1106px; y1:7px; x2:1106px; y2:29px; "/>
  89. <select1 id="cmb_valuitem" ref="/root/send/searchitem/valuitemcd" class="combo_s_essential" appearance="minimal" style="left:105px; top:7px; width:125px; height:19px; ">
  90. <choices>
  91. <item>
  92. <label>PIBW</label>
  93. <value>1</value>
  94. </item>
  95. <item>
  96. <label>Albumin</label>
  97. <value>2</value>
  98. </item>
  99. <item>
  100. <label>TLC</label>
  101. <value>3</value>
  102. </item>
  103. <item>
  104. <label>인증평가기준(초기)</label>
  105. <value>4</value>
  106. </item>
  107. <item>
  108. <label>인증평가기준(재검색)</label>
  109. <value>5</value>
  110. </item>
  111. </choices>
  112. <script type="javascript" ev:event="xforms-value-changed">
  113. <![CDATA[
  114. submit("TRANB00601");
  115. ]]>
  116. </script>
  117. </select1>
  118. </group>
  119. <line id="line1" class="line_1" style="x1:0px; y1:70px; x2:1194px; y2:70px; "/>
  120. <button id="btn_excel" class="btn2_letter4" style="left:1123px; top:49px; width:90px; height:19px; ">
  121. <caption>엑셀저장</caption>
  122. <script type="javascript" ev:event="DOMActivate">
  123. <![CDATA[
  124. var filename = window.fileDialog("save", ",", false, "NutrSrchCond_list", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  125. if (filename != "") {
  126. grd_data.saveExcel(filename, "grd_data", true, false, "", "", "");
  127. }
  128. ]]>
  129. </script>
  130. </button>
  131. <button id="btn_rowadd" class="btn2_letter3" style="left:1010px; top:49px; width:53px; height:19px; ">
  132. <caption>행추가</caption>
  133. <script type="javascript" ev:event="DOMActivate">
  134. <![CDATA[
  135. //grd_data.addrow();
  136. var valuitem = model.getValue("/root/send/searchitem/valuitemcd");
  137. if ( valuitem == "1" ) { // PIBW 선택시
  138. grd_data.addRow();
  139. model.setValue("/root/main/data["+ grd_data.row +"]/valuitemcd", '1');
  140. }
  141. else if ( valuitem == "2" ) { // Alb 선택시
  142. grd_data.addRow();
  143. model.setValue("/root/main/data["+ grd_data.row +"]/valuitemcd", '2');
  144. }
  145. else if ( valuitem == "3" ) { // TLC 선택시
  146. grd_data.addRow();
  147. model.setValue("/root/main/data["+ grd_data.row +"]/valuitemcd", '3');
  148. }
  149. else if ( valuitem == "4" ) { // TJCI 검색 평가기준
  150. grd_data.addRow();
  151. model.setValue("/root/main/data["+ grd_data.row +"]/valuitemcd", '4');
  152. }
  153. ]]>
  154. </script>
  155. </button>
  156. <button id="btn_rowdel" class="btn2_letter3" style="left:1066px; top:49px; width:53px; height:19px; ">
  157. <caption>행삭제</caption>
  158. <script type="javascript" ev:event="DOMActivate">
  159. <![CDATA[
  160. grd_data.deleterow(grd_data.row);
  161. ]]>
  162. </script>
  163. </button>
  164. </group>
  165. <group id="group4" scroll="auto" style="left:0px; top:757px; width:1195px; height:27px; ">
  166. <button id="btn_save" class="btn4_letter2" style="left:1138px; top:4px; width:56px; height:22px; ">
  167. <caption>저장</caption>
  168. <script type="javascript" ev:event="DOMActivate">
  169. <![CDATA[
  170. if ( messageBox("", "Q002") == 6 ) {
  171. var update = getGridUpdateData(grd_data);
  172. if (update == "") {
  173. messageBox("저장할", "E013");
  174. return;
  175. } else {
  176. //필수입력항목 체크
  177. for ( j = 1; j < grd_data.rows; j++ ) {
  178. var dngrstatcd = model.getValue("/root/main/data["+ j +"]/dngrstatcd");
  179. if ( dngrstatcd == "" ) {
  180. messageBox("위험수준 항목은", "I003");
  181. return;
  182. }
  183. }
  184. model.setValue("/root/send/data/griddata", update);
  185. submit("TXANB00601");
  186. submit("TRANB00601"); //저장 후 재조회
  187. }
  188. } else { return; }
  189. ]]>
  190. </script>
  191. </button>
  192. </group>
  193. <datagrid id="grd_data" nodeset="/root/main/data" caption="평가항목^h_평가항목^위험수준^h_위험수준^범위^범위" colsep="^" colwidth="381, 10, 537, 10, 110, 110" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:88px; width:1194px; height:659px; ">
  194. <col ref="valuitemcd" type="combo">
  195. <choices>
  196. <item>
  197. <label>PIBW</label>
  198. <value>1</value>
  199. </item>
  200. <item>
  201. <label>Alb</label>
  202. <value>2</value>
  203. </item>
  204. <item>
  205. <label>TLC</label>
  206. <value>3</value>
  207. </item>
  208. <item>
  209. <label>위험도 판정기준(초기)</label>
  210. <value>4</value>
  211. </item>
  212. <item>
  213. <label>위험도 판정기준(재검색)</label>
  214. <value>5</value>
  215. </item>
  216. </choices>
  217. </col>
  218. <col ref="h_valuitemcd" visibility="hidden"/>
  219. <col ref="dngrstatcd" type="combo">
  220. <choices>
  221. <itemset nodeset="/root/init/basecode/dngrstat/A0058">
  222. <label ref="cdnm"/>
  223. <value ref="cdid"/>
  224. </itemset>
  225. </choices>
  226. </col>
  227. <col ref="h_dngrstatcd" visibility="hidden"/>
  228. <col ref="minval" type="input" style="text-align:center; "/>
  229. <col ref="maxval" type="input" style="text-align:center; "/>
  230. </datagrid>
  231. </xhtml:body>
  232. </xhtml:html>