SMANC00100_영양검색결과조회.xrw 49 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095
  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. <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. //2011.05.02 타파트조회함으로 인해 주석처리
  218. // btn_search1.disabled = !checkAuth("R");
  219. // btn_search2.disabled = !checkAuth("R");
  220. // btn_search3.disabled = !checkAuth("R");
  221. // btn_save.disabled = !checkAuth("X");
  222. // btn_excel1.disabled = !checkAuth("P");
  223. // btn_excel2.disabled = !checkAuth("P");
  224. // btn_excel3.disabled = !checkAuth("P");
  225. grd_nutrsrch.fixedcellcheckbox(0,1) = true; //영양검색 탭화면 전체선택 체크박스 설정
  226. ]]>
  227. </script>
  228. <script type="javascript">
  229. <![CDATA[
  230. function finit() {
  231. // 화면open시 공통코드 setting
  232. //zbcfGetCodeList( new Array( "A0058", "P0149", "P0160" ), new Array( "/root/init/basecode/dngr", "/root/init/basecode/orddept", "/root/init/basecode/ward" ) );
  233. zbcfGetCodeList( new Array( "A0058" ), new Array( "/root/init/basecode/dngr" ) );
  234. zbcfGetDeptCodeList(getUserInfo("dutplceinstcd"), 'orduseyn', 'D', '/root/init/basecode/orddept');
  235. astfAddCombo("/root/init/basecode/orddept","dept","deptcd,depthngnm",",");
  236. //zbcfGetDeptCodeList(getUserInfo("dutplceinstcd"), 'orduseyn', 'W', '/root/init/basecode/ward', 'depthngnm', 'asc', new Date().getDateFormat("YYYYMMDD"), "", 'after');
  237. zsdfGetWardDeptList(getUserInfo("dutplceinstcd"), '/root/init/basecode/ward', 'depthngnm', 'asc', new Date().getDateFormat("YYYYMMDD"), 'after');
  238. // model.resetInstanceNode("/root/main/data");
  239. model.resetInstanceNode("/root/send");
  240. model.removeNodeset("/root/main/srchrslt");
  241. model.removeNodeset("/root/main/pastsrchrslt");
  242. //model.setFocus("ipt_pid");
  243. model.setValue("/root/send/searchitem/basedd", getCurrentDate());
  244. model.setValue("/root/send/pastsearchitem/fromdd", getCurrentDate());
  245. model.setValue("/root/send/pastsearchitem/todd", getCurrentDate());
  246. model.setValue("/root/send/statssearchitem/fromdd", getCurrentDate());
  247. model.setValue("/root/send/statssearchitem/todd", getCurrentDate());
  248. model.setValue("/root/send/searchitem/patflag", "F");
  249. model.setValue("/root/send/pastsearchitem/patflag", "F");
  250. model.setValue("/root/send/pastsearchitem/dngrflag", "4 3");
  251. model.setValue("/root/send/statssearchitem/patflag", "H");
  252. //2011.05.02 타파트조회함으로 인해 주석처리
  253. if(getUserInfo("dutplcecd") != "3250100000"){
  254. chk_ward.attribute("visibility")="hidden";
  255. btn_pastnutrsrch.disabled = true;
  256. btn_nutrsrchstats.disabled = true;
  257. btn_save.disabled = true;
  258. submit("TRANC00102"); //영양판정기준표 조회;
  259. }else{
  260. chk_ward.attribute("visibility")="hidden";
  261. btn_pastnutrsrch.dispatch("DOMActivate"); //영양검색결과조회 탭화면 선택
  262. btn_pastnutrsrch.selected = true;
  263. submit("TRANC00102"); //영양판정기준표 조회
  264. btn_search1.disabled = !checkAuth("R");
  265. btn_search2.disabled = !checkAuth("R");
  266. btn_search3.disabled = !checkAuth("R");
  267. btn_save.disabled = !checkAuth("X");
  268. btn_excel1.disabled = !checkAuth("P");
  269. btn_excel2.disabled = !checkAuth("P");
  270. btn_excel3.disabled = !checkAuth("P");
  271. }
  272. }
  273. ]]>
  274. </script>
  275. </model>
  276. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  277. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  278. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  279. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  280. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  281. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  282. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  283. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  284. <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
  285. </xhtml:head>
  286. <xhtml:body guideline="1,1195;2,754;2,766;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  287. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  288. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:216px; height:14px; ">영양검색결과</caption>
  289. </group>
  290. <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  291. <switch id="swt_nutrsrchrslt" style="left:0px; top:26px; width:1194px; height:718px; ">
  292. <case id="case1">
  293. <group id="grp_sea" style="left:5px; top:10px; width:1182px; height:35px; vertical-align:top; ">
  294. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1182px; height:35px; background-color:#fffbf2; "/>
  295. <button id="btn_search1" class="btn1_letter2" style="left:1106px; top:7px; width:56px; height:22px; ">
  296. <caption>조회</caption>
  297. <script type="javascript" ev:event="DOMActivate">
  298. <![CDATA[
  299. if (chk_ward.attribute("visibility")=="visible") {
  300. chk_ward.attribute("visibility")="hidden";
  301. }
  302. grd_nutrsrch.fixedcellischeck(0,1) = false; //영양검색 탭화면 전체선택 체크박스 초기화
  303. submit("TRANC00101");
  304. //신환(F) or 재검색(I) 구분값 setting 및 PIBW, TLC 반올림
  305. var patflag = model.getValue("/root/send/searchitem/patflag");
  306. var pibw = "";
  307. var tlc = "";
  308. for ( i=1; i<grd_nutrsrch.rows-1; i++) {
  309. var irow = i + 1;
  310. model.setValue("/root/main/srchrslt/data[" + i + "]/h_patflag", patflag);
  311. pibw = model.getValue("/root/main/srchrslt/data[" + i + "]/pibw");
  312. tlc = model.getValue("/root/main/srchrslt/data[" + i + "]/tlc");
  313. if (pibw != "") {
  314. pibw = pibw.toString().getRound(-2, "HALF_UP");
  315. model.setValue("/root/main/srchrslt/data[" + i + "]/pibw", pibw);
  316. var ilen = pibw.length;
  317. if (ilen > 0){
  318. if (pibw.substr(ilen - 2, ilen - 1) == ".0"){
  319. grd_nutrsrch.cellFormat(i, grd_nutrsrch.colRef("pibw")) = "####";
  320. }else{
  321. grd_nutrsrch.cellFormat(i, grd_nutrsrch.colRef("pibw")) = "####.9";
  322. }
  323. }
  324. }
  325. if (tlc != "") {
  326. tlc = tlc.toString().getRound(-2, "HALF_UP");
  327. model.setValue("/root/main/srchrslt/data[" + i + "]/tlc", tlc);
  328. var klen = tlc.length;
  329. if (klen > 0){
  330. if (tlc.substr(klen - 2, klen - 1) == ".0"){
  331. grd_nutrsrch.cellFormat(irow, grd_nutrsrch.colRef("tlc")) = "####";
  332. }else{
  333. grd_nutrsrch.cellFormat(irow, grd_nutrsrch.colRef("tlc")) = "####.9";
  334. }
  335. }
  336. }
  337. }
  338. grd_nutrsrch.refresh();
  339. //조회조건중 병동 컬럼 clear
  340. // model.resetInstanceNode("/root/send/searchitem/ward");
  341. // model.resetInstanceNode("/root/send/searchitem/optward");
  342. // opt_ward.refresh();
  343. // chk_ward.refresh();
  344. //row status가 null이기 때문에 무조건 'insert'로 초기화한다.
  345. // for ( i=2; i<grd_nutrsrch.rows; i++) {
  346. // grd_nutrsrch.addStatus(i, "insert");
  347. // }
  348. ]]>
  349. </script>
  350. </button>
  351. <line id="line13" class="line_4" style="x1:1092px; y1:7px; x2:1092px; y2:29px; "/>
  352. <caption id="caption2" class="search_name" style="left:25px; top:9px; width:86px; height:17px; ">기준일자 :</caption>
  353. <input id="ipt_basedd" ref="/root/send/searchitem/basedd" class="input_s_essential" inputtype="date" style="left:112px; top:8px; width:93px; height:19px; "/>
  354. <button id="btn_beforedd" class="icon_pre" style="left:210px; top:10px; width:13px; height:15px; ">
  355. <caption/>
  356. <script type="javascript" ev:event="onclick">
  357. <![CDATA[
  358. var dd = model.getValue("/root/send/searchitem/basedd");
  359. dd = dd.toDate().getAddDate(-1, "D");
  360. dd = dd.getDateFormat();
  361. model.setValue("/root/send/searchitem/basedd", dd);
  362. model.refresh();
  363. ]]>
  364. </script>
  365. </button>
  366. <button id="btn_nextdd" class="icon_next" style="left:225px; top:10px; width:13px; height:15px; ">
  367. <caption/>
  368. <script type="javascript" ev:event="onclick">
  369. <![CDATA[
  370. var dd = model.getValue("/root/send/searchitem/basedd");
  371. dd = dd.toDate().getAddDate(1, "D");
  372. dd = dd.getDateFormat();
  373. model.setValue("/root/send/searchitem/basedd", dd);
  374. model.refresh();
  375. ]]>
  376. </script>
  377. </button>
  378. <caption id="caption9" class="search_name" style="left:665px; top:9px; width:73px; height:17px; ">진료과 :</caption>
  379. <select1 id="cmb_orddept1" ref="/root/send/searchitem/orddept" class="combo_search" appearance="minimal" style="left:740px; top:8px; width:100px; height:19px; ">
  380. <choices>
  381. <itemset nodeset="/root/init/basecode/orddept/dept">
  382. <label ref="depthngnm"/>
  383. <value ref="deptcd"/>
  384. </itemset>
  385. </choices>
  386. </select1>
  387. <caption id="caption14" class="search_name" style="left:875px; top:9px; width:60px; height:17px; ">병동 :</caption>
  388. <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; ">
  389. <script type="javascript" ev:event="onclick">
  390. <![CDATA[
  391. if (chk_ward.attribute("visibility")=="hidden") {
  392. chk_ward.attribute("visibility")="visible";
  393. } else if (chk_ward.attribute("visibility")=="visible") {
  394. chk_ward.attribute("visibility")="hidden";
  395. }
  396. ]]>
  397. </script>
  398. </output>
  399. <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; ">
  400. <choices>
  401. <item>
  402. <label>재검색</label>
  403. <value>I</value>
  404. </item>
  405. <item>
  406. <label>신환</label>
  407. <value>F</value>
  408. </item>
  409. </choices>
  410. <script type="javascript" ev:event="onclick">
  411. <![CDATA[
  412. model.resetInstanceNode("/root/send/searchitem/dngrflag");
  413. cmb_dngrflag1.refresh();
  414. ]]>
  415. </script>
  416. </select1>
  417. <caption id="caption4" class="search_name" style="left:265px; top:9px; width:73px; height:17px; ">구분 :</caption>
  418. <caption id="caption1" class="search_name" style="left:470px; top:9px; width:73px; height:17px; ">위험군 :</caption>
  419. <select1 id="cmb_dngrflag1" ref="/root/send/searchitem/dngrflag" class="combo_search" appearance="minimal" style="left:543px; top:8px; width:82px; height:19px; ">
  420. <choices>
  421. <itemset nodeset="/root/init/basecode/dngr/A0058">
  422. <label ref="cdnm"/>
  423. <value ref="cdid"/>
  424. </itemset>
  425. </choices>
  426. </select1>
  427. </group>
  428. <button id="btn_excel1" class="btn2_letter2" style="left:1146px; top:50px; width:42px; height:19px; ">
  429. <caption>엑셀</caption>
  430. <script type="javascript" ev:event="DOMActivate">
  431. <![CDATA[
  432. var filename = window.fileDialog("save", ",", false, "NutrSrchRslt_list", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  433. if (filename != "") {
  434. grd_nutrsrch.saveExcel(filename, "grd_nutrsrch", true, false, "", "", "");
  435. }
  436. ]]>
  437. </script>
  438. </button>
  439. <button id="btn_nutrjudgbase" class="btn2_letter6" style="left:990px; top:50px; width:86px; height:19px; ">
  440. <caption>영양판정기준</caption>
  441. <script type="javascript" ev:event="onclick">
  442. <![CDATA[
  443. modal("SPANC00200", 0,100,150, "SPANC00200", "/root/main/nutrjudgbase", "/root/main/receivedata");
  444. ]]>
  445. </script>
  446. </button>
  447. <button id="btn_insbase" class="btn2_letter4" style="left:1079px; top:50px; width:64px; height:19px; ">
  448. <caption>INS기준</caption>
  449. <script type="javascript" ev:event="onclick">
  450. <![CDATA[
  451. //modal("SPANC00300", 0,100,150, "SPANC00300", "/root/main/nutrjudgbase/data", "/root/main/receivedata");
  452. window.load("SPANC00300_INS기준표.xrw","modal","code", "left:600px; top:50px; width:550px; height:380px;min:hidden;max:hidden;resize:true;");
  453. ]]>
  454. </script>
  455. </button>
  456. <line id="line38" class="line_1" style="x1:5px; y1:74px; x2:1188px; y2:74px; "/>
  457. <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; ">
  458. <col checkvalue="Y,N" ref="check" type="checkbox"/>
  459. <col ref="h_patflag" visibility="hidden"/>
  460. <col ref="h_prcpdd" visibility="hidden"/>
  461. <col ref="h_cretno" visibility="hidden"/>
  462. <col ref="h_prcpgenrflag" visibility="hidden"/>
  463. <col ref="h_orddd" visibility="hidden"/>
  464. <col ref="replyn"/>
  465. <col disabled="true" ref="ward" type="combo">
  466. <choices>
  467. <itemset nodeset="/root/init/basecode/ward/dept">
  468. <label ref="depthngnm"/>
  469. <value ref="deptcd"/>
  470. </itemset>
  471. </choices>
  472. </col>
  473. <col ref="room"/>
  474. <col ref="h_wardroom" visibility="hidden"/>
  475. <col ref="pid"/>
  476. <col ref="hngnm"/>
  477. <col ref="sex"/>
  478. <col ref="age" style="left:358px; top:20px; width:36px; height:20px; "/>
  479. <col ref="h_diagcd" visibility="hidden"/>
  480. <col ref="diagnm"/>
  481. <col disabled="true" ref="orddept" type="combo">
  482. <choices>
  483. <itemset nodeset="/root/init/basecode/orddept/dept">
  484. <label ref="depthngnm"/>
  485. <value ref="deptcd"/>
  486. </itemset>
  487. </choices>
  488. </col>
  489. <col ref="orddrid" visibility="hidden"/>
  490. <col ref="atdoct"/>
  491. <col ref="dietnm"/>
  492. <col ref="h_ht" visibility="hidden"/>
  493. <col ref="h_wt" visibility="hidden"/>
  494. <col ref="pibw" style="text-align:right; "/>
  495. <col ref="alb" style="text-align:right; "/>
  496. <col ref="tlc" format="####.9" style="left:1118px; top:43px; width:61px; height:23px; text-align:right; "/>
  497. <col ref="apptchngyn" type="combo" style="text-align:center; ">
  498. <choices>
  499. <item>
  500. <label>좋음</label>
  501. <value>1</value>
  502. </item>
  503. <item>
  504. <label>보통</label>
  505. <value>2</value>
  506. </item>
  507. <item>
  508. <label>나쁨</label>
  509. <value>3</value>
  510. </item>
  511. <item>
  512. <label>매우나쁨</label>
  513. <value>4</value>
  514. </item>
  515. </choices>
  516. </col>
  517. <col ref="bdwtchngyn" type="combo" style="text-align:center; ">
  518. <choices>
  519. <item>
  520. <label>무</label>
  521. <value>1</value>
  522. </item>
  523. <item>
  524. <label>유</label>
  525. <value>2</value>
  526. </item>
  527. </choices>
  528. </col>
  529. <col ref="symp" type="combo" style="text-align:center; ">
  530. <choices>
  531. <item>
  532. <label>없음</label>
  533. <value>N</value>
  534. </item>
  535. <item>
  536. <label>있음</label>
  537. <value>Y</value>
  538. </item>
  539. </choices>
  540. </col>
  541. <col ref="dietcnt" style="text-align:center; "/>
  542. <col ref="srchrslt" 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 disabled="true" ref="bfrslt" type="combo">
  551. <choices>
  552. <itemset nodeset="/root/init/basecode/dngr/A0058">
  553. <label ref="cdnm"/>
  554. <value ref="cdid"/>
  555. </itemset>
  556. </choices>
  557. </col>
  558. <col ref="bfrsltdd" format="yyyy-mm-dd"/>
  559. <col ref="trf" style="text-align:right; "/>
  560. <col ref="insrslt" style="text-align:center; "/>
  561. <script type="javascript" ev:event="ondblclick">
  562. <![CDATA[
  563. // if ( grd_nutrsrch.isCell(event.target) && grd_nutrsrch.row >= grd_nutrsrch.fixedRows ) {
  564. // // 'R'은 영양검색결과조회 화면임을 뜻하는 구분자임.
  565. // model.setValue("/root/send/popup/flag", "R");
  566. // model.setValue("/root/send/popup/flag2", model.getValue("/root/main/srchrslt/data["+(grd_nutrsrch.row-1)+"]/h_patflag"));
  567. // model.setValue("/root/send/popup/pid", model.getValue("/root/main/srchrslt/data["+(grd_nutrsrch.row-1)+"]/pid"));
  568. // model.setValue("/root/send/popup/hngnm", model.getValue("/root/main/srchrslt/data["+(grd_nutrsrch.row-1)+"]/hngnm"));
  569. // model.setValue("/root/send/popup/orddrid", model.getValue("/root/main/srchrslt/data["+(grd_nutrsrch.row-1)+"]/orddrid"));
  570. // model.setValue("/root/send/popup/reqpsn", model.getValue("/root/main/srchrslt/data["+(grd_nutrsrch.row-1)+"]/atdoct"));
  571. // //model.setValue("/root/send/popup/execprcpuniqno", model.getValue("/root/main/srchrslt/data["+(grd_nutrsrch.row-1)+"]/h_execprcpuniqno"));
  572. // model.setValue("/root/send/popup/h_cretno", model.getValue("/root/main/srchrslt/data["+(grd_nutrsrch.row-1)+"]/h_cretno"));
  573. // model.setValue("/root/send/popup/h_orddeptcd", model.getValue("/root/main/srchrslt/data["+(grd_nutrsrch.row-1)+"]/orddept"));
  574. // model.setValue("/root/send/popup/h_prcpgenrflag", model.getValue("/root/main/srchrslt/data["+(grd_nutrsrch.row-1)+"]/h_prcpgenrflag"));
  575. // model.setValue("/root/send/popup/h_orddd", model.getValue("/root/main/srchrslt/data["+(grd_nutrsrch.row-1)+"]/indd"));
  576. // model.setValue("/root/send/popup/srchdd", getCurrentDate());
  577. // if ( model.getValue("/root/main/srchrslt/data["+(grd_nutrsrch.row-1)+"]/bfrsltdd") == "" ) {
  578. // model.setValue("/root/send/popup/srchdd", getCurrentDate());
  579. // } else {
  580. // model.setValue("/root/send/popup/srchdd", model.getValue("/root/main/srchrslt/data["+(grd_nutrsrch.row-1)+"]/bfrsltdd"));
  581. // }
  582. //
  583. // open("SMANC00300", "","","", "SMANC00300", "/root/send/popup", "/root/main/receivedata");
  584. // }
  585. ]]>
  586. </script>
  587. <script type="javascript" ev:event="onaftersort">
  588. <![CDATA[
  589. grd_nutrsrch.gridToInstance();
  590. ]]>
  591. </script>
  592. </datagrid>
  593. <line id="line4" class="line_2" style="x1:5px; y1:685px; x2:1187px; y2:685px; "/>
  594. <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; "/>
  595. <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; "/>
  596. <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; "/>
  597. <caption id="caption7" class="cell_1" style="left:5px; top:687px; width:61px; height:23px; vertical-align:middle; ">검색결과</caption>
  598. <caption id="caption8" class="cell_1" style="left:247px; top:687px; width:60px; height:23px; vertical-align:middle; ">저위험도</caption>
  599. <caption id="caption10" class="cell_1" style="left:68px; top:687px; width:48px; height:23px; text-align:center; vertical-align:middle; ">양호</caption>
  600. <caption id="caption11" class="cell_1" style="left:438px; top:687px; width:61px; height:23px; vertical-align:middle; ">중위험도</caption>
  601. <caption id="caption12" class="cell_1" style="left:630px; top:687px; width:61px; height:23px; vertical-align:middle; ">고위험도</caption>
  602. <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; "/>
  603. <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; "/>
  604. <caption id="caption3" class="cell_1" style="left:1000px; top:687px; width:61px; height:23px; text-align:center; vertical-align:middle; ">계</caption>
  605. <line id="line5" class="line_3" style="x1:5px; y1:710px; x2:1187px; y2:710px; "/>
  606. <caption id="caption5" class="cell_1" style="left:815px; top:687px; width:61px; height:23px; vertical-align:middle; ">판정불가</caption>
  607. <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; "/>
  608. </case>
  609. <case id="case2" selected="true">
  610. <group id="group1" style="left:5px; top:10px; width:1182px; height:35px; vertical-align:top; ">
  611. <shape id="roundrect2" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1182px; height:35px; background-color:#fffbf2; "/>
  612. <button id="btn_search2" class="btn1_letter2" style="left:1106px; top:7px; width:56px; height:22px; ">
  613. <caption>조회</caption>
  614. <script type="javascript" ev:event="DOMActivate">
  615. <![CDATA[
  616. var fromdd = model.getValue("/root/send/pastsearchitem/fromdd");
  617. var todd = model.getValue("/root/send/pastsearchitem/todd");
  618. //var ward = model.getValue("/root/send/searchitem/ward");
  619. if ( getDateInterval(fromdd, todd) < 0 ) {
  620. messageBox("검색 시작일은 종료일보다 클 수", "I004");
  621. return;
  622. } else {
  623. submit("TRANC00106");
  624. }
  625. ]]>
  626. </script>
  627. </button>
  628. <line id="line1" class="line_4" style="x1:1092px; y1:7px; x2:1092px; y2:29px; "/>
  629. <caption id="caption13" class="search_name" style="left:5px; top:9px; width:86px; height:17px; ">검색일자 :</caption>
  630. <input id="ipt_fromdd" ref="/root/send/pastsearchitem/fromdd" class="input_s_essential" inputtype="date" style="left:92px; top:8px; width:93px; height:19px; "/>
  631. <caption id="caption16" class="search_name" style="left:875px; top:9px; width:60px; height:17px; ">병동 :</caption>
  632. <select1 id="cmb_ward2" ref="/root/send/pastsearchitem/ward" class="combo_s_essential" appearance="minimal" style="left:935px; top:8px; width:150px; height:19px; ">
  633. <choices>
  634. <itemset nodeset="/root/init/basecode/ward/dept">
  635. <label ref="depthngnm"/>
  636. <value ref="deptcd"/>
  637. </itemset>
  638. </choices>
  639. </select1>
  640. <select1 id="rdo_patflag2" ref="/root/send/pastsearchitem/patflag" appearance="full" cellspacing="6" cols="3" overflow="visible" style="left:370px; top:9px; width:160px; height:20px; border-style:none; ">
  641. <choices>
  642. <item>
  643. <label>전체</label>
  644. <value>H</value>
  645. </item>
  646. <item>
  647. <label>재검색</label>
  648. <value>I</value>
  649. </item>
  650. <item>
  651. <label>신환</label>
  652. <value>F</value>
  653. </item>
  654. </choices>
  655. </select1>
  656. <caption id="caption17" class="search_name" style="left:310px; top:9px; width:73px; height:17px; ">구분 :</caption>
  657. <caption id="caption18" class="search_no_b" style="left:190px; top:10px; width:12px; height:17px; ">~</caption>
  658. <input id="ipt_todd" ref="/root/send/pastsearchitem/todd" class="input_s_essential" inputtype="date" style="left:205px; top:8px; width:93px; height:19px; "/>
  659. <caption id="caption19" class="search_name" style="left:540px; top:9px; width:73px; height:17px; ">위험군 :</caption>
  660. <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; ">
  661. <choices>
  662. <item>
  663. <label>고위험군</label>
  664. <value>4</value>
  665. </item>
  666. <item>
  667. <label>중위험군</label>
  668. <value>3</value>
  669. </item>
  670. <item>
  671. <label>저위험군</label>
  672. <value>2</value>
  673. </item>
  674. <item>
  675. <label>양호군</label>
  676. <value>1</value>
  677. </item>
  678. </choices>
  679. </select>
  680. </group>
  681. <button id="btn_excel2" class="btn2_letter2" style="left:1146px; top:50px; width:42px; height:19px; ">
  682. <caption>엑셀</caption>
  683. <script type="javascript" ev:event="DOMActivate">
  684. <![CDATA[
  685. var filename = window.fileDialog("save", ",", false, "PastNutrSrchRslt_list", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  686. if (filename != "") {
  687. grd_pastnutrsrch.saveExcel(filename, "grd_pastnutrsrch", true, false, "", "", "");
  688. }
  689. ]]>
  690. </script>
  691. </button>
  692. <line id="line2" class="line_1" style="x1:5px; y1:74px; x2:1188px; y2:74px; "/>
  693. <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="seq" rowsep="|" style="left:5px; top:80px; width:1182px; height:600px; ">
  694. <col ref="replyn" style="text-align:center; "/>
  695. <col ref="srchdd" format="yyyy-mm-dd" style="text-align:center; "/>
  696. <col disabled="true" ref="patflag" type="combo" style="text-align:center; ">
  697. <choices>
  698. <item>
  699. <label>재검색</label>
  700. <value>I</value>
  701. </item>
  702. <item>
  703. <label>신환</label>
  704. <value>F</value>
  705. </item>
  706. </choices>
  707. </col>
  708. <col ref="orddd" format="yyyy-mm-dd" style="text-align:center; "/>
  709. <col disabled="true" ref="ward" type="combo" style="text-align:center; ">
  710. <choices>
  711. <itemset nodeset="/root/init/basecode/ward/dept">
  712. <label ref="depthngnm"/>
  713. <value ref="deptcd"/>
  714. </itemset>
  715. </choices>
  716. </col>
  717. <col ref="room" style="text-align:center; "/>
  718. <col ref="pid" style="text-align:center; "/>
  719. <col ref="hngnm" style="text-align:center; "/>
  720. <col ref="sex" style="text-align:center; "/>
  721. <col ref="age" style="left:358px; top:20px; width:36px; height:20px; text-align:center; "/>
  722. <col ref="diagnm" style="text-align:center; "/>
  723. <col disabled="true" ref="orddept" type="combo" style="text-align:center; ">
  724. <choices>
  725. <itemset nodeset="/root/init/basecode/orddept/dept">
  726. <label ref="depthngnm"/>
  727. <value ref="deptcd"/>
  728. </itemset>
  729. </choices>
  730. </col>
  731. <col ref="orddrnm" style="text-align:center; "/>
  732. <col ref="atdoct" style="text-align:center; "/>
  733. <col ref="dietnm" style="text-align:center; "/>
  734. <col ref="pibw" style="text-align:center; "/>
  735. <col ref="alb" style="text-align:center; "/>
  736. <col ref="tlc" style="text-align:center; "/>
  737. <col ref="apptchngyn" type="combo" style="text-align:center; ">
  738. <choices>
  739. <item>
  740. <label>좋음</label>
  741. <value>1</value>
  742. </item>
  743. <item>
  744. <label>보통</label>
  745. <value>2</value>
  746. </item>
  747. <item>
  748. <label>나쁨</label>
  749. <value>3</value>
  750. </item>
  751. <item>
  752. <label>매우나쁨</label>
  753. <value>4</value>
  754. </item>
  755. </choices>
  756. </col>
  757. <col ref="bdwtchngyn" type="combo" style="text-align:center; ">
  758. <choices>
  759. <item>
  760. <label>무</label>
  761. <value>1</value>
  762. </item>
  763. <item>
  764. <label>유</label>
  765. <value>2</value>
  766. </item>
  767. </choices>
  768. </col>
  769. <col ref="symp" type="combo" style="text-align:center; ">
  770. <choices>
  771. <item>
  772. <label>없음</label>
  773. <value>N</value>
  774. </item>
  775. <item>
  776. <label>있음</label>
  777. <value>Y</value>
  778. </item>
  779. </choices>
  780. </col>
  781. <col ref="dietcnt" style="text-align:center; "/>
  782. <col disabled="true" ref="srchrslt" type="combo" style="text-align:center; ">
  783. <choices>
  784. <itemset nodeset="/root/init/basecode/dngr/A0058">
  785. <label ref="cdnm"/>
  786. <value ref="cdid"/>
  787. </itemset>
  788. </choices>
  789. </col>
  790. <col disabled="true" ref="bfrslt" type="combo">
  791. <choices>
  792. <itemset nodeset="/root/init/basecode/dngr/A0058" style="text-align:center;">
  793. <label ref="cdnm"/>
  794. <value ref="cdid"/>
  795. </itemset>
  796. </choices>
  797. </col>
  798. <col ref="bfrsltdd" format="yyyy-mm-dd" style="text-align:center; "/>
  799. <col ref="trf" style="text-align:center; "/>
  800. <col ref="insrslt" style="text-align:center; "/>
  801. <col ref="rem" type="input" style="text-align:center; "/>
  802. <script type="javascript" ev:event="ondblclick">
  803. <![CDATA[
  804. if ( grd_pastnutrsrch.isCell(event.target) && grd_pastnutrsrch.row >= grd_pastnutrsrch.fixedRows ) {
  805. // 'R'은 영양검색결과조회 화면임을 뜻하는 구분자임.
  806. model.setValue("/root/send/popup/flag", "R");
  807. model.setValue("/root/send/popup/flag2", model.getValue("/root/main/pastsrchrslt/data["+(grd_pastnutrsrch.row-1)+"]/patflag"));
  808. model.setValue("/root/send/popup/pid", model.getValue("/root/main/pastsrchrslt/data["+(grd_pastnutrsrch.row-1)+"]/pid"));
  809. model.setValue("/root/send/popup/hngnm", model.getValue("/root/main/pastsrchrslt/data["+(grd_pastnutrsrch.row-1)+"]/hngnm"));
  810. model.setValue("/root/send/popup/orddrid", model.getValue("/root/main/pastsrchrslt/data["+(grd_pastnutrsrch.row-1)+"]/orddrid"));
  811. model.setValue("/root/send/popup/reqpsn", model.getValue("/root/main/pastsrchrslt/data["+(grd_pastnutrsrch.row-1)+"]/atdoct"));
  812. model.setValue("/root/send/popup/h_cretno", model.getValue("/root/main/pastsrchrslt/data["+(grd_pastnutrsrch.row-1)+"]/cretno"));
  813. model.setValue("/root/send/popup/h_orddeptcd", model.getValue("/root/main/pastsrchrslt/data["+(grd_pastnutrsrch.row-1)+"]/orddept"));
  814. model.setValue("/root/send/popup/h_prcpgenrflag", model.getValue("/root/main/pastsrchrslt/data["+(grd_pastnutrsrch.row-1)+"]/prcpgenrflag"));
  815. model.setValue("/root/send/popup/h_orddd", model.getValue("/root/main/pastsrchrslt/data["+(grd_pastnutrsrch.row-1)+"]/orddd"));
  816. model.setValue("/root/send/popup/srchdd", model.getValue("/root/main/pastsrchrslt/data["+(grd_pastnutrsrch.row-1)+"]/srchdd"));
  817. // 환자 상단정보 START
  818. var prcpgenrflag = model.getValue("/root/main/pastsrchrslt/data["+(grd_pastnutrsrch.row-1)+"]/prcpgenrflag");
  819. var pid = model.getValue("/root/main/pastsrchrslt/data["+(grd_pastnutrsrch.row-1)+"]/pid");
  820. var orddd = model.getValue("/root/main/pastsrchrslt/data["+(grd_pastnutrsrch.row-1)+"]/orddd");
  821. var cretno = model.getValue("/root/main/pastsrchrslt/data["+(grd_pastnutrsrch.row-1)+"]/cretno");
  822. var instcd = getUserInfo("dutplceinstcd");
  823. if(prcpgenrflag!="E"){
  824. prcpgenrflag = "I";
  825. }
  826. var param = prcpgenrflag + "▦" +
  827. pid + "▦" +
  828. orddd + "▦" +
  829. cretno + "▦" +
  830. instcd ;
  831. setParameter("condparam", param);
  832. modal("SPMMO08900", 1, 0, 0, "", "", "", "left:0; right:0; width:0; height:0; sysmenu:hidden; caption:hidden; min:hidden, max:hidden;");
  833. // 환자 상단정보 EDN
  834. open("SMANC00300", "","","", "SMANC00300", "/root/send/popup", "/root/main/receivedata");
  835. }
  836. ]]>
  837. </script>
  838. </datagrid>
  839. <line id="line3" class="line_2" style="x1:5px; y1:685px; x2:1187px; y2:685px; "/>
  840. <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; "/>
  841. <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; "/>
  842. <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; "/>
  843. <caption id="caption20" class="cell_1" style="left:5px; top:687px; width:61px; height:23px; vertical-align:middle; ">검색결과</caption>
  844. <caption id="caption21" class="cell_1" style="left:246px; top:687px; width:60px; height:23px; vertical-align:middle; ">저위험도</caption>
  845. <caption id="caption22" class="cell_1" style="left:68px; top:687px; width:48px; height:23px; text-align:center; vertical-align:middle; ">양호</caption>
  846. <caption id="caption23" class="cell_1" style="left:436px; top:687px; width:61px; height:23px; vertical-align:middle; ">중위험도</caption>
  847. <caption id="caption24" class="cell_1" style="left:627px; top:687px; width:61px; height:23px; vertical-align:middle; ">고위험도</caption>
  848. <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; "/>
  849. <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; "/>
  850. <caption id="caption25" class="cell_1" style="left:1008px; top:687px; width:61px; height:23px; text-align:center; vertical-align:middle; ">계</caption>
  851. <line id="line6" class="line_3" style="x1:5px; y1:710px; x2:1187px; y2:710px; "/>
  852. <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; "/>
  853. <caption id="caption15" class="cell_1" style="left:817px; top:687px; width:61px; height:23px; vertical-align:middle; ">판정불가</caption>
  854. </case>
  855. <case id="case3">
  856. <group id="group2" style="left:5px; top:10px; width:1182px; height:35px; vertical-align:top; ">
  857. <shape id="roundrect3" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1182px; height:35px; background-color:#fffbf2; "/>
  858. <button id="btn_search3" class="btn1_letter2" style="left:1106px; top:7px; width:56px; height:22px; ">
  859. <caption>조회</caption>
  860. <script type="javascript" ev:event="DOMActivate">
  861. <![CDATA[
  862. var fromdd = model.getValue("/root/send/statssearchitem/fromdd");
  863. var todd = model.getValue("/root/send/statssearchitem/todd");
  864. //var ward = model.getValue("/root/send/searchitem/ward");
  865. if ( getDateInterval(fromdd, todd) < 0 ) {
  866. messageBox("검색 시작일은 종료일보다 클 수", "I004");
  867. return;
  868. } else {
  869. if (submit("TRANC00107")) {
  870. //조회후 그리드 하단에 합계 구하기
  871. //grd_nutrsrchstats.subtotal("clear", -1, 4, "", "", "", "");
  872. grd_nutrsrchstats.subtotalPosition = "below";
  873. for (var i = 2; i <= 11; i ++){
  874. grd_nutrsrchstats.subtotal("sum", -1, i, "#,###", "", 1, "합 계 ");
  875. }
  876. grd_nutrsrchstats.refresh();
  877. }
  878. }
  879. ]]>
  880. </script>
  881. </button>
  882. <line id="line7" class="line_4" style="x1:1092px; y1:7px; x2:1092px; y2:29px; "/>
  883. <caption id="caption26" class="search_name" style="left:10px; top:9px; width:86px; height:17px; ">검색일자 :</caption>
  884. <input id="ipt_fromdd3" ref="/root/send/statssearchitem/fromdd" class="input_s_essential" inputtype="date" style="left:97px; top:8px; width:93px; height:19px; "/>
  885. <caption id="caption27" class="search_name" style="left:720px; top:9px; width:73px; height:17px; ">진료과 :</caption>
  886. <select1 id="cmb_orddept3" ref="/root/send/statssearchitem/orddept" class="combo_search" appearance="minimal" style="left:795px; top:8px; width:95px; height:19px; ">
  887. <choices>
  888. <itemset nodeset="/root/init/basecode/orddept/dept">
  889. <label ref="depthngnm"/>
  890. <value ref="deptcd"/>
  891. </itemset>
  892. </choices>
  893. </select1>
  894. <caption id="caption28" class="search_name" style="left:910px; top:9px; width:60px; height:17px; ">병동 :</caption>
  895. <select1 id="cmb_ward3" ref="/root/send/statssearchitem/ward" class="combo_s_essential" appearance="minimal" style="left:970px; top:8px; width:105px; height:19px; ">
  896. <choices>
  897. <itemset nodeset="/root/init/basecode/ward/dept">
  898. <label ref="depthngnm"/>
  899. <value ref="deptcd"/>
  900. </itemset>
  901. </choices>
  902. </select1>
  903. <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; ">
  904. <choices>
  905. <item>
  906. <label>전체</label>
  907. <value>H</value>
  908. </item>
  909. <item>
  910. <label>재검색</label>
  911. <value>I</value>
  912. </item>
  913. <item>
  914. <label>신환</label>
  915. <value>F</value>
  916. </item>
  917. </choices>
  918. </select1>
  919. <caption id="caption29" class="search_name" style="left:320px; top:9px; width:73px; height:17px; ">구분 :</caption>
  920. <caption id="caption30" class="search_no_b" style="left:195px; top:10px; width:12px; height:17px; ">~</caption>
  921. <input id="ipt_todd3" ref="/root/send/statssearchitem/todd" class="input_s_essential" inputtype="date" style="left:210px; top:8px; width:93px; height:19px; "/>
  922. <caption id="caption31" class="search_name" style="left:550px; top:9px; width:73px; height:17px; ">위험군 :</caption>
  923. <select1 id="cmb_dngrflag3" ref="/root/send/statssearchitem/dngrflag" class="combo_search" appearance="minimal" style="left:623px; top:8px; width:75px; height:19px; ">
  924. <choices>
  925. <itemset nodeset="/root/init/basecode/dngr/A0058">
  926. <label ref="cdnm"/>
  927. <value ref="cdid"/>
  928. </itemset>
  929. </choices>
  930. </select1>
  931. </group>
  932. <button id="btn_excel3" class="btn2_letter2" style="left:1146px; top:50px; width:42px; height:19px; ">
  933. <caption>엑셀</caption>
  934. <script type="javascript" ev:event="DOMActivate">
  935. <![CDATA[
  936. var filename = window.fileDialog("save", ",", false, "NutrSrchRsltStats_list", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  937. if (filename != "") {
  938. grd_nutrsrchstats.saveExcel(filename, "grd_nutrsrchstats", true, false, "", "", "");
  939. }
  940. ]]>
  941. </script>
  942. </button>
  943. <line id="line8" class="line_1" style="x1:5px; y1:74px; x2:1188px; y2:74px; "/>
  944. <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; ">
  945. <col ref="srchdd" format="yyyy-mm-dd"/>
  946. <col ref="good1"/>
  947. <col ref="low1"/>
  948. <col ref="mid1"/>
  949. <col ref="high1"/>
  950. <col ref="total1"/>
  951. <col ref="good2"/>
  952. <col ref="low2"/>
  953. <col ref="mid2"/>
  954. <col ref="high2"/>
  955. <col ref="total2"/>
  956. </datagrid>
  957. </case>
  958. </switch>
  959. <button id="btn_nutrsrch" class="btn_sw" group="tab" style="left:0px; top:5px; width:89px; height:22px; ">
  960. <caption>영양검색</caption>
  961. <script type="javascript" ev:event="DOMActivate">
  962. <![CDATA[
  963. model.toggle("case1");
  964. //btn_save.visible = true;
  965. btn_save.disabled = false;
  966. ]]>
  967. </script>
  968. </button>
  969. <button id="btn_pastnutrsrch" class="btn_sw" group="tab" selected="true" style="left:88px; top:5px; width:125px; height:22px; ">
  970. <caption>영양검색결과조회</caption>
  971. <script type="javascript" ev:event="DOMActivate">
  972. <![CDATA[
  973. if (chk_ward.attribute("visibility")=="visible") {
  974. chk_ward.attribute("visibility")="hidden";
  975. }
  976. model.toggle("case2");
  977. btn_save.disabled = false;
  978. ]]>
  979. </script>
  980. </button>
  981. <button id="btn_nutrsrchstats" class="btn_sw" group="tab" selected="false" style="left:212px; top:5px; width:95px; height:22px; ">
  982. <caption>영양검색통계</caption>
  983. <script type="javascript" ev:event="DOMActivate">
  984. <![CDATA[
  985. if (chk_ward.attribute("visibility")=="visible") {
  986. chk_ward.attribute("visibility")="hidden";
  987. }
  988. model.toggle("case3");
  989. btn_save.disabled = true;
  990. ]]>
  991. </script>
  992. </button>
  993. </group>
  994. <group id="grp_btn" style="left:0px; top:757px; width:1195px; height:27px; ">
  995. <button id="btn_prnt" class="btn6_letter2" visibility="hidden" style="left:0px; top:5px; width:56px; height:22px; ">
  996. <caption>출력</caption>
  997. </button>
  998. <button id="btn_reset" class="btn4_letter3" style="left:1067px; top:5px; width:68px; height:22px; ">
  999. <caption>초기화</caption>
  1000. <script type="javascript" ev:event="DOMActivate">
  1001. <![CDATA[
  1002. finit();
  1003. ]]>
  1004. </script>
  1005. </button>
  1006. <button id="btn_save" class="btn4_letter2" style="left:1136px; top:5px; width:56px; height:22px; ">
  1007. <caption>저장</caption>
  1008. <script type="javascript" ev:event="DOMActivate">
  1009. <![CDATA[
  1010. //영양검색 탭화면 일때
  1011. if ( btn_nutrsrch.selected ) {
  1012. //하루에 기준일자를 달리하여 2회이상 재검색할 경우 데이터 중복을 피하기 위해 입원일자를 기준일의 7일전 날짜로 셋팅후 저장한다.
  1013. // if ( model.getValue("/root/send/searchitem/patflag") == "I" ) {
  1014. // var basedd = model.getValue("/root/send/searchitem/basedd");
  1015. // basedd = basedd.toDate().getAddDate(-7, "D");
  1016. // basedd = basedd.getDateFormat();
  1017. // for ( i=1; i<grd_nutrsrch.rows-1; i++) {
  1018. // model.setValue("/root/main/srchrslt/data[" + i + "]/h_orddd", basedd);
  1019. // }
  1020. // }
  1021. //저장할 데이터를 한건이라도 check했는지 체크
  1022. var nodeList = instance1.selectNodes("/root/main/srchrslt/data[check='Y']");
  1023. var rCSV = getNodeListCSV(nodeList);
  1024. if ( rCSV == null ) {
  1025. messageBox("저장할 데이터를", "C002");
  1026. return;
  1027. }
  1028. if ( messageBox("체크한 데이터를", "Q002") == 6 ) {
  1029. if (btn_nutrsrch.selected) {
  1030. //하루에 기준일자별로 재검색,신환 각 한번씩만 저장 가능
  1031. //오늘날짜에 기준일자에 해당하는 재검색 or 신환 데이터 존재여부를 체크해서 없으면 저장한다.
  1032. // submit("TRANC00103");
  1033. // var count = model.getValue("/root/temp/count/cnt");
  1034. // if ( count > 0 ) {
  1035. // var basedd = ipt_basedd.value;
  1036. // var patflag = rdo_patflag1.label;
  1037. // messageBox(basedd.substr(0,4)+"-"+basedd.substr(4,2)+"-"+basedd.substr(6,2)+" " + patflag + " 데이터를 이미 저장했습니다. 두번 저장", "E001");
  1038. // return;
  1039. // } else {
  1040. model.setValue("/root/send/data/list", rCSV);
  1041. if (submit("TXANC00101")) {
  1042. btn_search1.dispatch("DOMActivate");
  1043. model.resetInstanceNode("/root/send/data/list");
  1044. }
  1045. // }
  1046. }
  1047. } else { return; }
  1048. }
  1049. //과거영양검색조회 탭화면 일때
  1050. else if ( btn_pastnutrsrch.selected ) {
  1051. if ( getGridUpdateData(grd_pastnutrsrch) == "" ) {
  1052. messageBox("입력 또는 수정한 데이터가", "I004");
  1053. } else {
  1054. if ( messageBox("", "Q002") == 6 ) {
  1055. model.setValue("/root/send/data/pastlist", grd_pastnutrsrch.getUpdateData());
  1056. if (submit("TXANC00102")) {
  1057. btn_search2.dispatch("DOMActivate");
  1058. }
  1059. } else { return; }
  1060. }
  1061. }
  1062. ]]>
  1063. </script>
  1064. </button>
  1065. <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:1194px; y2:0px; "/>
  1066. </group>
  1067. <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; ">
  1068. <choices>
  1069. <itemset nodeset="/root/init/basecode/ward/dept">
  1070. <label ref="depthngnm"/>
  1071. <value ref="deptcd"/>
  1072. </itemset>
  1073. </choices>
  1074. <script type="javascript" ev:event="onclick">
  1075. <![CDATA[
  1076. model.setValue("/root/send/searchitem/optward", chk_ward.label);
  1077. opt_ward.refresh();
  1078. ]]>
  1079. </script>
  1080. </select>
  1081. </xhtml:body>
  1082. </xhtml:html>