SMANT00100_식사처방출력.xrw 75 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763
  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. <data>
  11. <ward/>
  12. <wardnm/>
  13. <room/>
  14. <pid/>
  15. <hngnm/>
  16. <disp1/>
  17. <disp2/>
  18. <disp3/>
  19. <dietnm2/>
  20. <remfactnm/>
  21. <remark/>
  22. <room1/>
  23. <dietnm1/>
  24. <bfremfactcd/>
  25. <bfremfactnm/>
  26. <room2/>
  27. <choidietyn/>
  28. <iptpsn/>
  29. <iptdt/>
  30. <prcpdd/>
  31. <dietmeal/>
  32. <calr/>
  33. <mealcnt/>
  34. <procermealyn/>
  35. <dietcd/>
  36. <dietmdlnm/>
  37. <dietsmlnm/>
  38. <remfactcd/>
  39. <remfactnm1/>
  40. <remfactnm2/>
  41. <remfactnm3/>
  42. <remfactnm4/>
  43. <calrunit/>
  44. <remark1/>
  45. <remark2/>
  46. <remark3/>
  47. <dietnm/>
  48. </data>
  49. <printlist>
  50. <ward/>
  51. <wardnm/>
  52. <bfroom/>
  53. <room/>
  54. <pid/>
  55. <hngnm/>
  56. <disp1/>
  57. <disp2/>
  58. <disp3/>
  59. <pdisp1/>
  60. <pdisp2/>
  61. <pdisp3/>
  62. <dietnm2/>
  63. <clinccmtcnts/>
  64. <prcpdelivefact/>
  65. <tfdtlcd/>
  66. <remark/>
  67. <room1/>
  68. <dietnm1/>
  69. <bfremfactcd/>
  70. <bfremfactnm/>
  71. <room2/>
  72. <choidietyn/>
  73. <iptpsn/>
  74. <iptdt/>
  75. <prcpdd/>
  76. <dietmeal/>
  77. <calr/>
  78. <mealcnt/>
  79. <procermealyn/>
  80. <dietcd/>
  81. <dietmdlnm/>
  82. <dietsmlnm/>
  83. <calrunit/>
  84. <remark1/>
  85. <remark2/>
  86. <remark3/>
  87. <dietnm/>
  88. <bmealdrnknm/>
  89. <prntprcpdelivefact/>
  90. <newbfroom/>
  91. </printlist>
  92. <printlist2>
  93. <ward/>
  94. <wardnm/>
  95. <bfroom/>
  96. <room/>
  97. <pid/>
  98. <hngnm/>
  99. <disp1/>
  100. <disp2/>
  101. <disp3/>
  102. <dietnm2/>
  103. <clinccmtcnts/>
  104. <prcpdelivefact/>
  105. <tfdtlcd/>
  106. <remark/>
  107. <room1/>
  108. <dietnm1/>
  109. <bfremfactcd/>
  110. <bfremfactnm/>
  111. <room2/>
  112. <choidietyn/>
  113. <iptpsn/>
  114. <iptdt/>
  115. <prcpdd/>
  116. <dietmeal/>
  117. <calr/>
  118. <mealcnt/>
  119. <procermealyn/>
  120. <dietcd/>
  121. <dietmdlnm/>
  122. <dietsmlnm/>
  123. <calrunit/>
  124. <remark1/>
  125. <remark2/>
  126. <remark3/>
  127. <dietnm/>
  128. <bmealdrnknm/>
  129. <prntprcpdelivefact/>
  130. </printlist2>
  131. <patinfo>
  132. <patinfolist/>
  133. </patinfo>
  134. <endtm>
  135. <data>
  136. <mealflag/>
  137. <endflag/>
  138. <fromtm/>
  139. <totm/>
  140. <lastupdtdt/>
  141. <lastupdtrid/>
  142. </data>
  143. </endtm>
  144. </main>
  145. <main1>
  146. <printlist3>
  147. <ward/>
  148. <wardnm/>
  149. <bfroom/>
  150. <room/>
  151. <pid/>
  152. <hngnm/>
  153. <dietnm2/>
  154. <clinccmtcnts/>
  155. <prcpdelivefact/>
  156. <tfdtlcd/>
  157. <remark/>
  158. <room1/>
  159. <dietnm1/>
  160. <bfremfactcd/>
  161. <bfremfactnm/>
  162. <room2/>
  163. <choidietyn/>
  164. <iptpsn/>
  165. <iptdt/>
  166. <prcpdd/>
  167. // <dietmeal/>
  168. <calr/>
  169. <mealcnt/>
  170. <procermealyn/>
  171. <dietcd/>
  172. <dietmdlnm/>
  173. <dietsmlnm/>
  174. <calrunit/>
  175. <remark1/>
  176. <remark2/>
  177. <remark3/>
  178. <dietnm/>
  179. <bmealdrnknm/>
  180. <prntprcpdelivefact/>
  181. </printlist3>
  182. </main1>
  183. <main2>
  184. <magamlist>
  185. <magaminfo>
  186. <magamyn/>
  187. </magaminfo>
  188. </magamlist>
  189. </main2>
  190. <printinfo>
  191. <printlist>
  192. <ward/>
  193. <wardnm/>
  194. <bfroom/>
  195. <room/>
  196. <pid/>
  197. <hngnm/>
  198. <disp1/>
  199. <disp2/>
  200. <disp3/>
  201. <dietnm2/>
  202. <clinccmtcnts/>
  203. <prcpdelivefact/>
  204. <tfdtlcd/>
  205. <remark/>
  206. <room1/>
  207. <dietnm1/>
  208. <bfremfactcd/>
  209. <bfremfactnm/>
  210. <room2/>
  211. <choidietyn/>
  212. <iptpsn/>
  213. <iptdt/>
  214. <prcpdd/>
  215. <dietmeal/>
  216. <calr/>
  217. <mealcnt/>
  218. <procermealyn/>
  219. <dietcd/>
  220. <dietmdlnm/>
  221. <dietsmlnm/>
  222. <calrunit/>
  223. <remark1/>
  224. <remark2/>
  225. <remark3/>
  226. <dietnm/>
  227. </printlist>
  228. </printinfo>
  229. <send>
  230. <searchitem>
  231. <dietdd/>
  232. <mealflag/>
  233. <endflag/>
  234. <nmcardflag/>
  235. <ward/>
  236. <nutrward/>
  237. <updtyn/>
  238. <updtflag/>
  239. <instcd/>
  240. <userid/>
  241. <endyn/>
  242. <endmsg/>
  243. <pid/>
  244. <hngnm/>
  245. </searchitem>
  246. <nmcardcnt/>
  247. <patdietslip>
  248. <prcpdd/>
  249. <dietmeal/>
  250. </patdietslip>
  251. <bmealslip>
  252. <prcpdd/>
  253. <dietmeal/>
  254. </bmealslip>
  255. <tflabel/>
  256. <dietchnglist/>
  257. <popup>
  258. <flag/>
  259. <pid/>
  260. <prcpdd/>
  261. </popup>
  262. </send>
  263. <send1>
  264. <printlist/>
  265. </send1>
  266. <send2>
  267. <timelist>
  268. <cdid/>
  269. <cdnm/>
  270. <dispseq/>
  271. <cntlcd1/>
  272. </timelist>
  273. </send2>
  274. <temp>
  275. <ret>
  276. <retmsg/>
  277. </ret>
  278. </temp>
  279. <init>
  280. <code>
  281. <ward>
  282. <dept>
  283. <deptcd/>
  284. <depthngnm/>
  285. </dept>
  286. </ward>
  287. <room>
  288. <cdid/>
  289. <cdnm/>
  290. </room>
  291. </code>
  292. <basecode>
  293. <meal>
  294. <A0047>
  295. <cdid/>
  296. <cdnm/>
  297. </A0047>
  298. </meal>
  299. <dietmeal>
  300. <M0042>
  301. <cdid/>
  302. <cdnm/>
  303. </M0042>
  304. </dietmeal>
  305. <clinccmtcnts>
  306. <item>
  307. <cdid/>
  308. <cdnm/>
  309. </item>
  310. </clinccmtcnts>
  311. <wardcls>
  312. <data>
  313. <wardcd/>
  314. <wardnm/>
  315. </data>
  316. </wardcls>
  317. <endflag>
  318. <A0054>
  319. <cdid/>
  320. <cdnm/>
  321. </A0054>
  322. </endflag>
  323. </basecode>
  324. </init>
  325. </root>
  326. </instance>
  327. <script type="javascript" ev:event="xforms-ready">
  328. <![CDATA[
  329. finit();
  330. btn_search.disabled = !checkAuth("R");
  331. //btn_excel.disabled = !checkAuth("P");
  332. model.setValue("/root/send/searchitem/instcd", getUserInfo("dutplceinstcd"));
  333. model.setValue("/root/send/searchitem/userid", getUserInfo("userid"));
  334. // btn_dietprcpsum.disabled = true;
  335. // btn_dietprcpcopy.disabled = true;
  336. var auth_id = getUserInfo("userid");
  337. if ( auth_id == "10396" || auth_id == "10249" || auth_id == "99207" || auth_id == "99262" || auth_id == "AST") {
  338. btn_dietprcpsum.visible = true; //식사처방집계 버튼 안보이도록.
  339. btn_dietprcpcopy.visible = true; //식사처방복사 버튼 안보이도록.
  340. btn_dietchnglist.visible = true; //식사변경내역전표 버튼 안보이도록.
  341. }else {
  342. btn_dietprcpsum.visible = false; //식사처방집계 버튼 안보이도록.
  343. btn_dietprcpcopy.visible = false; //식사처방복사 버튼 안보이도록.
  344. btn_dietchnglist.visible = false; //식사변경내역전표 버튼 안보이도록.
  345. }
  346. if( auth_id == "EVER1"|| auth_id == "EVER2"){
  347. btn_dietprcpsum.visible = true; // 식사처방집계 버튼
  348. btn_dietprcpcopy.visible = true; //식사처방복사 버튼
  349. }
  350. ]]>
  351. </script>
  352. <script type="javascript">
  353. <![CDATA[
  354. //초기화
  355. function finit() {
  356. //화면open시 공통코드 setting
  357. zbcfGetCodeList( new Array( "A0047", "M0042", "A0054" ), new Array( "/root/init/basecode/meal", "/root/init/basecode/dietmeal", "/root/init/basecode/endflag" ) );
  358. //zbcfGetDeptCodeList(getUserInfo("dutplceinstcd"), 'orduseyn', 'W', '/root/init/code/ward', 'depthngnm', 'asc', new Date().getDateFormat("YYYYMMDD"), "", 'after');
  359. zsdfGetWardDeptList(getUserInfo("dutplceinstcd"), '/root/init/code/ward', 'depthngnm', 'asc', new Date().getDateFormat("YYYYMMDD"), 'after');
  360. submit("TRANT00102"); //조절코드 조회
  361. submit("TRANB00208"); //영양팀병동 조회
  362. astfAddCombo("/root/init/basecode/wardcls","data","wardcd,wardnm",",");
  363. model.removeNodeset("/root/main/data");
  364. //model.resetInstanceNode("/root/send");
  365. model.setValue("/root/send/searchitem/dietdd", getCurrentDate());
  366. //화면open시 현재시간을 계산하여 끼니와 마감구분 자동setting
  367. //각 끼니별 2차 마감시간으로부터 2시간후까지는 이전끼니로 setting
  368. var tm = getCurrentTime();
  369. if ( tm.substr(0,4) <= 0830 ) { //조식 2차 마감시간은 06:30
  370. //if ( tm.substr(0,4) <= 0630 ) {
  371. model.setValue("/root/send/searchitem/mealflag", "1");
  372. if ( tm.substr(0,4) <= 0530 ) {
  373. model.setValue("/root/send/searchitem/endflag", "1");
  374. } else {
  375. model.setValue("/root/send/searchitem/endflag", "2");
  376. }
  377. } else if ( (tm.substr(0,4) > 0830) && (tm.substr(0,4) <= 1330) ) { //중식 2차 마감시간은 11:30
  378. //} else if ( (tm.substr(0,4) > 0630) && (tm.substr(0,4) <= 1130) ) {
  379. model.setValue("/root/send/searchitem/mealflag", "2");
  380. if ( tm.substr(0,4) <= 1030 ) {
  381. model.setValue("/root/send/searchitem/endflag", "1");
  382. } else {
  383. model.setValue("/root/send/searchitem/endflag", "2");
  384. }
  385. } else if ( (tm.substr(0,4) > 1330) ) {
  386. //} else if ( (tm.substr(0,4) > 1130) ) {
  387. model.setValue("/root/send/searchitem/mealflag", "3");
  388. if ( tm.substr(0,4) <= 1600 ) {
  389. model.setValue("/root/send/searchitem/endflag", "1");
  390. } else {
  391. model.setValue("/root/send/searchitem/endflag", "2");
  392. }
  393. }
  394. model.setValue("/root/send/searchitem/nmcardflag", "0");
  395. //model.setValue("/root/send/searchitem/updtflag", "-");
  396. model.refresh();
  397. }
  398. //경장영양식라벨 출력
  399. function ftflabel(meal, mealtm) {
  400. model.copyNode("/root/send/tflabel", "/root/main");
  401. var lastrow = grd_data.rows;
  402. //cc계산 및 횟수가 4회 이상인 환자의 라벨 추가생성
  403. for ( i=1; i<grd_data.rows; i++) {
  404. //cc계산
  405. if (getUserInfo("dutplceinstcd") == "012"){
  406. model.makeNode("/root/send/tflabel/printlist[" + i + "]/cc");
  407. var calr = model.getValue("/root/send/tflabel/printlist[" + i + "]/calr");
  408. var mealcnt = model.getValue("/root/send/tflabel/printlist[" + i + "]/mealcnt");
  409. var cc = Math.round(calr/mealcnt);
  410. model.setValue("/root/send/tflabel/printlist[" + i + "]/cc", cc);
  411. model.setValue("/root/send/tflabel/printlist[" + i + "]/dietmeal", mealtm);
  412. //횟수가 4회 이상인 환자의 라벨 추가생성
  413. if ( (meal == '조식') && (mealcnt > 4) ) {
  414. var mealnm = model.getValue("/root/send2/timelist[cntlcd1='11']/cdid");
  415. if (mealnm != ""){
  416. copyNodesetType("/root/send/tflabel/printlist", "/root/send/tflabel/printlist[" + i + "]", "after", model, model);
  417. //model.setValue("/root/send/tflabel/printlist[" + lastrow + "]/dietmeal", '10:00');
  418. model.setValue("/root/send/tflabel/printlist[" + lastrow + "]/dietmeal", mealnm);
  419. lastrow = lastrow + 1;
  420. }
  421. }
  422. else if ( (meal == '중식') && (mealcnt > 3) ) {
  423. var mealnm = model.getValue("/root/send2/timelist[cntlcd1='21']/cdid");
  424. if (mealnm != ""){
  425. copyNodesetType("/root/send/tflabel/printlist", "/root/send/tflabel/printlist[" + i + "]", "after", model, model);
  426. //model.setValue("/root/send/tflabel/printlist[" + lastrow + "]/dietmeal", '15:00');
  427. model.setValue("/root/send/tflabel/printlist[" + lastrow + "]/dietmeal", mealnm);
  428. lastrow = lastrow + 1;
  429. }
  430. }
  431. else if ( (meal == '석식') && (mealcnt > 5) ) {
  432. var mealnm = model.getValue("/root/send2/timelist[cntlcd1='31']/cdid");
  433. var mcount = parseInt(model.getValue("/root/send2/timelist[cntlcd1='31']/dispseq"));
  434. if (mealnm != ""){
  435. for (var k = 0; k < mcount; k ++){
  436. copyNodesetType("/root/send/tflabel/printlist", "/root/send/tflabel/printlist[" + i + "]", "after", model, model);
  437. //model.setValue("/root/send/tflabel/printlist[" + lastrow + "]/dietmeal", '20:30');
  438. model.setValue("/root/send/tflabel/printlist[" + lastrow + "]/dietmeal", mealnm);
  439. lastrow = lastrow + 1;
  440. }
  441. }
  442. }
  443. }else if (getUserInfo("dutplceinstcd") == "013"){
  444. //횟수가 4회 이상인 환자의 라벨 추가생성
  445. //alert("1==> " + mealtm + "==" + meal);
  446. model.makeNode("/root/send/tflabel/printlist[" + i + "]/cc");
  447. var calr = model.getValue("/root/send/tflabel/printlist[" + i + "]/calr");
  448. var mealcnt = model.getValue("/root/send/tflabel/printlist[" + i + "]/mealcnt");
  449. var cc = Math.round(calr/mealcnt);
  450. model.makeValue("/root/send/tflabel/printlist[" + i + "]/cc", cc);
  451. model.makeValue("/root/send/tflabel/printlist[" + i + "]/dietmeal", mealtm);
  452. if ( meal == '조식'){
  453. if (mealcnt > 4) {
  454. /*
  455. model.makeNode("/root/send/tflabel/printlist[" + i + "]/cc");
  456. var calr = model.getValue("/root/send/tflabel/printlist[" + i + "]/calr");
  457. var mealcnt = model.getValue("/root/send/tflabel/printlist[" + i + "]/mealcnt");
  458. var cc = Math.round(calr/mealcnt);
  459. model.makeValue("/root/send/tflabel/printlist[" + i + "]/cc", cc);
  460. model.makeValue("/root/send/tflabel/printlist[" + i + "]/dietmeal", mealtm);
  461. */
  462. var mealnm = model.getValue("/root/send2/timelist[cntlcd1='11']/cdid");
  463. if (mealnm != ""){
  464. copyNodesetType("/root/send/tflabel/printlist", "/root/send/tflabel/printlist[" + i + "]", "after", model, model);
  465. //model.setValue("/root/send/tflabel/printlist[" + lastrow + "]/dietmeal", '10:00');
  466. model.setValue("/root/send/tflabel/printlist[" + lastrow + "]/dietmeal", mealnm);
  467. lastrow = lastrow + 1;
  468. }
  469. }
  470. }
  471. else if (meal == '중식') {
  472. if (mealcnt > 4){
  473. var mealnm = model.getValue("/root/send2/timelist[cntlcd1='21']/cdid");
  474. if (mealnm != ""){
  475. //copyNodesetType("/root/send/tflabel/printlist", "/root/send/tflabel/printlist[" + i + "]", "after", model, model);
  476. //model.setValue("/root/send/tflabel/printlist[" + lastrow + "]/dietmeal", '15:00');
  477. model.setValue("/root/send/tflabel/printlist[" + i + "]/dietmeal", mealnm);
  478. lastrow = lastrow + 1;
  479. }
  480. }else{
  481. model.makeNode("/root/send/tflabel/printlist[" + i + "]/cc");
  482. var calr = model.getValue("/root/send/tflabel/printlist[" + i + "]/calr");
  483. var cc = Math.round(calr/mealcnt);
  484. model.makeValue("/root/send/tflabel/printlist[" + i + "]/cc", cc);
  485. model.makeValue("/root/send/tflabel/printlist[" + i + "]/dietmeal", mealtm);
  486. }
  487. }
  488. else if (meal == '석식') {
  489. model.makeNode("/root/send/tflabel/printlist[" + i + "]/cc");
  490. var calr = model.getValue("/root/send/tflabel/printlist[" + i + "]/calr");
  491. var cc = Math.round(calr/mealcnt);
  492. model.setValue("/root/send/tflabel/printlist[" + i + "]/cc", cc);
  493. model.setValue("/root/send/tflabel/printlist[" + i + "]/dietmeal", mealtm);
  494. if (mealcnt == 4){
  495. var mealnm = model.getValue("/root/send2/timelist[cntlcd1='31']/cdid");
  496. if (mealnm != ""){
  497. copyNodesetType("/root/send/tflabel/printlist", "/root/send/tflabel/printlist[" + i + "]", "after", model, model);
  498. //model.setValue("/root/send/tflabel/printlist[" + lastrow + "]/dietmeal", '15:00');
  499. model.setValue("/root/send/tflabel/printlist[" + lastrow + "]/dietmeal", mealnm);
  500. lastrow = lastrow + 1;
  501. }
  502. }else if (mealcnt == 5){
  503. var mealnm = model.getValue("/root/send2/timelist[cntlcd1='31']/cdid");
  504. if (mealnm != ""){
  505. copyNodesetType("/root/send/tflabel/printlist", "/root/send/tflabel/printlist[" + i + "]", "after", model, model);
  506. //model.setValue("/root/send/tflabel/printlist[" + lastrow + "]/dietmeal", '15:00');
  507. model.setValue("/root/send/tflabel/printlist[" + lastrow + "]/dietmeal", mealnm);
  508. lastrow = lastrow + 1;
  509. }
  510. }else if (mealcnt == 6){
  511. var mealnm = model.getValue("/root/send2/timelist[cntlcd1='31']/cdid");
  512. var mcount = parseInt(model.getValue("/root/send2/timelist[cntlcd1='31']/dispseq"));
  513. if (mealnm != ""){
  514. for (var k = 0; k < mcount; k ++){
  515. copyNodesetType("/root/send/tflabel/printlist", "/root/send/tflabel/printlist[" + i + "]", "after", model, model);
  516. //model.setValue("/root/send/tflabel/printlist[" + lastrow + "]/dietmeal", '20:30');
  517. model.setValue("/root/send/tflabel/printlist[" + lastrow + "]/dietmeal", mealnm);
  518. lastrow = lastrow + 1;
  519. }
  520. }
  521. }
  522. }
  523. }else if (getUserInfo("dutplceinstcd") == "011"){
  524. //횟수가 4회 이상인 환자의 라벨 추가생성
  525. //alert("1==> " + mealtm + "==" + meal);
  526. model.makeNode("/root/send/tflabel/printlist[" + i + "]/cc");
  527. var calr = model.getValue("/root/send/tflabel/printlist[" + i + "]/calr");
  528. var mealcnt = model.getValue("/root/send/tflabel/printlist[" + i + "]/mealcnt");
  529. var cc = Math.round(calr/mealcnt);
  530. model.makeValue("/root/send/tflabel/printlist[" + i + "]/cc", cc);
  531. model.makeValue("/root/send/tflabel/printlist[" + i + "]/dietmeal", mealtm);
  532. if ( meal == '조식'){
  533. if (mealcnt > 4){
  534. var mealnm = model.getValue("/root/send2/timelist[cntlcd1='11']/cdid");
  535. if (mealnm != ""){
  536. copyNodesetType("/root/send/tflabel/printlist", "/root/send/tflabel/printlist[" + i + "]", "after", model, model);
  537. model.setValue("/root/send/tflabel/printlist[" + lastrow + "]/dietmeal", mealnm);
  538. lastrow = lastrow + 1;
  539. }
  540. }
  541. }
  542. else if (meal == '중식') {
  543. model.makeNode("/root/send/tflabel/printlist[" + i + "]/cc");
  544. var calr = model.getValue("/root/send/tflabel/printlist[" + i + "]/calr");
  545. var cc = Math.round(calr/mealcnt);
  546. model.makeValue("/root/send/tflabel/printlist[" + i + "]/cc", cc);
  547. model.makeValue("/root/send/tflabel/printlist[" + i + "]/dietmeal", mealtm);
  548. if (mealcnt > 4){
  549. var mealnm = model.getValue("/root/send2/timelist[cntlcd1='21']/cdid");
  550. if (mealnm != ""){
  551. copyNodesetType("/root/send/tflabel/printlist", "/root/send/tflabel/printlist[" + i + "]", "after", model, model);
  552. model.setValue("/root/send/tflabel/printlist[" + lastrow + "]/dietmeal", mealnm);
  553. lastrow = lastrow + 1;
  554. }
  555. }
  556. }
  557. else if (meal == '석식') {
  558. model.makeNode("/root/send/tflabel/printlist[" + i + "]/cc");
  559. var calr = model.getValue("/root/send/tflabel/printlist[" + i + "]/calr");
  560. var cc = Math.round(calr/mealcnt);
  561. model.setValue("/root/send/tflabel/printlist[" + i + "]/cc", cc);
  562. model.setValue("/root/send/tflabel/printlist[" + i + "]/dietmeal", mealtm);
  563. if (mealcnt == 4){
  564. var mealnm = model.getValue("/root/send2/timelist[cntlcd1='31']/cdid");
  565. if (mealnm != ""){
  566. copyNodesetType("/root/send/tflabel/printlist", "/root/send/tflabel/printlist[" + i + "]", "after", model, model);
  567. model.setValue("/root/send/tflabel/printlist[" + lastrow + "]/dietmeal", mealnm);
  568. lastrow = lastrow + 1;
  569. }
  570. }else if (mealcnt == 5){
  571. var mealnm = model.getValue("/root/send2/timelist[cntlcd1='31']/cdid");
  572. if (mealnm != ""){
  573. copyNodesetType("/root/send/tflabel/printlist", "/root/send/tflabel/printlist[" + i + "]", "after", model, model);
  574. model.setValue("/root/send/tflabel/printlist[" + lastrow + "]/dietmeal", mealnm);
  575. lastrow = lastrow + 1;
  576. }
  577. }else if (mealcnt == 6){
  578. var mealnm = model.getValue("/root/send2/timelist[cntlcd1='31']/cdid");
  579. var mcount = parseInt(model.getValue("/root/send2/timelist[cntlcd1='31']/dispseq"));
  580. if (mealnm != ""){
  581. for (var k = 0; k < mcount; k ++){
  582. copyNodesetType("/root/send/tflabel/printlist", "/root/send/tflabel/printlist[" + i + "]", "after", model, model);
  583. //model.setValue("/root/send/tflabel/printlist[" + lastrow + "]/dietmeal", '20:30');
  584. model.setValue("/root/send/tflabel/printlist[" + lastrow + "]/dietmeal", mealnm);
  585. lastrow = lastrow + 1;
  586. }
  587. }
  588. }
  589. }
  590. }else{
  591. //횟수가 4회 이상인 환자의 라벨 추가생성
  592. //alert("1==> " + mealtm + "==" + meal);
  593. model.makeNode("/root/send/tflabel/printlist[" + i + "]/cc");
  594. var calr = model.getValue("/root/send/tflabel/printlist[" + i + "]/calr");
  595. var mealcnt = model.getValue("/root/send/tflabel/printlist[" + i + "]/mealcnt");
  596. //var cc = Math.round(calr/mealcnt); // 2011.02.16 CYW
  597. var cc = calr;
  598. model.makeValue("/root/send/tflabel/printlist[" + i + "]/cc", cc);
  599. model.makeValue("/root/send/tflabel/printlist[" + i + "]/dietmeal", mealtm);
  600. if ( meal == '조식'){
  601. //if (mealcnt > 4) {
  602. /*
  603. model.makeNode("/root/send/tflabel/printlist[" + i + "]/cc");
  604. var calr = model.getValue("/root/send/tflabel/printlist[" + i + "]/calr");
  605. var mealcnt = model.getValue("/root/send/tflabel/printlist[" + i + "]/mealcnt");
  606. var cc = Math.round(calr/mealcnt);
  607. model.makeValue("/root/send/tflabel/printlist[" + i + "]/cc", cc);
  608. model.makeValue("/root/send/tflabel/printlist[" + i + "]/dietmeal", mealtm);
  609. */
  610. /*
  611. var mealnm = model.getValue("/root/send2/timelist[cntlcd1='11']/cdid");
  612. if (mealnm != ""){
  613. copyNodesetType("/root/send/tflabel/printlist", "/root/send/tflabel/printlist[" + i + "]", "after", model, model);
  614. //model.setValue("/root/send/tflabel/printlist[" + lastrow + "]/dietmeal", '10:00');
  615. model.setValue("/root/send/tflabel/printlist[" + lastrow + "]/dietmeal", mealnm);
  616. lastrow = lastrow + 1;
  617. }
  618. }
  619. */
  620. }
  621. else if (meal == '중식') {
  622. model.makeNode("/root/send/tflabel/printlist[" + i + "]/cc");
  623. var calr = model.getValue("/root/send/tflabel/printlist[" + i + "]/calr");
  624. //var cc = Math.round(calr/mealcnt); // 2011.02.16 CYW
  625. var cc = calr;
  626. model.makeValue("/root/send/tflabel/printlist[" + i + "]/cc", cc);
  627. model.makeValue("/root/send/tflabel/printlist[" + i + "]/dietmeal", mealtm);
  628. }
  629. else if (meal == '석식') {
  630. model.makeNode("/root/send/tflabel/printlist[" + i + "]/cc");
  631. var calr = model.getValue("/root/send/tflabel/printlist[" + i + "]/calr");
  632. //var cc = Math.round(calr/mealcnt); // 2011.02.16 CYW
  633. var cc = calr;
  634. model.setValue("/root/send/tflabel/printlist[" + i + "]/cc", cc);
  635. model.setValue("/root/send/tflabel/printlist[" + i + "]/dietmeal", mealtm);
  636. if (mealcnt == 4){
  637. var mealnm = model.getValue("/root/send2/timelist[cntlcd1='31']/cdid");
  638. if (mealnm != ""){
  639. copyNodesetType("/root/send/tflabel/printlist", "/root/send/tflabel/printlist[" + i + "]", "after", model, model);
  640. //model.setValue("/root/send/tflabel/printlist[" + lastrow + "]/dietmeal", '15:00');
  641. model.setValue("/root/send/tflabel/printlist[" + lastrow + "]/dietmeal", mealnm);
  642. lastrow = lastrow + 1;
  643. }
  644. }else if (mealcnt == 5){
  645. var mealnm = model.getValue("/root/send2/timelist[cntlcd1='31']/cdid");
  646. var mcount = parseInt(model.getValue("/root/send2/timelist[cntlcd1='31']/dispseq"));
  647. if (mealnm != ""){
  648. for (var k = 0; k < mcount; k ++){
  649. copyNodesetType("/root/send/tflabel/printlist", "/root/send/tflabel/printlist[" + i + "]", "after", model, model);
  650. //model.setValue("/root/send/tflabel/printlist[" + lastrow + "]/dietmeal", '20:30');
  651. model.setValue("/root/send/tflabel/printlist[" + lastrow + "]/dietmeal", mealnm);
  652. lastrow = lastrow + 1;
  653. }
  654. }
  655. }
  656. }
  657. }
  658. }
  659. exeReportPreview("RPANT00104", "XMLSTR", "/root/send/tflabel");
  660. }
  661. //간식전료 출력
  662. function ganlabel(meal, mealtm) {
  663. var lastrow = grd_data.rows;
  664. //cc계산 및 횟수가 4회 이상인 환자의 라벨 추가생성
  665. for ( i=1; i<grd_data.rows; i++) {
  666. //cc계산
  667. if (getUserInfo("dutplceinstcd") == "012"){
  668. model.makeNode("/root/send/bmealslip/printlist[" + i + "]/cc");
  669. var calr = model.getValue("/root/send/bmealslip/printlist[" + i + "]/calr");
  670. var mealcnt = model.getValue("/root/send/bmealslip/printlist[" + i + "]/mealcnt");
  671. var cc = Math.round(calr/mealcnt);
  672. model.setValue("/root/send/bmealslip/printlist[" + i + "]/cc", cc);
  673. model.setValue("/root/send/bmealslip/printlist[" + i + "]/dietmeal", mealtm);
  674. //횟수가 4회 이상인 환자의 라벨 추가생성
  675. if ( (meal == '조식') && (mealcnt > 4) ) {
  676. var mealnm = model.getValue("/root/send2/timelist[cntlcd1='11']/cdid");
  677. if (mealnm != ""){
  678. copyNodesetType("/root/send/bmealslip/printlist", "/root/send/bmealslip/printlist[" + i + "]", "after", model, model);
  679. //model.setValue("/root/send/bmealslip/printlist[" + lastrow + "]/dietmeal", '10:00');
  680. model.setValue("/root/send/bmealslip/printlist[" + lastrow + "]/dietmeal", mealnm);
  681. lastrow = lastrow + 1;
  682. }
  683. }
  684. else if ( (meal == '중식') && (mealcnt > 3) ) {
  685. var mealnm = model.getValue("/root/send2/timelist[cntlcd1='21']/cdid");
  686. if (mealnm != ""){
  687. copyNodesetType("/root/send/bmealslip/printlist", "/root/send/bmealslip/printlist[" + i + "]", "after", model, model);
  688. //model.setValue("/root/send/bmealslip/printlist[" + lastrow + "]/dietmeal", '15:00');
  689. model.setValue("/root/send/bmealslip/printlist[" + lastrow + "]/dietmeal", mealnm);
  690. lastrow = lastrow + 1;
  691. }
  692. }
  693. else if ( (meal == '석식') && (mealcnt > 5) ) {
  694. var mealnm = model.getValue("/root/send2/timelist[cntlcd1='31']/cdid");
  695. var mcount = parseInt(model.getValue("/root/send2/timelist[cntlcd1='31']/dispseq"));
  696. if (mealnm != ""){
  697. for (var k = 0; k < mcount; k ++){
  698. copyNodesetType("/root/send/bmealslip/printlist", "/root/send/bmealslip/printlist[" + i + "]", "after", model, model);
  699. //model.setValue("/root/send/bmealslip/printlist[" + lastrow + "]/dietmeal", '20:30');
  700. model.setValue("/root/send/bmealslip/printlist[" + lastrow + "]/dietmeal", mealnm);
  701. lastrow = lastrow + 1;
  702. }
  703. }
  704. }
  705. }else{
  706. //횟수가 4회 이상인 환자의 라벨 추가생성
  707. //alert("1==> " + mealtm + "==" + meal);
  708. var mealcnt = model.getValue("/root/send/bmealslip/printlist[" + i + "]/mealcnt");
  709. alert("==" + meal + "==" + mealcnt);
  710. if ( (meal == '조식') && (mealcnt > 4) ) {
  711. model.makeNode("/root/send/bmealslip/printlist[" + i + "]/cc");
  712. var calr = model.getValue("/root/send/bmealslip/printlist[" + i + "]/calr");
  713. var mealcnt = model.getValue("/root/send/bmealslip/printlist[" + i + "]/mealcnt");
  714. var cc = Math.round(calr/mealcnt);
  715. model.makeValue("/root/send/bmealslip/printlist[" + i + "]/cc", cc);
  716. model.makeValue("/root/send/bmealslip/printlist[" + i + "]/dietmeal", mealtm);
  717. var mealnm = model.getValue("/root/send2/timelist[cntlcd1='11']/cdid");
  718. if (mealnm != ""){
  719. copyNodesetType("/root/send/bmealslip/printlist", "/root/send/bmealslip/printlist[" + i + "]", "after", model, model);
  720. //model.setValue("/root/send/bmealslip/printlist[" + lastrow + "]/dietmeal", '10:00');
  721. model.setValue("/root/send/bmealslip/printlist[" + lastrow + "]/dietmeal", mealnm);
  722. lastrow = lastrow + 1;
  723. }
  724. }
  725. else if (meal == '중식') {
  726. if (mealcnt > 4){
  727. var mealnm = model.getValue("/root/send2/timelist[cntlcd1='21']/cdid");
  728. if (mealnm != ""){
  729. //copyNodesetType("/root/send/bmealslip/printlist", "/root/send/bmealslip/printlist[" + i + "]", "after", model, model);
  730. //model.setValue("/root/send/bmealslip/printlist[" + lastrow + "]/dietmeal", '15:00');
  731. model.setValue("/root/send/bmealslip/printlist[" + i + "]/dietmeal", mealnm);
  732. lastrow = lastrow + 1;
  733. }
  734. }else{
  735. model.makeNode("/root/send/bmealslip/printlist[" + i + "]/cc");
  736. var calr = model.getValue("/root/send/bmealslip/printlist[" + i + "]/calr");
  737. var cc = Math.round(calr/mealcnt);
  738. model.makeValue("/root/send/bmealslip/printlist[" + i + "]/cc", cc);
  739. model.makeValue("/root/send/bmealslip/printlist[" + i + "]/dietmeal", mealtm);
  740. }
  741. }
  742. else if (meal == '석식') {
  743. model.makeNode("/root/send/bmealslip/printlist[" + i + "]/cc");
  744. var calr = model.getValue("/root/send/bmealslip/printlist[" + i + "]/calr");
  745. var cc = Math.round(calr/mealcnt);
  746. model.setValue("/root/send/bmealslip/printlist[" + i + "]/cc", cc);
  747. model.setValue("/root/send/bmealslip/printlist[" + i + "]/dietmeal", mealtm);
  748. if (mealcnt == 4){
  749. var mealnm = model.getValue("/root/send2/timelist[cntlcd1='31']/cdid");
  750. if (mealnm != ""){
  751. copyNodesetType("/root/send/bmealslip/printlist", "/root/send/bmealslip/printlist[" + i + "]", "after", model, model);
  752. //model.setValue("/root/send/bmealslip/printlist[" + lastrow + "]/dietmeal", '15:00');
  753. model.setValue("/root/send/bmealslip/printlist[" + lastrow + "]/dietmeal", mealnm);
  754. lastrow = lastrow + 1;
  755. }
  756. }else if (mealcnt == 5){
  757. var mealnm = model.getValue("/root/send2/timelist[cntlcd1='31']/cdid");
  758. if (mealnm != ""){
  759. copyNodesetType("/root/send/bmealslip/printlist", "/root/send/bmealslip/printlist[" + i + "]", "after", model, model);
  760. //model.setValue("/root/send/bmealslip/printlist[" + lastrow + "]/dietmeal", '15:00');
  761. model.setValue("/root/send/bmealslip/printlist[" + lastrow + "]/dietmeal", mealnm);
  762. lastrow = lastrow + 1;
  763. }
  764. }else if (mealcnt == 6){
  765. var mealnm = model.getValue("/root/send2/timelist[cntlcd1='31']/cdid");
  766. var mcount = parseInt(model.getValue("/root/send2/timelist[cntlcd1='31']/dispseq"));
  767. if (mealnm != ""){
  768. for (var k = 0; k < mcount; k ++){
  769. copyNodesetType("/root/send/bmealslip/printlist", "/root/send/bmealslip/printlist[" + i + "]", "after", model, model);
  770. //model.setValue("/root/send/bmealslip/printlist[" + lastrow + "]/dietmeal", '20:30');
  771. model.setValue("/root/send/bmealslip/printlist[" + lastrow + "]/dietmeal", mealnm);
  772. lastrow = lastrow + 1;
  773. }
  774. }
  775. }
  776. }
  777. }
  778. }
  779. }
  780. function fdevifact(){
  781. var nmcardcnt = 0;
  782. //전달사항을 코드별로 나누고 코드명으로 전환하여 remfactnm1~4 인스턴스에 분리하여 담기
  783. //전달사항에 '끓인물(14)'이 있으면 추가로 boiledwater 노드 생성후 Y 셋팅
  784. for ( i=1; i<grd_data.rows; i++) {
  785. var clinccmtcnts = model.getValue("/root/main/printlist[" + i + "]/clinccmtcnts");
  786. /*
  787. var temp = "";
  788. var c = 1;
  789. if ( clinccmtcnts != "" ) {
  790. for ( j = 0; j < clinccmtcnts.length; j+=3 ) {
  791. temp = model.getValue("/root/init/basecode/clinccmtcnts/item[cdid='"+ clinccmtcnts.substr(j,2) +"']/cdnm");
  792. if ( temp != "" ) {
  793. model.makeNode("/root/main/printlist[" + i + "]/remfactnm" + c);
  794. model.setValue("/root/main/printlist[" + i + "]/remfactnm" + c, temp);
  795. c = c + 1;
  796. }
  797. if ( clinccmtcnts.substr(j,2) == '14' ) {
  798. model.makeValue("/root/main/printlist[" + i + "]/boiledwater", "Y");
  799. }
  800. }
  801. }
  802. */
  803. if (isSearchString(clinccmtcnts,'14')) {
  804. model.makeValue("/root/main/printlist[" + i + "]/boiledwater", "Y");
  805. }
  806. // *********************** 특이사항의 모든 항목을 ',' 단위로 분리함.***************************
  807. var prntprcpdelivefact = model.getValue("/root/main/printlist["+i+"]/prntprcpdelivefact");
  808. var temp = "";
  809. if(prntprcpdelivefact != "" && prntprcpdelivefact != null){
  810. temp = prntprcpdelivefact.split(",");
  811. prntprcpdelivefact = "";
  812. for(var j = 0; j < temp.length; j++){
  813. tmp = prntprcpdelivefact.split("\n");
  814. if((tmp[tmp.length-1].length+temp[j].length)/50 >= 1 ){ // 저장된 특이사항의 맨 마지막 행을 값을 비교
  815. prntprcpdelivefact += "\n"; // 각 사항을 \n로 구분
  816. }
  817. prntprcpdelivefact += temp[j];
  818. if(j != temp.length-1){
  819. prntprcpdelivefact += ", "; // ',' 삽입
  820. }
  821. }
  822. if(prntprcpdelivefact != ""){
  823. model.makeNode("/root/main/printlist[" + i + "]/remfactnm");
  824. model.setValue("/root/main/printlist[" + i + "]/remfactnm", prntprcpdelivefact);
  825. }
  826. }
  827. //**************************************************************************************
  828. //네임카드 갯수 카운트 : 금식, 경장영양식 제외
  829. /*
  830. var dietcd = model.getValue("/root/main/printlist[" + i + "]/dietcd");
  831. if ( dietcd.substr(0,2) != 'Q9' && dietcd.substr(0,4) != 'Q209' ) {
  832. nmcardcnt = nmcardcnt + 1 ;
  833. }
  834. */
  835. //네임카드 갯수 카운트 : 금식, 경장영양식 제외
  836. /*
  837. var dietcd = model.getValue("/root/main/printlist[" + i + "]/dietcd");
  838. if ( dietcd.substr(0,2) != 'Q9' && dietcd.substr(0,4) != 'Q209' ) {
  839. nmcardcnt = nmcardcnt + 1 ;
  840. }
  841. */
  842. var etcgb = model.getValue("/root/main/printlist[" + i + "]/etcgb");
  843. if (etcgb == "1"){
  844. nmcardcnt = nmcardcnt + 1 ;
  845. }
  846. }
  847. }
  848. ]]>
  849. </script>
  850. <submission id="TRZBC00101"/>
  851. <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  852. <submission id="TRANT00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchitem" resultref="/root/main"/>
  853. <submission id="TRANT00102" mediatype="application/x-www-form-urlencoded" method="post" resultref="/root/init/basecode/clinccmtcnts"/>
  854. <submission id="TRANT00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchitem" resultref="/root/main2/magamlist"/>
  855. <submission id="TXANT00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchitem" resultref="/root/temp"/>
  856. <submission id="TXANT00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchitem" resultref="/root/temp"/>
  857. <submission id="TXANT00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchitem" resultref="/root/temp"/>
  858. <submission id="TRANB00208" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchitem" resultref="/root/init/basecode/wardcls"/>
  859. <submission id="TRANT01005" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchitem" resultref="/root/send2"/>
  860. <submission id="TRANB00201" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" resultref="/root/main/endtm"/>
  861. <bind id="bind_ward" ref="/root/main/data/ward" readonly="../ward!=''"/>
  862. </model>
  863. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  864. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  865. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  866. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  867. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  868. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  869. <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
  870. </xhtml:head>
  871. <xhtml:body guideline="1,1194;1,0;2,784;2,757;2,715;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  872. <group id="group1" style="left:0px; top:0px; width:1195px; height:15px; ">
  873. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:100px; height:15px; ">식사처방출력</caption>
  874. </group>
  875. <group id="group3" scroll="auto" style="left:0px; top:15px; width:1195px; height:745px; ">
  876. <group id="group2" style="left:0px; top:10px; width:1195px; height:65px; vertical-align:top; ">
  877. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:65px; background-color:#fffbf2; "/>
  878. <caption id="caption1" class="search_name" style="left:15px; top:9px; width:86px; height:17px; ">일자 :</caption>
  879. <input id="ipt_dietdd" ref="/root/send/searchitem/dietdd" class="input_s_essential" inputtype="date" style="left:79px; top:8px; width:100px; height:19px; "/>
  880. <button id="btn_search" class="btn1_letter2" style="left:1118px; top:23px; width:56px; height:22px; ">
  881. <caption>조회</caption>
  882. <script type="javascript" ev:event="DOMActivate">
  883. <![CDATA[
  884. //조회시점이 마감시간 전인지 마감시간 후인지 체크
  885. submit("TRANB00201");
  886. submit("TRANT00103");
  887. var tm = getCurrentTime();
  888. var dd = model.getValue("/root/send/searchitem/dietdd");
  889. var mealflag = model.getValue("/root/send/searchitem/mealflag"); //끼니
  890. var endflag = model.getValue("/root/send/searchitem/endflag"); //마감구분
  891. // if ( dd > getCurrentDate() ||
  892. // (dd==getCurrentDate() && mealflag=='1' && endflag=='1' && tm.substr(0,4) <= 0530) ||
  893. // (dd==getCurrentDate() && mealflag=='1' && tm.substr(0,4) <= 0630) ||
  894. // (dd==getCurrentDate() && mealflag=='2' && tm.substr(0,4) <= 1130) ||
  895. // (dd==getCurrentDate() && mealflag=='3' && tm.substr(0,4) <= 1700) ) {
  896. var sendtm11 = model.getValue("/root/main/endtm/data[mealflag='1' and endflag = '1']/totm");
  897. var sendtm12 = model.getValue("/root/main/endtm/data[mealflag='1' and endflag = '2']/totm");
  898. var sendtm21 = model.getValue("/root/main/endtm/data[mealflag='2' and endflag = '1']/totm");
  899. var sendtm22 = model.getValue("/root/main/endtm/data[mealflag='2' and endflag = '2']/totm");
  900. var sendtm31 = model.getValue("/root/main/endtm/data[mealflag='3' and endflag = '1']/totm");
  901. var sendtm32 = model.getValue("/root/main/endtm/data[mealflag='3' and endflag = '2']/totm");
  902. //alert("==" + sendtm11 + "==" + sendtm12 + "==" + sendtm21 + "==" + sendtm22 + "==" + sendtm31 + "==" + sendtm32);
  903. if (model.getValue("/root/main2/magamlist/magaminfo/magamyn") == "N"){
  904. /* 20090817 서버시간과 화면시간의 차이가 있어 수정
  905. if ( dd > getCurrentDate() ||
  906. (dd==getCurrentDate() && mealflag=='1' && endflag=='1' && tm.substr(0,4) <= sendtm11) ||
  907. (dd==getCurrentDate() && mealflag=='1' && endflag=='2' && tm.substr(0,4) <= sendtm12) ||
  908. (dd==getCurrentDate() && mealflag=='2' && endflag=='1' && tm.substr(0,4) <= sendtm21) ||
  909. (dd==getCurrentDate() && mealflag=='2' && endflag=='2' && tm.substr(0,4) <= sendtm22) ||
  910. (dd==getCurrentDate() && mealflag=='3' && endflag=='1' && tm.substr(0,4) <= sendtm31) ||
  911. (dd==getCurrentDate() && mealflag=='3' && endflag=='2' && tm.substr(0,4) <= sendtm32) ) {
  912. */
  913. /*
  914. (dd==getCurrentDate() && mealflag=='1' && endflag=='1' && tm.substr(0,4) <= 0530) ||
  915. (dd==getCurrentDate() && mealflag=='1' && endflag=='2' && tm.substr(0,4) <= 0630) ||
  916. (dd==getCurrentDate() && mealflag=='2' && endflag=='1' && tm.substr(0,4) <= 1030) ||
  917. (dd==getCurrentDate() && mealflag=='2' && endflag=='2' && tm.substr(0,4) <= 1130) ||
  918. (dd==getCurrentDate() && mealflag=='3' && endflag=='1' && tm.substr(0,4) <= 1600) ||
  919. (dd==getCurrentDate() && mealflag=='3' && endflag=='2' && tm.substr(0,4) <= 1700) ) {
  920. */
  921. //마감전 데이터임.
  922. model.setValue("/root/send/searchitem/endyn", "N");
  923. model.setValue("/root/send/searchitem/endmsg", "식사마감이 완료되지 않았습니다.");
  924. } else {
  925. //마감후 데이터임.
  926. model.setValue("/root/send/searchitem/endyn", "Y");
  927. model.setValue("/root/send/searchitem/endmsg", "마감완료된 식사입니다.");
  928. }
  929. if ( model.getValue("/root/send/searchitem/ward") == "" ) {
  930. model.setValue("/root/send/searchitem/ward", "-");
  931. }
  932. submit("TRANT00101");
  933. fdevifact();
  934. var nmcardcnt = 0;
  935. //전달사항을 코드별로 나누고 코드명으로 전환하여 remfactnm1~4 인스턴스에 분리하여 담기
  936. //전달사항에 '끓인물(14)'이 있으면 추가로 boiledwater 노드 생성후 Y 셋팅
  937. for ( i=1; i<grd_data.rows; i++) {
  938. var etcgb = model.getValue("/root/main/printlist[" + i + "]/etcgb");
  939. if (etcgb == "1"){
  940. nmcardcnt = nmcardcnt + 1 ;
  941. }
  942. // 감염정보 이미지 입히기
  943. // var disp1 = model.getValue("/root/main/printlist[" + i + "]/disp1");
  944. // var disp2 = model.getValue("/root/main/printlist[" + i + "]/disp2");
  945. // var disp3 = model.getValue("/root/main/printlist[" + i + "]/disp3");
  946. // if (disp1 == "Y") {
  947. // model.setValue("/root/main/printlist[" + i + "]/pdisp1","");
  948. // grd_data.cellstyle("background-image", i, grd_data.colRef("pdisp1")) = "../../../com/hismainweb/images/btn_top_infection0.gif";
  949. // }else{
  950. // grd_data.cellstyle("background-image", i, grd_data.colRef("pdisp1")) = "";
  951. // }
  952. // if (disp2 == "Y") {
  953. // model.setValue("/root/main/printlist[" + i + "]/pdisp2","");
  954. // grd_data.cellstyle("background-image", i, grd_data.colRef("pdisp2")) = "../../../com/hismainweb/images/btn_top_infection1.gif";
  955. // }else{
  956. // grd_data.cellstyle("background-image", i, grd_data.colRef("pdisp2")) = "";
  957. // }
  958. // if (disp3 == "Y") {
  959. // model.setValue("/root/main/printlist[" + i + "]/pdisp3","");
  960. // grd_data.cellstyle("background-image", i, grd_data.colRef("pdisp3")) = "../../../com/hismainweb/images/btn_top_infection2.gif";
  961. // }else{
  962. // grd_data.cellstyle("background-image", i, grd_data.colRef("pdisp3")) = "";
  963. // }
  964. }
  965. model.setValue("/root/send/nmcardcnt", nmcardcnt);
  966. //remark2,3의 내용을 ','로 연결하기
  967. for ( i=1; i<grd_data.rows; i++) {
  968. var remark = "";
  969. //var remark1 = model.getValue("/root/main/printlist[" + i + "]/remark1");
  970. var remark2 = model.getValue("/root/main/printlist[" + i + "]/remark2");
  971. var remark3 = model.getValue("/root/main/printlist[" + i + "]/remark3");
  972. if ( remark2 != "" || remark3 != "" ) {
  973. // if ( remark1 != "" || remark2 != "" || remark3 != "" ) {
  974. // if ( remark1 != "" ) {
  975. // remark = remark + remark1 + ",";
  976. // }
  977. if ( remark2 != "" ) {
  978. remark = remark + remark2 + ",";
  979. }
  980. if ( remark3 != "" ) {
  981. remark = remark + remark3 + ",";
  982. }
  983. remark = remark.substr(0, remark.length-1);
  984. model.setValue("/root/main/printlist[" + i + "]/remark", remark);
  985. }
  986. }
  987. model.refresh();
  988. ]]>
  989. </script>
  990. </button>
  991. <line id="line1" style="x1:1099px; y1:9px; x2:1099px; y2:58px; "/>
  992. <caption id="caption10" class="search_name" style="left:808px; top:9px; width:87px; height:17px; ">세부선택 :</caption>
  993. <caption id="caption2" class="search_name" style="left:578px; top:9px; width:91px; height:17px; ">마감구분 :</caption>
  994. <select1 id="rdo_meal" ref="/root/send/searchitem/mealflag" class="radio_search" appearance="full" cellspacing="5" cols="3" rows="1" overflow="visible" style="left:355px; top:8px; width:150px; height:20px; ">
  995. <choices>
  996. <item>
  997. <label>조식</label>
  998. <value>1</value>
  999. </item>
  1000. <item>
  1001. <label>중식</label>
  1002. <value>2</value>
  1003. </item>
  1004. <item>
  1005. <label>석식</label>
  1006. <value>3</value>
  1007. </item>
  1008. </choices>
  1009. </select1>
  1010. <caption id="caption3" class="search_name" style="left:15px; top:35px; width:86px; height:17px; ">병동 :</caption>
  1011. <select id="chk_updtyn" ref="/root/send/searchitem/updtyn" class="checkbox_search" visibility="hidden" overflow="visible" appearance="full" style="left:960px; top:35px; width:66px; height:20px; ">
  1012. <choices>
  1013. <item>
  1014. <label>변경분</label>
  1015. <value>Y</value>
  1016. </item>
  1017. </choices>
  1018. </select>
  1019. <caption id="caption4" class="search_name" visibility="hidden" style="left:870px; top:35px; width:91px; height:17px; ">변경구분 :</caption>
  1020. <caption id="caption5" class="search_name" style="left:265px; top:9px; width:91px; height:17px; ">끼니구분 :</caption>
  1021. <select1 id="cmb_endflag" ref="/root/send/searchitem/endflag" class="combo_s_essential" appearance="minimal" style="left:666px; top:9px; width:65px; height:19px; ">
  1022. <choices>
  1023. <item>
  1024. <label>1차</label>
  1025. <value>1</value>
  1026. </item>
  1027. <item>
  1028. <label>2차</label>
  1029. <value>2</value>
  1030. </item>
  1031. <item>
  1032. <label>마감후</label>
  1033. <value>3</value>
  1034. </item>
  1035. </choices>
  1036. </select1>
  1037. <select1 id="cmb_updtflag" ref="/root/send/searchitem/updtflag" class="combo_search" visibility="hidden" appearance="minimal" style="left:1030px; top:35px; width:65px; height:19px; ">
  1038. <choices>
  1039. <item>
  1040. <label>전체</label>
  1041. <value>-</value>
  1042. </item>
  1043. <item>
  1044. <label>병실</label>
  1045. <value>1</value>
  1046. </item>
  1047. <item>
  1048. <label>식사</label>
  1049. <value>2</value>
  1050. </item>
  1051. </choices>
  1052. </select1>
  1053. <select1 id="cmb_ward" ref="/root/send/searchitem/ward" class="combo_s_essential" appearance="minimal" style="left:79px; top:35px; width:141px; height:19px; ">
  1054. <choices>
  1055. <itemset nodeset="/root/init/code/ward/dept">
  1056. <label ref="depthngnm"/>
  1057. <value ref="deptcd"/>
  1058. </itemset>
  1059. </choices>
  1060. </select1>
  1061. <select1 id="cmb_nmcardflag" ref="/root/send/searchitem/nmcardflag" class="combo_s_essential" appearance="minimal" style="left:895px; top:9px; width:120px; height:19px; ">
  1062. <choices>
  1063. <item>
  1064. <label>전체</label>
  1065. <value>0</value>
  1066. </item>
  1067. <item>
  1068. <label>치료식</label>
  1069. <value>4</value>
  1070. </item>
  1071. <item>
  1072. <label>경장영양</label>
  1073. <value>5</value>
  1074. </item>
  1075. <item>
  1076. <label>간식</label>
  1077. <value>6</value>
  1078. </item>
  1079. <item>
  1080. <label>금식제외</label>
  1081. <value>7</value>
  1082. </item>
  1083. <item>
  1084. <label>개인금식</label>
  1085. <value>8</value>
  1086. </item>
  1087. <item>
  1088. <label>주치의처방금식</label>
  1089. <value>9</value>
  1090. </item>
  1091. <item>
  1092. <label>밥</label>
  1093. <value>1</value>
  1094. </item>
  1095. <item>
  1096. <label>죽</label>
  1097. <value>2</value>
  1098. </item>
  1099. <item>
  1100. <label>미음</label>
  1101. <value>3</value>
  1102. </item>
  1103. <item>
  1104. <label>산모야식</label>
  1105. <value>10</value>
  1106. </item>
  1107. </choices>
  1108. </select1>
  1109. <button id="btn_before" class="icon_pre" style="left:183px; top:10px; width:13px; height:15px; ">
  1110. <caption/>
  1111. <script type="javascript" ev:event="onclick">
  1112. <![CDATA[
  1113. var dd = model.getValue("/root/send/searchitem/dietdd");
  1114. dd = dd.toDate().getAddDate(-1, "D");
  1115. dd = dd.getDateFormat();
  1116. model.setValue("/root/send/searchitem/dietdd", dd);
  1117. model.refresh();
  1118. ]]>
  1119. </script>
  1120. </button>
  1121. <button id="button1" class="icon_next" style="left:196px; top:10px; width:13px; height:15px; ">
  1122. <caption/>
  1123. <script type="javascript" ev:event="onclick">
  1124. <![CDATA[
  1125. var dd = model.getValue("/root/send/searchitem/dietdd");
  1126. dd = dd.toDate().getAddDate(1, "D");
  1127. dd = dd.getDateFormat();
  1128. model.setValue("/root/send/searchitem/dietdd", dd);
  1129. model.refresh();
  1130. ]]>
  1131. </script>
  1132. </button>
  1133. <caption id="caption7" class="search_name" style="left:265px; top:35px; width:100px; height:17px; ">영양팀병동 :</caption>
  1134. <select1 id="cmb_nutrward" ref="/root/send/searchitem/nutrward" class="combo_s_essential" appearance="minimal" style="left:369px; top:35px; width:111px; height:19px; ">
  1135. <choices>
  1136. <itemset nodeset="/root/init/basecode/wardcls/data">
  1137. <label ref="wardnm"/>
  1138. <value ref="wardcd"/>
  1139. </itemset>
  1140. </choices>
  1141. </select1>
  1142. <caption id="caption8" class="search_name" style="left:578px; top:35px; width:134px; height:17px; ">등록번호/환자명 :</caption>
  1143. <caption id="caption9" style="left:782px; top:35px; width:24px; height:17px; ">/</caption>
  1144. <input id="ipt_pid" ref="/root/send/searchitem/pid" class="input_search" autonext="false" maxlength="10" format="9999999999" style="left:710px; top:35px; width:70px; height:19px; ">
  1145. <script type="javascript" ev:event="onkeydown">
  1146. <![CDATA[
  1147. inputEnterKey("btn_search", "DOMActivate");
  1148. ]]>
  1149. </script>
  1150. </input>
  1151. <input id="ipt_hngnm" ref="/root/send/searchitem/hngnm" class="input_search" style="left:790px; top:35px; width:65px; height:19px; ">
  1152. <script type="javascript" ev:event="onkeydown">
  1153. <![CDATA[
  1154. inputEnterKey("btn_search", "DOMActivate");
  1155. ]]>
  1156. </script>
  1157. </input>
  1158. <button id="btn_hngnm" class="icon_search" visibility="hidden" style="left:860px; top:37px; width:16px; height:16px; ">
  1159. <caption/>
  1160. <script type="javascript" ev:event="DOMActivate">
  1161. <![CDATA[
  1162. modal("SPPMC02500", "", "200", "200", "SPPMC02500", "/root/temp", "/root/main/patinfo/patinfolist");
  1163. model.setValue("/root/send/searchitem/pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
  1164. model.setValue("/root/send/searchitem/hngnm", model.getValue("/root/main/patinfo/patinfolist/hngnm"));
  1165. model.refresh();
  1166. ]]>
  1167. </script>
  1168. </button>
  1169. </group>
  1170. <output id="opt_temp" class="output_search" style="left:5px; top:77px; width:40px; height:10px; background-color:#ffffff; border-color:#ffffff; border-style:hidden; ">
  1171. <script type="javascript" ev:event="onclick">
  1172. <![CDATA[
  1173. if (btn_dietprcpsum.attribute("visibility")=="hidden") {
  1174. btn_dietprcpsum.attribute("visibility")="visible";
  1175. btn_dietprcpcopy.attribute("visibility")="visible";
  1176. } else if (btn_dietprcpsum.attribute("visibility")=="visible") {
  1177. btn_dietprcpsum.attribute("visibility")="hidden";
  1178. btn_dietprcpcopy.attribute("visibility")="hidden";
  1179. }
  1180. ]]>
  1181. </script>
  1182. </output>
  1183. <button id="btn_excel" class="btn2_letter2" style="left:1146px; top:77px; width:42px; height:19px; ">
  1184. <caption>엑셀</caption>
  1185. <script type="javascript" ev:event="DOMActivate">
  1186. <![CDATA[
  1187. if ( grd_data.rows-1 > 0 ) {
  1188. var filename = window.fileDialog("save", ",", false, "식사처방출력", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  1189. if (filename != "") {
  1190. grd_data.saveExcel(filename, "grd_data", true, false, "", "", "");
  1191. }
  1192. } else {
  1193. messageBox("엑셀로 저장할 데이터가", "I004")
  1194. return;
  1195. }
  1196. ]]>
  1197. </script>
  1198. </button>
  1199. <datagrid id="grd_data" nodeset="/root/main/printlist" caption="병동^병동명^변경전병실^병실^등록번호^환자명^h혈액^h접촉^h공기^식사명^특이사항^remark^입력자^입력일시^test 변경전병실^caption1^caption2" colsep="^" colwidth="0, 0, 70, 60, 65, 85, 10, 10, 10, 210, 220, 192, 75, 110, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:103px; width:1195px; height:601px; text-align:center; ">
  1200. <col ref="ward" type="combo">
  1201. <choices>
  1202. <itemset nodeset="/root/init/code/ward/dept">
  1203. <label ref="depthngnm"/>
  1204. <value ref="deptcd"/>
  1205. </itemset>
  1206. </choices>
  1207. </col>
  1208. <col ref="wardnm"/>
  1209. <col ref="bfroom"/>
  1210. <col ref="room"/>
  1211. <col ref="pid"/>
  1212. <col ref="hngnm"/>
  1213. <col ref="disp1" visibility="hidden"/>
  1214. <col ref="disp2" visibility="hidden"/>
  1215. <col ref="disp3" visibility="hidden"/>
  1216. <col ref="dietnm2" style="text-align:left; "/>
  1217. <col ref="prcpdelivefact" style="text-align:left; "/>
  1218. <col ref="remark" style="text-align:left; "/>
  1219. <col ref="iptpsn"/>
  1220. <col ref="iptdt" format="yyyy-mm-dd hh:nn"/>
  1221. <col ref="newbfroom" visibility="hidden"/>
  1222. <col ref="etcgb" visibility="hidden"/>
  1223. <col ref="dietnm" visibility="hidden"/>
  1224. <col ref="choidietyn" visibility="hidden"/>
  1225. <col ref="clinccmtcnts" visibility="hidden"/>
  1226. <col ref="tfdtlcd" visibility="hidden"/>
  1227. <col ref="prcpdd" visibility="hidden"/>
  1228. <col ref="dietmeal" visibility="hidden"/>
  1229. <col ref="calr" visibility="hidden"/>
  1230. <col ref="mealcnt" visibility="hidden"/>
  1231. <col ref="dietcd" visibility="hidden"/>
  1232. <col ref="dietmdlnm" visibility="hidden"/>
  1233. <col ref="dietsmlnm" visibility="hidden"/>
  1234. <col ref="calrunit" visibility="hidden"/>
  1235. <col ref="remark1" visibility="hidden"/>
  1236. <col ref="remark2" visibility="hidden"/>
  1237. <col ref="remark3" visibility="hidden"/>
  1238. <col ref="bmealdrnknm" visibility="hidden"/>
  1239. <col ref="prntprcpdelivefact" visibility="hidden"/>
  1240. <col ref="dietlrgcd" visibility="hidden"/>
  1241. <col ref="remfactnm" visibility="hidden"/>
  1242. <script type="javascript" ev:event="ondblclick">
  1243. <![CDATA[
  1244. //환자별식사력조회 화면으로 연결
  1245. if ( grd_data.isCell(event.target) && grd_data.row >= grd_data.fixedRows ) {
  1246. // 'P'는 식사처방출력 화면임을 뜻하는 구분자임.
  1247. model.setValue("/root/send/popup/flag", "P");
  1248. model.setValue("/root/send/popup/pid", model.getValue("/root/main/printlist["+grd_data.row+"]/pid"));
  1249. model.setValue("/root/send/popup/prcpdd", model.getValue("/root/main/printlist["+grd_data.row+"]/prcpdd"));
  1250. open("SMANT01000", "", "", "", "popup", "/root/send/popup", "/root/main/receivedata");
  1251. }
  1252. ]]>
  1253. </script>
  1254. <script type="javascript" ev:event="onaftersort">
  1255. <![CDATA[
  1256. grd_data.gridToInstance();
  1257. ]]>
  1258. </script>
  1259. </datagrid>
  1260. <caption id="caption13" class="cell_1" style="left:984px; top:718px; width:107px; height:23px; vertical-align:middle; ">네임카드 개수</caption>
  1261. <line id="line2" class="line_1" style="x1:984px; y1:713px; x2:1194px; y2:713px; "/>
  1262. <line id="line6" class="line_3" style="x1:984px; y1:741px; x2:1194px; y2:741px; "/>
  1263. <output id="opt_nmcardcnt" ref="/root/send/nmcardcnt" class="output_fix" style="left:1094px; top:719px; width:100px; height:19px; text-align:center; "/>
  1264. <line id="line5" class="line_1" style="x1:0px; y1:98px; x2:1195px; y2:98px; "/>
  1265. <datagrid id="datagrid1" nodeset="/root/main/printlist2" visibility="hidden" caption="병동^병동명^변경전병실^병실^등록번호^환자명^식사명^특이사항^remark^보호자식^입력자^입력일시^caption1" colsep="^" colwidth="0, 0, 70, 60, 65, 85, 210, 220, 192, 70, 75, 110, 100" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:680px; top:350px; width:435px; height:290px; text-align:center; ">
  1266. <col ref="ward" type="combo">
  1267. <choices>
  1268. <itemset nodeset="/root/init/code/ward/dept">
  1269. <label ref="depthngnm"/>
  1270. <value ref="deptcd"/>
  1271. </itemset>
  1272. </choices>
  1273. </col>
  1274. <col ref="wardnm"/>
  1275. <col ref="bfroom"/>
  1276. <col ref="room"/>
  1277. <col ref="pid"/>
  1278. <col ref="hngnm"/>
  1279. <col ref="dietnm2" style="text-align:left; "/>
  1280. <col ref="prcpdelivefact" style="text-align:left; "/>
  1281. <col ref="remark" style="text-align:left; "/>
  1282. <col ref="procermealyn"/>
  1283. <col ref="iptpsn"/>
  1284. <col ref="iptdt" format="yyyy-mm-dd hh:nn"/>
  1285. <col ref="etcgb" visibility="hidden"/>
  1286. <script type="javascript" ev:event="ondblclick">
  1287. <![CDATA[
  1288. //환자별식사력조회 화면으로 연결
  1289. if ( grd_data.isCell(event.target) && grd_data.row >= grd_data.fixedRows ) {
  1290. // 'P'는 식사처방출력 화면임을 뜻하는 구분자임.
  1291. model.setValue("/root/send/popup/flag", "P");
  1292. model.setValue("/root/send/popup/pid", model.getValue("/root/main/printlist["+grd_data.row+"]/pid"));
  1293. model.setValue("/root/send/popup/prcpdd", model.getValue("/root/main/printlist["+grd_data.row+"]/prcpdd"));
  1294. open("SMANT01000", "", "", "", "popup", "/root/send/popup", "/root/main/receivedata");
  1295. }
  1296. ]]>
  1297. </script>
  1298. </datagrid>
  1299. </group>
  1300. <group id="grp_btn" scroll="auto" style="left:0px; top:761px; width:1195px; height:23px; ">
  1301. <button id="btn_endafterupdate" class="btn4_letter9" style="left:1px; top:1px; width:128px; height:22px; ">
  1302. <caption>마감후식사처방수정</caption>
  1303. <script type="javascript" ev:event="DOMActivate">
  1304. <![CDATA[
  1305. //navigate("SMANC00300", 0,100,150, "SMANC00300", "/root/send/openpopup", "/root/main/receivedata");
  1306. //navigate("SMANT01200", 0,100,150, "SMANT01200");
  1307. //modal("SMANT01200");
  1308. open("SMANT01200", "","","", "SMANT01200");
  1309. ]]>
  1310. </script>
  1311. </button>
  1312. <button id="btn_tableset" class="btn4_letter5" style="left:144px; top:1px; width:92px; height:22px; ">
  1313. <caption>상차림현황</caption>
  1314. <script type="javascript" ev:event="DOMActivate">
  1315. <![CDATA[
  1316. //navigate("SMANC00300", 0,100,150, "SMANC00300", "/root/send/openpopup", "/root/main/receivedata");
  1317. //navigate("SMANT00600", 0,100,150, "SMANT00600");
  1318. //modal("SMANT00600");
  1319. open("SMANT00600", "","","", "SMANT00600");
  1320. ]]>
  1321. </script>
  1322. </button>
  1323. <button id="btn_wardtableset" class="btn4_letter8" style="left:239px; top:1px; width:128px; height:22px; ">
  1324. <caption>병동별상차림현황</caption>
  1325. <script type="javascript" ev:event="DOMActivate">
  1326. <![CDATA[
  1327. //navigate("SMANC00300", 0,100,150, "SMANC00300", "/root/send/openpopup", "/root/main/receivedata");
  1328. //navigate("SMANT00800", 0,100,150, "SMANT00800");
  1329. //modal("SMANT00800");
  1330. open("SMANT00800", "","","", "SMANT00800");
  1331. ]]>
  1332. </script>
  1333. </button>
  1334. <button id="btn_nmcard" class="btn4_letter6" style="left:791px; top:1px; width:104px; height:22px; ">
  1335. <caption>NameCard</caption>
  1336. <script type="javascript" ev:event="DOMActivate">
  1337. <![CDATA[
  1338. var instcd = getUserInfo("dutplceinstcd");
  1339. if (model.getValue("/root/send/searchitem/endflag") == "2"){
  1340. openLoadingBar("2차 NameCard 작업중입니다.") ;
  1341. //model.removeNodeset("/root/main/printlist3");
  1342. var kk = 0;
  1343. var chk = "";
  1344. for (var i = 1; i < grd_data.rows; i ++){
  1345. chk = "N";
  1346. var spid = model.getValue("/root/main/printlist[" + i + "]/pid");
  1347. var sdietcd = model.getValue("/root/main/printlist[" + i + "]/dietcd");
  1348. var slrgcd = model.getValue("/root/main/printlist[" + i + "]/dietlrgcd");
  1349. var smeal = model.getValue("/root/main/printlist[" + i + "]//procermealyn");
  1350. var setc = model.getValue("/root/main/printlist[" + i + "]/etcgb");
  1351. var setc2 = "";
  1352. for (var j = 1; j < datagrid1.rows; j ++){
  1353. var spid1 = model.getValue("/root/main/printlist2[" + j + "]/pid");
  1354. var sdietcd1 = model.getValue("/root/main/printlist2[" + j + "]/dietcd");
  1355. setc2 = model.getValue("/root/main/printlist2[" + j + "]/etcgb");
  1356. if (spid == spid1 && sdietcd == sdietcd1){
  1357. chk = "Y";
  1358. //break;
  1359. }
  1360. }
  1361. /*
  1362. if (spid == "718899"){
  1363. alert("==" + chk + "==" + slrgcd + "==" + smeal + "==" + setc2);
  1364. }
  1365. */
  1366. if (chk == "N"){
  1367. if (slrgcd == "Q9"){
  1368. if (smeal != " " && smeal != ""){
  1369. kk = parseInt(kk) + 1;
  1370. if (kk == 1){
  1371. copyNodesetType("/root/main1/printlist3", "/root/main/printlist[" + i + "]", "replace", model, model);
  1372. model.setValue("/root/main1/printlist3[" + kk + "]/dietnm2", smeal);
  1373. model.setValue("/root/main1/printlist3[" + kk + "]/remfactnm", "");
  1374. model.setValue("/root/main1/printlist3[" + kk + "]/bmealdrnknm", "");
  1375. model.setValue("/root/main1/printlist3[" + kk + "]/remark", "");
  1376. }else{
  1377. copyNodesetType("/root/main1/printlist3", "/root/main/printlist[" + i + "]", "after", model, model);
  1378. model.setValue("/root/main1/printlist3[" + kk + "]/dietnm2", smeal);
  1379. model.setValue("/root/main1/printlist3[" + kk + "]/remfactnm", "");
  1380. model.setValue("/root/main1/printlist3[" + kk + "]/bmealdrnknm", "");
  1381. model.setValue("/root/main1/printlist3[" + kk + "]/remark", "");
  1382. }
  1383. }
  1384. }else{
  1385. kk = parseInt(kk) + 1;
  1386. if (kk == 1){
  1387. copyNodesetType("/root/main1/printlist3", "/root/main/printlist[" + i + "]", "replace", model, model);
  1388. }else{
  1389. copyNodesetType("/root/main1/printlist3", "/root/main/printlist[" + i + "]", "after", model, model);
  1390. }
  1391. if (smeal != " " && smeal != ""){
  1392. kk = parseInt(kk) + 1;
  1393. if (kk == 1){
  1394. copyNodesetType("/root/main1/printlist3", "/root/main/printlist[" + i + "]", "replace", model, model);
  1395. model.setValue("/root/main1/printlist3[" + kk + "]/dietnm2", smeal);
  1396. model.setValue("/root/main1/printlist3[" + kk + "]/remfactnm", "");
  1397. model.setValue("/root/main1/printlist3[" + kk + "]/bmealdrnknm", "");
  1398. model.setValue("/root/main1/printlist3[" + kk + "]/remark", "");
  1399. }else{
  1400. copyNodesetType("/root/main1/printlist3", "/root/main/printlist[" + i + "]", "after", model, model);
  1401. model.setValue("/root/main1/printlist3[" + kk + "]/dietnm2", smeal);
  1402. model.setValue("/root/main1/printlist3[" + kk + "]/remfactnm", "");
  1403. model.setValue("/root/main1/printlist3[" + kk + "]/bmealdrnknm", "");
  1404. model.setValue("/root/main1/printlist3[" + kk + "]/remark", "");
  1405. }
  1406. }
  1407. }
  1408. }else{
  1409. if (setc == "2"){
  1410. if (slrgcd == "Q9"){
  1411. if (smeal != " " && smeal != ""){
  1412. kk = parseInt(kk) + 1;
  1413. if (kk == 1){
  1414. copyNodesetType("/root/main1/printlist3", "/root/main/printlist[" + i + "]", "replace", model, model);
  1415. model.setValue("/root/main1/printlist3[" + kk + "]/dietnm2", smeal);
  1416. model.setValue("/root/main1/printlist3[" + kk + "]/remfactnm", "");
  1417. model.setValue("/root/main1/printlist3[" + kk + "]/bmealdrnknm", "");
  1418. model.setValue("/root/main1/printlist3[" + kk + "]/remark", "");
  1419. }else{
  1420. copyNodesetType("/root/main1/printlist3", "/root/main/printlist[" + i + "]", "after", model, model);
  1421. model.setValue("/root/main1/printlist3[" + kk + "]/dietnm2", smeal);
  1422. model.setValue("/root/main1/printlist3[" + kk + "]/remfactnm", "");
  1423. model.setValue("/root/main1/printlist3[" + kk + "]/bmealdrnknm", "");
  1424. model.setValue("/root/main1/printlist3[" + kk + "]/remark", "");
  1425. }
  1426. }
  1427. }else{
  1428. if (smeal != " " && smeal != ""){
  1429. kk = parseInt(kk) + 1;
  1430. if (kk == 1){
  1431. copyNodesetType("/root/main1/printlist3", "/root/main/printlist[" + i + "]", "replace", model, model);
  1432. model.setValue("/root/main1/printlist3[" + kk + "]/dietnm2", smeal);
  1433. model.setValue("/root/main1/printlist3[" + kk + "]/remfactnm", "");
  1434. model.setValue("/root/main1/printlist3[" + kk + "]/bmealdrnknm", "");
  1435. model.setValue("/root/main1/printlist3[" + kk + "]/remark", "");
  1436. }else{
  1437. copyNodesetType("/root/main1/printlist3", "/root/main/printlist[" + i + "]", "after", model, model);
  1438. model.setValue("/root/main1/printlist3[" + kk + "]/dietnm2", smeal);
  1439. model.setValue("/root/main1/printlist3[" + kk + "]/remfactnm", "");
  1440. model.setValue("/root/main1/printlist3[" + kk + "]/bmealdrnknm", "");
  1441. model.setValue("/root/main1/printlist3[" + kk + "]/remark", "");
  1442. }
  1443. }
  1444. }
  1445. }else{
  1446. if (smeal != " " && smeal != ""){
  1447. kk = parseInt(kk) + 1;
  1448. if (kk == 1){
  1449. copyNodesetType("/root/main1/printlist3", "/root/main/printlist[" + i + "]", "replace", model, model);
  1450. model.setValue("/root/main1/printlist3[" + kk + "]/dietnm2", smeal);
  1451. model.setValue("/root/main1/printlist3[" + kk + "]/remfactnm", "");
  1452. model.setValue("/root/main1/printlist3[" + kk + "]/bmealdrnknm", "");
  1453. model.setValue("/root/main1/printlist3[" + kk + "]/remark", "");
  1454. }else{
  1455. copyNodesetType("/root/main1/printlist3", "/root/main/printlist[" + i + "]", "after", model, model);
  1456. model.setValue("/root/main1/printlist3[" + kk + "]/dietnm2", smeal);
  1457. model.setValue("/root/main1/printlist3[" + kk + "]/remfactnm", "");
  1458. model.setValue("/root/main1/printlist3[" + kk + "]/bmealdrnknm", "");
  1459. model.setValue("/root/main1/printlist3[" + kk + "]/remark", "");
  1460. }
  1461. }
  1462. }
  1463. }
  1464. /*
  1465. if (chk == "N"){
  1466. if (slrgcd == "Q9"){
  1467. if (smeal != " " && smeal != ""){
  1468. model.setValue("/root/main/printlist[" + i + "]/etcgb", "1");
  1469. model.setValue("/root/main/printlist[" + i + "]/dietnm2", smeal);
  1470. }else{
  1471. model.setValue("/root/main/printlist[" + i + "]/etcgb", "2");
  1472. }
  1473. }else{
  1474. model.setValue("/root/main/printlist[" + i + "]/etcgb", "1");
  1475. }
  1476. }else{
  1477. if (setc == "2"){
  1478. if (slrgcd == "Q9"){
  1479. if (smeal != " " && smeal != ""){
  1480. model.setValue("/root/main/printlist[" + i + "]/etcgb", "1");
  1481. model.setValue("/root/main/printlist[" + i + "]/dietnm2", smeal);
  1482. }else{
  1483. model.setValue("/root/main/printlist[" + i + "]/etcgb", "2");
  1484. }
  1485. }else{
  1486. model.setValue("/root/main/printlist[" + i + "]/etcgb", "2");
  1487. }
  1488. }else if (setc2 == "1"){
  1489. model.setValue("/root/main/printlist[" + i + "]/etcgb", "2");
  1490. }
  1491. }
  1492. */
  1493. }
  1494. closeLoadingBar() ;
  1495. }
  1496. fdevifact();
  1497. model.refresh();
  1498. if ( grd_data.rows-1 > 0 ) {
  1499. if ( messageBox(model.getValue("/root/send/searchitem/endmsg"), "Q003") == 6 ) {
  1500. if (model.getValue("/root/send/searchitem/endflag") == "2"){
  1501. copyNodesetType("/root/send1/printlist", "/root/main1/printlist3", "replace", model, model);
  1502. // if(instcd == "031"){
  1503. // exeReportPreview("RPANT00108", "XMLSTR", "/root/send1/printlist"); // 20120430 본원 프린터 변경으로 출력지 변경
  1504. // }else{/
  1505. exeReportPreview("RPANT00110", "XMLSTR", "/root/send1/printlist");
  1506. //}
  1507. }else{
  1508. copyNodesetType("/root/send1/printlist", "/root/main/printlist[etcgb='1']", "replace", model, model);
  1509. // if(instcd == "031"){
  1510. // exeReportPreview("RPANT00107", "XMLSTR", "/root/send1/printlist");
  1511. // }else{
  1512. exeReportPreview("RPANT00109", "XMLSTR", "/root/send1/printlist");
  1513. //}
  1514. }
  1515. } else { return; }
  1516. } else {
  1517. messageBox("출력할 데이터가", "I004")
  1518. return;
  1519. }
  1520. ]]>
  1521. </script>
  1522. </button>
  1523. <button id="btn_bmealslip" class="btn4_letter4" style="left:899px; top:1px; width:80px; height:22px; ">
  1524. <caption>간식전표</caption>
  1525. <script type="javascript" ev:event="DOMActivate">
  1526. <![CDATA[
  1527. //간식전표 클릭시 세부구분 조건을 간식으로 선택후 자동 조회
  1528. model.setValue("/root/send/searchitem/nmcardflag", "6");
  1529. btn_search.dispatch("DOMActivate");
  1530. submit("TRANT01005");
  1531. if ( grd_data.rows-1 > 0 ) {
  1532. //var endyn = model.getValue("/root/send/searchitem/endyn");
  1533. //var dd = model.getValue("/root/send/searchitem/dietdd");
  1534. var meal = model.getValue("/root/send/searchitem/mealflag");
  1535. if (meal=='1') {
  1536. meal = '조식';
  1537. //var mealtm = '10:00';
  1538. var mealtm = model.getValue("/root/send2/timelist[cntlcd1='11']/cdid");
  1539. } else if (meal=='2') {
  1540. meal = '중식';
  1541. //var mealtm = '15:00';
  1542. var mealtm = model.getValue("/root/send2/timelist[cntlcd1='21']/cdid");
  1543. } else if (meal=='3') {
  1544. meal = '석식';
  1545. //var mealtm = '20:30';
  1546. var mealtm = model.getValue("/root/send2/timelist[cntlcd1='31']/cdid");
  1547. }
  1548. if ( messageBox(model.getValue("/root/send/searchitem/endmsg"), "Q003") == 6 ) {
  1549. model.copyNode("/root/send/bmealslip", "/root/main");
  1550. //ganlabel(meal, mealtm);
  1551. //model.setValue("/root/send/bmealslip/printlist[1]/dietmeal", mealtm);
  1552. // 여의도 성모병원은 1/2차이면서 중식이면서 경장영양식 4회 일 경우는 간식전표 미출력되게 한다.
  1553. if (getUserInfo("dutplceinstcd") == "011" && model.getValue("/root/send/searchitem/endflag") != "3" ) {
  1554. model.removeNodeset("/root/send/bmealslip/printlist[dietmeal='중식' and mealcnt='4' and dietlrgcd='Q2' and dietmdlcd='09']");
  1555. model.refresh();
  1556. }
  1557. model.makeValue("/root/send/bmealslip/mealtm", mealtm);
  1558. exeReportPreview("RPANT00103", "XMLSTR", "/root/send/bmealslip");
  1559. } else { return; }
  1560. } else {
  1561. messageBox("출력할 데이터가", "I004")
  1562. return;
  1563. }
  1564. ]]>
  1565. </script>
  1566. </button>
  1567. <button id="btn_tflabel" class="btn4_letter7" style="left:982px; top:1px; width:116px; height:22px; ">
  1568. <caption>경장영양식라벨</caption>
  1569. <script type="javascript" ev:event="DOMActivate">
  1570. <![CDATA[
  1571. //경장영양식라벨 클릭시 세부구분 조건을 경장영양으로 선택후 자동 조회
  1572. model.setValue("/root/send/searchitem/nmcardflag", "5");
  1573. btn_search.dispatch("DOMActivate");
  1574. submit("TRANT01005");
  1575. if ( grd_data.rows-1 > 0 ) {
  1576. //var endyn = model.getValue("/root/send/searchitem/endyn");
  1577. //var dd = model.getValue("/root/send/searchitem/dietdd");
  1578. var meal = model.getValue("/root/send/searchitem/mealflag");
  1579. //dd = dd.substr(6,2);
  1580. if (meal=='1') {
  1581. meal = '조식';
  1582. //var mealtm = '07:30';
  1583. var mealtm = model.getValue("/root/send2/timelist[cntlcd1='1']/cdid");
  1584. } else if (meal=='2') {
  1585. meal = '중식';
  1586. //var mealtm = '12:30';
  1587. //var mealtm = instance1.selectSingleNode("/root/send2/timelist[cntlcd1='2']");
  1588. var mealtm = model.getValue("/root/send2/timelist[cntlcd1='2']/cdid");
  1589. } else if (meal=='3') {
  1590. meal = '석식';
  1591. //var mealtm = '18:00';
  1592. var mealtm = model.getValue("/root/send2/timelist[cntlcd1='3']/cdid");
  1593. }
  1594. if ( messageBox(model.getValue("/root/send/searchitem/endmsg"), "Q003") == 6 ) {
  1595. ftflabel(meal, mealtm);
  1596. } else { return; }
  1597. } else {
  1598. messageBox("출력할 데이터가", "I004")
  1599. return;
  1600. }
  1601. ]]>
  1602. </script>
  1603. </button>
  1604. <button id="btn_patdietslip" class="btn4_letter5" style="left:1100px; top:1px; width:92px; height:22px; ">
  1605. <caption>환자식전표</caption>
  1606. <script type="javascript" ev:event="DOMActivate">
  1607. <![CDATA[
  1608. if ( grd_data.rows-1 > 0 ) {
  1609. //환자식전표에서 동일 병실은 첫번째 행에만 병실을 표시하기 위함.
  1610. // model.makeValue("/root/main/printlist[1]/roomhiddenyn", "N");
  1611. // for (var i = 2; i < grd_data.rows; i ++) {
  1612. // var room1 = model.getValue("/root/main/printlist[" + i + "]/room");
  1613. // var room2 = model.getValue("/root/main/printlist[" + (i-1) + "]/room");
  1614. // if ( room1 != room2 ) {
  1615. // model.makeValue("/root/main/printlist[" + i + "]/roomhiddenyn", "N");
  1616. // } else {
  1617. // model.makeValue("/root/main/printlist[" + i + "]/roomhiddenyn", "Y");
  1618. // }
  1619. // }
  1620. if ( messageBox(model.getValue("/root/send/searchitem/endmsg"), "Q003") == 6 ) {
  1621. // var kk = 0;
  1622. // for (var i = 0; i < grd_data.rows; i ++) {
  1623. // kk = parseFloat(kk) + 1;
  1624. // model.makeValue("/root/printinfo/printlist[" + kk + "]/ward", model.getValue("/root/main/printlist[" + i + "]/ward"));
  1625. // model.makeValue("/root/printinfo/printlist[" + kk + "]/wardnm", model.getValue("/root/main/printlist[" + i + "]/wardnm"));
  1626. // model.makeValue("/root/printinfo/printlist[" + kk + "]/room", model.getValue("/root/main/printlist[" + i + "]/room"));
  1627. // model.makeValue("/root/printinfo/printlist[" + kk + "]/pid", model.getValue("/root/main/printlist[" + i + "]/pid"));
  1628. // model.makeValue("/root/printinfo/printlist[" + kk + "]/hngnm", model.getValue("/root/main/printlist[" + i + "]/hngnm"));
  1629. // model.makeValue("/root/printinfo/printlist[" + kk + "]/dietnm2", model.getValue("/root/main/printlist[" + i + "]/dietnm2"));
  1630. // if (model.getValue("/root/main/printlist[" + i + "]/prcpdelivefact") != "-") {
  1631. // kk = parseFloat(kk) + 1;
  1632. // model.makeValue("/root/printinfo/printlist[" + kk + "]/wardnm", model.getValue("/root/main/printlist[" + i + "]/wardnm"));
  1633. // model.makeValue("/root/printinfo/printlist[" + kk + "]/room", model.getValue("/root/main/printlist[" + i + "]/room"));
  1634. // model.makeValue("/root/printinfo/printlist[" + kk + "]/dietnm2", model.getValue("/root/main/printlist[" + i + "]/prcpdelivefact"));
  1635. // }
  1636. // }
  1637. model.copyNode("/root/send/patdietslip", "/root/main");
  1638. // model.copyNode("/root/send/patdietslip", "/root/printinfo");
  1639. exeReportPreview("RPANT00102", "XMLSTR", "/root/send/patdietslip");
  1640. } else { return; }
  1641. } else {
  1642. messageBox("출력할 데이터가", "I004")
  1643. return;
  1644. }
  1645. ]]>
  1646. </script>
  1647. </button>
  1648. <button id="btn_dietchnglist" class="btn4_letter8" style="left:660px; top:1px; width:128px; height:22px; ">
  1649. <caption>식사변경내역전표</caption>
  1650. <script type="javascript" ev:event="DOMActivate">
  1651. <![CDATA[
  1652. //클릭시 마감구분을 '마감후'로 선택후 자동 조회
  1653. model.setValue("/root/send/searchitem/endflag", "3");
  1654. btn_search.dispatch("DOMActivate");
  1655. if ( grd_data.rows-1 > 0 ) {
  1656. model.copyNode("/root/send/dietchnglist", "/root/main");
  1657. //model.setValue("/root/send/bmealslip/printlist[1]/dietmeal", mealtm);
  1658. exeReportPreview("RPANT00105", "XMLSTR", "/root/send/dietchnglist");
  1659. } else {
  1660. messageBox("출력할 데이터가", "I004")
  1661. return;
  1662. }
  1663. ]]>
  1664. </script>
  1665. </button>
  1666. <button id="btn_dietprcpsum" class="btn4_letter6" style="left:370px; top:1px; width:104px; height:22px; ">
  1667. <caption>식사처방집계</caption>
  1668. <script type="javascript" ev:event="DOMActivate">
  1669. <![CDATA[
  1670. if ( messageBox("수동집계를", "Q004") == 6 ) {
  1671. model.makeNode("/root/send/searchitem/batchflag");
  1672. model.setValue("/root/send/searchitem/batchflag", "manual"); //batch 실행구분 = manual(수동)
  1673. submit("TXANT00101");
  1674. if ( model.getValue("/root/temp/ret/retmsg") == "OK" ) {
  1675. messageBox("수동집계가", "I002");
  1676. }
  1677. model.resetInstanceNode("/root/temp");
  1678. model.removenode("/root/send/searchitem/batchflag");
  1679. } else { return; }
  1680. ]]>
  1681. </script>
  1682. </button>
  1683. <button id="btn_dietprcpcopy" class="btn4_letter6" style="left:475px; top:1px; width:104px; height:22px; ">
  1684. <caption>식사처방복사</caption>
  1685. <script type="javascript" ev:event="DOMActivate">
  1686. <![CDATA[
  1687. if ( messageBox(ipt_dietdd.value.substr(4,2) + "월 " + ipt_dietdd.value.substr(6,2) + "일 식사처방 발생을", "Q004") == 6 ) {
  1688. model.makeNode("/root/send/searchitem/batchflag");
  1689. model.setValue("/root/send/searchitem/batchflag", "manual"); //batch 실행구분 = manual(수동)
  1690. submit("TXANT00102");
  1691. if ( model.getValue("/root/temp/ret/retmsg") == "OK" ) {
  1692. messageBox("식사처방복사가", "I002");
  1693. }
  1694. model.resetInstanceNode("/root/temp");
  1695. model.removenode("/root/send/searchitem/batchflag");
  1696. } else { return; }
  1697. ]]>
  1698. </script>
  1699. </button>
  1700. <button id="button2" class="btn4_letter4" style="left:580px; top:1px; width:80px; height:22px; ">
  1701. <caption>환자R복사</caption>
  1702. <script type="javascript" ev:event="DOMActivate">
  1703. <![CDATA[
  1704. if ( messageBox(ipt_dietdd.value.substr(4,2) + "월 " + ipt_dietdd.value.substr(6,2) + "일 개별환자관리 리마크 복사를", "Q004") == 6 ) {
  1705. model.makeNode("/root/send/searchitem/batchflag");
  1706. model.setValue("/root/send/searchitem/batchflag", "manual"); //batch 실행구분 = manual(수동)
  1707. submit("TXANT00103");
  1708. if ( model.getValue("/root/temp/ret/retmsg") == "OK" ) {
  1709. messageBox("개별환자관리 리마크 복사", "I002");
  1710. }
  1711. model.resetInstanceNode("/root/temp");
  1712. model.removenode("/root/send/searchitem/batchflag");
  1713. } else { return; }
  1714. ]]>
  1715. </script>
  1716. </button>
  1717. </group>
  1718. </xhtml:body>
  1719. </xhtml:html>