SMANT00900_선택식환자관리.xrw 43 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034
  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. <choimeal>
  11. <choimeallist>
  12. <bfroom/>
  13. <ward/>
  14. <room/>
  15. <pid/>
  16. <hngnm/>
  17. <dietnm/>
  18. <remfactnm/>
  19. <remark/>
  20. <chk/>
  21. <prcpdd/>
  22. <dietmeal/>
  23. <iuflag/>
  24. <dietcd/>
  25. </choimeallist>
  26. </choimeal>
  27. <childmeal>
  28. <childmeallist>
  29. <bfroom/>
  30. <ward/>
  31. <room/>
  32. <pid/>
  33. <hngnm/>
  34. <dietnm/>
  35. <remfactnm/>
  36. <remark/>
  37. <chk/>
  38. <prcpdd/>
  39. <dietmeal/>
  40. <iuflag/>
  41. <dietcd/>
  42. </childmeallist>
  43. </childmeal>
  44. <choimealstats>
  45. <choimealstatslist>
  46. <prcpdd/>
  47. <breakmealnm/>
  48. <breakmealcnt/>
  49. <lunchmealnm/>
  50. <lunchmealcnt/>
  51. <dinnermealnm/>
  52. <dinnermealcnt/>
  53. </choimealstatslist>
  54. </choimealstats>
  55. <choimealguidedocu>
  56. <fixcol>
  57. <fixcol1/>
  58. <fixcol2/>
  59. <fixcol3/>
  60. <fixcol4/>
  61. </fixcol>
  62. <choimealguide1>
  63. <breakgnrldish/>
  64. </choimealguide1>
  65. <choimealguide2>
  66. <breakchoidish/>
  67. </choimealguide2>
  68. <choimealguide3>
  69. <lunchgnrldish/>
  70. </choimealguide3>
  71. <choimealguide4>
  72. <lunchchoidish/>
  73. </choimealguide4>
  74. </choimealguidedocu>
  75. <indcase>
  76. <indcaselist>
  77. <chk/>
  78. <ward/>
  79. <room/>
  80. <pid/>
  81. <hngnm/>
  82. <sex/>
  83. <dietnm/>
  84. <prcpdd/>
  85. <dietmeal/>
  86. <iuflag/>
  87. <remfactnm/>
  88. <remark2/>
  89. <remark3/>
  90. </indcaselist>
  91. </indcase>
  92. <patinfo>
  93. <patinfolist/>
  94. </patinfo>
  95. </main>
  96. <send>
  97. <reqdata>
  98. <prcpdd/>
  99. <dietmeal/>
  100. <ward/>
  101. <roomcd/>
  102. <count/>
  103. <fromdd/>
  104. <todd/>
  105. <appdd/>
  106. <pid/>
  107. <hngnm/>
  108. </reqdata>
  109. <execdata>
  110. <choimeallist/>
  111. </execdata>
  112. <execdata1>
  113. <indcaselist/>
  114. </execdata1>
  115. <execdata5>
  116. <childmeallist/>
  117. </execdata5>
  118. <choimealguide>
  119. <breakgnrldish1/>
  120. <breakgnrldish2/>
  121. <breakgnrldish3/>
  122. <breakgnrldish4/>
  123. <breakgnrldish5/>
  124. <breakchoidish1/>
  125. <breakchoidish2/>
  126. <breakchoidish3/>
  127. <breakchoidish4/>
  128. <breakchoidish5/>
  129. <lunchgnrldish1/>
  130. <lunchgnrldish2/>
  131. <lunchgnrldish3/>
  132. <lunchgnrldish4/>
  133. <lunchgnrldish5/>
  134. <lunchchoidish1/>
  135. <lunchchoidish2/>
  136. <lunchchoidish3/>
  137. <lunchchoidish4/>
  138. <lunchchoidish5/>
  139. <lunchchoidish6/>
  140. </choimealguide>
  141. <popup>
  142. <flag/>
  143. <pid/>
  144. <prcpdd/>
  145. </popup>
  146. </send>
  147. <init>
  148. <basecode>
  149. <ward>
  150. <dept>
  151. <deptcd/>
  152. <depthngnm/>
  153. </dept>
  154. </ward>
  155. <room>
  156. <room>
  157. <cdid/>
  158. <cdnm/>
  159. </room>
  160. </room>
  161. </basecode>
  162. <baseinfo>
  163. <ward/>
  164. </baseinfo>
  165. </init>
  166. <casegb>
  167. <gb/>
  168. </casegb>
  169. <hidden>
  170. <count/>
  171. </hidden>
  172. <FormData>
  173. <PopData>
  174. <pid/>
  175. <dnorid/>
  176. <trnptid/>
  177. <trnptkind/>
  178. <patdnorflag/>
  179. <trnptbfaftflag/>
  180. </PopData>
  181. </FormData>
  182. <temp/>
  183. </root>
  184. </instance>
  185. <script type="javascript" ev:event="xforms-ready">
  186. <![CDATA[
  187. btn_search.disabled = !checkAuth("R");
  188. btn_search2.disabled = !checkAuth("R");
  189. btn_search3.disabled = !checkAuth("R");
  190. btn_save.disabled = !checkAuth("X");
  191. //zbcfGetCodeList( new Array("A0055"), new Array("/root/init/baseinfo/dietmeal"));
  192. //submit("TRZBC00101");
  193. //zbcfGetDeptCodeList(getUserInfo("dutplceinstcd"), 'orduseyn', 'W', '/root/init/basecode/ward', 'depthngnm', 'asc', new Date().getDateFormat("YYYYMMDD"), "", 'after');
  194. zsdfGetWardDeptList(getUserInfo("dutplceinstcd"), '/root/init/basecode/ward', 'depthngnm', 'asc', new Date().getDateFormat("YYYYMMDD"), 'after');
  195. model.setValue("/root/send/reqdata/prcpdd", getCurrentDate());
  196. model.setValue("/root/send/reqdata/fromdd", getCurrentDate());
  197. model.setValue("/root/send/reqdata/todd", getCurrentDate());
  198. model.setValue("/root/send/reqdata/appdd", getCurrentDate());
  199. model.setValue("/root/send/reqdata/dietmeal", "1");
  200. model.setValue("/root/casegb/gb", "1");
  201. fvisible(); //컨트롤을 숨기거나 보이기
  202. //화면open시 현재시간을 계산하여 선택식관리 탭화면의 끼니구분 자동setting
  203. var tm = getCurrentTime();
  204. if ( tm.substr(0,4) < 1030 ) {
  205. model.setValue("/root/send/reqdata/dietmeal", "1");
  206. } else if ( (tm.substr(0,4) >= 1030) && (tm.substr(0,4) < 1600) ) {
  207. model.setValue("/root/send/reqdata/dietmeal", "2");
  208. } else {
  209. model.setValue("/root/send/reqdata/dietmeal", "3");
  210. }
  211. model.refresh();
  212. ]]>
  213. </script>
  214. <submission id="TRZBC00101"/>
  215. <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  216. <submission id="TRANT00901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/choimeal"/>
  217. <submission id="TXANT00901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/execdata"/>
  218. <submission id="TRANT00902" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/indcase"/>
  219. <submission id="TXANT00902" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/execdata1"/>
  220. <submission id="TRANT00903" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/choimealstats"/>
  221. <submission id="TRANT00904" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/choimealguidedocu"/>
  222. <submission id="TRANT01004" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/basecode/room"/>
  223. <submission id="TRANT00905" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/childmeal"/>
  224. <submission id="TXANT00905" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/execdata5"/>
  225. </model>
  226. <script type="javascript" src="../../../emr/carerecweb/js/SMMNR006.js"/>
  227. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  228. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  229. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  230. <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
  231. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  232. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  233. <script type="javascript">
  234. <![CDATA[
  235. //선택식관리 or 개별식단환자관리 탭화면일 경우 컨트롤을 숨기거나 보이기
  236. function fvisible() {
  237. btn_excel.visible = true;
  238. btn_print.visible = false;
  239. btn_save.visible = true;
  240. group2.visible = true;
  241. group4.visible = false;
  242. group5.visible = false;
  243. }
  244. //선택식관리 조회
  245. function readfunc() {
  246. model.removeNodeset("/root/main/choimeal/choimeallist");
  247. model.makeNode("/root/main/choimeal/choimeallist");
  248. submit("TRANT00901");
  249. var msg = model.getValue("/root/properties/error/msg");
  250. var refCnt = msg.substring(0, 1);
  251. if( refCnt == "0" || refCnt == "") {
  252. //messageBox("조회된 결과가", "I004");
  253. }
  254. if (model.getValue("/root/main/choimeal/choimeallist[" + 1 + "]/ward") == ""){
  255. model.removeNodeset("/root/main/choimeal/choimeallist");
  256. btn_save.disabled = true;
  257. }else{
  258. btn_save.disabled = false;
  259. }
  260. selectfunc();
  261. model.refresh();
  262. }
  263. //소아선택식관리 조회
  264. function readfunc5() {
  265. model.removeNodeset("/root/main/childmeal/childmeallist");
  266. model.makeNode("/root/main/childmeal/childmeallist");
  267. submit("TRANT00905");
  268. var msg = model.getValue("/root/properties/error/msg");
  269. var refCnt = msg.substring(0, 1);
  270. if( refCnt == "0" || refCnt == "") {
  271. //messageBox("조회된 결과가", "I004");
  272. }
  273. if (model.getValue("/root/main/childmeal/childmeallist[" + 1 + "]/ward") == ""){
  274. model.removeNodeset("/root/main/childmeal/childmeallist");
  275. btn_save.disabled = true;
  276. }else{
  277. btn_save.disabled = false;
  278. }
  279. selectfunc5();
  280. model.refresh();
  281. }
  282. //개별식단환자관리 조회
  283. function readfunc2() {
  284. model.removeNodeset("/root/main/indcase/indcaselist");
  285. model.makeNode("/root/main/indcase/indcaselist");
  286. submit("TRANT00902");
  287. var msg = model.getValue("/root/properties/error/msg");
  288. var refCnt = msg.substring(0, 1);
  289. if( refCnt == "0" || refCnt == "") {
  290. //messageBox("조회된 결과가", "I004");
  291. }
  292. if (model.getValue("/root/main/indcase/indcaselist[" + 1 + "]/ward") == ""){
  293. model.removeNodeset("/root/main/indcase/indcaselist");
  294. btn_save.disabled = true;
  295. }else{
  296. btn_save.disabled = false;
  297. }
  298. model.refresh();
  299. }
  300. function selectfunc() {
  301. var k = 0;
  302. for (var i = 1; i < grd_choidiet.rows; i++){
  303. var schk = model.getValue("/root/main/choimeal/choimeallist[" + i + "]/chk");
  304. if (schk == "Y"){
  305. k = parseInt(k) + 1;
  306. }
  307. }
  308. model.setValue("/root/send/reqdata/count", k);
  309. model.refresh();
  310. }
  311. function selectfunc2() {
  312. var k = 0;
  313. for (var i = 1; i < grd_inddiet.rows; i++){
  314. var schk = model.getValue("/root/main/indcase/indcaselist[" + i + "]/chk");
  315. if (schk == "Y"){
  316. k = parseInt(k) + 1;
  317. }
  318. }
  319. model.setValue("/root/send/reqdata/count1", K);
  320. model.refresh();
  321. }
  322. function selectfunc5() {
  323. var p = 0;
  324. for (var i = 1; i < grd_childdiet.rows; i++){
  325. var schk = model.getValue("/root/main/childmeal/childmeallist[" + i + "]/chk");
  326. if (schk == "Y"){
  327. p = parseInt(p) + 1;
  328. }
  329. }
  330. model.setValue("/root/send/reqdata/count", p);
  331. model.refresh();
  332. }
  333. //날짜 형식에 대한 적합여부 체크
  334. function isDate(str) {
  335. if (str == "") return true; // 빈건 체크안함
  336. if (trim(str) == "") return true; // 빈건 체크안함
  337. if (isNaN(parseInt(str))) return false; // 숫자가 아니면 false
  338. if (str.length != 8) return false; // 8자리(yyyymmdd)가 아니면 false
  339. var yy = new Number(str.substring(0, 4));
  340. var mm = new Number(str.substring(4, 6)) - 1;
  341. var dd = new Number(str.substring(6, 8));
  342. var date = new Date(yy, mm, dd);
  343. //alert(date.getFullYear() +"-" + (date.getMonth()+1) + "-" + date.getDate());
  344. if (yy != date.getFullYear() ||
  345. mm != date.getMonth() ||
  346. dd != date.getDate()) {
  347. return false; // 존재하지 않는 날짜
  348. }
  349. return true; // 존재하는 날짜
  350. }
  351. //문자에 대한 TRIM 작업
  352. function trim(data) {
  353. return data.replace(/(^\s*)|(\s*$)/g, "");
  354. }
  355. //선택식관리 저장
  356. function case1exec() {
  357. model.removeNodeset("/root/send/execdata");
  358. model.makeNode("/root/send/execdata/choimeallist");
  359. var update = getGridUpdateData(grd_choidiet);
  360. model.setValue("/root/send/execdata/choimeallist",update);
  361. submit("TXANT00901");
  362. messageBox("정상적으로", "I001");
  363. // readfunc();
  364. }
  365. //개별식단환자관리 저장
  366. function case2exec() {
  367. model.removeNodeset("/root/send/execdata1");
  368. model.makeNode("/root/send/execdata1/indcaselist");
  369. var update = getGridUpdateData(grd_inddiet);
  370. model.setValue("/root/send/execdata1/indcaselist",update);
  371. submit("TXANT00902");
  372. messageBox("정상적으로", "I001");
  373. // readfunc();
  374. }
  375. //소아선택식관리 저장
  376. function case5exec() {
  377. model.removeNodeset("/root/send/execdata5");
  378. model.makeNode("/root/send/execdata5/childmeallist");
  379. var update = getGridUpdateData(grd_childdiet);
  380. model.setValue("/root/send/execdata5/childmeallist",update);
  381. submit("TXANT00905");
  382. messageBox("정상적으로", "I001");
  383. }
  384. ]]>
  385. </script>
  386. </xhtml:head>
  387. <xhtml:body guideline="1,1194;1,1;2,782;2,758;2,721;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  388. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  389. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">선택식/개별관리</caption>
  390. </group>
  391. <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:747px; ">
  392. <group id="group2" visibility="visible" style="left:0px; top:10px; width:1194px; height:35px; vertical-align:top; ">
  393. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  394. <caption id="caption1" class="search_name" style="left:10px; top:9px; width:60px; height:17px; ">일자 :</caption>
  395. <input id="ipt_prcpdd" ref="/root/send/reqdata/prcpdd" class="input_s_essential" inputtype="date" style="left:74px; top:8px; width:95px; height:19px; "/>
  396. <button id="btn_before" class="icon_pre" style="left:173px; top:10px; width:13px; height:15px; ">
  397. <caption/>
  398. <script type="javascript" ev:event="onclick">
  399. <![CDATA[
  400. var dd = model.getValue("/root/send/reqdata/prcpdd");
  401. dd = dd.toDate().getAddDate(-1, "D");
  402. dd = dd.getDateFormat();
  403. model.setValue("/root/send/reqdata/prcpdd", dd);
  404. model.refresh();
  405. ]]>
  406. </script>
  407. </button>
  408. <button id="btn_next" class="icon_next" style="left:186px; top:10px; width:13px; height:15px; ">
  409. <caption/>
  410. <script type="javascript" ev:event="onclick">
  411. <![CDATA[
  412. var dd = model.getValue("/root/send/reqdata/prcpdd");
  413. dd = dd.toDate().getAddDate(1, "D");
  414. dd = dd.getDateFormat();
  415. model.setValue("/root/send/reqdata/prcpdd", dd);
  416. model.refresh();
  417. ]]>
  418. </script>
  419. </button>
  420. <button id="btn_search" class="btn1_letter2" style="left:1129px; top:7px; width:56px; height:22px; ">
  421. <caption>조회</caption>
  422. <script type="javascript" ev:event="DOMActivate">
  423. <![CDATA[
  424. if (model.getValue("/root/casegb/gb") == "1"){
  425. readfunc();
  426. }else if (model.getValue("/root/casegb/gb") == "3"){
  427. readfunc2();
  428. }else if (model.getValue("/root/casegb/gb") == "5"){
  429. readfunc5();
  430. }
  431. ]]>
  432. </script>
  433. </button>
  434. <line id="line1" style="x1:1119px; y1:8px; x2:1119px; y2:28px; border-color:#ffe4bb; border-left-style:solid; "/>
  435. <caption id="caption2" class="search_name" style="left:445px; top:10px; width:91px; height:17px; ">병동 :</caption>
  436. <select1 id="cmb_wardcd" ref="/root/send/reqdata/ward" class="combo_s_essential" appearance="minimal" style="left:507px; top:8px; width:103px; height:19px; ">
  437. <choices>
  438. <itemset nodeset="/root/init/basecode/ward/dept">
  439. <label ref="depthngnm"/>
  440. <value ref="deptcd"/>
  441. </itemset>
  442. </choices>
  443. <script type="javascript" ev:event="xforms-value-changed">
  444. <![CDATA[
  445. model.resetInstanceNode("/root/send/reqdata/roomcd");
  446. submit("TRANT01004"); //선택병동의 병실 조회
  447. ]]>
  448. </script>
  449. </select1>
  450. <select1 id="rdo_dietmeal" ref="/root/send/reqdata/dietmeal" appearance="full" cellspacing="4" cols="3" rows="1" overflow="visible" style="left:290px; top:9px; width:159px; height:20px; ">
  451. <choices>
  452. <item>
  453. <label>조식</label>
  454. <value>1</value>
  455. </item>
  456. <item>
  457. <label>중식</label>
  458. <value>2</value>
  459. </item>
  460. <item>
  461. <label>석식</label>
  462. <value>3</value>
  463. </item>
  464. </choices>
  465. </select1>
  466. <caption id="caption3" class="search_name" style="left:230px; top:9px; width:65px; height:17px; ">끼니 :</caption>
  467. <caption id="caption4" class="search_name" style="left:637px; top:9px; width:64px; height:17px; ">병실 :</caption>
  468. <select1 id="cmb_roomcd" ref="/root/send/reqdata/roomcd" class="combo_search" appearance="minimal" style="left:701px; top:8px; width:80px; height:19px; ">
  469. <choices>
  470. <itemset nodeset="/root/init/basecode/room/room">
  471. <label ref="cdnm"/>
  472. <value ref="cdid"/>
  473. </itemset>
  474. </choices>
  475. </select1>
  476. <caption id="caption8" class="search_name" style="left:811px; top:9px; width:134px; height:17px; ">등록번호/환자명 :</caption>
  477. <caption id="caption9" style="left:1016px; top:9px; width:24px; height:17px; ">/</caption>
  478. <input id="ipt_pid" ref="/root/send/reqdata/pid" class="input_search" autonext="false" maxlength="10" format="9999999999" style="left:945px; top:8px; width:70px; height:19px; ">
  479. <script type="javascript" ev:event="onkeydown">
  480. <![CDATA[
  481. inputEnterKey("btn_search", "DOMActivate");
  482. ]]>
  483. </script>
  484. </input>
  485. <input id="ipt_hngnm" ref="/root/send/reqdata/hngnm" class="input_search" style="left:1025px; top:8px; width:65px; height:19px; ">
  486. <script type="javascript" ev:event="onkeydown">
  487. <![CDATA[
  488. inputEnterKey("btn_search", "DOMActivate");
  489. ]]>
  490. </script>
  491. </input>
  492. <button id="btn_hngnm" class="icon_search" style="left:1095px; top:10px; width:16px; height:16px; ">
  493. <caption/>
  494. <script type="javascript" ev:event="DOMActivate">
  495. <![CDATA[
  496. modal("SPPMC02500", "", "200", "200", "SPPMC02500", "/root/temp", "/root/main/patinfo/patinfolist");
  497. model.setValue("/root/send/reqdata/pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
  498. model.setValue("/root/send/reqdata/hngnm", model.getValue("/root/main/patinfo/patinfolist/hngnm"));
  499. btn_search.dispatch("DOMActivate");
  500. //model.refresh();
  501. ]]>
  502. </script>
  503. </button>
  504. </group>
  505. <group id="group4" style="left:0px; top:10px; width:1194px; height:35px; vertical-align:top; ">
  506. <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  507. <caption id="caption5" class="search_name" style="left:35px; top:9px; width:60px; height:17px; ">일자 :</caption>
  508. <input id="ipt_fromdd" ref="/root/send/reqdata/fromdd" class="input_s_essential" inputtype="date" style="left:99px; top:8px; width:100px; height:19px; "/>
  509. <input id="ipt_todd" ref="/root/send/reqdata/todd" class="input_s_essential" inputtype="date" style="left:219px; top:8px; width:100px; height:19px; "/>
  510. <caption id="caption11" class="search_n_b" style="left:202px; top:8px; width:12px; height:17px; font-weight:bolder; ">~</caption>
  511. <button id="btn_search2" class="btn1_letter2" style="left:1129px; top:7px; width:56px; height:22px; ">
  512. <caption>조회</caption>
  513. <script type="javascript" ev:event="onclick">
  514. <![CDATA[
  515. var fromdd = model.getValue("/root/send/reqdata/fromdd");
  516. var todd = model.getValue("/root/send/reqdata/todd");
  517. if (getDateInterval(fromdd, todd) < 0) {
  518. messageBox("조회 시작일은 종료일보다 클 수", "I004");
  519. return;
  520. } else {
  521. submit("TRANT00903");
  522. }
  523. ]]>
  524. </script>
  525. </button>
  526. <line id="line2" style="x1:1119px; y1:8px; x2:1119px; y2:28px; border-color:#ffe4bb; border-left-style:solid; "/>
  527. </group>
  528. <group id="group5" style="left:0px; top:10px; width:1194px; height:35px; vertical-align:top; ">
  529. <shape id="roundrect3" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  530. <caption id="caption7" class="search_name" style="left:15px; top:9px; width:60px; height:17px; ">일자 :</caption>
  531. <input id="ipt_appdd" ref="/root/send/reqdata/appdd" class="input_s_essential" inputtype="date" style="left:79px; top:8px; width:100px; height:19px; "/>
  532. <button id="btn_before2" class="icon_pre" style="left:183px; top:10px; width:13px; height:15px; ">
  533. <caption/>
  534. <script type="javascript" ev:event="onclick">
  535. <![CDATA[
  536. var dd = model.getValue("/root/send/reqdata/appdd");
  537. dd = dd.toDate().getAddDate(-1, "D");
  538. dd = dd.getDateFormat();
  539. model.setValue("/root/send/reqdata/appdd", dd);
  540. model.refresh();
  541. ]]>
  542. </script>
  543. </button>
  544. <button id="btn_next2" class="icon_next" style="left:196px; top:10px; width:13px; height:15px; ">
  545. <caption/>
  546. <script type="javascript" ev:event="onclick">
  547. <![CDATA[
  548. var dd = model.getValue("/root/send/reqdata/appdd");
  549. dd = dd.toDate().getAddDate(1, "D");
  550. dd = dd.getDateFormat();
  551. model.setValue("/root/send/reqdata/appdd", dd);
  552. model.refresh();
  553. ]]>
  554. </script>
  555. </button>
  556. <button id="btn_search3" class="btn1_letter2" style="left:1129px; top:7px; width:56px; height:22px; ">
  557. <caption>조회</caption>
  558. <script type="javascript" ev:event="onclick">
  559. <![CDATA[
  560. if ( submit("TRANT00904") ){
  561. var cnt1 = getNodesetCount("/root/main/choimealguidedocu/choimealguide1/breakgnrldish");
  562. if( cnt1 < 11 ){
  563. for (var i = 1 ; i <= 11-cnt1 ; i++ ){
  564. grd_choimealguide1.addRow();
  565. }
  566. }
  567. var cnt2 = getNodesetCount("/root/main/choimealguidedocu/choimealguide2/breakchoidish");
  568. if( cnt2 < 11 ){
  569. for (var i = 1 ; i <= 11-cnt2 ; i++ ){
  570. grd_choimealguide2.addRow();
  571. }
  572. }
  573. var cnt3 = getNodesetCount("/root/main/choimealguidedocu/choimealguide3/lunchgnrldish");
  574. if( cnt3 < 11 ){
  575. for (var i = 1 ; i <= 11-cnt3 ; i++ ){
  576. grd_choimealguide3.addRow();
  577. }
  578. }
  579. var cnt4 = getNodesetCount("/root/main/choimealguidedocu/choimealguide4/lunchchoidish");
  580. if( cnt4 < 11 ){
  581. for (var i = 1 ; i <= 11-cnt4 ; i++ ){
  582. grd_choimealguide4.addRow();
  583. }
  584. }
  585. }
  586. model.resetInstanceNode("/root/send/choimealguide");
  587. model.refresh();
  588. ]]>
  589. </script>
  590. </button>
  591. <line id="line3" style="x1:1119px; y1:8px; x2:1119px; y2:28px; border-color:#ffe4bb; border-left-style:solid; "/>
  592. </group>
  593. <button id="btn_excel" class="btn2_letter2" style="left:1152px; top:50px; width:42px; height:19px; ">
  594. <caption>엑셀</caption>
  595. <script type="javascript" ev:event="DOMActivate">
  596. <![CDATA[
  597. if (model.getValue("/root/casegb/gb") == "1"){
  598. var filename = window.fileDialog("save", ",", false, "선택식환자리스트", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  599. if (filename != "") {
  600. grd_choidiet.saveExcel(filename, "grd_choidiet", true, false, "", "", "");
  601. }
  602. } else if (model.getValue("/root/casegb/gb") == "2"){
  603. var filename = window.fileDialog("save", ",", false, "선택식통계", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  604. if (filename != "") {
  605. grd_choidietstats.saveExcel(filename, "grd_choidietstats", true, false, "", "", "");
  606. }
  607. } else if (model.getValue("/root/casegb/gb") == "3"){
  608. var filename = window.fileDialog("save", ",", false, "개별식단환자리스트", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  609. if (filename != "") {
  610. grd_inddiet.saveExcel(filename, "grd_inddiet", true, false, "", "", "");
  611. }
  612. }
  613. ]]>
  614. </script>
  615. </button>
  616. <button id="btCase1" class="btn_sw" group="tab" selected="true" style="left:0px; top:49px; width:87px; height:22px; ">
  617. <caption>선택식관리</caption>
  618. <script type="javascript" ev:event="onclick">
  619. <![CDATA[
  620. model.setValue("/root/casegb/gb", "1");
  621. model.toggle("case1");
  622. fvisible(); //컨트롤을 숨기거나 보이기
  623. // btCase1.selected = true;
  624. // btCase2.selected = false;
  625. // btCase3.selected = false;
  626. // btCase4.selected = false;
  627. //
  628. // btn_excel.visible = true;
  629. // btn_print.visible = false;
  630. // btn_save.visible = true;
  631. // group2.visible = true;
  632. // group4.visible = false;
  633. // group5.visible = false;
  634. // model.refresh();
  635. ]]>
  636. </script>
  637. </button>
  638. <button id="btCase2" class="btn_sw" group="tab" style="left:174px; top:49px; width:87px; height:22px; ">
  639. <caption>선택식통계</caption>
  640. <script type="javascript" ev:event="onclick">
  641. <![CDATA[
  642. model.setValue("/root/casegb/gb", "2");
  643. model.toggle("case2");
  644. // btCase1.selected = false;
  645. // btCase2.selected = true;
  646. // btCase3.selected = false;
  647. // btCase4.selected = false;
  648. btn_excel.visible = true;
  649. btn_print.visible = false;
  650. btn_save.visible = false;
  651. group2.visible = false;
  652. group4.visible = true;
  653. group5.visible = false;
  654. model.refresh();
  655. ]]>
  656. </script>
  657. </button>
  658. <button id="btCase4" class="btn_sw" group="tab" style="left:261px; top:49px; width:95px; height:22px; ">
  659. <caption>선택식안내문</caption>
  660. <script type="javascript" ev:event="onclick">
  661. <![CDATA[
  662. model.setValue("/root/casegb/gb", "4");
  663. model.toggle("case4");
  664. // btCase1.selected = false;
  665. // btCase2.selected = false;
  666. // btCase3.selected = false;
  667. // btCase4.selected = true;
  668. btn_excel.visible = false;
  669. btn_print.visible = true;
  670. btn_save.visible = false;
  671. group2.visible = false;
  672. group4.visible = false;
  673. group5.visible = true;
  674. model.refresh();
  675. ]]>
  676. </script>
  677. </button>
  678. <button id="btCase3" class="btn_sw" group="tab" style="left:356px; top:49px; width:120px; height:22px; ">
  679. <caption>개별식단환자관리</caption>
  680. <script type="javascript" ev:event="onclick">
  681. <![CDATA[
  682. model.setValue("/root/casegb/gb", "3");
  683. model.toggle("case3");
  684. fvisible(); //컨트롤을 숨기거나 보이기
  685. // btCase1.selected = false;
  686. // btCase2.selected = false;
  687. // btCase3.selected = true;
  688. // btCase4.selected = false;
  689. //
  690. // btn_excel.visible = true;
  691. // btn_print.visible = false;
  692. // btn_save.visible = true;
  693. // group2.visible = true;
  694. // group4.visible = false;
  695. // group5.visible = false;
  696. // model.refresh();
  697. ]]>
  698. </script>
  699. </button>
  700. <switch id="switch1" style="left:0px; top:70px; width:1194px; height:670px; border-color:#c7a3cf; ">
  701. <case id="case1" selected="true">
  702. <line id="line5" class="line_1" style="x1:5px; y1:11px; x2:1188px; y2:11px; "/>
  703. <datagrid id="grd_choidiet" nodeset="/root/main/choimeal/choimeallist" caption="변경전병실^병동^병실^등록번호^환자명^선택식^SBS^식사명^특이사항^Remark^처방일자^끼니^등록수정여부^코드" colsep="^" colwidth="70, 30, 70, 90, 90, 74, 60, 120, 280, 280, 20, 20, 20,30" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:5px; top:16px; width:1183px; height:612px; ">
  704. <col ref="bfroom" style="text-align:center; "/>
  705. <col ref="ward" visibility="hidden"/>
  706. <col ref="room" style="text-align:center; "/>
  707. <col ref="pid"/>
  708. <col ref="hngnm"/>
  709. <col checkvalue="Y,N" ref="chk" type="checkbox"/>
  710. <col ref="gubun" style="text-align:center; "/>
  711. <col ref="dietnm"/>
  712. <col ref="remfactnm"/>
  713. <col ref="remark"/>
  714. <col ref="prcpdd" visibility="hidden"/>
  715. <col ref="dietmeal" visibility="hidden"/>
  716. <col ref="iuflag" visibility="hidden"/>
  717. <col ref="dietcd" visibility="hidden"/>
  718. <script type="javascript" ev:event="onaftersort">
  719. <![CDATA[
  720. grd_choidiet.gridToInstance();
  721. ]]>
  722. </script>
  723. <script type="javascript" ev:event="xforms-value-changed">
  724. <![CDATA[
  725. selectfunc();
  726. ]]>
  727. </script>
  728. <script type="javascript" ev:event="ondblclick">
  729. <![CDATA[
  730. //환자별식사력조회 화면으로 연결
  731. if ( grd_choidiet.isCell(event.target) && grd_choidiet.row >= grd_choidiet.fixedRows ) {
  732. // 'P'는 선택식환자관리 화면임을 뜻하는 구분자임.
  733. model.setValue("/root/send/popup/flag", "P");
  734. model.setValue("/root/send/popup/pid", model.getValue("/root/main/choimeal/choimeallist["+grd_choidiet.row+"]/pid"));
  735. model.setValue("/root/send/popup/prcpdd", model.getValue("/root/main/choimeal/choimeallist["+grd_choidiet.row+"]/prcpdd"));
  736. open("SMANT01000", "", "", "", "popup", "/root/send/popup", "/root/main/receivedata");
  737. }
  738. ]]>
  739. </script>
  740. </datagrid>
  741. <caption id="caption13" class="cell_1" style="left:1005px; top:639px; width:79px; height:23px; vertical-align:middle; ">선택식 건수</caption>
  742. <line id="line4" class="line_1" style="x1:1005px; y1:634px; x2:1188px; y2:634px; "/>
  743. <line id="line6" class="line_3" style="x1:1005px; y1:662px; x2:1188px; y2:662px; "/>
  744. <output id="opt_count" ref="/root/send/reqdata/count" class="output_fix" style="left:1088px; top:640px; width:100px; height:19px; text-align:center; "/>
  745. </case>
  746. <case id="case2">
  747. <datagrid id="grd_choidietstats" nodeset="/root/main/choimealstats/choimealstatslist" caption="일자^조식^선택식수^중식^선택식수^석식^선택식수" colsep="^" colwidth="110, 150, 100, 150, 100, 150, 100" dataheight="25" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:5px; top:16px; width:1183px; height:649px; text-align:center; ">
  748. <col ref="prcpdd" format="yyyy-mm-dd"/>
  749. <col ref="breakmealnm" type="input"/>
  750. <col ref="breakmealcnt"/>
  751. <col ref="lunchmealnm" type="input"/>
  752. <col ref="lunchmealcnt"/>
  753. <col ref="dinnermealnm" type="input"/>
  754. <col ref="dinnermealcnt"/>
  755. </datagrid>
  756. <line id="line7" class="line_1" style="x1:5px; y1:11px; x2:1188px; y2:11px; "/>
  757. </case>
  758. <case id="case4">
  759. <datagrid id="grd_choimealguideflag" nodeset="/root/main/choimealguidedocu/fixcol" caption="아 침^아 침^점 심^점 심|식단 ①^식단 ②^식단 ①^식단 ②" colsep="^" colwidth="170, 170, 170, 170" dataheight="25" mergecellsfixedrows="bycolrec" rowsep="|" style="left:5px; top:16px; width:1183px; height:650px; text-align:center; ">
  760. <col ref="fixcol1"/>
  761. <col ref="fixcol2"/>
  762. <col ref="fixcol3"/>
  763. <col ref="fixcol4"/>
  764. </datagrid>
  765. <datagrid id="grd_choimealguide1" nodeset="/root/main/choimealguidedocu/choimealguide1" colsep="^" colwidth="170" dataheight="25" mergecellsfixedrows="bycolrec" rowsep="|" style="left:5px; top:63px; width:173px; height:255px; text-align:center; border-top-color:#ffffff; ">
  766. <col ref="breakgnrldish" type="input"/>
  767. </datagrid>
  768. <datagrid id="grd_choimealguide2" nodeset="/root/main/choimealguidedocu/choimealguide2" colsep="^" colwidth="170" dataheight="25" mergecellsfixedrows="bycolrec" rowsep="|" style="left:175px; top:63px; width:173px; height:255px; text-align:center; border-top-color:#ffffff; ">
  769. <col ref="breakchoidish" type="input"/>
  770. </datagrid>
  771. <datagrid id="grd_choimealguide3" nodeset="/root/main/choimealguidedocu/choimealguide3" colsep="^" colwidth="170" dataheight="25" mergecellsfixedrows="bycolrec" rowsep="|" style="left:345px; top:63px; width:173px; height:255px; text-align:center; border-top-color:#ffffff; ">
  772. <col ref="lunchgnrldish" type="input"/>
  773. </datagrid>
  774. <datagrid id="grd_choimealguide4" nodeset="/root/main/choimealguidedocu/choimealguide4" colsep="^" colwidth="170" dataheight="25" mergecellsfixedrows="bycolrec" rowsep="|" style="left:515px; top:63px; width:172px; height:255px; text-align:center; border-top-color:#ffffff; ">
  775. <col ref="lunchchoidish" type="input"/>
  776. </datagrid>
  777. <line id="line8" class="line_1" style="x1:5px; y1:11px; x2:1188px; y2:11px; "/>
  778. <button id="btn_gridadd" class="btn5_letter3" style="left:695px; top:20px; width:64px; height:19px; ">
  779. <caption>행추가</caption>
  780. <script type="javascript" ev:event="DOMActivate">
  781. <![CDATA[
  782. grd_choimealguide1.addRow();
  783. grd_choimealguide2.addRow();
  784. grd_choimealguide3.addRow();
  785. grd_choimealguide4.addRow();
  786. model.refresh();
  787. ]]>
  788. </script>
  789. </button>
  790. </case>
  791. <case id="case3">
  792. <datagrid id="grd_inddiet" nodeset="/root/main/indcase/indcaselist" caption="병동^병실^등록번호^환자명^성별/나이^식사명^처방일자^끼니^신규/수정구분^특이사항^Remark1^Remark2^적용" colsep="^" colwidth="110, 55, 70, 80, 80, 200, 10, 10, 10, 160, 80, 240, 59" dataheight="25" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:5px; top:16px; width:1183px; height:633px; ">
  793. <col ref="ward" style="text-align:left; "/>
  794. <col ref="room" style="text-align:left; "/>
  795. <col ref="pid" style="text-align:center; "/>
  796. <col ref="hngnm" style="text-align:center; "/>
  797. <col ref="sex" style="text-align:center; "/>
  798. <col ref="dietnm" style="text-align:left; "/>
  799. <col ref="prcpdd" visibility="hidden"/>
  800. <col ref="dietmeal" visibility="hidden"/>
  801. <col ref="iuflag" visibility="hidden"/>
  802. <col ref="remfactnm" style="text-align:left; "/>
  803. <col ref="remark2" type="combo" style="text-align:left; ">
  804. <choices>
  805. <item>
  806. <label/>
  807. <value/>
  808. </item>
  809. <item>
  810. <label>개별관리</label>
  811. <value>01</value>
  812. </item>
  813. <item>
  814. <label>소금1g</label>
  815. <value>02</value>
  816. </item>
  817. <item>
  818. <label>소금2g</label>
  819. <value>03</value>
  820. </item>
  821. <item>
  822. <label>소금3g</label>
  823. <value>04</value>
  824. </item>
  825. <item>
  826. <label>소금4g</label>
  827. <value>05</value>
  828. </item>
  829. </choices>
  830. </col>
  831. <col ref="remark3" type="input" style="text-align:left; "/>
  832. <col checkvalue="Y,N" ref="chk" type="checkbox"/>
  833. <script type="javascript" ev:event="onaftersort">
  834. <![CDATA[
  835. grd_inddiet.gridToInstance();
  836. ]]>
  837. </script>
  838. <hint>
  839. <![CDATA[Remark1 또는 Remark2에 내용이 있고 적용 "V"면 간호 식이처방 변경시 동일차수 식사라도 변경불가 대상입니다]]>
  840. </hint>
  841. </datagrid>
  842. <line id="line9" class="line_1" style="x1:5px; y1:11px; x2:1188px; y2:11px; "/>
  843. </case>
  844. <case id="case5">
  845. <line id="line10" class="line_1" style="x1:5px; y1:11px; x2:1188px; y2:11px; "/>
  846. <datagrid id="grd_childdiet" nodeset="/root/main/childmeal/childmeallist" caption="변경전병실^병동^병실^등록번호^소아환자명^선택식^SBS^식사명^특이사항^Remark^처방일자^끼니^등록수정여부^코드" colsep="^" colwidth="70, 30, 70, 90, 90, 74, 60,120, 280, 280, 20, 20, 20,30" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:5px; top:16px; width:1183px; height:612px; ">
  847. <col ref="bfroom" style="text-align:center; "/>
  848. <col ref="ward" visibility="hidden"/>
  849. <col ref="room" style="text-align:center; "/>
  850. <col ref="pid"/>
  851. <col ref="hngnm"/>
  852. <col checkvalue="Y,N" ref="chk" type="checkbox"/>
  853. <col ref="gubun" style="text-align:center; "/>
  854. <col ref="dietnm"/>
  855. <col ref="remfactnm"/>
  856. <col ref="remark"/>
  857. <col ref="prcpdd" visibility="hidden"/>
  858. <col ref="dietmeal" visibility="hidden"/>
  859. <col ref="iuflag" visibility="hidden"/>
  860. <col ref="dietcd" visibility="hidden"/>
  861. <script type="javascript" ev:event="onaftersort">
  862. <![CDATA[
  863. grd_childdiet.gridToInstance();
  864. ]]>
  865. </script>
  866. <script type="javascript" ev:event="xforms-value-changed">
  867. <![CDATA[
  868. selectfunc5();
  869. ]]>
  870. </script>
  871. <script type="javascript" ev:event="ondblclick">
  872. <![CDATA[
  873. //환자별식사력조회 화면으로 연결
  874. if ( grd_childdiet.isCell(event.target) && grd_childdiet.row >= grd_childdiet.fixedRows ) {
  875. // 'P'는 선택식환자관리 화면임을 뜻하는 구분자임.
  876. model.setValue("/root/send/popup/flag", "P");
  877. model.setValue("/root/send/popup/pid", model.getValue("/root/main/childmeal/childmeallist["+grd_childdiet.row+"]/pid"));
  878. model.setValue("/root/send/popup/prcpdd", model.getValue("/root/main/childmeal/childmeallist["+grd_childdiet.row+"]/prcpdd"));
  879. open("SMANT01000", "", "", "", "popup", "/root/send/popup", "/root/main/receivedata");
  880. }
  881. ]]>
  882. </script>
  883. </datagrid>
  884. <caption id="caption10" class="cell_1" style="left:1005px; top:639px; width:79px; height:23px; vertical-align:middle; ">선택식 건수</caption>
  885. <line id="line11" class="line_1" style="x1:1005px; y1:634px; x2:1188px; y2:634px; "/>
  886. <line id="line12" class="line_3" style="x1:1005px; y1:662px; x2:1188px; y2:662px; "/>
  887. <output id="output1" ref="/root/send/reqdata/count" class="output_fix" style="left:1088px; top:640px; width:100px; height:19px; text-align:center; "/>
  888. </case>
  889. </switch>
  890. <button id="btCase5" class="btn_sw" group="tab" style="left:87px; top:49px; width:87px; height:22px; ">
  891. <caption>소아선택식</caption>
  892. <script type="javascript" ev:event="onclick">
  893. <![CDATA[
  894. model.setValue("/root/casegb/gb", "5");
  895. model.toggle("case5");
  896. fvisible(); //컨트롤을 숨기거나 보이기
  897. ]]>
  898. </script>
  899. </button>
  900. <button id="button1" class="btn4_letter6" style="left:1047px; top:48px; width:104px; height:22px; ">
  901. <caption>SBS일괄적용</caption>
  902. <script type="javascript" ev:event="DOMActivate">
  903. <![CDATA[
  904. if (model.getValue("/root/casegb/gb") == "1"){// 선택식 ** SBS 관련 일괄선택 기능 추가 by 김금련 2018.04.25
  905. for (var i = 1; i < grd_choidiet.rows; i++){
  906. var sbs = model.getValue("/root/main/choimeal/choimeallist[" + i + "]/gubun");
  907. if (sbs == "B"){
  908. model.setValue("/root/main/choimeal/choimeallist["+ i +"]/chk" , "Y");
  909. grd_choidiet.rowStatus(i) = "2";
  910. }
  911. }
  912. selectfunc(); // 건수 체크
  913. // grd_choidiet.refresh();
  914. } else if (model.getValue("/root/casegb/gb") == "5"){ //소아선택식
  915. for (var i = 1; i < grd_childdiet.rows; i++){
  916. var sbs = model.getValue("/root/main/childmeal/childmeallist[" + i + "]/gubun");
  917. if (sbs == "B"){
  918. model.setValue("/root/main/childmeal/childmeallist["+ i +"]/chk" , "Y");
  919. grd_childdiet.rowStatus(i) = "2";
  920. }
  921. }
  922. // grd_childdiet.refresh();
  923. selectfunc5(); // 건수 체크
  924. }else{
  925. alert("선택식관리,소아선택식 탭에서만 사용가능합니다.");
  926. return;
  927. }
  928. ]]>
  929. </script>
  930. </button>
  931. </group>
  932. <group id="grp_btn" scroll="auto" style="left:0px; top:757px; width:1195px; height:27px; ">
  933. <button id="btn_save" class="btn4_letter2" disabled="true" style="left:1138px; top:5px; width:56px; height:22px; ">
  934. <caption>저장</caption>
  935. <script type="javascript" ev:event="onclick">
  936. <![CDATA[
  937. if (model.getValue("/root/casegb/gb") == "1"){
  938. case1exec();
  939. readfunc();
  940. }else if (model.getValue("/root/casegb/gb") == "3"){
  941. case2exec();
  942. readfunc2();
  943. }else if (model.getValue("/root/casegb/gb") == "5"){
  944. case5exec();
  945. readfunc5();
  946. }
  947. ]]>
  948. </script>
  949. </button>
  950. <button id="btn_print" class="btn3_letter8" style="left:1px; top:5px; width:128px; height:22px; ">
  951. <caption>선택식안내문출력</caption>
  952. <script type="javascript" ev:event="onclick">
  953. <![CDATA[
  954. var cnt = 1;
  955. var appdd = model.getValue("/root/send/reqdata/appdd");
  956. var mm = appdd.substr(4, 2);
  957. var dd = appdd.substr(6, 2);
  958. if ( messageBox(mm + "월 " + dd + "일 선택식안내문 출력을", "Q004") == 6 ) {
  959. //일반식 조식,중식 - 국,찬1,찬2,찬3,김치 5개 메뉴 출력
  960. /* model.setValue("/root/send/choimealguide/breakgnrldish1", model.getValue("/root/main/choimealguidedocu/choimealguide1[2]/breakgnrldish"));
  961. model.setValue("/root/send/choimealguide/lunchgnrldish1", model.getValue("/root/main/choimealguidedocu/choimealguide3[2]/lunchgnrldish"));
  962. model.setValue("/root/send/choimealguide/breakgnrldish2", model.getValue("/root/main/choimealguidedocu/choimealguide1[3]/breakgnrldish"));
  963. model.setValue("/root/send/choimealguide/lunchgnrldish2", model.getValue("/root/main/choimealguidedocu/choimealguide3[3]/lunchgnrldish"));
  964. model.setValue("/root/send/choimealguide/breakgnrldish3", model.getValue("/root/main/choimealguidedocu/choimealguide1[4]/breakgnrldish"));
  965. model.setValue("/root/send/choimealguide/lunchgnrldish3", model.getValue("/root/main/choimealguidedocu/choimealguide3[4]/lunchgnrldish"));
  966. model.setValue("/root/send/choimealguide/breakgnrldish4", model.getValue("/root/main/choimealguidedocu/choimealguide1[5]/breakgnrldish"));
  967. model.setValue("/root/send/choimealguide/lunchgnrldish4", model.getValue("/root/main/choimealguidedocu/choimealguide3[5]/lunchgnrldish"));
  968. model.setValue("/root/send/choimealguide/breakgnrldish5", model.getValue("/root/main/choimealguidedocu/choimealguide1[6]/breakgnrldish"));
  969. model.setValue("/root/send/choimealguide/lunchgnrldish5", model.getValue("/root/main/choimealguidedocu/choimealguide3[6]/lunchgnrldish"));
  970. */
  971. // 2011.1.1 c y w 순서대로 출력
  972. model.setValue("/root/send/choimealguide/breakgnrldish1", model.getValue("/root/main/choimealguidedocu/choimealguide1[1]/breakgnrldish"));
  973. model.setValue("/root/send/choimealguide/lunchgnrldish1", model.getValue("/root/main/choimealguidedocu/choimealguide3[1]/lunchgnrldish"));
  974. model.setValue("/root/send/choimealguide/breakgnrldish2", model.getValue("/root/main/choimealguidedocu/choimealguide1[2]/breakgnrldish"));
  975. model.setValue("/root/send/choimealguide/lunchgnrldish2", model.getValue("/root/main/choimealguidedocu/choimealguide3[2]/lunchgnrldish"));
  976. model.setValue("/root/send/choimealguide/breakgnrldish3", model.getValue("/root/main/choimealguidedocu/choimealguide1[3]/breakgnrldish"));
  977. model.setValue("/root/send/choimealguide/lunchgnrldish3", model.getValue("/root/main/choimealguidedocu/choimealguide3[3]/lunchgnrldish"));
  978. model.setValue("/root/send/choimealguide/breakgnrldish4", model.getValue("/root/main/choimealguidedocu/choimealguide1[4]/breakgnrldish"));
  979. model.setValue("/root/send/choimealguide/lunchgnrldish4", model.getValue("/root/main/choimealguidedocu/choimealguide3[4]/lunchgnrldish"));
  980. model.setValue("/root/send/choimealguide/breakgnrldish5", model.getValue("/root/main/choimealguidedocu/choimealguide1[5]/breakgnrldish"));
  981. model.setValue("/root/send/choimealguide/lunchgnrldish5", model.getValue("/root/main/choimealguidedocu/choimealguide3[5]/lunchgnrldish"));
  982. //선택식 조식 - 주식부터 김치까지 순서대로 5개 메뉴 출력
  983. for (var i = 1; i < 7; i++) {
  984. if (model.getValue("/root/main/choimealguidedocu/choimealguide2[" + i + "]/breakchoidish") != "") {
  985. model.setValue("/root/send/choimealguide/breakchoidish"+cnt, model.getValue("/root/main/choimealguidedocu/choimealguide2[" + i + "]/breakchoidish"));
  986. cnt = cnt +1;
  987. }
  988. if (cnt == 6) {
  989. break;
  990. }
  991. }
  992. cnt = 1;
  993. //선택식 중식 - 주식부터 기타5까지 순서대로 6개 메뉴 출력
  994. for (var i = 1; i < 12; i++) {
  995. if (model.getValue("/root/main/choimealguidedocu/choimealguide4[" + i + "]/lunchchoidish") != "") {
  996. model.setValue("/root/send/choimealguide/lunchchoidish"+cnt, model.getValue("/root/main/choimealguidedocu/choimealguide4[" + i + "]/lunchchoidish"));
  997. cnt = cnt +1;
  998. }
  999. if (cnt == 7) {
  1000. break;
  1001. }
  1002. }
  1003. exeReportPreview("RPANT00901", "XMLSTR", "/root/send/choimealguide");
  1004. } else { return; }
  1005. ]]>
  1006. </script>
  1007. </button>
  1008. </group>
  1009. </xhtml:body>
  1010. </xhtml:html>