SMANT00600_상차림현황.xrw 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567
  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. <gnrlmeal>
  11. <appdd/>
  12. <mealflag/>
  13. <gnrlflag/>
  14. <acount/>
  15. <bcount/>
  16. <ccount/>
  17. <dcount/>
  18. </gnrlmeal>
  19. <curesidemeal>
  20. <appdd/>
  21. <mealflag/>
  22. <menuflag/>
  23. <dishtableflag/>
  24. <dishcd/>
  25. <dishnm/>
  26. <psnno1/>
  27. <psnno2/>
  28. <psnno3/>
  29. <psnno4/>
  30. <psnno5/>
  31. <psnno6/>
  32. <remark/>
  33. </curesidemeal>
  34. <curericemeal>
  35. <appdd/>
  36. <mealflag/>
  37. <riceflag/>
  38. <whiterice/>
  39. <mixrice/>
  40. </curericemeal>
  41. <curegruelmeal>
  42. <appdd/>
  43. <mealflag/>
  44. <gruelflag/>
  45. <whitegruel/>
  46. <etcgruel/>
  47. </curegruelmeal>
  48. </main>
  49. <main2>
  50. <curemeal>
  51. <rows/>
  52. </curemeal>
  53. </main2>
  54. <send>
  55. <searchitem>
  56. <appdd/>
  57. <menuflag/>
  58. <mealflag/>
  59. <dietmdlcd/>
  60. </searchitem>
  61. <req>
  62. <dish/>
  63. </req>
  64. <print>
  65. <gnrlmeal/>
  66. <curesidemeal/>
  67. <curericemeal/>
  68. <curegruelmeal/>
  69. </print>
  70. </send>
  71. <temp>
  72. </temp>
  73. <init>
  74. <basecode>
  75. <meal>
  76. <A0055>
  77. <cdid/>
  78. <cdnm/>
  79. </A0055>
  80. </meal>
  81. <diettable>
  82. <A0417>
  83. <cdid/>
  84. <cdnm/>
  85. </A0417>
  86. </diettable>
  87. <dietmdlcd>
  88. <A0047>
  89. <cdid/>
  90. <cdnm/>
  91. </A0047>
  92. </dietmdlcd>
  93. </basecode>
  94. </init>
  95. </root>
  96. </instance>
  97. <script type="javascript" ev:event="xforms-ready">
  98. <![CDATA[
  99. finit();
  100. btn_search.disabled = !checkAuth("R");
  101. //btn_save.disabled = !checkAuth("X");
  102. //btn_excel.disabled = !checkAuth("P");
  103. ]]>
  104. </script>
  105. <submission id="TRZBC00101"/>
  106. <submission id="TRANT00601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchitem" resultref="/root/main"/>
  107. <submission id="TRANT00602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchitem" resultref="/root/temp/curemeal"/>
  108. </model>
  109. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  110. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  111. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  112. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  113. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  114. <script type="javascript">
  115. <![CDATA[
  116. var gvGridCaption = grd_curemeal.caption;
  117. function finit() {
  118. // 화면open시 공통코드 setting
  119. zbcfGetCodeList( new Array( "A0055", "A0417", "A0047" ), new Array( "/root/init/basecode/meal", "/root/init/basecode/diettable", "/root/init/basecode/dietmdlcd" ) );
  120. //model.resetInstanceNode("/root/main");
  121. model.resetInstanceNode("/root/send");
  122. model.removeNodeset("/root/main");
  123. model.removeNodeset("/root/main2");
  124. //model.setFocus("ipt_pid");
  125. model.setValue("/root/send/searchitem/appdd", getCurrentDate());
  126. model.setValue("/root/send/searchitem/menuflag", "Q1");
  127. model.setValue("/root/send/searchitem/dietmdlcd", "04");
  128. btn_gnrlmeal.dispatch("DOMActivate");
  129. //화면open시 현재시간을 계산하여 끼니 자동setting
  130. //각 끼니별 2차 마감시간으로부터 2시간후까지는 이전끼니로 setting
  131. var tm = getCurrentTime();
  132. if ( tm.substr(0,4) <= 0830 ) { //조식 2차 마감시간은 06:30
  133. //if ( tm.substr(0,4) <= 0630 ) {
  134. model.setValue("/root/send/searchitem/mealflag", "1");
  135. } else if ( (tm.substr(0,4) > 0830) && (tm.substr(0,4) <= 1330) ) { //중식 2차 마감시간은 11:30
  136. //} else if ( (tm.substr(0,4) > 0630) && (tm.substr(0,4) <= 1130) ) {
  137. model.setValue("/root/send/searchitem/mealflag", "2");
  138. } else {
  139. model.setValue("/root/send/searchitem/mealflag", "3");
  140. }
  141. //치료식탭 관련
  142. //var gvGridCaption = grd_curemeal.caption;
  143. grd_curemeal.refresh();
  144. grd_curemeal.mergeByFree(0,0,1,0);
  145. grd_curemeal.mergeByFree(0,1,1,1);
  146. grd_curemeal.mergeByFree(0,2,1,2);
  147. model.refresh();
  148. btn_search.dispatch("DOMActivate");
  149. }
  150. //치료식 상차림 현황 : temp 노드로 조회된 치료식 상차림 데이터를 main2 노드로 이동시킨다.
  151. function fAddGridColumns() {
  152. var nodelist = instance1.selectNodes("/root/temp/curemeal/header");
  153. var colcnt = nodelist.length;
  154. var grdCaption = grd_curemeal.caption.split("|"); // 헤더 caption을 2줄로 분리
  155. for (var i=0; i<colcnt; i++) {
  156. var columnid = model.getValue("/root/temp/curemeal/header["+(i+1)+"]/columnid");
  157. var dietnm = model.getValue("/root/temp/curemeal/header["+(i+1)+"]/dietnm");
  158. var mealcalrcnts = model.getValue("/root/temp/curemeal/header["+(i+1)+"]/mealcalrcnts");
  159. grd_curemeal.addColumn("ref:"+columnid+"; type:input; text-align:center;", false);
  160. //<col ref="bcount" style="text-align:right; "/>
  161. //식사처방명이 6글자 이상일 경우 첫번째 HeaderRow 높이 늘이기
  162. if( dietnm.length >= 6 ) {
  163. var dietnmLen = Math.ceil(dietnm.length / 2);
  164. dietnm = dietnm.substr(0, dietnmLen) + "\n" + dietnm.substr(dietnmLen);;
  165. }
  166. grdCaption[0] = grdCaption[0] + "^" + dietnm;
  167. grdCaption[1] = grdCaption[1] + "^" + mealcalrcnts;
  168. }
  169. grd_curemeal.caption= grdCaption[0] + "|" + grdCaption[1];
  170. var grdnode = instance1.selectSingleNode("/root/main2");
  171. if (instance1.selectSingleNode("/root/main2/curemeal") != null) {
  172. grdnode.replaceChild(instance1.root.temp.curemeal, instance1.root.main2.curemeal);
  173. }
  174. grd_curemeal.refresh();
  175. grd_curemeal.mergeByFree(0,0,1,0);
  176. grd_curemeal.mergeByFree(0,1,1,1);
  177. grd_curemeal.mergeByFree(0,2,1,2);
  178. model.refresh();
  179. }
  180. //치료식 상차림 현황 : 치료식 그리드(grd_curemeal) 초기화
  181. function fInitGridColumns() {
  182. var cols = grd_curemeal.cols-grd_curemeal.fixedCols;
  183. for (var i=3; i<cols; i++) {
  184. grd_curemeal.removeColumn(false);
  185. }
  186. model.removeNodeset("/root/main2/curemeal");
  187. grd_curemeal.caption = gvGridCaption;
  188. }
  189. //탭화면별로 컨트롤을 숨기거나 보이기
  190. function fvisible(str) {
  191. //일반식,치료식찬,치료식주식일 경우
  192. if ( str == '1' ) {
  193. //조회조건중 끼니 보임.
  194. caption4.visible = true;
  195. rdo_mealflag.visible = true;
  196. //조회조건중 분류 숨김.
  197. caption1.visible = false;
  198. cmb_dietmdlcd.visible = false;
  199. //엑셀버튼 숨김.
  200. btn_excel.visible = false;
  201. //출력버튼 보임.
  202. btn_print.visible = true;
  203. }
  204. //치료식일 경우
  205. else if ( str == '2' ) {
  206. //조회조건중 끼니 숨김.
  207. caption4.visible = false;
  208. rdo_mealflag.visible = false;
  209. //조회조건중 분류 보임.
  210. caption1.visible = true;
  211. cmb_dietmdlcd.visible = true;
  212. //엑셀버튼 보임.
  213. btn_excel.visible = true;
  214. //출력버튼 숨김.
  215. btn_print.visible = false;
  216. }
  217. }
  218. ]]>
  219. </script>
  220. </xhtml:head>
  221. <xhtml:body guideline="1,1195;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  222. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  223. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:150px; height:14px; ">상차림현황</caption>
  224. </group>
  225. <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  226. <group id="grp_sea" style="left:0px; top:10px; width:1194px; height:35px; vertical-align:top; ">
  227. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:35px; background-color:#fffbf2; "/>
  228. <caption id="caption2" class="search_name" style="left:71px; top:9px; width:64px; height:17px; ">일자 :</caption>
  229. <line id="line13" class="line_4" style="x1:1100px; y1:6px; x2:1100px; y2:28px; "/>
  230. <button id="btn_beforedd" class="icon_pre" style="left:228px; top:10px; width:13px; height:15px; ">
  231. <caption/>
  232. <script type="javascript" ev:event="onclick">
  233. <![CDATA[
  234. var dd = model.getValue("/root/send/searchitem/appdd");
  235. dd = dd.toDate().getAddDate(-1, "D");
  236. dd = dd.getDateFormat();
  237. model.setValue("/root/send/searchitem/appdd", dd);
  238. model.refresh();
  239. ]]>
  240. </script>
  241. </button>
  242. <button id="btn_nextdd" class="icon_next" style="left:241px; top:10px; width:13px; height:15px; ">
  243. <caption/>
  244. <script type="javascript" ev:event="onclick">
  245. <![CDATA[
  246. var dd = model.getValue("/root/send/searchitem/appdd");
  247. dd = dd.toDate().getAddDate(1, "D");
  248. dd = dd.getDateFormat();
  249. model.setValue("/root/send/searchitem/appdd", dd);
  250. model.refresh();
  251. ]]>
  252. </script>
  253. </button>
  254. <input id="ipt_appdd" ref="/root/send/searchitem/appdd" class="input_search" inputtype="date" style="left:132px; top:8px; width:90px; height:19px; "/>
  255. <button id="btn_search" class="btn1_letter2" style="left:1118px; top:7px; width:56px; height:22px; ">
  256. <caption>조회</caption>
  257. <script type="javascript" ev:event="DOMActivate">
  258. <![CDATA[
  259. submit("TRANT00601");
  260. model.removeNodeset("/root/main2/curemeal/rows");
  261. fInitGridColumns();
  262. if ( btn_curemeal.selected ) {
  263. fInitGridColumns();
  264. submit("TRANT00602", false);
  265. fAddGridColumns();
  266. //첫번째 HeaderRow 높이 늘이기
  267. grd_curemeal.rowHeight(0) = 35;
  268. //colWidth이 기본 100 이므로 70 으로 줄이기
  269. for( var i = 3; i < grd_curemeal.cols; i++ ) {
  270. grd_curemeal.colWidth(i) = 70;
  271. }
  272. //grd_curemeal.resizeCells();
  273. }
  274. model.refresh();
  275. ]]>
  276. </script>
  277. </button>
  278. <caption id="caption4" class="search_name" style="left:321px; top:9px; width:60px; height:17px; ">끼니 :</caption>
  279. <select1 id="rdo_mealflag" ref="/root/send/searchitem/mealflag" class="radio_search" appearance="full" cellspacing="5" cols="3" rows="1" overflow="visible" style="left:383px; top:8px; width:147px; height:19px; ">
  280. <choices>
  281. <item>
  282. <label>조식</label>
  283. <value>1</value>
  284. </item>
  285. <item>
  286. <label>중식</label>
  287. <value>2</value>
  288. </item>
  289. <item>
  290. <label>석식</label>
  291. <value>3</value>
  292. </item>
  293. </choices>
  294. </select1>
  295. <caption id="caption1" class="search_name" style="left:530px; top:9px; width:60px; height:17px; ">분류 :</caption>
  296. <select1 id="cmb_dietmdlcd" ref="/root/send/searchitem/dietmdlcd" class="combo_s_essential" appearance="minimal" style="left:590px; top:8px; width:135px; height:19px; ">
  297. <choices>
  298. <item>
  299. <label>당뇨식</label>
  300. <value>04</value>
  301. </item>
  302. <item>
  303. <label>신장질환식</label>
  304. <value>05</value>
  305. </item>
  306. <item>
  307. <label>간장질환식</label>
  308. <value>06</value>
  309. </item>
  310. <item>
  311. <label>위장질환식</label>
  312. <value>07</value>
  313. </item>
  314. <item>
  315. <label>심혈관질환식</label>
  316. <value>08</value>
  317. </item>
  318. <item>
  319. <label>경장영양식</label>
  320. <value>09</value>
  321. </item>
  322. <item>
  323. <label>기타치료식</label>
  324. <value>10</value>
  325. </item>
  326. <item>
  327. <label>검사식</label>
  328. <value>11</value>
  329. </item>
  330. <item>
  331. <label>멸균식</label>
  332. <value>12</value>
  333. </item>
  334. <item>
  335. <label>비급여식</label>
  336. <value>13</value>
  337. </item>
  338. </choices>
  339. </select1>
  340. </group>
  341. <button id="btn_gnrlmeal" class="btn_sw" group="tab" selected="true" style="left:0px; top:49px; width:78px; height:22px; ">
  342. <caption>일반식</caption>
  343. <script type="javascript" ev:event="DOMActivate">
  344. <![CDATA[
  345. model.toggle("case1");
  346. fvisible('1'); //탭화면별로 컨트롤을 숨기거나 보이기
  347. ]]>
  348. </script>
  349. </button>
  350. <button id="btn_curesidemeal" class="btn_sw" group="tab" style="left:78px; top:49px; width:78px; height:22px; ">
  351. <caption>치료식찬</caption>
  352. <script type="javascript" ev:event="DOMActivate">
  353. <![CDATA[
  354. model.toggle("case2");
  355. fvisible('1'); //탭화면별로 컨트롤을 숨기거나 보이기
  356. ]]>
  357. </script>
  358. </button>
  359. <button id="btn_curemainmeal" class="btn_sw" group="tab" style="left:156px; top:49px; width:85px; height:22px; ">
  360. <caption>치료식주식</caption>
  361. <script type="javascript" ev:event="DOMActivate">
  362. <![CDATA[
  363. model.toggle("case3");
  364. fvisible('1'); //탭화면별로 컨트롤을 숨기거나 보이기
  365. ]]>
  366. </script>
  367. </button>
  368. <button id="btn_curemeal" class="btn_sw" group="tab" style="left:241px; top:49px; width:78px; height:22px; ">
  369. <caption>치료식</caption>
  370. <script type="javascript" ev:event="DOMActivate">
  371. <![CDATA[
  372. model.toggle("case4");
  373. fvisible('2'); //탭화면별로 컨트롤을 숨기거나 보이기
  374. ]]>
  375. </script>
  376. </button>
  377. <button id="btn_excel" class="btn2_letter2" style="left:1146px; top:50px; width:42px; height:19px; ">
  378. <caption>엑셀</caption>
  379. <script type="javascript" ev:event="DOMActivate">
  380. <![CDATA[
  381. //치료식 탭화면일때
  382. if ( btn_curemeal.selected ) {
  383. if ( grd_curemeal.rows-2 > 0 ) {
  384. var filename = window.fileDialog("save", ",", false, "치료식상차림현황", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  385. if (filename != "") {
  386. grd_curemeal.saveExcel(filename, "grd_curemeal", true, false, "", "", "");
  387. }
  388. } else {
  389. messageBox("엑셀로 저장할 데이터가", "I004")
  390. return;
  391. }
  392. }
  393. ]]>
  394. </script>
  395. </button>
  396. <switch id="switch2" style="left:0px; top:70px; width:1194px; height:670px; ">
  397. <case id="case1" selected="true">
  398. <datagrid id="grd_gnrlmeal" nodeset="/root/main/gnrlmeal" caption="일자^끼니^구분^A^B^C^D" colsep="^" colwidth="50, 50, 150, 150, 150, 150, 150" dataheight="25" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:0px; width:1192px; height:668px; ">
  399. <col ref="appdd" visibility="hidden"/>
  400. <col ref="mealflag" visibility="hidden"/>
  401. <col ref="gnrlflag"/>
  402. <col ref="acount" style="text-align:center; "/>
  403. <col ref="bcount" style="text-align:center; "/>
  404. <col ref="ccount" style="text-align:center; "/>
  405. <col ref="dcount" style="text-align:center; "/>
  406. </datagrid>
  407. </case>
  408. <case id="case2">
  409. <datagrid id="grd_curesidemeal" nodeset="/root/main/curesidemeal" caption="적용일자^끼니^식단구분^구분^식단코드^식단명^염분기준식수^염분기준식수^염분기준식수^염분기준식수^염분기준식수^염분기준식수^비고|적용일자^끼니^식단구분^구분^식단코드^식단명^당뇨^당뇨다진^경저염^경저염다진^저염^저염다진^비고" colsep="^" colwidth="10, 10, 10, 100, 10, 150, 80, 80, 80, 80, 80, 80, 200" dataheight="25" mergecells="byrestriccol" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:0px; width:1192px; height:668px; ">
  410. <col ref="appdd" visibility="hidden"/>
  411. <col ref="mealflag" visibility="hidden"/>
  412. <col ref="menuflag" visibility="hidden"/>
  413. <col ref="dishtableflag"/>
  414. <col ref="dishcd" visibility="hidden"/>
  415. <col ref="dishnm"/>
  416. <col ref="psnno1" type="input" style="text-align:center; "/>
  417. <col ref="psnno2" type="input" style="text-align:center; "/>
  418. <col ref="psnno3" type="input" style="text-align:center; "/>
  419. <col ref="psnno4" type="input" style="text-align:center; "/>
  420. <col ref="psnno5" type="input" style="text-align:center; "/>
  421. <col ref="psnno6" type="input" style="text-align:center; "/>
  422. <col ref="remark" type="input"/>
  423. </datagrid>
  424. </case>
  425. <case id="case3">
  426. <datagrid id="grd_curericemeal" nodeset="/root/main/curericemeal" caption="일자^끼니^밥량(g)^흰밥^잡곡밥" colsep="^" colwidth="50, 50, 100, 100, 100" dataheight="25" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:0px; width:322px; height:255px; text-align:center; ">
  427. <col ref="appdd" visibility="hidden"/>
  428. <col ref="mealflag" visibility="hidden"/>
  429. <col ref="riceflag"/>
  430. <col ref="whiterice"/>
  431. <col ref="mixrice"/>
  432. </datagrid>
  433. <datagrid id="grd_curegruelmeal" nodeset="/root/main/curegruelmeal" caption="일자^끼니^죽량(g)^흰죽^기타죽" colsep="^" colwidth="50, 50, 100, 100, 100" dataheight="25" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:500px; top:0px; width:322px; height:186px; text-align:center; ">
  434. <col ref="appdd" visibility="hidden"/>
  435. <col ref="mealflag" visibility="hidden"/>
  436. <col ref="gruelflag"/>
  437. <col ref="whitegruel"/>
  438. <col ref="etcgruel"/>
  439. </datagrid>
  440. </case>
  441. <case id="case4">
  442. <datagrid id="grd_curemeal" nodeset="/root/main2/curemeal/rows" autoresize="true" caption="끼니^구분^식단|끼니^구분^식단" colwidth="40, 50, 100" mergecells="byrestriccol" mergecellsfixedrows="byrestricrow" style="left:0px; top:0px; width:1192px; height:668px; ">
  443. <col disabled="true" ref="mealflag" type="combo">
  444. <choices>
  445. <itemset nodeset="/root/init/basecode/meal/A0055">
  446. <label ref="cdnm"/>
  447. <value ref="cdid"/>
  448. </itemset>
  449. </choices>
  450. </col>
  451. <col ref="dishtablenm"/>
  452. <col ref="dishnm"/>
  453. </datagrid>
  454. </case>
  455. </switch>
  456. </group>
  457. <group id="grp_btn" style="left:0px; top:757px; width:1195px; height:27px; ">
  458. <button id="btn_print" class="btn6_letter2" style="left:5px; top:5px; width:56px; height:22px; ">
  459. <caption>출력</caption>
  460. <script type="javascript" ev:event="DOMActivate">
  461. <![CDATA[
  462. //일반식 탭화면일때
  463. if ( btn_gnrlmeal.selected ) {
  464. exeReportPreview("RPANT00601", "XMLSTR", "/root/main");
  465. }
  466. //치료식찬 탭화면일때
  467. else if ( btn_curesidemeal.selected ) {
  468. if ( grd_curesidemeal.rows-2 > 0 ) {
  469. exeReportPreview("RPANT00602", "XMLSTR", "/root/main");
  470. } else {
  471. messageBox("치료식찬 출력할 데이터가", "I004")
  472. return;
  473. }
  474. }
  475. //치료식주식 탭화면일때
  476. else if ( btn_curemainmeal.selected ) {
  477. exeReportPreview("RPANT00603", "XMLSTR", "/root/main");
  478. //exeReportPreview("RPANT00604", "XMLSTR", "/root/main");
  479. }
  480. //치료식 탭화면일때
  481. else if ( btn_curemeal.selected ) {
  482. messageBox("치료식 출력은 엑셀로 처리", "I008");
  483. return;
  484. }
  485. ]]>
  486. </script>
  487. </button>
  488. <button id="btn_reset" class="btn4_letter3" visibility="hidden" style="left:1060px; top:5px; width:68px; height:22px; ">
  489. <caption>초기화</caption>
  490. <script type="javascript" ev:event="DOMActivate">
  491. <![CDATA[
  492. finit();
  493. ]]>
  494. </script>
  495. </button>
  496. <button id="btn_save" class="btn4_letter2" visibility="hidden" style="left:1133px; top:5px; width:56px; height:22px; ">
  497. <caption>저장</caption>
  498. <script type="javascript" ev:event="DOMActivate">
  499. <![CDATA[
  500. // if ( messageBox("", "Q002") == 6 ) {
  501. // //필수입력항목 체크
  502. // for ( i=1; i<grd_dish.rows-1; i++) {
  503. // if ( (model.getValue("/root/main/dish[" + i + "]/cnfmfoodqty") == "") ||
  504. // (model.getValue("/root/main/dish[" + i + "]/cnfmpsnno") == "") ||
  505. // (model.getValue("/root/main/dish[" + i + "]/cnfmtotalqty") == "") ) {
  506. // messageBox("확정 항목은", "I003");
  507. // return;
  508. // }
  509. // }
  510. // model.setValue("/root/send/req/dish", grd_dish.getUpdateData());
  511. // submit("TXANT01601");
  512. // } else { return; }
  513. ]]>
  514. </script>
  515. </button>
  516. <button id="button1" class="btn6_letter4" visibility="hidden" style="left:70px; top:5px; width:56px; height:22px; ">
  517. <caption>신규출력</caption>
  518. <script type="javascript" ev:event="DOMActivate">
  519. <![CDATA[
  520. //일반식 탭화면일때
  521. if ( btn_gnrlmeal.selected ) {
  522. // exeReportPreview("RPANT00601", "XMLSTR", "/root/main");
  523. //추가수정 함
  524. exeReportPreview("RPANT00605", "XMLSTR", "/root/main");
  525. }
  526. //치료식찬 탭화면일때
  527. else if ( btn_curesidemeal.selected ) {
  528. if ( grd_curesidemeal.rows-2 > 0 ) {
  529. exeReportPreview("RPANT00602", "XMLSTR", "/root/main");
  530. } else {
  531. messageBox("치료식찬 출력할 데이터가", "I004")
  532. return;
  533. }
  534. }
  535. //치료식주식 탭화면일때
  536. else if ( btn_curemainmeal.selected ) {
  537. exeReportPreview("RPANT00603", "XMLSTR", "/root/main");
  538. //exeReportPreview("RPANT00604", "XMLSTR", "/root/main");
  539. }
  540. //치료식 탭화면일때
  541. else if ( btn_curemeal.selected ) {
  542. messageBox("치료식 출력은 엑셀로 처리", "I008");
  543. return;
  544. }
  545. ]]>
  546. </script>
  547. </button>
  548. </group>
  549. </xhtml:body>
  550. </xhtml:html>