SMANC00400_환자관리.xrw 86 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831
  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. <ipatmngt>
  12. <grdlist>
  13. <pid/>
  14. <room/>
  15. <hngnm/>
  16. <sex/>
  17. <h_brthdd/>
  18. <age/>
  19. <indd/>
  20. <dietcd/>
  21. <dietnm/>
  22. <kcal/>
  23. <prcpdelivefact/>
  24. <remark3/>
  25. <diagnm/>
  26. <sick/>
  27. <curedietpatyn/>
  28. <dietroundyn/>
  29. <prcpstatus/>
  30. <prcpyn/>
  31. <cnt/>
  32. <crmyn/>
  33. <execcnts/>
  34. <execdieter/>
  35. <execdd/>
  36. <dschdd/>
  37. <rsntdschdd/>
  38. <insukind/>
  39. <cretno/>
  40. <orddeptcd/>
  41. <orddrid/>
  42. <prcpcnt/>
  43. </grdlist>
  44. </ipatmngt>
  45. <ipatmngtrslt>
  46. <grdlist>
  47. <pid/>
  48. <room/>
  49. <hngnm/>
  50. <sex/>
  51. <age/>
  52. <indd/>
  53. <dietnm/>
  54. <kcal/>
  55. <diagnm/>
  56. <sick/>
  57. <curedietpatyn/>
  58. <dietroundyn/>
  59. <crmyn/>
  60. <execcnts/>
  61. <execdieter/>
  62. <execdd/>
  63. </grdlist>
  64. </ipatmngtrslt>
  65. <telnutrcnst>
  66. <grdlist>
  67. <pid/>
  68. <ioflag/>
  69. <inout/>
  70. <hngnm/>
  71. <sex/>
  72. <age/>
  73. <sickcd/>
  74. <hometel/>
  75. <mpphontel/>
  76. <execyn/>
  77. <telexecdd/>
  78. <execdieter/>
  79. <formrecseq/>
  80. <nutrmngtkind/>
  81. <execdd/>
  82. <orddd/>
  83. </grdlist>
  84. </telnutrcnst>
  85. <telnutrcnstcnt>
  86. <cnstcount>
  87. <cnstdd/>
  88. <dieter/>
  89. <glycospatqty/>
  90. <hypetspatqty/>
  91. <cardiacpatqty/>
  92. <pdpatqty/>
  93. <hdpatqty/>
  94. <cncrpatqty/>
  95. <blodtumpatqty/>
  96. <kidnpatqty/>
  97. <liverpatqty/>
  98. <stmcpatqty/>
  99. <etrlfdpatqty/>
  100. <fatpatqty/>
  101. <etcsickpatqty/>
  102. </cnstcount>
  103. </telnutrcnstcnt>
  104. <nonregleduc>
  105. <grdlist>
  106. <educdd/>
  107. <eductm/>
  108. <eductodd/>
  109. <eductotm/>
  110. <educsubj/>
  111. <eductrgt/>
  112. <educpsnno/>
  113. <educplce/>
  114. <educmatr/>
  115. <sickcd/>
  116. <educetc/>
  117. <educdieter/>
  118. <bf_educdieter/>
  119. </grdlist>
  120. </nonregleduc>
  121. <complain>
  122. <grdlist>
  123. <nutflag/>
  124. <regdd/>
  125. <room/>
  126. <pid/>
  127. <hngnm/>
  128. <sex/>
  129. <age/>
  130. <hd/>
  131. <orddeptnm/>
  132. <medispclnm/>
  133. <diagnm/>
  134. <dietnm/>
  135. <dietmeal/>
  136. <prcpdelivefact/>
  137. <remark3/>
  138. <complain/>
  139. <writeid/>
  140. <manage1/>
  141. <checkdd1/>
  142. <nutid1/>
  143. <manage2/>
  144. <checkdd2/>
  145. <nutid2/>
  146. <prcpdd/>
  147. <indd/>
  148. </grdlist>
  149. </complain>
  150. </data>
  151. <patinfo>
  152. <patinfolist/>
  153. </patinfo>
  154. <item>
  155. <instcd/>
  156. </item>
  157. </main>
  158. <send>
  159. <searchitem>
  160. <ipatmngt>
  161. <ward/>
  162. <patflag/>
  163. <inddfrom/>
  164. <inddto/>
  165. <pid/>
  166. <hngnm/>
  167. <dieter>
  168. </dieter>
  169. <mealflag>1</mealflag>
  170. <optward/>
  171. </ipatmngt>
  172. <ipatmngtrslt>
  173. <ward/>
  174. <rsltflag/>
  175. <execddfrom/>
  176. <execddto/>
  177. <pid/>
  178. <hngnm/>
  179. <dieter/>
  180. </ipatmngtrslt>
  181. <telnutrcnst>
  182. <educfromdd/>
  183. <eductodd/>
  184. <pid/>
  185. <hngnm/>
  186. <dieter/>
  187. </telnutrcnst>
  188. <telnutrcnstcnt>
  189. <cnstfromdd/>
  190. <cnsttodd/>
  191. <dieter/>
  192. </telnutrcnstcnt>
  193. <nonregleduc>
  194. <fromdd/>
  195. <todd/>
  196. </nonregleduc>
  197. <complain>
  198. <nutflag/>
  199. <inddfrom/>
  200. <inddto/>
  201. <pid/>
  202. <hngnm/>
  203. <dieter/>
  204. <ward/>
  205. <manage1/>
  206. <checkdd1/>
  207. <manage2/>
  208. <checkdd2/>
  209. <indd/>
  210. <prcpdd/>
  211. <dietmeal/>
  212. <list/>
  213. </complain>
  214. <thdstats>
  215. <srchfromdd/>
  216. <srchtodd/>
  217. </thdstats>
  218. </searchitem>
  219. <data>
  220. <ipatmngt>
  221. <list/>
  222. </ipatmngt>
  223. <telnutrcnst>
  224. <list/>
  225. </telnutrcnst>
  226. <telnutrcnstcnt>
  227. <cnstcount/>
  228. </telnutrcnstcnt>
  229. <nonregleduc>
  230. <list/>
  231. </nonregleduc>
  232. <complain>
  233. <list/>
  234. </complain>
  235. <ipattreatmngt>
  236. <list/>
  237. </ipattreatmngt>
  238. </data>
  239. <popup>
  240. <flag/>
  241. <pid/>
  242. <hngnm/>
  243. <reqdd/>
  244. <reqpsn/>
  245. <educreqcnts/>
  246. <h_cretno/>
  247. <h_orddeptcd/>
  248. <h_prcpgenrflag/>
  249. <h_orddd/>
  250. <h_formrecseq/>
  251. <execprcpuniqno/>
  252. <nutrmngtkind/>
  253. <execdd/>
  254. <manage1/>
  255. <manage2/>
  256. <execcnts/>
  257. <p/>
  258. <b/>
  259. <g/>
  260. <s/>
  261. <o/>
  262. <etc/>
  263. <dietnm/>
  264. </popup>
  265. </send>
  266. <hidden/>
  267. <init>
  268. <basecode>
  269. <sick>
  270. <A0059>
  271. <cdid/>
  272. <cdnm/>
  273. </A0059>
  274. </sick>
  275. <ward>
  276. <dept>
  277. <deptcd/>
  278. <depthngnm/>
  279. </dept>
  280. </ward>
  281. <dieter>
  282. <alldieter>
  283. <cdid/>
  284. <cdnm/>
  285. </alldieter>
  286. </dieter>
  287. <etc>
  288. <A0061>
  289. <cdid/>
  290. <cdnm/>
  291. </A0061>
  292. </etc>
  293. </basecode>
  294. </init>
  295. <temp/>
  296. </root>
  297. </instance>
  298. <submission id="TRZBC00101"/>
  299. <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  300. <submission id="TRANC00403" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchitem/nonregleduc" replace="instance" resultref="/root/main/data/nonregleduc"/>
  301. <submission id="TXANC00403" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data/nonregleduc" resultref="/root/hidden"/>
  302. <submission id="TXANC00404" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data/telnutrcnstcnt" resultref="/root/hidden"/>
  303. <submission id="TRANC00405" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchitem/ipatmngtrslt" resultref="/root/main/data/ipatmngtrslt"/>
  304. <submission id="TRANC00401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchitem/ipatmngt" resultref="/root/main/data/ipatmngt"/>
  305. <submission id="TXANC00401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data/ipatmngt" resultref="/root/hidden"/>
  306. <submission id="TRANC00402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchitem/telnutrcnst" resultref="/root/main/data/telnutrcnst"/>
  307. <submission id="TXANC00402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data/telnutrcnst" resultref="/root/hidden"/>
  308. <submission id="TRANC00404" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchitem/telnutrcnstcnt" resultref="/root/main/data/telnutrcnstcnt"/>
  309. <submission id="TRANC00202" mediatype="application/x-www-form-urlencoded" method="post" resultref="/root/init/basecode/dieter"/>
  310. <submission id="TRANC00407" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchitem/complain" resultref="/root/main/data/complain"/>
  311. <submission id="TXANC00407" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchitem/complain" resultref="/root/hidden"/>
  312. <submission id="TXANC00408" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data/ipattreatmngt" resultref="/root/hidden"/>
  313. <submission id="TRANC00408" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchitem/thdstats" resultref="/root/main/data"/>
  314. <script type="javascript" ev:event="xforms-ready">
  315. <![CDATA[
  316. finit();
  317. btn_search1.disabled = !checkAuth("R");
  318. btn_search2.disabled = !checkAuth("R");
  319. btn_search3.disabled = !checkAuth("R");
  320. btn_search4.disabled = !checkAuth("R");
  321. btn_search5.disabled = !checkAuth("R");
  322. btn_search6.disabled = !checkAuth("R");
  323. btn_save.disabled = !checkAuth("X");
  324. btn_excel.disabled = !checkAuth("P");
  325. //btn_rowadd3.visible = false;
  326. btn_rowdel3.visible = false;
  327. submit("TRANC00202"); //영양사 조회
  328. ]]>
  329. </script>
  330. <script type="javascript">
  331. <![CDATA[
  332. function finit() {
  333. // 화면open시 공통코드 setting
  334. //KNUH_20100709_노회식_Start
  335. model.resetInstanceNode("/root/init/basecode/sick/A0059");
  336. //KNUH_20100709_노회식_End
  337. zbcfGetCodeList( new Array( "A0059","A0061" ), new Array( "/root/init/basecode/sick","/root/init/basecode/etc" ) );
  338. //zbcfGetDeptCodeList(getUserInfo("dutplceinstcd"), 'orduseyn', 'W', '/root/init/basecode/ward', 'depthngnm', 'asc', new Date().getDateFormat("YYYYMMDD"), "", 'after');
  339. zsdfGetWardDeptList(getUserInfo("dutplceinstcd"), '/root/init/basecode/ward', 'depthngnm', 'asc', new Date().getDateFormat("YYYYMMDD"), 'after');
  340. model.removeNodeset("/root/main/data/ipatmngt/grdlist");
  341. model.removeNodeset("/root/main/data/telnutrcnst/grdlist");
  342. model.removeNodeset("/root/main/data/telnutrcnstcnt/cnstcount");
  343. model.removeNodeset("/root/main/data/nonregleduc/grdlist");
  344. model.resetInstanceNode("/root/send");
  345. model.setValue("/root/send/searchitem/ipatmngt/patflag", "2");
  346. model.setValue("/root/send/searchitem/ipatmngt/mealflag", "1");
  347. model.setValue("/root/send/searchitem/ipatmngt/inddfrom", getCurrentDate());
  348. model.setValue("/root/send/searchitem/ipatmngt/inddto", getCurrentDate());
  349. //model.setValue("/root/send/searchitem/ipatmngt/dieter", getUserInfo("userid"));
  350. model.setValue("/root/send/searchitem/ipatmngtrslt/rsltflag", "-");
  351. model.setValue("/root/send/searchitem/ipatmngtrslt/execddfrom", getCurrentDate());
  352. model.setValue("/root/send/searchitem/ipatmngtrslt/execddto", getCurrentDate());
  353. model.setValue("/root/send/searchitem/ipatmngtrslt/dieter", getUserInfo("userid"));
  354. model.setValue("/root/send/searchitem/telnutrcnst/educfromdd", getCurrentDate());
  355. model.setValue("/root/send/searchitem/telnutrcnst/eductodd", getCurrentDate());
  356. model.setValue("/root/send/searchitem/telnutrcnst/dieter", getUserInfo("userid"));
  357. model.setValue("/root/send/searchitem/telnutrcnstcnt/cnstfromdd", getCurrentDate());
  358. model.setValue("/root/send/searchitem/telnutrcnstcnt/cnsttodd", getCurrentDate());
  359. model.setValue("/root/send/searchitem/telnutrcnstcnt/dieter", getUserInfo("userid"));
  360. model.setValue("/root/send/searchitem/nonregleduc/fromdd", getCurrentDate());
  361. model.setValue("/root/send/searchitem/nonregleduc/todd", getCurrentDate());
  362. model.setValue("/root/send/searchitem/complain/inddfrom", getCurrentDate());
  363. model.setValue("/root/send/searchitem/complain/inddto", getCurrentDate());
  364. chk_ward.attribute("visibility")="hidden";
  365. var fromdd = getCurrentDate().substring(0, 6) + '01'; // 적용일자 현재일자 셋팅
  366. var todd = getCurrentDate().substring(0, 6) + '31'; // 적용일자 현재일자 셋팅
  367. model.removenode("/root/main/item");
  368. model.setValue("/root/send/searchitem/thdstats/srchfromdd", fromdd);
  369. model.setValue("/root/send/searchitem/thdstats/srchtodd", todd);
  370. model.refresh();
  371. }
  372. ]]>
  373. </script>
  374. </model>
  375. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  376. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  377. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  378. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  379. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  380. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  381. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  382. </xhtml:head>
  383. <xhtml:body guideline="1,1198;2,941;2,992;2,6;2,1;2,-2;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  384. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  385. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:216px; height:14px; ">환자관리</caption>
  386. </group>
  387. <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  388. <switch id="swt_patmngt" style="left:0px; top:26px; width:1194px; height:718px; ">
  389. <case id="case1" selected="true">
  390. <group id="grp_sea" style="left:5px; top:10px; width:1182px; height:35px; vertical-align:top; ">
  391. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1182px; height:35px; background-color:#fffbf2; "/>
  392. <button id="btn_search1" class="btn1_letter2" style="left:1121px; top:7px; width:56px; height:22px; ">
  393. <caption>조회</caption>
  394. <script type="javascript" ev:event="DOMActivate">
  395. <![CDATA[
  396. if (chk_ward.attribute("visibility")=="visible") {
  397. chk_ward.attribute("visibility")="hidden";
  398. }
  399. var patflag = model.getValue("/root/send/searchitem/ipatmngt/patflag");
  400. var pid = model.getValue("/root/send/searchitem/ipatmngt/pid");
  401. var hngnm = model.getValue("/root/send/searchitem/ipatmngt/hngnm");
  402. var fromdd = model.getValue("/root/send/searchitem/ipatmngt/inddfrom");
  403. var todd = model.getValue("/root/send/searchitem/ipatmngt/inddto");
  404. if ( getDateInterval(fromdd, todd) < 0 ) {
  405. messageBox("조회 시작일은 종료일보다 클 수", "I004");
  406. return;
  407. // 변경요청서 1915 (2009.05.29) - 재원환자 검색기준 변경 (등록번호 or 환자명 입력조건 제외) - 2009.06.05 김귀남
  408. /*
  409. } else if ( patflag == "2" && pid == "" && hngnm == "" ) {
  410. //재원을 선택했을 경우는 등록번호나 환자명이 필수조회조건임.
  411. messageBox("재원환자 조회시 등록번호 또는 환자명을", "C001");
  412. return;
  413. */
  414. } else {
  415. submit("TRANC00401");
  416. }
  417. ]]>
  418. </script>
  419. </button>
  420. <line id="line13" class="line_4" style="x1:1112px; y1:7px; x2:1112px; y2:29px; "/>
  421. <caption id="caption33" class="search_name" style="left:6px; top:9px; width:60px; height:17px; ">병동 :</caption>
  422. <caption id="caption1" class="search_name" style="left:607px; top:9px; width:91px; height:17px; ">등록번호 :</caption>
  423. <button id="btn_pid" class="icon_search" style="left:762px; top:10px; width:16px; height:16px; ">
  424. <caption/>
  425. <script type="javascript" ev:event="DOMActivate">
  426. <![CDATA[
  427. modal("SPPMC02500", "", "200", "200", "SPPMC02500", "/root/hidden", "/root/main/patinfo/patinfolist");
  428. model.setValue("/root/send/searchitem/ipatmngt/pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
  429. model.setValue("/root/send/searchitem/ipatmngt/hngnm", model.getValue("/root/main/patinfo/patinfolist/hngnm"));
  430. model.refresh();
  431. ]]>
  432. </script>
  433. </button>
  434. <input id="ipt_pid1" ref="/root/send/searchitem/ipatmngt/pid" class="input" autonext="false" maxlength="10" format="9999999999" style="left:692px; top:8px; width:65px; height:19px; ">
  435. <script type="javascript" ev:event="onkeydown">
  436. <![CDATA[
  437. inputEnterKey("btn_search1", "DOMActivate");
  438. ]]>
  439. </script>
  440. </input>
  441. <caption id="caption5" class="search_name" style="left:785px; top:10px; width:86px; height:17px; ">환자명 :</caption>
  442. <input id="ipt_hngnm1" ref="/root/send/searchitem/ipatmngt/hngnm" class="input" disabled="true" style="left:860px; top:8px; width:60px; height:19px; ">
  443. <script type="javascript" ev:event="onkeydown">
  444. <![CDATA[
  445. inputEnterKey("btn_search1", "DOMActivate");
  446. ]]>
  447. </script>
  448. </input>
  449. <select1 id="rdo_patflag" ref="/root/send/searchitem/ipatmngt/patflag" class="radio_search" appearance="full" cols="3" rows="1" overflow="visible" style="left:180px; top:9px; width:115px; height:20px; ">
  450. <choices>
  451. <item>
  452. <label>재원</label>
  453. <value>2</value>
  454. </item>
  455. <item>
  456. <label>치료식</label>
  457. <value>3</value>
  458. </item>
  459. </choices>
  460. </select1>
  461. <button id="btn_patnm" class="icon_search" style="left:925px; top:10px; width:16px; height:16px; ">
  462. <caption/>
  463. <script type="javascript" ev:event="DOMActivate">
  464. <![CDATA[
  465. modal("SPPMC02500", "", "200", "200", "SPPMC02500", "/root/hidden", "/root/main/patinfo/patinfolist");
  466. model.setValue("/root/send/searchitem/ipatmngt/pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
  467. model.setValue("/root/send/searchitem/ipatmngt/hngnm", model.getValue("/root/main/patinfo/patinfolist/hngnm"));
  468. model.refresh();
  469. ]]>
  470. </script>
  471. </button>
  472. <caption id="caption10" class="search_name" style="left:945px; top:10px; width:76px; height:17px; ">영양사 :</caption>
  473. <select1 id="cmb_dieter1" ref="/root/send/searchitem/ipatmngt/dieter" class="combo_search" appearance="minimal" style="left:1025px; top:8px; width:75px; height:19px; ">
  474. <choices>
  475. <itemset nodeset="/root/init/basecode/dieter/alldieter">
  476. <label ref="cdnm"/>
  477. <value ref="cdid"/>
  478. </itemset>
  479. </choices>
  480. </select1>
  481. <input id="ipt_inddfrom" ref="/root/send/searchitem/ipatmngt/inddfrom" class="input_search" inputtype="date" style="left:389px; top:8px; width:90px; height:19px; "/>
  482. <caption id="caption19" class="search_n_b" style="left:481px; top:9px; width:12px; height:17px; font-weight:bolder; ">~</caption>
  483. <caption id="caption4" class="search_name" style="left:305px; top:10px; width:86px; height:17px; ">입원일자 :</caption>
  484. <input id="ipt_inddto" ref="/root/send/searchitem/ipatmngt/inddto" class="input_search" inputtype="date" style="left:494px; top:8px; width:90px; height:19px; "/>
  485. <output id="opt_ward" ref="/root/send/searchitem/ipatmngt/optward" style="left:65px; top:7px; width:100px; height:19px; background-color:#ffffff; border-color:#968b7b; border-style:solid; ">
  486. <script type="javascript" ev:event="onclick">
  487. <![CDATA[
  488. if (chk_ward.attribute("visibility")=="hidden") {
  489. chk_ward.attribute("visibility")="visible";
  490. } else if (chk_ward.attribute("visibility")=="visible") {
  491. chk_ward.attribute("visibility")="hidden";
  492. }
  493. ]]>
  494. </script>
  495. </output>
  496. </group>
  497. <line id="line38" class="line_1" style="x1:5px; y1:69px; x2:1188px; y2:69px; "/>
  498. <datagrid id="grd_ipatmngt" nodeset="/root/main/data/ipatmngt/grdlist" caption="등록번호^병실^환자명^성별^h_생년월일^나이^입원일자^식사코드^식사명^Kcal^특이사항^remark^진단명^질환구분^치료식환자관리^식사회진관리^처방^처방상태^내용^영양사^수행일자^보험유형^cretno^orddeptcd^orddrid^today^처방건수" colsep="^" colwidth="65, 40, 60, 40, 10, 40, 80, 0, 120,60,120,150, 150, 70, 95, 85, 70, 75, 300, 60, 90, 60, 0, 0, 0, 0, 60" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" frozencols="4" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:5px; top:74px; width:1183px; height:630px; text-align:center; ">
  499. <col ref="pid"/>
  500. <col ref="room"/>
  501. <col ref="hngnm"/>
  502. <col ref="sex"/>
  503. <col ref="h_brthdd" visibility="hidden"/>
  504. <col ref="age"/>
  505. <col ref="indd" format="yyyy-mm-dd"/>
  506. <col ref="dietcd" visibility="hidden"/>
  507. <col ref="dietnm" style="text-align:left; "/>
  508. <col ref="kcal" visibility="hidden"/>
  509. <col ref="prcpdelivefact" style="text-align:left; "/>
  510. <col ref="remark3" style="text-align:left; "/>
  511. <col ref="diagnm" style="text-align:left; "/>
  512. <col ref="sick" type="combo" style="text-align:left; ">
  513. <choices>
  514. <itemset nodeset="/root/init/basecode/sick/A0059">
  515. <label ref="cdnm"/>
  516. <value ref="cdid"/>
  517. </itemset>
  518. </choices>
  519. </col>
  520. <col checkvalue="Y,N" ref="curedietpatyn" type="checkbox"/>
  521. <col checkvalue="Y,N" ref="dietroundyn" type="checkbox" style="left:1120px; top:23px; width:85px; height:23px; "/>
  522. <col checkvalue="Y,N" ref="prcpstatus" type="checkbox"/>
  523. <col disabled="true" ref="prcpyn" type="combo">
  524. <choices>
  525. <item>
  526. <label>미처방</label>
  527. <value/>
  528. </item>
  529. <item>
  530. <label>처방완료</label>
  531. <value>Y</value>
  532. </item>
  533. </choices>
  534. </col>
  535. <col ref="execcnts" type="inputbutton" style="text-align:left; "/>
  536. <col ref="execdieter" type="combo">
  537. <choices>
  538. <itemset nodeset="/root/init/basecode/dieter/alldieter">
  539. <label ref="cdnm"/>
  540. <value ref="cdid"/>
  541. </itemset>
  542. </choices>
  543. </col>
  544. <col ref="execdd" type="inputdate"/>
  545. <col ref="insukind"/>
  546. <col ref="cretno" visibility="hidden"/>
  547. <col ref="orddeptcd" visibility="hidden"/>
  548. <col ref="orddrid" visibility="hidden"/>
  549. <col ref="today" visibility="hidden"/>
  550. <col ref="prcpcnt" style="text-align:center; "/>
  551. <script type="javascript" ev:event="xforms-value-changed">
  552. <![CDATA[
  553. // KNUH_20100720_노회식_start
  554. var grdrow = grd_ipatmngt.row;
  555. var execdd = model.getValue("/root/main/data/ipatmngt/grdlist["+ grdrow +"]/execdd");
  556. var execdieter = model.getValue("/root/main/data/ipatmngt/grdlist["+ grdrow +"]/execdieter");
  557. var curedyn = model.getValue("/root/main/data/ipatmngt/grdlist["+ grdrow +"]/curedietpatyn");
  558. var dieyn = model.getValue("/root/main/data/ipatmngt/grdlist["+ grdrow +"]/dietroundyn");
  559. var crmyn = model.getValue("/root/main/data/ipatmngt/grdlist["+ grdrow +"]/crmyn");
  560. if(curedyn != "Y" && dieyn != "Y" && crmyn != "Y") {
  561. model.setValue("/root/main/data/ipatmngt/grdlist["+ grdrow +"]/execdd", "");
  562. model.setValue("/root/main/data/ipatmngt/grdlist["+ grdrow +"]/execdieter", "");
  563. }else if(execdd == "" || execdd == null) {
  564. model.setValue("/root/main/data/ipatmngt/grdlist["+ grdrow +"]/execdd", getCurrentDate());
  565. model.setValue("/root/main/data/ipatmngt/grdlist["+ grdrow +"]/execdieter", getUserInfo("userid"));
  566. }
  567. // KNUH_20100720_노회식_end
  568. ]]>
  569. </script>
  570. <script type="javascript" ev:event="onbuttonclick">
  571. <![CDATA[
  572. var colidx = grd_ipatmngt.col;
  573. var rownum = grd_ipatmngt.row ;
  574. var dietnm = model.getValue("/root/main/data/ipatmngt/grdlist["+rownum+"]/dietnm");
  575. if(grd_ipatmngt.colAttribute(colidx, "ref") == "execcnts"){
  576. model.setValue("/root/send/popup/p", "p"); //설명대상-환자
  577. model.setValue("/root/send/popup/b", ""); //설명대상-보호자
  578. model.setValue("/root/send/popup/g", ""); //설명대상-간병인
  579. model.setValue("/root/send/popup/s", "0"); // 식사섭취량
  580. model.setValue("/root/send/popup/o", "o"); //안내문
  581. model.setValue("/root/send/popup/etc", ""); //기타
  582. model.setValue("/root/send/popup/dietnm", dietnm); //식사명
  583. // model.setValue("/root/send/popup/execcnts", "");
  584. grd_ipatmngt.rowStatus(rownum) = 2 ;
  585. grp_execcnts.visible = true;
  586. var execcnts = model.getValue("/root/main/data/ipatmngt/grdlist["+rownum+"]/execcnts");
  587. model.setValue("/root/send/popup/execcnts",execcnts);
  588. model.refresh();
  589. }
  590. ]]>
  591. </script>
  592. </datagrid>
  593. <group id="grp_execcnts" visibility="hidden" style="left:445px; top:265px; width:445px; height:245px; ">
  594. <textarea id="textarea3" ref="/root/send/popup/execcnts" style="left:10px; top:125px; width:430px; height:85px; "/>
  595. <button id="button4" class="btn4_letter2" style="left:380px; top:215px; width:56px; height:22px; ">
  596. <caption>닫기</caption>
  597. <script type="javascript" ev:event="DOMActivate">
  598. <![CDATA[
  599. grp_execcnts.visible = false;
  600. ]]>
  601. </script>
  602. </button>
  603. <caption id="caption30" class="tit_2" style="left:10px; top:3px; width:173px; height:13px; ">내용</caption>
  604. <shape id="rectangle1" appearance="rectangle" style="left:0px; top:0px; width:445px; height:245px; "/>
  605. <button id="button300" class="btn4_letter2" style="left:320px; top:215px; width:56px; height:22px; ">
  606. <caption>입력</caption>
  607. <script type="javascript" ev:event="DOMActivate">
  608. <![CDATA[
  609. var row = grd_ipatmngt.row;
  610. var execcnts = model.getValue("/root/send/popup/execcnts");
  611. model.setValue("/root/main/data/ipatmngt/grdlist["+ row +"]/execcnts", execcnts);
  612. grp_execcnts.visible = false;
  613. grd_ipatmngt.rowStatus(row) = 2 ;
  614. model.refresh();
  615. ]]>
  616. </script>
  617. </button>
  618. <caption id="caption34" style="left:30px; top:24px; width:100px; height:20px; ">· 설명대상 :</caption>
  619. <select id="chk_p" ref="/root/send/popup/p" overflow="visible" appearance="full" style="left:115px; top:25px; width:50px; height:20px; border-style:none; ">
  620. <choices>
  621. <item>
  622. <label>환자</label>
  623. <value>p</value>
  624. </item>
  625. </choices>
  626. </select>
  627. <select id="chk_b" ref="/root/send/popup/b" overflow="visible" appearance="full" style="left:170px; top:25px; width:70px; height:20px; border-style:none; ">
  628. <choices>
  629. <item>
  630. <label>보호자</label>
  631. <value>b</value>
  632. </item>
  633. </choices>
  634. </select>
  635. <select id="chk_g" ref="/root/send/popup/g" overflow="visible" appearance="full" style="left:240px; top:25px; width:70px; height:20px; border-style:none; ">
  636. <choices>
  637. <item>
  638. <label>간병인</label>
  639. <value>g</value>
  640. </item>
  641. </choices>
  642. </select>
  643. <caption id="caption36" style="left:30px; top:65px; width:100px; height:20px; ">· 식사 섭취량 :</caption>
  644. <input id="ipt_s" ref="/root/send/popup/s" style="left:135px; top:65px; width:30px; height:19px; "/>
  645. <caption id="caption37" style="left:168px; top:67px; width:35px; height:20px; ">%</caption>
  646. <caption id="caption38" style="left:30px; top:85px; width:50px; height:20px; ">·</caption>
  647. <select id="chk_o" ref="/root/send/popup/o" overflow="visible" appearance="full" style="left:43px; top:86px; width:20px; height:20px; border-style:none; ">
  648. <choices>
  649. <item>
  650. <label/>
  651. <value>o</value>
  652. </item>
  653. </choices>
  654. </select>
  655. <caption id="caption39" style="left:65px; top:85px; width:355px; height:20px; ">안내문을 제공하여 식사명, 제공사유, 주의사항 등 설명</caption>
  656. <caption id="caption40" style="left:30px; top:104px; width:100px; height:20px; ">· 기타 :</caption>
  657. <select1 id="cmb_etc" ref="/root/send/popup/etc" appearance="minimal" style="left:92px; top:105px; width:338px; height:19px; ">
  658. <choices>
  659. <itemset nodeset="/root/init/basecode/etc/A0061">
  660. <label ref="cdnm"/>
  661. <value ref="cdnm"/>
  662. </itemset>
  663. </choices>
  664. <script type="javascript" ev:event="xforms-value-changed">
  665. <![CDATA[
  666. var etc = model.getValue("/root/send/popup/etc");
  667. if (etc == "직접입력"){
  668. cmb_etc.attribute("editmode") = "input";
  669. model.refresh();
  670. }
  671. ]]>
  672. </script>
  673. </select1>
  674. <button id="button6" class="btn4_letter2" style="left:260px; top:215px; width:56px; height:22px; ">
  675. <caption>생성</caption>
  676. <script type="javascript" ev:event="DOMActivate">
  677. <![CDATA[
  678. var row = grd_ipatmngt.row;
  679. var p = model.getValue("/root/send/popup/p");
  680. var b = model.getValue("/root/send/popup/b");
  681. var g = model.getValue("/root/send/popup/g");
  682. var s = model.getValue("/root/send/popup/s");
  683. var o = model.getValue("/root/send/popup/o");
  684. var dietnm = model.getValue("/root/send/popup/dietnm");
  685. var etc = model.getValue("/root/send/popup/etc");
  686. if(p == "p" && b == "b" && g == "g" ){
  687. var temp1 = "· 설명대상 : 환자, 보호자, 간병인";
  688. }else if(p == "p" && b == "b" && g == ""){
  689. var temp1 = "· 설명대상 : 환자, 보호자";
  690. }else if(p == "p" && b == "" && g == "g"){
  691. var temp1 = "· 설명대상 : 환자, 간병인";
  692. }else if(p == "" && b == "b" && g == "g"){
  693. var temp1 = "· 설명대상 : 보호자, 간병인";
  694. }else if(p == "" && b == "" && g == "g"){
  695. var temp1 = "· 설명대상 : 간병인";
  696. }else if(p == "" && b == "b" && g == ""){
  697. var temp1 = "· 설명대상 : 보호자";
  698. }else if(p == "p" && b == "" && g == ""){
  699. var temp1 = "· 설명대상 : 환자";
  700. }
  701. var temp21 = "· 식사명/섭취량 : " + dietnm ;
  702. var temp2 = "· 식사 섭취량 : " + s + " %";
  703. if(o == "o"){
  704. var temp3 = "· 안내문을 제공하여 식사명, 제공사유, 주의사항 등 설명";
  705. }else{
  706. var temp3 = "";
  707. }
  708. var temp4 = etc ;
  709. if (temp3 == ""){
  710. var temp = temp1 +"\n" + temp21+"\n" + temp2 +"\n" + "· " + temp4 ;
  711. }else{
  712. var temp = temp1 +"\n" + temp21+"\n" + temp2 +"\n" + temp3 +"\n" + "· " + temp4;
  713. }
  714. model.setValue("/root/send/popup/execcnts", temp);
  715. model.refresh();
  716. ]]>
  717. </script>
  718. </button>
  719. <caption id="caption41" style="left:30px; top:45px; width:100px; height:20px; ">· 식사명/섭취량 :</caption>
  720. <input id="input5" ref="/root/send/popup/dietnm" style="left:135px; top:45px; width:90px; height:19px; "/>
  721. </group>
  722. <select1 id="rdo_mealflag" ref="/root/send/searchitem/ipatmngt/mealflag" class="radio_search" appearance="full" cols="3" rows="1" overflow="visible" style="left:100px; top:49px; width:140px; height:20px; ">
  723. <choices>
  724. <item>
  725. <label>조식</label>
  726. <value>1</value>
  727. </item>
  728. <item>
  729. <label>중식</label>
  730. <value>2</value>
  731. </item>
  732. <item>
  733. <label>석식</label>
  734. <value>3</value>
  735. </item>
  736. </choices>
  737. </select1>
  738. <caption id="caption32" class="search_name" style="left:11px; top:49px; width:82px; height:17px; ">끼니구분 :</caption>
  739. <select id="chk_ward" ref="/root/send/searchitem/ipatmngt/ward" class="checkbox_search" overflow="visible" appearance="full" style="left:70px; top:37px; width:95px; height:15px; background-color:#ffffff; ">
  740. <choices>
  741. <itemset nodeset="/root/init/basecode/ward/dept">
  742. <label ref="depthngnm"/>
  743. <value ref="deptcd"/>
  744. </itemset>
  745. </choices>
  746. <script type="javascript" ev:event="onclick">
  747. <![CDATA[
  748. model.setValue("/root/send/searchitem/ipatmngt/optward", chk_ward.label) ;
  749. opt_ward.refresh();
  750. ]]>
  751. </script>
  752. </select>
  753. </case>
  754. <case id="case2">
  755. <group id="group1" style="left:5px; top:10px; width:1182px; height:35px; vertical-align:top; ">
  756. <shape id="roundrect2" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1182px; height:35px; background-color:#fffbf2; "/>
  757. <button id="btn_search5" class="btn1_letter2" style="left:1106px; top:7px; width:56px; height:22px; ">
  758. <caption>조회</caption>
  759. <script type="javascript" ev:event="DOMActivate">
  760. <![CDATA[
  761. var fromdd = model.getValue("/root/send/searchitem/ipatmngtrslt/execddfrom");
  762. var todd = model.getValue("/root/send/searchitem/ipatmngtrslt/execddto");
  763. if ( getDateInterval(fromdd, todd) < 0 ) {
  764. messageBox("조회 시작일은 종료일보다 클 수", "I004");
  765. return;
  766. } else {
  767. submit("TRANC00405");
  768. }
  769. ]]>
  770. </script>
  771. </button>
  772. <line id="line1" class="line_4" style="x1:1092px; y1:7px; x2:1092px; y2:29px; "/>
  773. <caption id="caption2" class="search_name" style="left:11px; top:9px; width:60px; height:17px; ">병동 :</caption>
  774. <select1 id="cmb_ward1" ref="/root/send/searchitem/ipatmngtrslt/ward" class="combo_s_essential" appearance="minimal" style="left:75px; top:8px; width:100px; height:19px; ">
  775. <choices>
  776. <itemset nodeset="/root/init/basecode/ward/dept">
  777. <label ref="depthngnm"/>
  778. <value ref="deptcd"/>
  779. </itemset>
  780. </choices>
  781. </select1>
  782. <caption id="caption3" class="search_name" style="left:687px; top:9px; width:91px; height:17px; ">등록번호 :</caption>
  783. <caption id="caption8" class="search_n_b" style="left:840px; top:9px; width:12px; height:17px; font-weight:bolder; ">/</caption>
  784. <button id="btn_pid1" class="icon_search" style="left:912px; top:10px; width:16px; height:16px; ">
  785. <caption/>
  786. <script type="javascript" ev:event="DOMActivate">
  787. <![CDATA[
  788. modal("SPPMC02500", "", "200", "200", "SPPMC02500", "/root/hidden", "/root/main/patinfo/patinfolist");
  789. model.setValue("/root/send/searchitem/ipatmngtrslt/pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
  790. model.setValue("/root/send/searchitem/ipatmngtrslt/hngnm", model.getValue("/root/main/patinfo/patinfolist/hngnm"));
  791. model.refresh();
  792. ]]>
  793. </script>
  794. </button>
  795. <input id="ipt_pid3" ref="/root/send/searchitem/ipatmngtrslt/pid" class="input_s_essential" autonext="false" maxlength="10" format="9999999999" style="left:772px; top:8px; width:65px; height:19px; ">
  796. <script type="javascript" ev:event="onkeydown">
  797. <![CDATA[
  798. inputEnterKey("btn_search5", "DOMActivate");
  799. ]]>
  800. </script>
  801. </input>
  802. <input id="ipt_hngnm3" ref="/root/send/searchitem/ipatmngtrslt/hngnm" class="input_s_essential" style="left:850px; top:8px; width:60px; height:19px; ">
  803. <script type="javascript" ev:event="onkeydown">
  804. <![CDATA[
  805. inputEnterKey("btn_search5", "DOMActivate");
  806. ]]>
  807. </script>
  808. </input>
  809. <select1 id="rdo_rsltflag" ref="/root/send/searchitem/ipatmngtrslt/rsltflag" class="radio_search" appearance="full" cellspacing="2" cols="4" rows="1" overflow="visible" style="left:180px; top:9px; width:230px; height:20px; ">
  810. <choices>
  811. <item>
  812. <label>전체</label>
  813. <value>-</value>
  814. </item>
  815. <item>
  816. <label>치료식</label>
  817. <value>1</value>
  818. </item>
  819. <item>
  820. <label>식사회진</label>
  821. <value>2</value>
  822. </item>
  823. <item>
  824. <label>CRM</label>
  825. <value>3</value>
  826. </item>
  827. </choices>
  828. </select1>
  829. <caption id="caption7" class="search_name" style="left:940px; top:10px; width:76px; height:17px; ">영양사 :</caption>
  830. <select1 id="cmb_dieter4" ref="/root/send/searchitem/ipatmngtrslt/dieter" class="combo_search" appearance="minimal" style="left:1015px; top:8px; width:65px; height:19px; ">
  831. <choices>
  832. <itemset nodeset="/root/init/basecode/dieter/alldieter">
  833. <label ref="cdnm"/>
  834. <value ref="cdid"/>
  835. </itemset>
  836. </choices>
  837. </select1>
  838. <input id="ipt_execddfrom" ref="/root/send/searchitem/ipatmngtrslt/execddfrom" class="input_search" inputtype="date" style="left:494px; top:8px; width:85px; height:19px; "/>
  839. <caption id="caption9" class="search_n_b" style="left:581px; top:9px; width:12px; height:17px; font-weight:bolder; ">~</caption>
  840. <caption id="caption11" class="search_name" style="left:410px; top:10px; width:86px; height:17px; ">수행일자 :</caption>
  841. <input id="ipt_execddto" ref="/root/send/searchitem/ipatmngtrslt/execddto" class="input_search" inputtype="date" style="left:594px; top:8px; width:85px; height:19px; "/>
  842. </group>
  843. <line id="line2" class="line_1" style="x1:5px; y1:69px; x2:1188px; y2:69px; "/>
  844. <datagrid id="grd_ipatmngtrslt" nodeset="/root/main/data/ipatmngtrslt/grdlist" caption="등록번호^병실^환자명^성별^나이^입원일자^식사명^진단명^질환구분^치료식환자관리^식사회진관리^처방상태^내용^영양사^수행일자" colsep="^" colwidth="65, 40, 60, 40, 40, 80, 150, 150, 90, 95, 85, 90, 300, 70, 90" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:5px; top:74px; width:1183px; height:630px; text-align:center; ">
  845. <col ref="pid"/>
  846. <col ref="room"/>
  847. <col ref="hngnm"/>
  848. <col ref="sex"/>
  849. <col ref="age"/>
  850. <col ref="indd" format="yyyy-mm-dd"/>
  851. <col ref="dietnm" style="text-align:left; "/>
  852. <col ref="diagnm" style="text-align:left; "/>
  853. <col disabled="true" ref="sick" type="combo" style="text-align:center; ">
  854. <choices>
  855. <itemset nodeset="/root/init/basecode/sick/A0059">
  856. <label ref="cdnm"/>
  857. <value ref="cdid"/>
  858. </itemset>
  859. </choices>
  860. </col>
  861. <col checkvalue="Y,N" ref="curedietpatyn" type="checkbox"/>
  862. <col checkvalue="Y,N" ref="dietroundyn" type="checkbox"/>
  863. <col ref="prcpyn" style="text-align:center; "/>
  864. <col ref="execcnts" style="text-align:left; "/>
  865. <col disabled="true" ref="execdieter" type="combo">
  866. <choices>
  867. <itemset nodeset="/root/init/basecode/dieter/alldieter">
  868. <label ref="cdnm"/>
  869. <value ref="cdid"/>
  870. </itemset>
  871. </choices>
  872. </col>
  873. <col ref="execdd" format="yyyy-mm-dd"/>
  874. </datagrid>
  875. </case>
  876. <case id="case3">
  877. <group id="group2" style="left:5px; top:10px; width:1182px; height:35px; vertical-align:top; ">
  878. <shape id="shape1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1182px; height:35px; background-color:#fffbf2; "/>
  879. <button id="btn_search2" class="btn1_letter2" style="left:1111px; top:7px; width:56px; height:22px; ">
  880. <caption>조회</caption>
  881. <script type="javascript" ev:event="DOMActivate">
  882. <![CDATA[
  883. var fromdd = model.getValue("/root/send/searchitem/telnutrcnst/educfromdd");
  884. var todd = model.getValue("/root/send/searchitem/telnutrcnst/eductodd");
  885. if ( getDateInterval(fromdd, todd) < 0 ) {
  886. messageBox("조회 시작일은 종료일보다 클 수", "I004");
  887. return;
  888. } else {
  889. submit("TRANC00402");
  890. }
  891. ]]>
  892. </script>
  893. </button>
  894. <line id="line3" class="line_4" style="x1:1092px; y1:7px; x2:1092px; y2:29px; "/>
  895. <caption id="caption12" class="search_name" style="left:560px; top:9px; width:73px; height:17px; ">환자명 :</caption>
  896. <input id="ipt_hngnm2" ref="/root/send/searchitem/telnutrcnst/hngnm" class="input_s_essential" style="left:635px; top:8px; width:95px; height:19px; ">
  897. <script type="javascript" ev:event="onkeydown">
  898. <![CDATA[
  899. inputEnterKey("btn_search2", "DOMActivate");
  900. ]]>
  901. </script>
  902. </input>
  903. <button id="btn_patnm2" class="icon_search" style="left:735px; top:10px; width:16px; height:16px; ">
  904. <caption/>
  905. <script type="javascript" ev:event="DOMActivate">
  906. <![CDATA[
  907. modal("SPPMC02500", "", "200", "200", "SPPMC02500", "/root/hidden", "/root/main/patinfo/patinfolist");
  908. model.setValue("/root/send/searchitem/telnutrcnst/pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
  909. model.setValue("/root/send/searchitem/telnutrcnst/hngnm", model.getValue("/root/main/patinfo/patinfolist/hngnm"));
  910. model.refresh();
  911. ]]>
  912. </script>
  913. </button>
  914. <caption id="caption13" class="search_name" style="left:15px; top:9px; width:86px; height:17px; ">교육일자 :</caption>
  915. <caption id="caption14" class="search_n_b" style="left:211px; top:9px; width:12px; height:17px; font-weight:bolder; ">~</caption>
  916. <input id="ipt_educfromdd" ref="/root/send/searchitem/telnutrcnst/educfromdd" class="input_s_essential" inputtype="date" style="left:107px; top:8px; width:100px; height:19px; "/>
  917. <input id="ipt_eductodd" ref="/root/send/searchitem/telnutrcnst/eductodd" class="input_s_essential" inputtype="date" style="left:227px; top:8px; width:100px; height:19px; "/>
  918. <caption id="caption15" class="search_name" style="left:775px; top:9px; width:73px; height:17px; ">영양사 :</caption>
  919. <select1 id="cmb_dieter2" ref="/root/send/searchitem/telnutrcnst/dieter" class="combo_search" appearance="minimal" style="left:850px; top:8px; width:85px; height:19px; ">
  920. <choices>
  921. <itemset nodeset="/root/init/basecode/dieter/alldieter">
  922. <label ref="cdnm"/>
  923. <value ref="cdid"/>
  924. </itemset>
  925. </choices>
  926. </select1>
  927. <button id="btn_pid2" class="icon_search" style="left:527px; top:10px; width:16px; height:16px; ">
  928. <caption/>
  929. <script type="javascript" ev:event="DOMActivate">
  930. <![CDATA[
  931. modal("SPPMC02500", "", "200", "200", "SPPMC02500", "/root/hidden", "/root/main/patinfo/patinfolist");
  932. model.setValue("/root/send/searchitem/telnutrcnst/pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
  933. model.setValue("/root/send/searchitem/telnutrcnst/hngnm", model.getValue("/root/main/patinfo/patinfolist/hngnm"));
  934. model.refresh();
  935. ]]>
  936. </script>
  937. </button>
  938. <caption id="caption16" class="search_name" style="left:352px; top:9px; width:91px; height:17px; ">등록번호 :</caption>
  939. <input id="ipt_pid2" ref="/root/send/searchitem/telnutrcnst/pid" class="input_s_essential" autonext="false" maxlength="10" format="9999999999" style="left:437px; top:8px; width:85px; height:19px; ">
  940. <script type="javascript" ev:event="onkeydown">
  941. <![CDATA[
  942. inputEnterKey("btn_search2", "DOMActivate");
  943. ]]>
  944. </script>
  945. </input>
  946. </group>
  947. <line id="line4" class="line_1" style="x1:5px; y1:69px; x2:1188px; y2:69px; "/>
  948. <datagrid id="grd_telnutrcnst" nodeset="/root/main/data/telnutrcnst/grdlist" caption="등록번호^환자구분^입원/외래^환자명^성별^나이^질환구분^집전화^휴대전화^수행여부^수행일자^영양사^서식기록번호^영양관리유형^환자별영양관리수행일자^입원일자" colsep="^" colwidth="100, 30, 70, 80, 60, 60, 157, 95, 95, 65, 88, 74, 30, 30, 30, 30" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:5px; top:74px; width:1183px; height:536px; ">
  949. <col ref="pid"/>
  950. <col ref="ioflag" visibility="hidden"/>
  951. <col ref="inout"/>
  952. <col ref="hngnm"/>
  953. <col ref="sex"/>
  954. <col ref="age"/>
  955. <col ref="sickcd" type="combo" style="text-align:left; ">
  956. <choices>
  957. <itemset nodeset="/root/init/basecode/sick/A0059">
  958. <label ref="cdnm"/>
  959. <value ref="cdid"/>
  960. </itemset>
  961. </choices>
  962. </col>
  963. <col ref="hometel"/>
  964. <col ref="mpphontel"/>
  965. <col checkvalue="Y,N" ref="execyn" type="checkbox"/>
  966. <col ref="telexecdd" type="inputdate"/>
  967. <col ref="execdieter" type="combo">
  968. <choices>
  969. <itemset nodeset="/root/init/basecode/dieter/alldieter">
  970. <label ref="cdnm"/>
  971. <value ref="cdid"/>
  972. </itemset>
  973. </choices>
  974. </col>
  975. <col ref="formrecseq" visibility="hidden"/>
  976. <col ref="nutrmngtkind" visibility="hidden"/>
  977. <col ref="execdd" visibility="hidden"/>
  978. <col ref="orddd" visibility="hidden"/>
  979. <script type="javascript" ev:event="ondblclick">
  980. <![CDATA[
  981. if ( grd_telnutrcnst.isCell(event.target) && grd_telnutrcnst.row >= grd_telnutrcnst.fixedRows ) {
  982. // 'T'는 전화영양상담(추구관리) 탭화면임을 뜻하는 구분자임.
  983. model.setValue("/root/send/popup/flag", "T");
  984. model.setValue("/root/send/popup/pid", model.getValue("/root/main/data/telnutrcnst/grdlist["+grd_telnutrcnst.row+"]/pid"));
  985. model.setValue("/root/send/popup/hngnm", model.getValue("/root/main/data/telnutrcnst/grdlist["+grd_telnutrcnst.row+"]/hngnm"));
  986. //model.setValue("/root/send/popup/execprcpuniqno", model.getValue("/root/main/data/telnutrcnst/grdlist["+grd_telnutrcnst.row+"]/h_execprcpuniqno"));
  987. //model.setValue("/root/send/popup/h_cretno", model.getValue("/root/main/data/telnutrcnst/grdlist["+grd_telnutrcnst.row+"]/h_cretno"));
  988. //model.setValue("/root/send/popup/h_orddeptcd", model.getValue("/root/main/data/telnutrcnst/grdlist["+grd_telnutrcnst.row+"]/orddept"));
  989. model.setValue("/root/send/popup/h_prcpgenrflag", model.getValue("/root/main/data/telnutrcnst/grdlist["+grd_telnutrcnst.row+"]/ioflag"));
  990. model.setValue("/root/send/popup/h_orddd", model.getValue("/root/main/data/telnutrcnst/grdlist["+grd_telnutrcnst.row+"]/orddd"));
  991. //model.setValue("/root/send/popup/h_formrecseq", model.getValue("/root/main/data/telnutrcnst/grdlist["+grd_telnutrcnst.row+"]/formrecseq"));
  992. model.setValue("/root/send/popup/nutrmngtkind", model.getValue("/root/main/data/telnutrcnst/grdlist["+grd_telnutrcnst.row+"]/nutrmngtkind"));
  993. model.setValue("/root/send/popup/execdd", model.getValue("/root/main/data/telnutrcnst/grdlist["+grd_telnutrcnst.row+"]/execdd"));
  994. //modal("SMANC00300", "", "", "", "popup", "/root/send/popup", "/root/main/receivedata");
  995. open("SMANC00300", "","","", "SMANC00300", "/root/send/popup", "/root/main/receivedata");
  996. }
  997. ]]>
  998. </script>
  999. </datagrid>
  1000. <datagrid id="grd_cnstcount" nodeset="/root/main/data/telnutrcnstcnt/cnstcount" caption="상담일자^영양사^당뇨^고혈압^심장질환^복막투석^혈액투석^암^혈액종양^신장질환^간장질환^위장질환^경장영양^비만^기타질환" colsep="^" colwidth="95, 65, 80, 80, 80, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78" mergecellsfixedrows="bycolrec" rowsep="|" style="left:5px; top:640px; width:1183px; height:71px; text-align:center; ">
  1001. <col ref="cnstdd" type="inputdate"/>
  1002. <col ref="dieter" type="combo">
  1003. <choices>
  1004. <itemset nodeset="/root/init/basecode/dieter/alldieter">
  1005. <label ref="cdnm"/>
  1006. <value ref="cdid"/>
  1007. </itemset>
  1008. </choices>
  1009. </col>
  1010. <col ref="glycospatqty" type="input"/>
  1011. <col ref="hypetspatqty" type="input"/>
  1012. <col ref="cardiacpatqty" type="input"/>
  1013. <col ref="pdpatqty" type="input"/>
  1014. <col ref="hdpatqty" type="input"/>
  1015. <col ref="cncrpatqty" type="input"/>
  1016. <col ref="blodtumpatqty" type="input"/>
  1017. <col ref="kidnpatqty" type="input"/>
  1018. <col ref="liverpatqty" type="input"/>
  1019. <col ref="stmcpatqty" type="input"/>
  1020. <col ref="etrlfdpatqty" type="input"/>
  1021. <col ref="fatpatqty" type="input"/>
  1022. <col ref="etcsickpatqty" type="input"/>
  1023. </datagrid>
  1024. <button id="btn_rowadd2" class="btn2_letter3" style="left:1000px; top:615px; width:53px; height:19px; ">
  1025. <caption>행추가</caption>
  1026. <script type="javascript" ev:event="DOMActivate">
  1027. <![CDATA[
  1028. grd_cnstcount.addRow();
  1029. model.setValue("/root/main/data/telnutrcnstcnt/cnstcount["+ grd_cnstcount.row +"]/dieter", model.getValue("/root/send/searchitem/telnutrcnstcnt/dieter"));
  1030. ]]>
  1031. </script>
  1032. </button>
  1033. <button id="btn_rowdel2" class="btn2_letter3" style="left:1055px; top:615px; width:53px; height:19px; ">
  1034. <caption>행삭제</caption>
  1035. <script type="javascript" ev:event="DOMActivate">
  1036. <![CDATA[
  1037. grd_cnstcount.deleteRow(grd_cnstcount.row);
  1038. ]]>
  1039. </script>
  1040. </button>
  1041. <button id="btn_search4" class="btn1_letter2" style="left:1126px; top:613px; width:56px; height:22px; ">
  1042. <caption>조회</caption>
  1043. <script type="javascript" ev:event="DOMActivate">
  1044. <![CDATA[
  1045. var fromdd = model.getValue("/root/send/searchitem/telnutrcnstcnt/cnstfromdd");
  1046. var todd = model.getValue("/root/send/searchitem/telnutrcnstcnt/cnsttodd");
  1047. if ( getDateInterval(fromdd, todd) < 0 ) {
  1048. messageBox("조회 시작일은 종료일보다 클 수", "I004");
  1049. return;
  1050. } else {
  1051. submit("TRANC00404");
  1052. }
  1053. ]]>
  1054. </script>
  1055. </button>
  1056. <line id="line5" class="line_1" style="x1:5px; y1:635px; x2:1188px; y2:635px; "/>
  1057. <caption id="caption20" class="tit_2" style="left:11px; top:618px; width:95px; height:13px; ">전화영양상담</caption>
  1058. <caption id="caption17" class="search_name" style="left:315px; top:617px; width:86px; height:17px; ">상담일자 :</caption>
  1059. <caption id="caption18" class="search_n_b" style="left:502px; top:618px; width:12px; height:17px; font-weight:bolder; ">~</caption>
  1060. <input id="ipt_cnstfromdd" ref="/root/send/searchitem/telnutrcnstcnt/cnstfromdd" class="input_s_essential" inputtype="date" style="left:400px; top:615px; width:100px; height:19px; "/>
  1061. <input id="ipt_cnsttodd" ref="/root/send/searchitem/telnutrcnstcnt/cnsttodd" class="input_s_essential" inputtype="date" style="left:515px; top:615px; width:100px; height:19px; "/>
  1062. <caption id="caption21" class="search_name" style="left:675px; top:617px; width:73px; height:17px; ">영양사 :</caption>
  1063. <select1 id="cmb_dieter3" ref="/root/send/searchitem/telnutrcnstcnt/dieter" class="combo_search" appearance="minimal" style="left:750px; top:615px; width:85px; height:19px; ">
  1064. <choices>
  1065. <itemset nodeset="/root/init/basecode/dieter/alldieter">
  1066. <label ref="cdnm"/>
  1067. <value ref="cdid"/>
  1068. </itemset>
  1069. </choices>
  1070. </select1>
  1071. </case>
  1072. <case id="case4">
  1073. <line id="line40" class="line_2" style="x1:5px; y1:687px; x2:1188px; y2:687px; "/>
  1074. <line id="line6" class="line_1" style="x1:5px; y1:69px; x2:1188px; y2:69px; "/>
  1075. <datagrid id="grd_nonregleduc" nodeset="/root/main/data/nonregleduc/grdlist" caption="일자^시작시간^종료일^종료시간^주제^대상^교육인원^장소^교육자료^질환구분^기타^영양사^이전영양사" colsep="^" colwidth="90, 60, 90, 60, 204, 120, 70, 133, 100, 100, 180, 83, 100" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:5px; top:74px; width:1183px; height:627px; ">
  1076. <col ref="educdd" type="inputdate" format="yyyy-mm-dd" style="left:0px; top:23px; width:100px; height:23px; text-align:center; "/>
  1077. <col ref="eductm" type="input" format="hh:nn" style="text-align:center; "/>
  1078. <col ref="eductodd" type="inputdate" visibility="hidden" format="yyyy-mm-dd" style="text-align:center; "/>
  1079. <col ref="eductotm" type="input" format="hh:nn" style="text-align:center; "/>
  1080. <col ref="educsubj" type="input"/>
  1081. <col ref="eductrgt" type="input"/>
  1082. <col autonext="false" ref="educpsnno" type="input" format="9999" maxlength="4" style="text-align:right; "/>
  1083. <col ref="educplce" type="input"/>
  1084. <col ref="educmatr" type="input"/>
  1085. <col ref="sickcd" type="combo">
  1086. <choices>
  1087. <itemset nodeset="/root/init/basecode/sick/A0059">
  1088. <label ref="cdnm"/>
  1089. <value ref="cdid"/>
  1090. </itemset>
  1091. </choices>
  1092. </col>
  1093. <col ref="educetc" type="input"/>
  1094. <col ref="educdieter" type="combo" style="text-align:center; ">
  1095. <choices>
  1096. <itemset nodeset="/root/init/basecode/dieter/alldieter">
  1097. <label ref="cdnm"/>
  1098. <value ref="cdid"/>
  1099. </itemset>
  1100. </choices>
  1101. </col>
  1102. <col ref="bf_educdieter" visibility="hidden"/>
  1103. <script type="javascript" ev:event="xforms-select">
  1104. <![CDATA[
  1105. // var target_col = grd_glycosuria.col;
  1106. // if ( target_col == "3" ) {
  1107. // var exchstndcd = model.getValue("/root/main/data/glycosuria["+(grd_glycosuria.row)+"]/exchstndnm");
  1108. // model.setValue("/root/main/data/glycosuria["+(grd_glycosuria.row)+"]/exchstndcd", exchstndcd);
  1109. // model.refresh();
  1110. // }
  1111. ]]>
  1112. </script>
  1113. <script type="javascript" ev:event="onendedit">
  1114. <![CDATA[
  1115. var target_col = grd_nonregleduc.col;
  1116. if ( target_col == "2" ) {
  1117. var eductm = model.getValue("/root/main/data/nonregleduc/grdlist["+grd_nonregleduc.row+"]/eductm");
  1118. if ( eductm.length != 4 ) {
  1119. messageBox("시간 항목의 형식은 ##:##", "E008");
  1120. return;
  1121. }
  1122. }
  1123. ]]>
  1124. </script>
  1125. </datagrid>
  1126. <group id="group3" style="left:5px; top:10px; width:1182px; height:35px; vertical-align:top; ">
  1127. <shape id="shape2" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1182px; height:35px; background-color:#fffbf2; "/>
  1128. <button id="btn_search3" class="btn1_letter2" style="left:1111px; top:7px; width:56px; height:22px; ">
  1129. <caption>조회</caption>
  1130. <script type="javascript" ev:event="DOMActivate">
  1131. <![CDATA[
  1132. var fromdd = model.getValue("/root/send/searchitem/nonregleduc/fromdd");
  1133. var todd = model.getValue("/root/send/searchitem/nonregleduc/todd");
  1134. if ( getDateInterval(fromdd, todd) < 0 ) {
  1135. messageBox("조회 시작일은 종료일보다 클 수", "I004");
  1136. return;
  1137. } else {
  1138. submit("TRANC00403");
  1139. }
  1140. ]]>
  1141. </script>
  1142. </button>
  1143. <line id="line7" class="line_4" style="x1:1092px; y1:7px; x2:1092px; y2:29px; "/>
  1144. <caption id="caption22" class="search_name" style="left:15px; top:9px; width:86px; height:17px; ">교육일자 :</caption>
  1145. <caption id="caption23" class="search_n_b" style="left:211px; top:9px; width:12px; height:17px; font-weight:bolder; ">~</caption>
  1146. <input id="fromDD" ref="/root/send/searchitem/nonregleduc/fromdd" class="input_default" inputtype="date" style="left:107px; top:8px; width:100px; height:19px; text-align:center; "/>
  1147. <input id="toDD" ref="/root/send/searchitem/nonregleduc/todd" class="input_default" inputtype="date" style="left:227px; top:8px; width:100px; height:19px; text-align:center; "/>
  1148. </group>
  1149. </case>
  1150. <case id="case5">
  1151. <line id="line8" class="line_2" style="x1:5px; y1:687px; x2:1188px; y2:687px; "/>
  1152. <line id="line9" class="line_1" style="x1:5px; y1:69px; x2:1188px; y2:69px; "/>
  1153. <datagrid id="grd_complain" nodeset="/root/main/data/complain/grdlist" caption="구분^등록일^병실^등록번호^환자명^성별^나이^HD^진료과^전문의^진단명^식사명^끼니^특이사항^remark^내용(불편사항)^작성자^1차관리^1차확인^영양사^2차관리^2차확인^영양사^처방일자^입원일자" colsep="^" colwidth="60, 69, 40, 55, 55, 35, 30, 30, 120, 55, 208, 90, 40, 100, 120, 151, 60, 200, 80, 60, 200, 80, 60,100, 60" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:5px; top:74px; width:1183px; height:627px; ">
  1154. <col disabled="true" ref="nutflag" type="combo" style="text-align:center; ">
  1155. <choices>
  1156. <item>
  1157. <label>미관리</label>
  1158. <value>1</value>
  1159. </item>
  1160. <item>
  1161. <label>1차완료</label>
  1162. <value>2</value>
  1163. </item>
  1164. <item>
  1165. <label>2차완료</label>
  1166. <value>3</value>
  1167. </item>
  1168. </choices>
  1169. </col>
  1170. <col ref="regdd" style="text-align:center; "/>
  1171. <col ref="room" style="text-align:center; "/>
  1172. <col ref="pid" style="text-align:center; "/>
  1173. <col ref="hngnm" style="text-align:center; "/>
  1174. <col ref="sex" style="text-align:center; "/>
  1175. <col ref="age" style="text-align:center; "/>
  1176. <col ref="hd" style="text-align:center; "/>
  1177. <col ref="orddeptnm" style="text-align:center; "/>
  1178. <col ref="medispclnm" style="text-align:center; "/>
  1179. <col ref="diagnm" style="text-align:center; "/>
  1180. <col ref="dietnm" style="text-align:center; "/>
  1181. <col disabled="true" ref="dietmeal" type="combo" style="text-align:center; ">
  1182. <choices>
  1183. <item>
  1184. <label>아침</label>
  1185. <value>1</value>
  1186. </item>
  1187. <item>
  1188. <label>점심</label>
  1189. <value>2</value>
  1190. </item>
  1191. <item>
  1192. <label>저녁</label>
  1193. <value>3</value>
  1194. </item>
  1195. </choices>
  1196. </col>
  1197. <col ref="prcpdelivefact" style="text-align:center; "/>
  1198. <col ref="remark3" style="text-align:center; "/>
  1199. <col ref="complain" style="text-align:center; "/>
  1200. <col ref="writeid" style="text-align:center; "/>
  1201. <col ref="manage1" type="input" style="text-align:center; "/>
  1202. <col ref="checkdd1" type="input" style="text-align:center; "/>
  1203. <col ref="nutid1" type="input" style="text-align:center; "/>
  1204. <col ref="manage2" type="input" style="text-align:center; "/>
  1205. <col ref="checkdd2" type="input" style="text-align:center; "/>
  1206. <col ref="nutid2" type="input" style="text-align:center; "/>
  1207. <col ref="prcpdd" style="text-align:center; "/>
  1208. <col ref="indd" style="text-align:center; "/>
  1209. <script type="javascript" ev:event="onbuttonclick">
  1210. <![CDATA[
  1211. var colidx = grd_complain.col;
  1212. if(grd_complain.colAttribute(colidx, "ref") == "manage1"){
  1213. model.setValue("/root/send/popup/manage1", "");
  1214. grp_manage1.visible = true;
  1215. var rownum = grd_complain.row ;
  1216. var manage1 = model.getValue("/root/main/data/complain/grdlist["+rownum+"]/manage1");
  1217. model.setValue("/root/send/popup/manage1",manage1);
  1218. model.refresh();
  1219. }
  1220. else if(grd_complain.colAttribute(colidx, "ref") == "manage2"){
  1221. model.setValue("/root/send/popup/manage2", "");
  1222. grp_manage2.visible = true;
  1223. var rownum = grd_complain.row ;
  1224. var manage2 = model.getValue("/root/main/data/complain/grdlist["+rownum+"]/manage2");
  1225. model.setValue("/root/send/popup/manage2",manage2);
  1226. model.refresh();
  1227. }
  1228. ]]>
  1229. </script>
  1230. </datagrid>
  1231. <group id="group4" style="left:5px; top:10px; width:1182px; height:35px; vertical-align:top; ">
  1232. <shape id="roundrect3" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1182px; height:35px; background-color:#fffbf2; "/>
  1233. <button id="btn_search6" class="btn1_letter2" style="left:1106px; top:7px; width:56px; height:22px; ">
  1234. <caption>조회</caption>
  1235. <script type="javascript" ev:event="DOMActivate">
  1236. <![CDATA[
  1237. var nutflag = model.getValue("/root/send/searchitem/complain/nutflag");
  1238. var pid = model.getValue("/root/send/searchitem/complain/pid");
  1239. var hngnm = model.getValue("/root/send/searchitem/complain/hngnm");
  1240. var inddfrom = model.getValue("/root/send/searchitem/complain/inddfrom");
  1241. var inddto = model.getValue("/root/send/searchitem/complain/inddto");
  1242. var dieter = model.getValue("/root/send/searchitem/complain/dieter");
  1243. var ward = model.getValue("/root/send/searchitem/complain/ward");
  1244. if ( getDateInterval(inddfrom, inddto) < 0 ) {
  1245. messageBox("조회 시작일은 종료일보다 클 수", "I004");
  1246. return;
  1247. } else {
  1248. submit("TRANC00407");
  1249. }
  1250. ]]>
  1251. </script>
  1252. </button>
  1253. <line id="line10" class="line_4" style="x1:1092px; y1:7px; x2:1092px; y2:29px; "/>
  1254. <caption id="caption24" class="search_name" style="left:475px; top:10px; width:60px; height:17px; ">병동 :</caption>
  1255. <select1 id="cmb_ward2" ref="/root/send/searchitem/complain/ward" class="combo_s_essential" appearance="minimal" style="left:539px; top:9px; width:100px; height:19px; ">
  1256. <choices>
  1257. <itemset nodeset="/root/init/basecode/ward/dept">
  1258. <label ref="depthngnm"/>
  1259. <value ref="deptcd"/>
  1260. </itemset>
  1261. </choices>
  1262. </select1>
  1263. <caption id="caption25" class="search_name" style="left:642px; top:9px; width:124px; height:17px; ">등록번호/환자명 :</caption>
  1264. <input id="input1" ref="/root/send/searchitem/complain/pid" class="input" autonext="false" maxlength="10" format="9999999999" style="left:770px; top:8px; width:75px; height:19px; ">
  1265. <script type="javascript" ev:event="onkeydown">
  1266. <![CDATA[
  1267. inputEnterKey("btn_search6", "DOMActivate");
  1268. ]]>
  1269. </script>
  1270. </input>
  1271. <input id="input2" ref="/root/send/searchitem/complain/hngnm" class="input" style="left:850px; top:8px; width:60px; height:19px; ">
  1272. <script type="javascript" ev:event="onkeydown">
  1273. <![CDATA[
  1274. inputEnterKey("btn_search6", "DOMActivate");
  1275. ]]>
  1276. </script>
  1277. </input>
  1278. <button id="button3" class="icon_search" style="left:915px; top:10px; width:16px; height:16px; ">
  1279. <caption/>
  1280. <script type="javascript" ev:event="DOMActivate">
  1281. <![CDATA[
  1282. modal("SPPMC02500", "", "200", "200", "SPPMC02500", "/root/hidden", "/root/main/patinfo/patinfolist");
  1283. model.setValue("/root/send/searchitem/complain/pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
  1284. model.setValue("/root/send/searchitem/complain/hngnm", model.getValue("/root/main/patinfo/patinfolist/hngnm"));
  1285. model.refresh();
  1286. ]]>
  1287. </script>
  1288. </button>
  1289. <caption id="caption27" class="search_name" style="left:940px; top:10px; width:76px; height:17px; ">영양사 :</caption>
  1290. <select1 id="combo2" ref="/root/send/searchitem/complain/dieter" class="combo_search" appearance="minimal" style="left:1015px; top:8px; width:75px; height:19px; ">
  1291. <choices>
  1292. <itemset nodeset="/root/init/basecode/dieter/alldieter">
  1293. <label ref="cdnm"/>
  1294. <value ref="cdid"/>
  1295. </itemset>
  1296. </choices>
  1297. </select1>
  1298. <input id="input3" ref="/root/send/searchitem/complain/inddfrom" class="input_search" inputtype="date" style="left:264px; top:8px; width:90px; height:19px; "/>
  1299. <caption id="caption28" class="search_n_b" style="left:356px; top:9px; width:12px; height:17px; font-weight:bolder; ">~</caption>
  1300. <caption id="caption29" class="search_name" style="left:175px; top:10px; width:86px; height:17px; ">등록일자 :</caption>
  1301. <input id="input4" ref="/root/send/searchitem/complain/inddto" class="input_search" inputtype="date" style="left:369px; top:8px; width:90px; height:19px; "/>
  1302. <caption id="caption26" class="search_name" style="left:5px; top:10px; width:86px; height:17px; ">구분 :</caption>
  1303. <select1 id="combo1" ref="/root/send/searchitem/complain/nutflag" class="combo_search" appearance="minimal" style="left:70px; top:10px; width:75px; height:19px; ">
  1304. <choices>
  1305. <item>
  1306. <label/>
  1307. <value/>
  1308. </item>
  1309. <item>
  1310. <label>미관리</label>
  1311. <value>1</value>
  1312. </item>
  1313. <item>
  1314. <label>1차완료</label>
  1315. <value>2</value>
  1316. </item>
  1317. <item>
  1318. <label>2차완료</label>
  1319. <value>3</value>
  1320. </item>
  1321. </choices>
  1322. </select1>
  1323. </group>
  1324. <group id="grp_manage1" visibility="hidden" style="left:435px; top:265px; width:445px; height:245px; ">
  1325. <textarea id="textarea1" ref="/root/send/popup/manage1" style="left:5px; top:30px; width:435px; height:180px; "/>
  1326. <button id="button1" class="btn4_letter2" style="left:380px; top:215px; width:56px; height:22px; ">
  1327. <caption>닫기</caption>
  1328. <script type="javascript" ev:event="DOMActivate">
  1329. <![CDATA[
  1330. grp_manage1.visible = false;
  1331. ]]>
  1332. </script>
  1333. </button>
  1334. <caption id="caption31" class="tit_2" style="left:10px; top:13px; width:173px; height:15px; ">1차관리</caption>
  1335. <shape id="rectangle2" appearance="rectangle" style="left:0px; top:0px; width:445px; height:245px; "/>
  1336. <button id="button77" class="btn4_letter2" style="left:320px; top:215px; width:56px; height:22px; ">
  1337. <caption>입력</caption>
  1338. <script type="javascript" ev:event="DOMActivate">
  1339. <![CDATA[
  1340. for ( i=0; i<grd_complain.rows; i++) {
  1341. model.setValue("/root/main/data/complain/grdlist[" + grd_complain.row + "]/manage1", "");
  1342. model.setValue("/root/main/data/complain/grdlist[" + grd_complain.row + "]/manage1",model.getValue("/root/send/popup/manage1"));
  1343. }
  1344. grp_manage1.visible = false;
  1345. model.refresh();
  1346. ]]>
  1347. </script>
  1348. </button>
  1349. </group>
  1350. <group id="grp_manage2" visibility="hidden" style="left:435px; top:265px; width:445px; height:245px; ">
  1351. <textarea id="textarea2" ref="/root/send/popup/manage2" style="left:5px; top:30px; width:435px; height:180px; "/>
  1352. <button id="button2" class="btn4_letter2" style="left:380px; top:215px; width:56px; height:22px; ">
  1353. <caption>닫기</caption>
  1354. <script type="javascript" ev:event="DOMActivate">
  1355. <![CDATA[
  1356. grp_manage2.visible = false;
  1357. ]]>
  1358. </script>
  1359. </button>
  1360. <caption id="caption35" class="tit_2" style="left:10px; top:13px; width:173px; height:15px; ">2차관리</caption>
  1361. <shape id="rectangle3" appearance="rectangle" style="left:0px; top:0px; width:445px; height:245px; "/>
  1362. <button id="button78" class="btn4_letter2" style="left:320px; top:215px; width:56px; height:22px; ">
  1363. <caption>입력</caption>
  1364. <script type="javascript" ev:event="DOMActivate">
  1365. <![CDATA[
  1366. for ( i=0; i<grd_complain.rows; i++) {
  1367. model.setValue("/root/main/data/complain/grdlist[" +grd_complain.row + "]/manage2", "");
  1368. model.setValue("/root/main/data/complain/grdlist[" + grd_complain.row+ "]/manage2",model.getValue("/root/send/popup/manage2"));
  1369. }
  1370. grp_manage2.visible = false;
  1371. model.refresh();
  1372. ]]>
  1373. </script>
  1374. </button>
  1375. </group>
  1376. </case>
  1377. <case id="case6">
  1378. <shape id="roundrect4" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:5px; width:1182px; height:35px; background-color:#fffbf2; "/>
  1379. <line id="line11" class="line_4" style="x1:1092px; y1:12px; x2:1092px; y2:34px; "/>
  1380. <button id="button7" class="btn1_letter2" style="left:1109px; top:11px; width:56px; height:22px; ">
  1381. <caption>조회</caption>
  1382. <script type="javascript" ev:event="DOMActivate">
  1383. <![CDATA[
  1384. // alert(model.getValue("/root/send/searchitem/thdstats/srchfromdd").substring(4,5) );
  1385. // var captionString = '';
  1386. model.removenode("/root/main/item");
  1387. // var year1= model.getValue("/root/send/searchitem/thdstats/srchfromdd").substring(0,4);
  1388. // if (model.getValue("/root/send/searchitem/thdstats/srchfromdd").substring(4,5) == '0') {
  1389. // var month1 = parseInt(model.getValue("/root/send/searchitem/thdstats/srchfromdd").substring(5,6))-1;
  1390. // } else {
  1391. // var month1 = parseInt(model.getValue("/root/send/searchitem/thdstats/srchfromdd").substring(4,6))-1;
  1392. // }
  1393. // var date1 = model.getValue("/root/send/searchitem/thdstats/srchfromdd").substring(6,8);
  1394. // var strtdd = new Date(year1, month1, date1);
  1395. // var month= model.getValue("/root/send/searchitem/thdstats/srchfromdd").substring(4,6);
  1396. //
  1397. // var last_day =(year1+month+date1).toDate().getMonthDay();
  1398. // alert(strtdd.getDate());
  1399. // for (var ii=0 ; ii <last_day ; ii++) {
  1400. // var day2 = new Date(strtdd.getFullYear(), strtdd.getMonth(), strtdd.getDate() + ii);
  1401. // captionString = captionString + '^' + day2.getDate() + '일';
  1402. // }
  1403. // grd_mainlist.caption= '기관코드 '+captionString;
  1404. // model.removenode("/root/main/item");
  1405. submit("TRANC00408");
  1406. ]]>
  1407. </script>
  1408. </button>
  1409. <datagrid id="grd_mainlist" nodeset="/root/main/item" autoresize="true" caption="기관코드^01일^02일^03일^04일^05일^06일^07일^08일^09일^10일^11일^12일^13일^14일^15일^16일^17일^18일^19일^20일^21일^22일^23일^24일^25일^26일^27일^28일^29일^30일^31일^총건수" colsep="^" colwidth="30, 35 ,35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 80" mergecellsfixedrows="bycolrec" rowsep="|" subtotalposition="below" style="left:0px; top:70px; width:1180px; height:605px; ">
  1410. <col ref="instcd" visibility="hidden"/>
  1411. <col ref="day01" savetype="text" style="text-align:center; "/>
  1412. <col ref="day02" savetype="text" style="text-align:center; "/>
  1413. <col ref="day03" savetype="text" style="text-align:center; "/>
  1414. <col ref="day04" savetype="text" style="text-align:center; "/>
  1415. <col ref="day05" savetype="text" style="text-align:center; "/>
  1416. <col ref="day06" savetype="text" style="text-align:center; "/>
  1417. <col ref="day07" savetype="text" style="text-align:center; "/>
  1418. <col ref="day08" savetype="text" style="text-align:center; "/>
  1419. <col ref="day09" savetype="text" style="text-align:center; "/>
  1420. <col ref="day10" savetype="text" style="text-align:center; "/>
  1421. <col ref="day11" savetype="text" style="text-align:center; "/>
  1422. <col ref="day12" savetype="text" style="text-align:center; "/>
  1423. <col ref="day13" savetype="text" style="text-align:center; "/>
  1424. <col ref="day14" savetype="text" style="text-align:center; "/>
  1425. <col ref="day15" savetype="text" style="text-align:center; "/>
  1426. <col ref="day16" savetype="text" style="text-align:center; "/>
  1427. <col ref="day17" savetype="text" style="text-align:center; "/>
  1428. <col ref="day18" savetype="text" style="text-align:center; "/>
  1429. <col ref="day19" savetype="text" style="text-align:center; "/>
  1430. <col ref="day20" savetype="text" style="text-align:center; "/>
  1431. <col ref="day21" savetype="text" style="text-align:center; "/>
  1432. <col ref="day22" savetype="text" style="text-align:center; "/>
  1433. <col ref="day23" savetype="text" style="text-align:center; "/>
  1434. <col ref="day24" savetype="text" style="text-align:center; "/>
  1435. <col ref="day25" savetype="text" style="text-align:center; "/>
  1436. <col ref="day26" savetype="text" style="text-align:center; "/>
  1437. <col ref="day27" savetype="text" style="text-align:center; "/>
  1438. <col ref="day28" savetype="text" style="text-align:center; "/>
  1439. <col ref="day29" savetype="text" style="text-align:center; "/>
  1440. <col ref="day30" savetype="text" style="text-align:center; "/>
  1441. <col ref="day31" savetype="text" style="text-align:center; "/>
  1442. <col ref="total" savetype="text" style="text-align:center; "/>
  1443. <script type="javascript" ev:event="ondblclick">
  1444. <![CDATA[
  1445. fGetDetailSearch();
  1446. btn_case2.dispatch("DOMActivate");
  1447. ]]>
  1448. </script>
  1449. <script type="javascript" ev:event="onaftersort">
  1450. <![CDATA[
  1451. grd_mainlist.gridToInstance();
  1452. ]]>
  1453. </script>
  1454. </datagrid>
  1455. <button id="btn_next" class="icon_next" style="left:207px; top:12px; width:13px; height:15px; ">
  1456. <caption/>
  1457. <script type="javascript" ev:event="onclick">
  1458. <![CDATA[
  1459. var dd = model.getValue("/root/send/searchitem/thdstats/srchfromdd") + "01";
  1460. dd = dd.toDate().getAddDate(1, "M");
  1461. var dd1 = dd.getDateFormat("YYYYMM") + '01';
  1462. var dd2 = dd.getDateFormat("YYYYMM") + '31';
  1463. model.setValue("/root/send/searchitem/thdstats/srchfromdd", dd1);
  1464. model.setValue("/root/send/searchitem/thdstats/srchtodd" , dd2);
  1465. model.refresh();
  1466. ]]>
  1467. </script>
  1468. </button>
  1469. <button id="btn_before" class="icon_pre" style="left:192px; top:12px; width:13px; height:15px; ">
  1470. <caption/>
  1471. <script type="javascript" ev:event="onclick">
  1472. <![CDATA[
  1473. var dd = model.getValue("/root/send/searchitem/thdstats/srchfromdd") + "01";
  1474. dd = dd.toDate().getAddDate(-1, "M");
  1475. var dd1 = dd.getDateFormat("YYYYMM")+ '01';
  1476. var dd2 = dd.getDateFormat("YYYYMM") + '31';
  1477. model.setValue("/root/send/searchitem/thdstats/srchfromdd", dd1);
  1478. model.setValue("/root/send/searchitem/thdstats/srchtodd" , dd2);
  1479. model.refresh();
  1480. ]]>
  1481. </script>
  1482. </button>
  1483. <caption id="caption43" class="search_name" style="left:14px; top:11px; width:86px; height:17px; ">조회기간 :</caption>
  1484. <input id="ipt_fromdd" ref="/root/send/searchitem/thdstats/srchfromdd" format="yyyy-mm" style="left:105px; top:10px; width:85px; height:19px; text-align:center; ">
  1485. <script type="javascript" ev:event="xforms-value-changed">
  1486. <![CDATA[
  1487. var fromdd = model.getValue("/root/send/searchitem/thdstats/srchfromdd");
  1488. var temp1 = fromdd+ '01';
  1489. var temp2 = fromdd+ '31';
  1490. model.setValue("/root/send/searchitem/thdstats/srchfromdd", temp1);
  1491. model.setValue("/root/send/searchitem/thdstats/srchtodd" , temp2);
  1492. model.refresh();
  1493. ]]>
  1494. </script>
  1495. </input>
  1496. </case>
  1497. </switch>
  1498. <button id="btn_ipatmngt" class="btn_sw" group="tab" selected="true" style="left:0px; top:5px; width:102px; height:22px; ">
  1499. <caption>입원환자관리</caption>
  1500. <script type="javascript" ev:event="DOMActivate">
  1501. <![CDATA[
  1502. btn_rowadd3.visible = true;
  1503. btn_rowdel3.visible = false;
  1504. btn_save.disabled = false;
  1505. btn_listprnt.disabled = true;
  1506. model.toggle("case1");
  1507. ]]>
  1508. </script>
  1509. </button>
  1510. <button id="btn_ipatmngtrslt" class="btn_sw" group="tab" selected="false" style="left:102px; top:5px; width:121px; height:22px; ">
  1511. <caption>환자관리결과조회</caption>
  1512. <script type="javascript" ev:event="DOMActivate">
  1513. <![CDATA[
  1514. btn_rowadd3.visible = false;
  1515. btn_rowdel3.visible = false;
  1516. btn_save.disabled = true;
  1517. btn_listprnt.disabled = true;
  1518. model.toggle("case2");
  1519. ]]>
  1520. </script>
  1521. </button>
  1522. <button id="btn_telnutrcnst" class="btn_sw" group="tab" selected="false" style="left:223px; top:5px; width:155px; height:22px; ">
  1523. <caption>전화영양상담(추구관리)</caption>
  1524. <script type="javascript" ev:event="DOMActivate">
  1525. <![CDATA[
  1526. btn_rowadd3.visible = false;
  1527. btn_rowdel3.visible = false;
  1528. btn_save.disabled = false;
  1529. btn_listprnt.disabled = true;
  1530. model.toggle("case3");
  1531. ]]>
  1532. </script>
  1533. </button>
  1534. <button id="btn_nonregleduc" class="btn_sw" group="tab" selected="false" style="left:377px; top:5px; width:83px; height:22px; ">
  1535. <caption>집단교육</caption>
  1536. <script type="javascript" ev:event="DOMActivate">
  1537. <![CDATA[
  1538. btn_rowadd3.visible = true;
  1539. btn_rowdel3.visible = true;
  1540. btn_save.disabled = false;
  1541. btn_listprnt.disabled = true;
  1542. model.toggle("case4");
  1543. ]]>
  1544. </script>
  1545. </button>
  1546. <button id="btn_rowadd3" class="btn2_letter3" style="left:1025px; top:75px; width:53px; height:19px; ">
  1547. <caption>행추가</caption>
  1548. <script type="javascript" ev:event="DOMActivate">
  1549. <![CDATA[
  1550. //입원환자관리 탭화면일때
  1551. if ( btn_ipatmngt.selected ) {
  1552. if ( model.getValue("/root/main/data/ipatmngt/grdlist["+ grd_ipatmngt.row +"]/pid") == "" ) {
  1553. messageBox("추가할 환자를", "C002");
  1554. return;
  1555. }
  1556. var grdrow = grd_ipatmngt.row;
  1557. model.copyNode("/root/temp", "/root/main/data/ipatmngt/grdlist["+ grdrow +"]");
  1558. grd_ipatmngt.insertrow(grdrow, "below");
  1559. model.copyNode("/root/main/data/ipatmngt/grdlist["+ (grdrow+1) +"]", "/root/temp");
  1560. model.setValue("/root/main/data/ipatmngt/grdlist["+ (grdrow+1) +"]/sick", "");
  1561. model.setValue("/root/main/data/ipatmngt/grdlist["+ (grdrow+1) +"]/curedietpatyn", "");
  1562. model.setValue("/root/main/data/ipatmngt/grdlist["+ (grdrow+1) +"]/dietroundyn", "");
  1563. //model.setValue("/root/main/data/ipatmngt/grdlist["+ (grdrow+1) +"]/crmyn", "");
  1564. model.setValue("/root/main/data/ipatmngt/grdlist["+ (grdrow+1) +"]/execcnts", "");
  1565. model.setValue("/root/main/data/ipatmngt/grdlist["+ (grdrow+1) +"]/execdieter", getUserInfo("userid"));
  1566. model.setValue("/root/main/data/ipatmngt/grdlist["+ (grdrow+1) +"]/execdd", getCurrentDate());
  1567. model.setValue("/root/main/data/ipatmngt/grdlist["+ (grdrow+1) +"]/prcpyn", "");
  1568. //model.setFocus("/root/main/tab/menuwrite/list["+ (grdrow+1) +"]/dishflag");
  1569. model.refresh();
  1570. }
  1571. //집단교육 탭화면일때
  1572. else if ( btn_nonregleduc.selected ) {
  1573. grd_nonregleduc.addRow();
  1574. }
  1575. ]]>
  1576. </script>
  1577. </button>
  1578. <button id="btn_rowdel3" class="btn2_letter3" style="left:1081px; top:75px; width:53px; height:19px; ">
  1579. <caption>행삭제</caption>
  1580. <script type="javascript" ev:event="DOMActivate">
  1581. <![CDATA[
  1582. //var cur_row = grd_nonregleduc.row;
  1583. //grd_nonregleduc.deleteRow(cur_row);
  1584. grd_nonregleduc.deleteRow(grd_nonregleduc.row);
  1585. ]]>
  1586. </script>
  1587. </button>
  1588. <button id="btn_excel" class="btn2_letter2" style="left:1140px; top:75px; width:42px; height:19px; ">
  1589. <caption>엑셀</caption>
  1590. <script type="javascript" ev:event="DOMActivate">
  1591. <![CDATA[
  1592. if ( btn_ipatmngt.selected ) {
  1593. var filename = window.fileDialog("save", ",", false, "입원환자관리현황", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  1594. if (filename != "") {
  1595. grd_ipatmngt.saveExcel(filename, "grd_ipatmngt", true, false, "", "", "");
  1596. }
  1597. } else if ( btn_ipatmngtrslt.selected ) {
  1598. var filename = window.fileDialog("save", ",", false, "환자관리결과현황", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  1599. if (filename != "") {
  1600. grd_ipatmngtrslt.saveExcel(filename, "grd_ipatmngtrslt", true, false, "", "", "");
  1601. }
  1602. } else if ( btn_telnutrcnst.selected ) {
  1603. var filename = window.fileDialog("save", ",", false, "전화영양상담현황", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  1604. if (filename != "") {
  1605. grd_telnutrcnst.saveExcel(filename, "grd_telnutrcnst", true, false, "", "", "");
  1606. }
  1607. } else if ( btn_nonregleduc.selected ) {
  1608. var filename = window.fileDialog("save", ",", false, "집단교육현황", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  1609. if (filename != "") {
  1610. grd_nonregleduc.saveExcel(filename, "grd_nonregleduc", true, false, "", "", "");
  1611. }
  1612. } else if ( btn_complain.selected ) {
  1613. var filename = window.fileDialog("save", ",", false, "환자식불만관리", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  1614. if (filename != "") {
  1615. grd_complain.saveExcel(filename, "grd_complain", true, false, "", "", "");
  1616. }
  1617. } else if ( btn_thdstats.selected ) {
  1618. var filename = window.fileDialog("save", ",", false, "치료식통계", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  1619. if (filename != "") {
  1620. grd_mainlist.saveExcel(filename, "grd_mainlist", true, false, "", "", "");
  1621. }
  1622. }
  1623. ]]>
  1624. </script>
  1625. </button>
  1626. <button id="btn_complain" class="btn_sw" group="tab" selected="false" style="left:460px; top:5px; width:110px; height:22px; ">
  1627. <caption>환자식불만관리</caption>
  1628. <script type="javascript" ev:event="DOMActivate">
  1629. <![CDATA[
  1630. btn_rowadd3.visible = false;
  1631. btn_rowdel3.visible = false;
  1632. btn_save.disabled = false;
  1633. btn_listprnt.disabled = false;
  1634. model.toggle("case5");
  1635. ]]>
  1636. </script>
  1637. </button>
  1638. <button id="btn_thdstats" class="btn_sw" group="tab" selected="false" style="left:570px; top:5px; width:110px; height:22px; ">
  1639. <caption>치료식통계</caption>
  1640. <script type="javascript" ev:event="DOMActivate">
  1641. <![CDATA[
  1642. btn_rowadd3.visible = false;
  1643. btn_rowdel3.visible = false;
  1644. btn_save.disabled = false;
  1645. btn_listprnt.disabled = false;
  1646. model.toggle("case6");
  1647. ]]>
  1648. </script>
  1649. </button>
  1650. </group>
  1651. <group id="grp_btn" style="left:0px; top:757px; width:1195px; height:27px; ">
  1652. <button id="btn_reset" class="btn4_letter3" style="left:1067px; top:5px; width:68px; height:22px; ">
  1653. <caption>초기화</caption>
  1654. <script type="javascript" ev:event="DOMActivate">
  1655. <![CDATA[
  1656. finit();
  1657. ]]>
  1658. </script>
  1659. </button>
  1660. <button id="btn_save" class="btn4_letter2" style="left:1136px; top:5px; width:56px; height:22px; ">
  1661. <caption>저장</caption>
  1662. <script type="javascript" ev:event="DOMActivate">
  1663. <![CDATA[
  1664. if ( messageBox("", "Q002") == 6 ) {
  1665. //입원환자관리 탭화면일때
  1666. if ( btn_ipatmngt.selected ) {
  1667. model.setValue("/root/send/data/ipatmngt/list", grd_ipatmngt.getUpdateData());
  1668. if (submit("TXANC00401")) {
  1669. submit("TRANC00401");
  1670. }
  1671. }
  1672. //전화영양상담 탭화면일때
  1673. else if ( btn_telnutrcnst.selected ) {
  1674. //전화영양상담 메인 그리드
  1675. if ( getGridUpdateData(grd_telnutrcnst) != "" ) {
  1676. //필수입력항목 체크
  1677. for ( i=1; i<grd_telnutrcnst.rows; i++) {
  1678. if ( (model.getValue("/root/main/data/telnutrcnst/grdlist[" + i + "]/execyn") == "Y") &&
  1679. ((model.getValue("/root/main/data/telnutrcnst/grdlist[" + i + "]/telexecdd") == "") ||
  1680. (model.getValue("/root/main/data/telnutrcnst/grdlist[" + i + "]/execdieter") == "")) ) {
  1681. messageBox("수행일자, 영양사 항목은", "I003");
  1682. return;
  1683. }
  1684. }
  1685. model.setValue("/root/send/data/telnutrcnst/list", grd_telnutrcnst.getUpdateData());
  1686. if (submit("TXANC00402")) {
  1687. submit("TRANC00402");
  1688. }
  1689. }
  1690. //하단의 전화영양상담건수 그리드
  1691. if ( getGridUpdateData(grd_cnstcount) != "" ) {
  1692. //필수입력항목 체크
  1693. for ( i=1; i<grd_cnstcount.rows; i++) {
  1694. if ( (model.getValue("/root/main/data/telnutrcnstcnt/cnstcount[" + i + "]/cnstdd") == "") ||
  1695. (model.getValue("/root/main/data/telnutrcnstcnt/cnstcount[" + i + "]/dieter") == "") ) {
  1696. messageBox("상담일자, 영양사 항목은", "I003");
  1697. return;
  1698. }
  1699. }
  1700. model.setValue("/root/send/data/telnutrcnstcnt/cnstcount", grd_cnstcount.getUpdateData());
  1701. if (submit("TXANC00404")) {
  1702. submit("TRANC00404");
  1703. }
  1704. }
  1705. }
  1706. //환자식불만관리 탭화면일때
  1707. else if ( btn_complain.selected ) {
  1708. //환자식불만관리 메인 그리드
  1709. if ( getGridUpdateData(grd_complain) != "" ) {
  1710. //필수입력항목 체크
  1711. for ( i=1; i<grd_complain.rows; i++) {
  1712. if(grd_complain.rowStatus(i) == 2 && model.getValue("/root/main/data/complain/grdlist[" + grd_complain.row + "]/nutflag") == "1") { // 미관리
  1713. if(model.getValue("/root/main/data/complain/grdlist[" + grd_complain.row + "]/manage1") == ""){
  1714. messageBox("1차관리 내용이", "I004");
  1715. return;
  1716. }else{
  1717. model.setValue("/root/main/data/complain/grdlist[" + grd_complain.row + "]/checkdd1",getCurrentDate());
  1718. }
  1719. }else if(grd_complain.rowStatus(i) == 2 && model.getValue("/root/main/data/complain/grdlist[" + grd_complain.row + "]/nutflag") == "2"){ //1차완료
  1720. if(model.getValue("/root/main/data/complain/grdlist[" + grd_complain.row + "]/manage2") == ""){
  1721. messageBox("2차관리 내용이", "I004");
  1722. return;
  1723. }else{
  1724. model.setValue("/root/main/data/complain/grdlist[" + grd_complain.row + "]/checkdd2",getCurrentDate());
  1725. }
  1726. }
  1727. }
  1728. model.setValue("/root/send/searchitem/complain/list", grd_complain.getUpdateData());
  1729. // model.setValue("/root/send/searchitem/complain/nutflag",model.getValue("/root/main/data/complain/grdlist[" + grd_complain.row + "]/nutflag"));
  1730. // model.setValue("/root/send/searchitem/complain/manage1",model.getValue("/root/main/data/complain/grdlist[" + grd_complain.row + "]/manage1"));
  1731. // model.setValue("/root/send/searchitem/complain/checkdd1",model.getValue("/root/main/data/complain/grdlist[" + grd_complain.row + "]/checkdd1"));
  1732. // model.setValue("/root/send/searchitem/complain/manage2",model.getValue("/root/main/data/complain/grdlist[" + grd_complain.row + "]/manage2"));
  1733. // model.setValue("/root/send/searchitem/complain/checkdd2",model.getValue("/root/main/data/complain/grdlist[" + grd_complain.row + "]/checkdd2"));
  1734. // model.setValue("/root/send/searchitem/complain/indd",model.getValue("/root/main/data/complain/grdlist[" + grd_complain.row + "]/indd"));
  1735. // model.setValue("/root/send/searchitem/complain/prcpdd",model.getValue("/root/main/data/complain/grdlist[" + grd_complain.row + "]/prcpdd"));
  1736. // model.setValue("/root/send/searchitem/complain/dietmeal",model.getValue("/root/main/data/complain/grdlist[" + grd_complain.row + "]/dietmeal"));
  1737. if (submit("TXANC00407")) {
  1738. submit("TRANC00407");
  1739. model.refresh();
  1740. }
  1741. }
  1742. }
  1743. //집단교육 탭화면일때
  1744. else if ( btn_nonregleduc.selected ) {
  1745. //필수입력항목 체크
  1746. for ( i=1; i<grd_nonregleduc.rows; i++) {
  1747. if ( (model.getValue("/root/main/data/nonregleduc/grdlist[" + i + "]/educdd") == "") ||
  1748. (model.getValue("/root/main/data/nonregleduc/grdlist[" + i + "]/eductm") == "") ||
  1749. (model.getValue("/root/main/data/nonregleduc/grdlist[" + i + "]/educdieter") == "") ) {
  1750. messageBox("일자, 시간, 영양사 항목은", "I003");
  1751. return;
  1752. }
  1753. }
  1754. model.setValue("/root/send/data/nonregleduc/list", grd_nonregleduc.getUpdateData());
  1755. submit("TXANC00403");
  1756. }
  1757. //model.resetInstanceNode("/root/send/data");
  1758. } else { return; }
  1759. ]]>
  1760. </script>
  1761. </button>
  1762. <button id="btn_listprnt" class="btn6_letter5" disabled="true" style="left:0px; top:5px; width:92px; height:22px; ">
  1763. <caption>리스트출력</caption>
  1764. <script type="javascript" ev:event="DOMActivate">
  1765. <![CDATA[
  1766. exeReportPreview("RPANC00407", "XMLSTR");
  1767. // exeReportPreview("RPANC00407", "XMLSTR" , "" , "" , "true" , "", "", "", "", "true");
  1768. ]]>
  1769. </script>
  1770. </button>
  1771. <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:1194px; y2:0px; "/>
  1772. <button id="button5" class="btn4_letter5" style="left:974px; top:4px; width:92px; height:22px; ">
  1773. <caption>영양관리료</caption>
  1774. <script type="javascript" ev:event="DOMActivate">
  1775. <![CDATA[
  1776. if ( messageBox("영양관리료를", "Q002") == 6 ) {
  1777. //입원환자관리 탭화면일때
  1778. if ( btn_ipatmngt.selected ) {
  1779. var patflag = model.getValue("/root/send/searchitem/ipatmngt/patflag"); //치료식
  1780. if(patflag == "3"){
  1781. // var cnt = 0;
  1782. // for ( i=1; i<grd_ipatmngt.rows; i++) {
  1783. // if (model.getValue("/root/main/data/ipatmngt/grdlist[" + i + "]/prcpstatus") == "Y") {
  1784. // cnt = cnt +1
  1785. // }
  1786. // }
  1787. // if (cnt == "1"){
  1788. model.setValue("/root/send/data/ipattreatmngt/list", grd_ipatmngt.getUpdateData());
  1789. // model.copyNode( "/root/send/data/ipattreatmngt/list", "/root/main/data/ipatmngt/grdlist" );
  1790. if (submit("TXANC00408")) {
  1791. submit("TRANC00401");
  1792. }
  1793. // }else{
  1794. // messageBox("한명이상 처방 발행을 할 수", "I004");
  1795. // }
  1796. }else{
  1797. messageBox("치료식환자 조회 시", "I006");
  1798. }
  1799. }
  1800. }
  1801. ]]>
  1802. </script>
  1803. </button>
  1804. </group>
  1805. </xhtml:body>
  1806. </xhtml:html>