SMANC00160_영양검색수정.xrw 45 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  3. <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
  4. <xhtml:head>
  5. <xhtml:title>영양검색수정</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <srchrslt>
  11. <data>
  12. <check/>
  13. <h_patflag/>
  14. <h_prcpdd/>
  15. <h_cretno/>
  16. <h_prcpgenrflag/>
  17. <h_orddd/>
  18. <replyn/>
  19. <ward/>
  20. <room/>
  21. <h_wardroom/>
  22. <pid/>
  23. <hngnm/>
  24. <sex/>
  25. <age/>
  26. <h_diagcd/>
  27. <diagnm/>
  28. <orddept/>
  29. <orddrid/>
  30. <atdoct/>
  31. <dietnm/>
  32. <h_ht/>
  33. <h_wt/>
  34. <pibw/>
  35. <alb/>
  36. <tlc/>
  37. <apptchngyn/>
  38. <bdwtchngyn/>
  39. <symp/>
  40. <dietcnt/>
  41. <srchrslt/>
  42. <bfrslt/>
  43. <bfrsltdd/>
  44. <trf/>
  45. <insrslt/>
  46. <nutrmngtkind/>
  47. <execdd/>
  48. <indd/>
  49. </data>
  50. <count>
  51. <good/>
  52. <low/>
  53. <mid/>
  54. <high/>
  55. <non/>
  56. <total/>
  57. </count>
  58. </srchrslt>
  59. <pastsrchrslt>
  60. <data>
  61. <replyn/>
  62. <prcpdd/>
  63. <cretno/>
  64. <prcpgenrflag/>
  65. <orddept/>
  66. <orddrid/>
  67. <atdoct/>
  68. <dietnm/>
  69. <bfrslt/>
  70. <bfrsltdd/>
  71. <srchdd/>
  72. <patflag/>
  73. <orddd/>
  74. <indd/>
  75. <ward/>
  76. <room/>
  77. <h_wardroom/>
  78. <pid/>
  79. <hngnm/>
  80. <sex/>
  81. <age/>
  82. <diagnm/>
  83. <pibw/>
  84. <alb/>
  85. <tlc/>
  86. <apptchngyn/>
  87. <bdwtchngyn/>
  88. <symp/>
  89. <dietcnt/>
  90. <srchrslt/>
  91. <trf/>
  92. <insrslt/>
  93. <rem/>
  94. </data>
  95. <count>
  96. <good/>
  97. <low/>
  98. <mid/>
  99. <high/>
  100. <non/>
  101. <total/>
  102. </count>
  103. </pastsrchrslt>
  104. <srchstats>
  105. <data>
  106. <srchdd/>
  107. <good1/>
  108. <low1/>
  109. <mid1/>
  110. <high1/>
  111. <total1/>
  112. <good2/>
  113. <low2/>
  114. <mid2/>
  115. <high2/>
  116. <total2/>
  117. </data>
  118. </srchstats>
  119. <nutrjudgbase>
  120. <data>
  121. <cd/>
  122. <dngrcd/>
  123. <min/>
  124. <max/>
  125. </data>
  126. </nutrjudgbase>
  127. </main>
  128. <send>
  129. <searchitem>
  130. <basedd/>
  131. <patflag/>
  132. <orddept/>
  133. <ward/>
  134. <dngrflag/>
  135. <optward/>
  136. </searchitem>
  137. <pastsearchitem>
  138. <fromdd/>
  139. <todd/>
  140. <patflag/>
  141. <ward/>
  142. <dngrflag>4 3</dngrflag>
  143. </pastsearchitem>
  144. <statssearchitem>
  145. <fromdd/>
  146. <todd/>
  147. <patflag/>
  148. <orddept/>
  149. <ward/>
  150. <dngrflag/>
  151. </statssearchitem>
  152. <data>
  153. <list/>
  154. <pastlist/>
  155. </data>
  156. <popup>
  157. <flag/>
  158. <flag2/>
  159. <pid/>
  160. <hngnm/>
  161. <reqdd/>
  162. <reqpsn/>
  163. <orddrid/>
  164. <educreqcnts/>
  165. <h_cretno/>
  166. <h_orddeptcd/>
  167. <h_prcpgenrflag/>
  168. <h_orddd/>
  169. <h_formrecseq/>
  170. <execprcpuniqno/>
  171. <nutrmngtkind/>
  172. <execdd/>
  173. <srchdd/>
  174. </popup>
  175. </send>
  176. <temp>
  177. <count>
  178. <cnt/>
  179. </count>
  180. </temp>
  181. <init>
  182. <basecode>
  183. <dngr>
  184. <A0058>
  185. <cdid/>
  186. <cdnm/>
  187. </A0058>
  188. </dngr>
  189. <orddept>
  190. <dept>
  191. <deptcd/>
  192. <depthngnm/>
  193. </dept>
  194. </orddept>
  195. <ward>
  196. <dept>
  197. <deptcd/>
  198. <depthngnm/>
  199. </dept>
  200. </ward>
  201. </basecode>
  202. </init>
  203. </root>
  204. </instance>
  205. <submission id="TRZBC00101"/>
  206. <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  207. <submission id="TRANC00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchitem" resultref="/root/main/srchrslt"/>
  208. <submission id="TRANC00102" mediatype="application/x-www-form-urlencoded" method="post" resultref="/root/main/nutrjudgbase"/>
  209. <submission id="TRANC00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchitem" resultref="/root/temp"/>
  210. <submission id="TXANC00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" resultref="/root/temp"/>
  211. <submission id="TXANC00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" resultref="/root/temp"/>
  212. <submission id="TRANC00106" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/pastsearchitem" resultref="/root/main/pastsrchrslt"/>
  213. <submission id="TRANC00107" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/statssearchitem" resultref="/root/main/srchstats"/>
  214. <script type="javascript" ev:event="xforms-ready">
  215. <![CDATA[
  216. finit();
  217. grd_nutrsrch.fixedcellcheckbox(0,1) = true; //영양검색 탭화면 전체선택 체크박스 설정
  218. ]]>
  219. </script>
  220. <script type="javascript">
  221. <![CDATA[
  222. function finit() {
  223. // 화면open시 공통코드 setting
  224. //zbcfGetCodeList( new Array( "A0058", "P0149", "P0160" ), new Array( "/root/init/basecode/dngr", "/root/init/basecode/orddept", "/root/init/basecode/ward" ) );
  225. zbcfGetCodeList( new Array( "A0058" ), new Array( "/root/init/basecode/dngr" ) );
  226. zbcfGetDeptCodeList(getUserInfo("dutplceinstcd"), 'orduseyn', 'D', '/root/init/basecode/orddept');
  227. astfAddCombo("/root/init/basecode/orddept","dept","deptcd,depthngnm",",");
  228. //zbcfGetDeptCodeList(getUserInfo("dutplceinstcd"), 'orduseyn', 'W', '/root/init/basecode/ward', 'depthngnm', 'asc', new Date().getDateFormat("YYYYMMDD"), "", 'after');
  229. zsdfGetWardDeptList(getUserInfo("dutplceinstcd"), '/root/init/basecode/ward', 'depthngnm', 'asc', new Date().getDateFormat("YYYYMMDD"), 'after');
  230. // model.resetInstanceNode("/root/main/data");
  231. model.resetInstanceNode("/root/send");
  232. model.removeNodeset("/root/main/srchrslt");
  233. model.removeNodeset("/root/main/pastsrchrslt");
  234. //model.setFocus("ipt_pid");
  235. model.setValue("/root/send/searchitem/basedd", getCurrentDate());
  236. model.setValue("/root/send/pastsearchitem/fromdd", getCurrentDate());
  237. model.setValue("/root/send/pastsearchitem/todd", getCurrentDate());
  238. model.setValue("/root/send/statssearchitem/fromdd", getCurrentDate());
  239. model.setValue("/root/send/statssearchitem/todd", getCurrentDate());
  240. model.setValue("/root/send/searchitem/patflag", "F");
  241. model.setValue("/root/send/pastsearchitem/patflag", "F");
  242. model.setValue("/root/send/pastsearchitem/dngrflag", "4 3");
  243. model.setValue("/root/send/statssearchitem/patflag", "H");
  244. //2011.05.02 타파트조회함으로 인해 주석처리
  245. if(getUserInfo("dutplcecd") != "3250100000"){
  246. chk_ward.attribute("visibility")="hidden";
  247. btn_pastnutrsrch.disabled = true;
  248. btn_nutrsrchstats.disabled = true;
  249. btn_save.disabled = true;
  250. submit("TRANC00102"); //영양판정기준표 조회;
  251. }else{
  252. chk_ward.attribute("visibility")="hidden";
  253. btn_pastnutrsrch.dispatch("DOMActivate"); //영양검색결과조회 탭화면 선택
  254. btn_pastnutrsrch.selected = true;
  255. submit("TRANC00102"); //영양판정기준표 조회
  256. btn_search1.disabled = !checkAuth("R");
  257. // btn_search2.disabled = !checkAuth("R");
  258. btn_search3.disabled = !checkAuth("R");
  259. btn_save.disabled = !checkAuth("X");
  260. btn_excel1.disabled = !checkAuth("P");
  261. btn_excel2.disabled = !checkAuth("P");
  262. btn_excel3.disabled = !checkAuth("P");
  263. }
  264. }
  265. ]]>
  266. </script>
  267. </model>
  268. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  269. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  270. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  271. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  272. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  273. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  274. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  275. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  276. <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
  277. </xhtml:head>
  278. <xhtml:body guideline="1,1195;2,756;2,752;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  279. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  280. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:216px; height:15px; ">영양검색수정</caption>
  281. </group>
  282. <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  283. <switch id="swt_nutrsrchrslt" style="left:0px; top:26px; width:1194px; height:718px; ">
  284. <case id="case1">
  285. <group id="grp_sea" style="left:5px; top:10px; width:1182px; height:35px; vertical-align:top; ">
  286. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1182px; height:35px; background-color:#fffbf2; "/>
  287. <button id="btn_search1" class="btn1_letter2" style="left:1106px; top:7px; width:56px; height:22px; ">
  288. <caption>조회</caption>
  289. <script type="javascript" ev:event="DOMActivate">
  290. <![CDATA[
  291. if (chk_ward.attribute("visibility")=="visible") {
  292. chk_ward.attribute("visibility")="hidden";
  293. }
  294. grd_nutrsrch.fixedcellischeck(0,1) = false; //영양검색 탭화면 전체선택 체크박스 초기화
  295. submit("TRANC00101");
  296. //신환(F) or 재검색(I) 구분값 setting 및 PIBW, TLC 반올림
  297. var patflag = model.getValue("/root/send/searchitem/patflag");
  298. var pibw = "";
  299. var tlc = "";
  300. for ( i=1; i<grd_nutrsrch.rows-1; i++) {
  301. var irow = i + 1;
  302. model.setValue("/root/main/srchrslt/data[" + i + "]/h_patflag", patflag);
  303. pibw = model.getValue("/root/main/srchrslt/data[" + i + "]/pibw");
  304. tlc = model.getValue("/root/main/srchrslt/data[" + i + "]/tlc");
  305. if (pibw != "") {
  306. pibw = pibw.toString().getRound(-2, "HALF_UP");
  307. model.setValue("/root/main/srchrslt/data[" + i + "]/pibw", pibw);
  308. var ilen = pibw.length;
  309. if (ilen > 0){
  310. if (pibw.substr(ilen - 2, ilen - 1) == ".0"){
  311. grd_nutrsrch.cellFormat(i, grd_nutrsrch.colRef("pibw")) = "####";
  312. }else{
  313. grd_nutrsrch.cellFormat(i, grd_nutrsrch.colRef("pibw")) = "####.9";
  314. }
  315. }
  316. }
  317. if (tlc != "") {
  318. tlc = tlc.toString().getRound(-2, "HALF_UP");
  319. model.setValue("/root/main/srchrslt/data[" + i + "]/tlc", tlc);
  320. var klen = tlc.length;
  321. if (klen > 0){
  322. if (tlc.substr(klen - 2, klen - 1) == ".0"){
  323. grd_nutrsrch.cellFormat(irow, grd_nutrsrch.colRef("tlc")) = "####";
  324. }else{
  325. grd_nutrsrch.cellFormat(irow, grd_nutrsrch.colRef("tlc")) = "####.9";
  326. }
  327. }
  328. }
  329. }
  330. grd_nutrsrch.refresh();
  331. //조회조건중 병동 컬럼 clear
  332. // model.resetInstanceNode("/root/send/searchitem/ward");
  333. // model.resetInstanceNode("/root/send/searchitem/optward");
  334. // opt_ward.refresh();
  335. // chk_ward.refresh();
  336. //row status가 null이기 때문에 무조건 'insert'로 초기화한다.
  337. // for ( i=2; i<grd_nutrsrch.rows; i++) {
  338. // grd_nutrsrch.addStatus(i, "insert");
  339. // }
  340. ]]>
  341. </script>
  342. </button>
  343. <line id="line13" class="line_4" style="x1:1092px; y1:7px; x2:1092px; y2:29px; "/>
  344. <caption id="caption2" class="search_name" style="left:25px; top:9px; width:86px; height:17px; ">기준일자 :</caption>
  345. <input id="ipt_basedd" ref="/root/send/searchitem/basedd" class="input_s_essential" inputtype="date" style="left:112px; top:8px; width:93px; height:19px; "/>
  346. <button id="btn_beforedd" class="icon_pre" style="left:210px; top:10px; width:13px; height:15px; ">
  347. <caption/>
  348. <script type="javascript" ev:event="onclick">
  349. <![CDATA[
  350. var dd = model.getValue("/root/send/searchitem/basedd");
  351. dd = dd.toDate().getAddDate(-1, "D");
  352. dd = dd.getDateFormat();
  353. model.setValue("/root/send/searchitem/basedd", dd);
  354. model.refresh();
  355. ]]>
  356. </script>
  357. </button>
  358. <button id="btn_nextdd" class="icon_next" style="left:225px; top:10px; width:13px; height:15px; ">
  359. <caption/>
  360. <script type="javascript" ev:event="onclick">
  361. <![CDATA[
  362. var dd = model.getValue("/root/send/searchitem/basedd");
  363. dd = dd.toDate().getAddDate(1, "D");
  364. dd = dd.getDateFormat();
  365. model.setValue("/root/send/searchitem/basedd", dd);
  366. model.refresh();
  367. ]]>
  368. </script>
  369. </button>
  370. <caption id="caption9" class="search_name" style="left:665px; top:9px; width:73px; height:17px; ">진료과 :</caption>
  371. <select1 id="cmb_orddept1" ref="/root/send/searchitem/orddept" class="combo_search" appearance="minimal" style="left:740px; top:8px; width:100px; height:19px; ">
  372. <choices>
  373. <itemset nodeset="/root/init/basecode/orddept/dept">
  374. <label ref="depthngnm"/>
  375. <value ref="deptcd"/>
  376. </itemset>
  377. </choices>
  378. </select1>
  379. <caption id="caption14" class="search_name" style="left:875px; top:9px; width:60px; height:17px; ">병동 :</caption>
  380. <output id="opt_ward" ref="/root/send/searchitem/optward" style="left:935px; top:8px; width:140px; height:19px; background-color:#ffffff; border-color:#968b7b; border-style:solid; ">
  381. <script type="javascript" ev:event="onclick">
  382. <![CDATA[
  383. if (chk_ward.attribute("visibility")=="hidden") {
  384. chk_ward.attribute("visibility")="visible";
  385. } else if (chk_ward.attribute("visibility")=="visible") {
  386. chk_ward.attribute("visibility")="hidden";
  387. }
  388. ]]>
  389. </script>
  390. </output>
  391. <select1 id="rdo_patflag1" ref="/root/send/searchitem/patflag" appearance="full" cellspacing="6" cols="2" overflow="visible" style="left:325px; top:9px; width:115px; height:20px; border-style:none; ">
  392. <choices>
  393. <item>
  394. <label>재검색</label>
  395. <value>I</value>
  396. </item>
  397. <item>
  398. <label>신환</label>
  399. <value>F</value>
  400. </item>
  401. </choices>
  402. <script type="javascript" ev:event="onclick">
  403. <![CDATA[
  404. model.resetInstanceNode("/root/send/searchitem/dngrflag");
  405. cmb_dngrflag1.refresh();
  406. ]]>
  407. </script>
  408. </select1>
  409. <caption id="caption4" class="search_name" style="left:265px; top:9px; width:73px; height:17px; ">구분 :</caption>
  410. <caption id="caption1" class="search_name" style="left:470px; top:9px; width:73px; height:17px; ">위험군 :</caption>
  411. <select1 id="cmb_dngrflag1" ref="/root/send/searchitem/dngrflag" class="combo_search" appearance="minimal" style="left:543px; top:8px; width:82px; height:19px; ">
  412. <choices>
  413. <itemset nodeset="/root/init/basecode/dngr/A0058">
  414. <label ref="cdnm"/>
  415. <value ref="cdid"/>
  416. </itemset>
  417. </choices>
  418. </select1>
  419. </group>
  420. <button id="btn_excel1" class="btn2_letter2" style="left:1146px; top:50px; width:42px; height:19px; ">
  421. <caption>엑셀</caption>
  422. <script type="javascript" ev:event="DOMActivate">
  423. <![CDATA[
  424. var filename = window.fileDialog("save", ",", false, "NutrSrchRslt_list", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  425. if (filename != "") {
  426. grd_nutrsrch.saveExcel(filename, "grd_nutrsrch", true, false, "", "", "");
  427. }
  428. ]]>
  429. </script>
  430. </button>
  431. <button id="btn_nutrjudgbase" class="btn2_letter6" style="left:990px; top:50px; width:86px; height:19px; ">
  432. <caption>영양판정기준</caption>
  433. <script type="javascript" ev:event="onclick">
  434. <![CDATA[
  435. modal("SPANC00200", 0,100,150, "SPANC00200", "/root/main/nutrjudgbase", "/root/main/receivedata");
  436. ]]>
  437. </script>
  438. </button>
  439. <button id="btn_insbase" class="btn2_letter4" style="left:1079px; top:50px; width:64px; height:19px; ">
  440. <caption>INS기준</caption>
  441. <script type="javascript" ev:event="onclick">
  442. <![CDATA[
  443. //modal("SPANC00300", 0,100,150, "SPANC00300", "/root/main/nutrjudgbase/data", "/root/main/receivedata");
  444. window.load("SPANC00300_INS기준표.xrw","modal","code", "left:600px; top:50px; width:550px; height:380px;min:hidden;max:hidden;resize:true;");
  445. ]]>
  446. </script>
  447. </button>
  448. <line id="line38" class="line_1" style="x1:5px; y1:74px; x2:1188px; y2:74px; "/>
  449. <datagrid id="grd_nutrsrch" nodeset="/root/main/srchrslt/data" caption="^h_신환구분^h_처방일자^h_생성번호^h_처방상태^h_입원일자^회신여부^병동^병실^h_병동/병실^등록번호^환자명^성별^나이^h_진단코드^진단명^진료과^전문의ID^전문의^식사명^h_키^h_몸무게^PIBW^Alb^TLC^식욕^체중감소^연하곤란^식이처방^검색결과^이전결과^이전결과판정일^TRF^INS결과|^h_신환구분^h_처방일자^h_생성번호^h_처방상태^h_입원일자^회신여부^병동^병실^h_병동/병실^등록번호^환자명^성별^나이^h_진단코드^진단명^진료과^전문의ID^전문의^식사명^h_키^h_몸무게^(%)^(g/dl)^(cell/㎣)^식욕^체중감소^연하곤란^식이처방^검색결과^이전결과^이전결과판정일^(mg/dl)^INS결과" colsep="^" colwidth="20, 10, 10, 10, 10, 10, 55, 100, 50, 10, 58, 70, 33, 33, 10, 190, 80, 10, 60, 140, 10, 10, 50, 39, 61,60,60,60,60, 62, 62, 66, 53, 57" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:5px; top:80px; width:1182px; height:600px; ">
  450. <col checkvalue="Y,N" ref="check" type="checkbox"/>
  451. <col ref="h_patflag" visibility="hidden"/>
  452. <col ref="h_prcpdd" visibility="hidden"/>
  453. <col ref="h_cretno" visibility="hidden"/>
  454. <col ref="h_prcpgenrflag" visibility="hidden"/>
  455. <col ref="h_orddd" visibility="hidden"/>
  456. <col ref="replyn"/>
  457. <col disabled="true" ref="ward" type="combo">
  458. <choices>
  459. <itemset nodeset="/root/init/basecode/ward/dept">
  460. <label ref="depthngnm"/>
  461. <value ref="deptcd"/>
  462. </itemset>
  463. </choices>
  464. </col>
  465. <col ref="room"/>
  466. <col ref="h_wardroom" visibility="hidden"/>
  467. <col ref="pid"/>
  468. <col ref="hngnm"/>
  469. <col ref="sex"/>
  470. <col ref="age" style="left:358px; top:20px; width:36px; height:20px; "/>
  471. <col ref="h_diagcd" visibility="hidden"/>
  472. <col ref="diagnm"/>
  473. <col disabled="true" ref="orddept" type="combo">
  474. <choices>
  475. <itemset nodeset="/root/init/basecode/orddept/dept">
  476. <label ref="depthngnm"/>
  477. <value ref="deptcd"/>
  478. </itemset>
  479. </choices>
  480. </col>
  481. <col ref="orddrid" visibility="hidden"/>
  482. <col ref="atdoct"/>
  483. <col ref="dietnm"/>
  484. <col ref="h_ht" visibility="hidden"/>
  485. <col ref="h_wt" visibility="hidden"/>
  486. <col ref="pibw" style="text-align:right; "/>
  487. <col ref="alb" style="text-align:right; "/>
  488. <col ref="tlc" format="####.9" style="left:1118px; top:43px; width:61px; height:23px; text-align:right; "/>
  489. <col ref="apptchngyn" type="combo" style="text-align:center; ">
  490. <choices>
  491. <item>
  492. <label>좋음</label>
  493. <value>1</value>
  494. </item>
  495. <item>
  496. <label>보통</label>
  497. <value>2</value>
  498. </item>
  499. <item>
  500. <label>나쁨</label>
  501. <value>3</value>
  502. </item>
  503. <item>
  504. <label>매우나쁨</label>
  505. <value>4</value>
  506. </item>
  507. </choices>
  508. </col>
  509. <col ref="bdwtchngyn" type="combo" style="text-align:center; ">
  510. <choices>
  511. <item>
  512. <label>무</label>
  513. <value>1</value>
  514. </item>
  515. <item>
  516. <label>유</label>
  517. <value>2</value>
  518. </item>
  519. </choices>
  520. </col>
  521. <col ref="symp" type="combo" style="text-align:center; ">
  522. <choices>
  523. <item>
  524. <label>없음</label>
  525. <value>N</value>
  526. </item>
  527. <item>
  528. <label>있음</label>
  529. <value>Y</value>
  530. </item>
  531. </choices>
  532. </col>
  533. <col ref="dietcnt" style="text-align:center; "/>
  534. <col ref="srchrslt" type="combo">
  535. <choices>
  536. <itemset nodeset="/root/init/basecode/dngr/A0058">
  537. <label ref="cdnm"/>
  538. <value ref="cdid"/>
  539. </itemset>
  540. </choices>
  541. </col>
  542. <col disabled="true" ref="bfrslt" type="combo">
  543. <choices>
  544. <itemset nodeset="/root/init/basecode/dngr/A0058">
  545. <label ref="cdnm"/>
  546. <value ref="cdid"/>
  547. </itemset>
  548. </choices>
  549. </col>
  550. <col ref="bfrsltdd" format="yyyy-mm-dd"/>
  551. <col ref="trf" style="text-align:right; "/>
  552. <col ref="insrslt" style="text-align:center; "/>
  553. <script type="javascript" ev:event="ondblclick">
  554. <![CDATA[
  555. // if ( grd_nutrsrch.isCell(event.target) && grd_nutrsrch.row >= grd_nutrsrch.fixedRows ) {
  556. // // 'R'은 영양검색결과조회 화면임을 뜻하는 구분자임.
  557. // model.setValue("/root/send/popup/flag", "R");
  558. // model.setValue("/root/send/popup/flag2", model.getValue("/root/main/srchrslt/data["+(grd_nutrsrch.row-1)+"]/h_patflag"));
  559. // model.setValue("/root/send/popup/pid", model.getValue("/root/main/srchrslt/data["+(grd_nutrsrch.row-1)+"]/pid"));
  560. // model.setValue("/root/send/popup/hngnm", model.getValue("/root/main/srchrslt/data["+(grd_nutrsrch.row-1)+"]/hngnm"));
  561. // model.setValue("/root/send/popup/orddrid", model.getValue("/root/main/srchrslt/data["+(grd_nutrsrch.row-1)+"]/orddrid"));
  562. // model.setValue("/root/send/popup/reqpsn", model.getValue("/root/main/srchrslt/data["+(grd_nutrsrch.row-1)+"]/atdoct"));
  563. // //model.setValue("/root/send/popup/execprcpuniqno", model.getValue("/root/main/srchrslt/data["+(grd_nutrsrch.row-1)+"]/h_execprcpuniqno"));
  564. // model.setValue("/root/send/popup/h_cretno", model.getValue("/root/main/srchrslt/data["+(grd_nutrsrch.row-1)+"]/h_cretno"));
  565. // model.setValue("/root/send/popup/h_orddeptcd", model.getValue("/root/main/srchrslt/data["+(grd_nutrsrch.row-1)+"]/orddept"));
  566. // model.setValue("/root/send/popup/h_prcpgenrflag", model.getValue("/root/main/srchrslt/data["+(grd_nutrsrch.row-1)+"]/h_prcpgenrflag"));
  567. // model.setValue("/root/send/popup/h_orddd", model.getValue("/root/main/srchrslt/data["+(grd_nutrsrch.row-1)+"]/indd"));
  568. // model.setValue("/root/send/popup/srchdd", getCurrentDate());
  569. // if ( model.getValue("/root/main/srchrslt/data["+(grd_nutrsrch.row-1)+"]/bfrsltdd") == "" ) {
  570. // model.setValue("/root/send/popup/srchdd", getCurrentDate());
  571. // } else {
  572. // model.setValue("/root/send/popup/srchdd", model.getValue("/root/main/srchrslt/data["+(grd_nutrsrch.row-1)+"]/bfrsltdd"));
  573. // }
  574. //
  575. // open("SMANC00300", "","","", "SMANC00300", "/root/send/popup", "/root/main/receivedata");
  576. // }
  577. ]]>
  578. </script>
  579. <script type="javascript" ev:event="onaftersort">
  580. <![CDATA[
  581. grd_nutrsrch.gridToInstance();
  582. ]]>
  583. </script>
  584. </datagrid>
  585. <line id="line4" class="line_2" style="x1:5px; y1:685px; x2:1187px; y2:685px; "/>
  586. <output id="opt_srchrslt1" ref="/root/main/srchrslt/count/good" class="output_fix" style="left:119px; top:689px; width:126px; height:19px; text-align:center; "/>
  587. <output id="opt_srchrslt2" ref="/root/main/srchrslt/count/low" class="output_fix" style="left:310px; top:689px; width:125px; height:19px; text-align:center; "/>
  588. <output id="opt_srchrslt3" ref="/root/main/srchrslt/count/mid" class="output_fix" style="left:502px; top:689px; width:125px; height:19px; text-align:center; "/>
  589. <caption id="caption7" class="cell_1" style="left:5px; top:687px; width:61px; height:23px; vertical-align:middle; ">검색결과</caption>
  590. <caption id="caption8" class="cell_1" style="left:247px; top:687px; width:60px; height:23px; vertical-align:middle; ">저위험도</caption>
  591. <caption id="caption10" class="cell_1" style="left:68px; top:687px; width:48px; height:23px; text-align:center; vertical-align:middle; ">양호</caption>
  592. <caption id="caption11" class="cell_1" style="left:438px; top:687px; width:61px; height:23px; vertical-align:middle; ">중위험도</caption>
  593. <caption id="caption12" class="cell_1" style="left:630px; top:687px; width:61px; height:23px; vertical-align:middle; ">고위험도</caption>
  594. <output id="opt_srchrslt4" ref="/root/main/srchrslt/count/high" class="output_fix" style="left:693px; top:689px; width:120px; height:19px; text-align:center; "/>
  595. <output id="opt_srchrsltsum1" ref="/root/main/srchrslt/count/total" class="output_fix" style="left:1062px; top:689px; width:125px; height:19px; text-align:center; "/>
  596. <caption id="caption3" class="cell_1" style="left:1000px; top:687px; width:61px; height:23px; text-align:center; vertical-align:middle; ">계</caption>
  597. <line id="line5" class="line_3" style="x1:5px; y1:710px; x2:1187px; y2:710px; "/>
  598. <caption id="caption5" class="cell_1" style="left:815px; top:687px; width:61px; height:23px; vertical-align:middle; ">판정불가</caption>
  599. <output id="opt_srchrslt5" ref="/root/main/srchrslt/count/non" class="output_fix" style="left:878px; top:689px; width:120px; height:19px; text-align:center; "/>
  600. </case>
  601. <case id="case2" selected="true">
  602. <group id="group1" style="left:5px; top:10px; width:1182px; height:35px; vertical-align:top; ">
  603. <shape id="roundrect2" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1182px; height:35px; background-color:#fffbf2; "/>
  604. <button id="btn_search2" class="btn1_letter2" style="left:1106px; top:7px; width:56px; height:22px; ">
  605. <caption>조회</caption>
  606. <script type="javascript" ev:event="DOMActivate">
  607. <![CDATA[
  608. var fromdd = model.getValue("/root/send/pastsearchitem/fromdd");
  609. var todd = model.getValue("/root/send/pastsearchitem/todd");
  610. //var ward = model.getValue("/root/send/searchitem/ward");
  611. if ( getDateInterval(fromdd, todd) < 0 ) {
  612. messageBox("검색 시작일은 종료일보다 클 수", "I004");
  613. return;
  614. } else {
  615. submit("TRANC00106");
  616. }
  617. ]]>
  618. </script>
  619. </button>
  620. <line id="line1" class="line_4" style="x1:1092px; y1:7px; x2:1092px; y2:29px; "/>
  621. <caption id="caption13" class="search_name" style="left:0px; top:9px; width:86px; height:17px; ">검색일자 :</caption>
  622. <input id="ipt_fromdd" ref="/root/send/pastsearchitem/fromdd" class="input_s_essential" inputtype="date" style="left:87px; top:8px; width:93px; height:19px; "/>
  623. <caption id="caption16" class="search_name" style="left:875px; top:9px; width:60px; height:17px; ">병동 :</caption>
  624. <select1 id="cmb_ward2" ref="/root/send/pastsearchitem/ward" class="combo_s_essential" appearance="minimal" style="left:935px; top:8px; width:150px; height:19px; ">
  625. <choices>
  626. <itemset nodeset="/root/init/basecode/ward/dept">
  627. <label ref="depthngnm"/>
  628. <value ref="deptcd"/>
  629. </itemset>
  630. </choices>
  631. </select1>
  632. <select1 id="rdo_patflag2" ref="/root/send/pastsearchitem/patflag" appearance="full" cellspacing="6" cols="3" overflow="visible" style="left:365px; top:9px; width:160px; height:20px; border-style:none; ">
  633. <choices>
  634. <item>
  635. <label>전체</label>
  636. <value>H</value>
  637. </item>
  638. <item>
  639. <label>재검색</label>
  640. <value>I</value>
  641. </item>
  642. <item>
  643. <label>신환</label>
  644. <value>F</value>
  645. </item>
  646. </choices>
  647. </select1>
  648. <caption id="caption17" class="search_name" style="left:305px; top:9px; width:73px; height:17px; ">구분 :</caption>
  649. <caption id="caption18" class="search_no_b" style="left:185px; top:10px; width:12px; height:17px; ">~</caption>
  650. <input id="ipt_todd" ref="/root/send/pastsearchitem/todd" class="input_s_essential" inputtype="date" style="left:200px; top:8px; width:93px; height:19px; "/>
  651. <caption id="caption19" class="search_name" style="left:540px; top:9px; width:73px; height:17px; ">위험군 :</caption>
  652. <select id="checkbox1" ref="/root/send/pastsearchitem/dngrflag" overflow="visible" appearance="full" cols="5" style="left:614px; top:10px; width:261px; height:20px; border-style:none; ">
  653. <choices>
  654. <item>
  655. <label>고위험군</label>
  656. <value>4</value>
  657. </item>
  658. <item>
  659. <label>중위험군</label>
  660. <value>3</value>
  661. </item>
  662. <item>
  663. <label>저위험군</label>
  664. <value>2</value>
  665. </item>
  666. <item>
  667. <label>양호군</label>
  668. <value>1</value>
  669. </item>
  670. </choices>
  671. </select>
  672. </group>
  673. <button id="btn_excel2" class="btn2_letter2" style="left:1146px; top:50px; width:42px; height:19px; ">
  674. <caption>엑셀</caption>
  675. <script type="javascript" ev:event="DOMActivate">
  676. <![CDATA[
  677. var filename = window.fileDialog("save", ",", false, "PastNutrSrchRslt_list", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  678. if (filename != "") {
  679. grd_pastnutrsrch.saveExcel(filename, "grd_pastnutrsrch", true, false, "", "", "");
  680. }
  681. ]]>
  682. </script>
  683. </button>
  684. <line id="line2" class="line_1" style="x1:5px; y1:74px; x2:1188px; y2:74px; "/>
  685. <datagrid id="grd_pastnutrsrch" nodeset="/root/main/pastsrchrslt/data" caption="회신여부^검색일자^신환구분^입원일자^병동^병실^등록번호^환자명^성별^나이^진단명^진료과^전문의^담당의^식사명^PIBW^Alb^TLC^식욕^체중감소^연하곤란^식이처방^검색결과^이전결과^이전결과판정일^TRF^INS결과^비고|회신여부^검색일자^신환구분^입원일자^병동^병실^등록번호^환자명^성별^나이^진단명^진료과^전문의^담당의^식사명^(%)^(g/dl)^(cell/㎣)^식욕^체중감소^연하곤란^식이처방^검색결과^이전결과^이전결과판정일^(mg/dl)^INS결과^비고" colsep="^" colwidth="55, 70, 55, 70, 100, 50, 75, 70, 32, 32, 190, 90, 70, 70, 170, 45, 45, 54, 60, 60, 60, 60, 60, 60, 68, 55, 60, 120" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:5px; top:80px; width:1182px; height:600px; ">
  686. <col ref="replyn" style="text-align:center; "/>
  687. <col ref="srchdd" format="yyyy-mm-dd" style="text-align:center; "/>
  688. <col disabled="true" ref="patflag" type="combo" style="text-align:center; ">
  689. <choices>
  690. <item>
  691. <label>재검색</label>
  692. <value>I</value>
  693. </item>
  694. <item>
  695. <label>신환</label>
  696. <value>F</value>
  697. </item>
  698. </choices>
  699. </col>
  700. <col ref="orddd" format="yyyy-mm-dd" style="text-align:center; "/>
  701. <col disabled="true" ref="ward" type="combo" style="text-align:center; ">
  702. <choices>
  703. <itemset nodeset="/root/init/basecode/ward/dept">
  704. <label ref="depthngnm"/>
  705. <value ref="deptcd"/>
  706. </itemset>
  707. </choices>
  708. </col>
  709. <col ref="room" style="text-align:center; "/>
  710. <col ref="pid" style="text-align:center; "/>
  711. <col ref="hngnm" style="text-align:center; "/>
  712. <col ref="sex" style="text-align:center; "/>
  713. <col ref="age" style="left:358px; top:20px; width:36px; height:20px; text-align:center; "/>
  714. <col ref="diagnm" style="text-align:center; "/>
  715. <col disabled="true" ref="orddept" type="combo" style="text-align:center; ">
  716. <choices>
  717. <itemset nodeset="/root/init/basecode/orddept/dept">
  718. <label ref="depthngnm"/>
  719. <value ref="deptcd"/>
  720. </itemset>
  721. </choices>
  722. </col>
  723. <col ref="orddrnm" style="text-align:center; "/>
  724. <col ref="atdoct" style="text-align:center; "/>
  725. <col ref="dietnm" style="text-align:center; "/>
  726. <col ref="pibw" type="input" style="text-align:center; "/>
  727. <col ref="alb" type="input" style="text-align:center; "/>
  728. <col ref="tlc" type="input" style="text-align:center; "/>
  729. <col ref="apptchngyn" type="combo" style="text-align:center; ">
  730. <choices>
  731. <item>
  732. <label>좋음</label>
  733. <value>1</value>
  734. </item>
  735. <item>
  736. <label>보통</label>
  737. <value>2</value>
  738. </item>
  739. <item>
  740. <label>나쁨</label>
  741. <value>3</value>
  742. </item>
  743. <item>
  744. <label>매우나쁨</label>
  745. <value>4</value>
  746. </item>
  747. </choices>
  748. </col>
  749. <col ref="bdwtchngyn" type="combo" style="text-align:center; ">
  750. <choices>
  751. <item>
  752. <label>무</label>
  753. <value>1</value>
  754. </item>
  755. <item>
  756. <label>유</label>
  757. <value>2</value>
  758. </item>
  759. </choices>
  760. </col>
  761. <col ref="symp" type="combo" style="text-align:center; ">
  762. <choices>
  763. <item>
  764. <label>없음</label>
  765. <value>N</value>
  766. </item>
  767. <item>
  768. <label>있음</label>
  769. <value>Y</value>
  770. </item>
  771. </choices>
  772. </col>
  773. <col ref="dietcnt" style="text-align:center; "/>
  774. <col ref="srchrslt" type="combo" style="text-align:center; ">
  775. <choices>
  776. <itemset nodeset="/root/init/basecode/dngr/A0058">
  777. <label ref="cdnm"/>
  778. <value ref="cdid"/>
  779. </itemset>
  780. </choices>
  781. </col>
  782. <col disabled="true" ref="bfrslt" type="combo">
  783. <choices>
  784. <itemset nodeset="/root/init/basecode/dngr/A0058" style="text-align:center;">
  785. <label ref="cdnm"/>
  786. <value ref="cdid"/>
  787. </itemset>
  788. </choices>
  789. </col>
  790. <col ref="bfrsltdd" format="yyyy-mm-dd" style="text-align:center; "/>
  791. <col ref="trf" style="text-align:center; "/>
  792. <col ref="insrslt" style="text-align:center; "/>
  793. <col ref="rem" type="input" style="text-align:center; "/>
  794. </datagrid>
  795. <line id="line3" class="line_2" style="x1:5px; y1:685px; x2:1187px; y2:685px; "/>
  796. <output id="opt_srchrslt6" ref="/root/main/pastsrchrslt/count/good" class="output_fix" style="left:118px; top:689px; width:125px; height:19px; text-align:center; "/>
  797. <output id="opt_srchrslt7" ref="/root/main/pastsrchrslt/count/low" class="output_fix" style="left:308px; top:689px; width:125px; height:19px; text-align:center; "/>
  798. <output id="opt_srchrslt8" ref="/root/main/pastsrchrslt/count/mid" class="output_fix" style="left:499px; top:689px; width:125px; height:19px; text-align:center; "/>
  799. <caption id="caption20" class="cell_1" style="left:5px; top:687px; width:61px; height:23px; vertical-align:middle; ">검색결과</caption>
  800. <caption id="caption21" class="cell_1" style="left:246px; top:687px; width:60px; height:23px; vertical-align:middle; ">저위험도</caption>
  801. <caption id="caption22" class="cell_1" style="left:68px; top:687px; width:48px; height:23px; text-align:center; vertical-align:middle; ">양호</caption>
  802. <caption id="caption23" class="cell_1" style="left:436px; top:687px; width:61px; height:23px; vertical-align:middle; ">중위험도</caption>
  803. <caption id="caption24" class="cell_1" style="left:627px; top:687px; width:61px; height:23px; vertical-align:middle; ">고위험도</caption>
  804. <output id="opt_srchrslt9" ref="/root/main/pastsrchrslt/count/high" class="output_fix" style="left:690px; top:689px; width:125px; height:19px; text-align:center; "/>
  805. <output id="opt_srchrsltsum2" ref="/root/main/pastsrchrslt/count/total" class="output_fix" style="left:1070px; top:689px; width:117px; height:19px; text-align:center; "/>
  806. <caption id="caption25" class="cell_1" style="left:1008px; top:687px; width:61px; height:23px; text-align:center; vertical-align:middle; ">계</caption>
  807. <line id="line6" class="line_3" style="x1:5px; y1:710px; x2:1187px; y2:710px; "/>
  808. <output id="opt_srchrslt10" ref="/root/main/pastsrchrslt/count/non" class="output_fix" style="left:880px; top:689px; width:125px; height:19px; text-align:center; "/>
  809. <caption id="caption15" class="cell_1" style="left:817px; top:687px; width:61px; height:23px; vertical-align:middle; ">판정불가</caption>
  810. </case>
  811. <case id="case3">
  812. <group id="group2" style="left:5px; top:10px; width:1182px; height:35px; vertical-align:top; ">
  813. <shape id="roundrect3" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1182px; height:35px; background-color:#fffbf2; "/>
  814. <button id="btn_search3" class="btn1_letter2" style="left:1106px; top:7px; width:56px; height:22px; ">
  815. <caption>조회</caption>
  816. <script type="javascript" ev:event="DOMActivate">
  817. <![CDATA[
  818. var fromdd = model.getValue("/root/send/statssearchitem/fromdd");
  819. var todd = model.getValue("/root/send/statssearchitem/todd");
  820. //var ward = model.getValue("/root/send/searchitem/ward");
  821. if ( getDateInterval(fromdd, todd) < 0 ) {
  822. messageBox("검색 시작일은 종료일보다 클 수", "I004");
  823. return;
  824. } else {
  825. if (submit("TRANC00107")) {
  826. //조회후 그리드 하단에 합계 구하기
  827. //grd_nutrsrchstats.subtotal("clear", -1, 4, "", "", "", "");
  828. grd_nutrsrchstats.subtotalPosition = "below";
  829. for (var i = 2; i <= 11; i ++){
  830. grd_nutrsrchstats.subtotal("sum", -1, i, "#,###", "", 1, "합 계 ");
  831. }
  832. grd_nutrsrchstats.refresh();
  833. }
  834. }
  835. ]]>
  836. </script>
  837. </button>
  838. <line id="line7" class="line_4" style="x1:1092px; y1:7px; x2:1092px; y2:29px; "/>
  839. <caption id="caption26" class="search_name" style="left:10px; top:9px; width:86px; height:17px; ">검색일자 :</caption>
  840. <input id="ipt_fromdd3" ref="/root/send/statssearchitem/fromdd" class="input_s_essential" inputtype="date" style="left:97px; top:8px; width:93px; height:19px; "/>
  841. <caption id="caption27" class="search_name" style="left:720px; top:9px; width:73px; height:17px; ">진료과 :</caption>
  842. <select1 id="cmb_orddept3" ref="/root/send/statssearchitem/orddept" class="combo_search" appearance="minimal" style="left:795px; top:8px; width:95px; height:19px; ">
  843. <choices>
  844. <itemset nodeset="/root/init/basecode/orddept/dept">
  845. <label ref="depthngnm"/>
  846. <value ref="deptcd"/>
  847. </itemset>
  848. </choices>
  849. </select1>
  850. <caption id="caption28" class="search_name" style="left:910px; top:9px; width:60px; height:17px; ">병동 :</caption>
  851. <select1 id="cmb_ward3" ref="/root/send/statssearchitem/ward" class="combo_s_essential" appearance="minimal" style="left:970px; top:8px; width:105px; height:19px; ">
  852. <choices>
  853. <itemset nodeset="/root/init/basecode/ward/dept">
  854. <label ref="depthngnm"/>
  855. <value ref="deptcd"/>
  856. </itemset>
  857. </choices>
  858. </select1>
  859. <select1 id="rdo_patflag3" ref="/root/send/statssearchitem/patflag" appearance="full" cellspacing="4" cols="3" overflow="visible" style="left:380px; top:9px; width:160px; height:20px; border-style:none; ">
  860. <choices>
  861. <item>
  862. <label>전체</label>
  863. <value>H</value>
  864. </item>
  865. <item>
  866. <label>재검색</label>
  867. <value>I</value>
  868. </item>
  869. <item>
  870. <label>신환</label>
  871. <value>F</value>
  872. </item>
  873. </choices>
  874. </select1>
  875. <caption id="caption29" class="search_name" style="left:320px; top:9px; width:73px; height:17px; ">구분 :</caption>
  876. <caption id="caption30" class="search_no_b" style="left:195px; top:10px; width:12px; height:17px; ">~</caption>
  877. <input id="ipt_todd3" ref="/root/send/statssearchitem/todd" class="input_s_essential" inputtype="date" style="left:210px; top:8px; width:93px; height:19px; "/>
  878. <caption id="caption31" class="search_name" style="left:550px; top:9px; width:73px; height:17px; ">위험군 :</caption>
  879. <select1 id="cmb_dngrflag3" ref="/root/send/statssearchitem/dngrflag" class="combo_search" appearance="minimal" style="left:623px; top:8px; width:75px; height:19px; ">
  880. <choices>
  881. <itemset nodeset="/root/init/basecode/dngr/A0058">
  882. <label ref="cdnm"/>
  883. <value ref="cdid"/>
  884. </itemset>
  885. </choices>
  886. </select1>
  887. </group>
  888. <button id="btn_excel3" class="btn2_letter2" style="left:1146px; top:50px; width:42px; height:19px; ">
  889. <caption>엑셀</caption>
  890. <script type="javascript" ev:event="DOMActivate">
  891. <![CDATA[
  892. var filename = window.fileDialog("save", ",", false, "NutrSrchRsltStats_list", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  893. if (filename != "") {
  894. grd_nutrsrchstats.saveExcel(filename, "grd_nutrsrchstats", true, false, "", "", "");
  895. }
  896. ]]>
  897. </script>
  898. </button>
  899. <line id="line8" class="line_1" style="x1:5px; y1:74px; x2:1188px; y2:74px; "/>
  900. <datagrid id="grd_nutrsrchstats" nodeset="/root/main/srchstats/data" caption="검색일자^신환^신환^신환^신환^신환^재검색^재검색^재검색^재검색^재검색|검색일자^양호^저위험도^중위헙도^고위험도^합계^양호^저위험도^중위험도^고위험도^합계" colsep="^" colwidth="100, 65, 65, 67, 72, 88, 65, 65, 76, 71, 77" dataheight="25" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:5px; top:80px; width:1182px; height:629px; text-align:center; ">
  901. <col ref="srchdd" format="yyyy-mm-dd"/>
  902. <col ref="good1"/>
  903. <col ref="low1"/>
  904. <col ref="mid1"/>
  905. <col ref="high1"/>
  906. <col ref="total1"/>
  907. <col ref="good2"/>
  908. <col ref="low2"/>
  909. <col ref="mid2"/>
  910. <col ref="high2"/>
  911. <col ref="total2"/>
  912. </datagrid>
  913. </case>
  914. </switch>
  915. <button id="btn_nutrsrch" class="btn_sw" group="tab" style="left:0px; top:5px; width:89px; height:22px; ">
  916. <caption>영양검색</caption>
  917. <script type="javascript" ev:event="DOMActivate">
  918. <![CDATA[
  919. model.toggle("case1");
  920. //btn_save.visible = true;
  921. btn_save.disabled = false;
  922. ]]>
  923. </script>
  924. </button>
  925. <button id="btn_pastnutrsrch" class="btn_sw" group="tab" selected="true" style="left:88px; top:5px; width:125px; height:22px; ">
  926. <caption>영양검색결과조회</caption>
  927. <script type="javascript" ev:event="DOMActivate">
  928. <![CDATA[
  929. if (chk_ward.attribute("visibility")=="visible") {
  930. chk_ward.attribute("visibility")="hidden";
  931. }
  932. model.toggle("case2");
  933. btn_save.disabled = false;
  934. ]]>
  935. </script>
  936. </button>
  937. <button id="btn_nutrsrchstats" class="btn_sw" disabled="true" visibility="hidden" group="tab" selected="false" style="left:212px; top:5px; width:95px; height:22px; ">
  938. <caption>영양검색통계</caption>
  939. <script type="javascript" ev:event="DOMActivate">
  940. <![CDATA[
  941. if (chk_ward.attribute("visibility")=="visible") {
  942. chk_ward.attribute("visibility")="hidden";
  943. }
  944. model.toggle("case3");
  945. btn_save.disabled = true;
  946. ]]>
  947. </script>
  948. </button>
  949. </group>
  950. <group id="grp_btn" style="left:0px; top:757px; width:1195px; height:27px; ">
  951. <button id="btn_prnt" class="btn6_letter2" visibility="hidden" style="left:0px; top:5px; width:56px; height:22px; ">
  952. <caption>출력</caption>
  953. </button>
  954. <button id="btn_reset" class="btn4_letter3" style="left:1067px; top:5px; width:68px; height:22px; ">
  955. <caption>초기화</caption>
  956. <script type="javascript" ev:event="DOMActivate">
  957. <![CDATA[
  958. finit();
  959. ]]>
  960. </script>
  961. </button>
  962. <button id="btn_save" class="btn4_letter2" style="left:1136px; top:5px; width:56px; height:22px; ">
  963. <caption>저장</caption>
  964. <script type="javascript" ev:event="DOMActivate">
  965. <![CDATA[
  966. //영양검색 탭화면 일때
  967. if ( btn_nutrsrch.selected ) {
  968. messageBox("영양검색내용은 저장할 수", "I004");
  969. //저장할 데이터를 한건이라도 check했는지 체크
  970. // var nodeList = instance1.selectNodes("/root/main/srchrslt/data[check='Y']");
  971. // var rCSV = getNodeListCSV(nodeList);
  972. // if ( rCSV == null ) {
  973. // messageBox("저장할 데이터를", "C002");
  974. // return;
  975. // }
  976. //
  977. // if ( messageBox("체크한 데이터를", "Q002") == 6 ) {
  978. // if (btn_nutrsrch.selected) {
  979. // model.setValue("/root/send/data/list", rCSV);
  980. // if (submit("TXANC00101")) {
  981. // btn_search1.dispatch("DOMActivate");
  982. // model.resetInstanceNode("/root/send/data/list");
  983. // }
  984. // }
  985. // }
  986. // } else { return; }
  987. }
  988. //과거영양검색조회 탭화면 일때
  989. else if ( btn_pastnutrsrch.selected ) {
  990. if ( getGridUpdateData(grd_pastnutrsrch) == "" ) {
  991. messageBox("입력 또는 수정한 데이터가", "I004");
  992. } else {
  993. if ( messageBox("", "Q002") == 6 ) {
  994. model.setValue("/root/send/data/pastlist", grd_pastnutrsrch.getUpdateData());
  995. if (submit("TXANC00102")) {
  996. btn_search2.dispatch("DOMActivate");
  997. }
  998. } else { return; }
  999. }
  1000. }
  1001. ]]>
  1002. </script>
  1003. </button>
  1004. <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:1194px; y2:0px; "/>
  1005. </group>
  1006. <select id="chk_ward" ref="/root/send/searchitem/ward" class="checkbox_search" overflow="visible" appearance="full" style="left:950px; top:78px; width:140px; height:15px; background-color:#ffffff; ">
  1007. <choices>
  1008. <itemset nodeset="/root/init/basecode/ward/dept">
  1009. <label ref="depthngnm"/>
  1010. <value ref="deptcd"/>
  1011. </itemset>
  1012. </choices>
  1013. <script type="javascript" ev:event="onclick">
  1014. <![CDATA[
  1015. model.setValue("/root/send/searchitem/optward", chk_ward.label);
  1016. opt_ward.refresh();
  1017. ]]>
  1018. </script>
  1019. </select>
  1020. </xhtml:body>
  1021. </xhtml:html>