SMANC00600_치료식환자결과조회.xrw 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  3. <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
  4. <xhtml:head>
  5. <xhtml:title>환자관리</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <data>
  11. <ipatmngt>
  12. <grdlist>
  13. <pid/>
  14. <room/>
  15. <hngnm/>
  16. <sex/>
  17. <h_brthdd/>
  18. <age/>
  19. <indd/>
  20. <dietcd/>
  21. <dietnm/>
  22. <prcpdelivefact/>
  23. <remark3/>
  24. <diagnm/>
  25. <sick/>
  26. <curedietpatyn/>
  27. <dietroundyn/>
  28. <crmyn/>
  29. <execcnts/>
  30. <execdieter/>
  31. <execdd/>
  32. <dschdd/>
  33. <rsntdschdd/>
  34. </grdlist>
  35. </ipatmngt>
  36. <ipatmngtrslt>
  37. <grdlist>
  38. <pid/>
  39. <room/>
  40. <hngnm/>
  41. <sex/>
  42. <age/>
  43. <indd/>
  44. <dietnm/>
  45. <diagnm/>
  46. <sick/>
  47. <curedietpatyn/>
  48. <dietroundyn/>
  49. <crmyn/>
  50. <execcnts/>
  51. <execdieter/>
  52. <execdd/>
  53. </grdlist>
  54. </ipatmngtrslt>
  55. <telnutrcnst>
  56. <grdlist>
  57. <pid/>
  58. <ioflag/>
  59. <inout/>
  60. <hngnm/>
  61. <sex/>
  62. <age/>
  63. <sickcd/>
  64. <hometel/>
  65. <mpphontel/>
  66. <execyn/>
  67. <telexecdd/>
  68. <execdieter/>
  69. <formrecseq/>
  70. <nutrmngtkind/>
  71. <execdd/>
  72. <orddd/>
  73. </grdlist>
  74. </telnutrcnst>
  75. <telnutrcnstcnt>
  76. <cnstcount>
  77. <cnstdd/>
  78. <dieter/>
  79. <glycospatqty/>
  80. <hypetspatqty/>
  81. <cardiacpatqty/>
  82. <pdpatqty/>
  83. <hdpatqty/>
  84. <cncrpatqty/>
  85. <blodtumpatqty/>
  86. <kidnpatqty/>
  87. <liverpatqty/>
  88. <stmcpatqty/>
  89. <etrlfdpatqty/>
  90. <fatpatqty/>
  91. <etcsickpatqty/>
  92. </cnstcount>
  93. </telnutrcnstcnt>
  94. <nonregleduc>
  95. <grdlist>
  96. <educdd/>
  97. <eductm/>
  98. <eductodd/>
  99. <eductotm/>
  100. <educsubj/>
  101. <eductrgt/>
  102. <educpsnno/>
  103. <educplce/>
  104. <educmatr/>
  105. <sickcd/>
  106. <educetc/>
  107. <educdieter/>
  108. <bf_educdieter/>
  109. </grdlist>
  110. </nonregleduc>
  111. </data>
  112. <patinfo>
  113. <patinfolist/>
  114. </patinfo>
  115. <colsize>
  116. <colsize/>
  117. </colsize>
  118. </main>
  119. <send>
  120. <searchitem>
  121. <ipatmngt>
  122. <ward/>
  123. <patflag/>
  124. <inddfrom/>
  125. <inddto/>
  126. <pid/>
  127. <hngnm/>
  128. <dieter/>
  129. </ipatmngt>
  130. <ipatmngtrslt>
  131. <ward/>
  132. <rsltflag/>
  133. <execddfrom/>
  134. <execddto/>
  135. <pid/>
  136. <hngnm/>
  137. <dieter/>
  138. </ipatmngtrslt>
  139. <telnutrcnst>
  140. <educfromdd/>
  141. <eductodd/>
  142. <pid/>
  143. <hngnm/>
  144. <dieter/>
  145. </telnutrcnst>
  146. <telnutrcnstcnt>
  147. <cnstfromdd/>
  148. <cnsttodd/>
  149. <dieter/>
  150. </telnutrcnstcnt>
  151. <nonregleduc>
  152. <fromdd/>
  153. <todd/>
  154. </nonregleduc>
  155. </searchitem>
  156. <data>
  157. <ipatmngt>
  158. <list/>
  159. </ipatmngt>
  160. <telnutrcnst>
  161. <list/>
  162. </telnutrcnst>
  163. <telnutrcnstcnt>
  164. <cnstcount/>
  165. </telnutrcnstcnt>
  166. <nonregleduc>
  167. <list/>
  168. </nonregleduc>
  169. </data>
  170. <popup>
  171. <flag/>
  172. <pid/>
  173. <hngnm/>
  174. <reqdd/>
  175. <reqpsn/>
  176. <educreqcnts/>
  177. <h_cretno/>
  178. <h_orddeptcd/>
  179. <h_prcpgenrflag/>
  180. <h_orddd/>
  181. <h_formrecseq/>
  182. <execprcpuniqno/>
  183. <nutrmngtkind/>
  184. <execdd/>
  185. <execcnts/>
  186. </popup>
  187. </send>
  188. <hidden/>
  189. <init>
  190. <basecode>
  191. <sick>
  192. <A0059>
  193. <cdid/>
  194. <cdnm/>
  195. </A0059>
  196. </sick>
  197. <ward>
  198. <dept>
  199. <deptcd/>
  200. <depthngnm/>
  201. </dept>
  202. </ward>
  203. <dieter>
  204. <alldieter>
  205. <cdid/>
  206. <cdnm/>
  207. </alldieter>
  208. </dieter>
  209. </basecode>
  210. </init>
  211. <temp/>
  212. </root>
  213. </instance>
  214. <submission id="TRZBC00101"/>
  215. <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  216. <submission id="TRANC00403" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchitem/nonregleduc" replace="instance" resultref="/root/main/data/nonregleduc"/>
  217. <submission id="TXANC00403" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data/nonregleduc" resultref="/root/hidden"/>
  218. <submission id="TXANC00404" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data/telnutrcnstcnt" resultref="/root/hidden"/>
  219. <submission id="TRANC00406" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchitem/ipatmngtrslt" resultref="/root/main/data/ipatmngtrslt"/>
  220. <submission id="TRANC00401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchitem/ipatmngt" resultref="/root/main/data/ipatmngt"/>
  221. <submission id="TXANC00401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data/ipatmngt" resultref="/root/hidden"/>
  222. <submission id="TRANC00402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchitem/telnutrcnst" resultref="/root/main/data/telnutrcnst"/>
  223. <submission id="TXANC00402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data/telnutrcnst" resultref="/root/hidden"/>
  224. <submission id="TRANC00404" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchitem/telnutrcnstcnt" resultref="/root/main/data/telnutrcnstcnt"/>
  225. <submission id="TRANC00202" mediatype="application/x-www-form-urlencoded" method="post" resultref="/root/init/basecode/dieter"/>
  226. <script type="javascript" ev:event="xforms-ready">
  227. <![CDATA[
  228. finit();
  229. submit("TRANC00202"); //영양사 조회
  230. //초기화
  231. grd_ipatmngtrslt.dataHeight = 20;
  232. input1.value = grd_ipatmngtrslt.dataHeight;
  233. resizeButton.attribute("top") = input1.value+"px";
  234. ]]>
  235. </script>
  236. <script type="javascript">
  237. <![CDATA[
  238. function finit() {
  239. // 화면open시 공통코드 setting
  240. //KNUH_20100709_노회식_Start
  241. model.resetInstanceNode("/root/init/basecode/sick/A0059");
  242. //KNUH_20100709_노회식_End
  243. zbcfGetCodeList( new Array( "A0059" ), new Array( "/root/init/basecode/sick" ) );
  244. //zbcfGetDeptCodeList(getUserInfo("dutplceinstcd"), 'orduseyn', 'W', '/root/init/basecode/ward', 'depthngnm', 'asc', new Date().getDateFormat("YYYYMMDD"), "", 'after');
  245. zsdfGetWardDeptList(getUserInfo("dutplceinstcd"), '/root/init/basecode/ward', 'depthngnm', 'asc', new Date().getDateFormat("YYYYMMDD"), 'after');
  246. model.removeNodeset("/root/main/data/ipatmngt/grdlist");
  247. model.removeNodeset("/root/main/data/telnutrcnst/grdlist");
  248. model.removeNodeset("/root/main/data/telnutrcnstcnt/cnstcount");
  249. model.removeNodeset("/root/main/data/nonregleduc/grdlist");
  250. model.resetInstanceNode("/root/send");
  251. model.setValue("/root/send/searchitem/ipatmngt/patflag", "1");
  252. model.setValue("/root/send/searchitem/ipatmngt/inddfrom", getCurrentDate());
  253. model.setValue("/root/send/searchitem/ipatmngt/inddto", getCurrentDate());
  254. //model.setValue("/root/send/searchitem/ipatmngt/dieter", getUserInfo("userid"));
  255. model.setValue("/root/send/searchitem/ipatmngtrslt/rsltflag", "-");
  256. model.setValue("/root/send/searchitem/ipatmngtrslt/execddfrom", getCurrentDate());
  257. model.setValue("/root/send/searchitem/ipatmngtrslt/execddto", getCurrentDate());
  258. model.setValue("/root/send/searchitem/ipatmngtrslt/ward", getUserInfo("dutplcecd"));
  259. model.setValue("/root/send/searchitem/ipatmngtrslt/dieter", getUserInfo("userid"));
  260. model.setValue("/root/send/searchitem/telnutrcnst/educfromdd", getCurrentDate());
  261. model.setValue("/root/send/searchitem/telnutrcnst/eductodd", getCurrentDate());
  262. model.setValue("/root/send/searchitem/telnutrcnst/dieter", getUserInfo("userid"));
  263. model.setValue("/root/send/searchitem/telnutrcnstcnt/cnstfromdd", getCurrentDate());
  264. model.setValue("/root/send/searchitem/telnutrcnstcnt/cnsttodd", getCurrentDate());
  265. model.setValue("/root/send/searchitem/telnutrcnstcnt/dieter", getUserInfo("userid"));
  266. model.setValue("/root/send/searchitem/nonregleduc/fromdd", getCurrentDate());
  267. model.setValue("/root/send/searchitem/nonregleduc/todd", getCurrentDate());
  268. model.refresh();
  269. }
  270. var moving = false;
  271. ]]>
  272. </script>
  273. </model>
  274. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  275. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  276. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  277. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  278. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  279. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  280. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  281. </xhtml:head>
  282. <xhtml:body guideline="1,1194;2,733;2,765;2,6;2,1;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  283. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  284. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:216px; height:14px; ">치료식환자관리 결과조회</caption>
  285. </group>
  286. <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  287. <group id="group1" style="left:5px; top:15px; width:1182px; height:35px; vertical-align:top; ">
  288. <shape id="roundrect2" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1145px; height:35px; background-color:#fffbf2; "/>
  289. <button id="btn_search5" class="btn1_letter2" style="left:1051px; top:7px; width:56px; height:22px; ">
  290. <caption>조회</caption>
  291. <script type="javascript" ev:event="DOMActivate">
  292. <![CDATA[
  293. var fromdd = model.getValue("/root/send/searchitem/ipatmngtrslt/execddfrom");
  294. var todd = model.getValue("/root/send/searchitem/ipatmngtrslt/execddto");
  295. if ( getDateInterval(fromdd, todd) < 0 ) {
  296. messageBox("조회 시작일은 종료일보다 클 수", "I004");
  297. return;
  298. } else {
  299. submit("TRANC00406");
  300. }
  301. ]]>
  302. </script>
  303. </button>
  304. <line id="line1" class="line_4" style="x1:1032px; y1:7px; x2:1032px; y2:29px; "/>
  305. <caption id="caption2" class="search_name" style="left:11px; top:9px; width:60px; height:17px; ">병동 :</caption>
  306. <select1 id="cmb_ward1" ref="/root/send/searchitem/ipatmngtrslt/ward" class="combo_s_essential" appearance="minimal" style="left:75px; top:8px; width:100px; height:19px; ">
  307. <choices>
  308. <itemset nodeset="/root/init/basecode/ward/dept">
  309. <label ref="depthngnm"/>
  310. <value ref="deptcd"/>
  311. </itemset>
  312. </choices>
  313. </select1>
  314. <caption id="caption3" class="search_name" style="left:697px; top:9px; width:91px; height:17px; ">등록번호 :</caption>
  315. <caption id="caption8" class="search_n_b" style="left:860px; top:9px; width:12px; height:17px; font-weight:bolder; ">/</caption>
  316. <button id="btn_pid1" class="icon_search" style="left:932px; top:10px; width:16px; height:16px; ">
  317. <caption/>
  318. <script type="javascript" ev:event="DOMActivate">
  319. <![CDATA[
  320. modal("SPPMC02500", "", "200", "200", "SPPMC02500", "/root/hidden", "/root/main/patinfo/patinfolist");
  321. model.setValue("/root/send/searchitem/ipatmngtrslt/pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
  322. model.setValue("/root/send/searchitem/ipatmngtrslt/hngnm", model.getValue("/root/main/patinfo/patinfolist/hngnm"));
  323. model.refresh();
  324. ]]>
  325. </script>
  326. </button>
  327. <input id="ipt_pid3" ref="/root/send/searchitem/ipatmngtrslt/pid" class="input_s_essential" autonext="false" maxlength="10" format="9999999999" style="left:792px; top:8px; width:65px; height:19px; ">
  328. <script type="javascript" ev:event="onkeydown">
  329. <![CDATA[
  330. inputEnterKey("btn_search5", "DOMActivate");
  331. ]]>
  332. </script>
  333. </input>
  334. <input id="ipt_hngnm3" ref="/root/send/searchitem/ipatmngtrslt/hngnm" class="input_s_essential" style="left:870px; top:8px; width:60px; height:19px; ">
  335. <script type="javascript" ev:event="onkeydown">
  336. <![CDATA[
  337. inputEnterKey("btn_search5", "DOMActivate");
  338. ]]>
  339. </script>
  340. </input>
  341. <select1 id="rdo_rsltflag" ref="/root/send/searchitem/ipatmngtrslt/rsltflag" class="radio_search" appearance="full" cellspacing="2" cols="4" rows="1" overflow="visible" style="left:180px; top:9px; width:175px; height:20px; ">
  342. <choices>
  343. <item>
  344. <label>전체</label>
  345. <value>-</value>
  346. </item>
  347. <item>
  348. <label>치료식</label>
  349. <value>1</value>
  350. </item>
  351. <item>
  352. <label>식사회진</label>
  353. <value>2</value>
  354. </item>
  355. </choices>
  356. </select1>
  357. <caption id="caption7" class="search_name" visibility="hidden" style="left:960px; top:10px; width:20px; height:17px; ">영양사 :</caption>
  358. <select1 id="cmb_dieter4" ref="/root/send/searchitem/ipatmngtrslt/dieter" class="combo_search" visibility="hidden" appearance="minimal" style="left:1005px; top:8px; width:15px; height:19px; ">
  359. <choices>
  360. <itemset nodeset="/root/init/basecode/dieter/alldieter">
  361. <label ref="cdnm"/>
  362. <value ref="cdid"/>
  363. </itemset>
  364. </choices>
  365. </select1>
  366. <input id="ipt_execddfrom" ref="/root/send/searchitem/ipatmngtrslt/execddfrom" class="input_search" inputtype="date" style="left:489px; top:8px; width:85px; height:19px; "/>
  367. <caption id="caption9" class="search_n_b" style="left:576px; top:9px; width:12px; height:17px; font-weight:bolder; ">~</caption>
  368. <caption id="caption11" class="search_name" style="left:395px; top:10px; width:86px; height:17px; ">수행일자 :</caption>
  369. <input id="ipt_execddto" ref="/root/send/searchitem/ipatmngtrslt/execddto" class="input_search" inputtype="date" style="left:589px; top:8px; width:85px; height:19px; "/>
  370. </group>
  371. <line id="line2" class="line_1" style="x1:5px; y1:69px; x2:1188px; y2:69px; "/>
  372. <datagrid id="grd_ipatmngtrslt" nodeset="/root/main/data/ipatmngtrslt/grdlist" caption="등록번호^병실^환자명^성별^나이^입원일자^식사명^진단명^질환구분^치료식환자관리^식사회진관리^내용^영양사^수행일자" colsep="^" colwidth="60, 35, 50, 40, 40, 80, 90, 150, 60, 90, 80, 330, 60, 70" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:5px; top:74px; width:1183px; height:650px; text-align:center; ">
  373. <col ref="pid"/>
  374. <col ref="room"/>
  375. <col ref="hngnm"/>
  376. <col ref="sex"/>
  377. <col ref="age"/>
  378. <col ref="indd" format="yyyy-mm-dd"/>
  379. <col ref="dietnm" style="text-align:left; "/>
  380. <col ref="diagnm" style="text-align:left; "/>
  381. <col disabled="true" ref="sick" type="combo" style="text-align:center; ">
  382. <choices>
  383. <itemset nodeset="/root/init/basecode/sick/A0059">
  384. <label ref="cdnm"/>
  385. <value ref="cdid"/>
  386. </itemset>
  387. </choices>
  388. </col>
  389. <col checkvalue="Y,N" ref="curedietpatyn" type="checkbox"/>
  390. <col checkvalue="Y,N" ref="dietroundyn" type="checkbox"/>
  391. <col ref="execcnts" type="inputbutton" style="text-align:left; "/>
  392. <col disabled="true" ref="execdieter" type="combo">
  393. <choices>
  394. <itemset nodeset="/root/init/basecode/dieter/alldieter">
  395. <label ref="cdnm"/>
  396. <value ref="cdid"/>
  397. </itemset>
  398. </choices>
  399. </col>
  400. <col ref="execdd" format="yyyy-mm-dd"/>
  401. <script type="javascript" ev:event="onbuttonclick">
  402. <![CDATA[
  403. var colidx = grd_ipatmngtrslt.col;
  404. if (grd_ipatmngtrslt.colAttribute(colidx, "ref") == "execcnts"){
  405. model.setValue("/root/send/popup/execcnts","");
  406. grp_reccnts.visible = true;
  407. var rownum = grd_ipatmngtrslt.row ;
  408. var execcnts = model.getValue("/root/main/data/ipatmngtrslt/grdlist["+rownum+"]/execcnts");
  409. model.setValue("/root/send/popup/execcnts",execcnts);
  410. model.refresh();
  411. }
  412. ]]>
  413. </script>
  414. </datagrid>
  415. <group id="grp_reccnts" visibility="hidden" style="left:490px; top:230px; width:445px; height:245px; ">
  416. <textarea id="textarea2" ref="/root/send/popup/execcnts" style="left:5px; top:30px; width:435px; height:180px; "/>
  417. <button id="button4" class="btn4_letter2" style="left:380px; top:215px; width:56px; height:22px; ">
  418. <caption>닫기</caption>
  419. <script type="javascript" ev:event="DOMActivate">
  420. <![CDATA[
  421. grp_reccnts.visible = false;
  422. ]]>
  423. </script>
  424. </button>
  425. <caption id="caption24" class="tit_2" style="left:10px; top:13px; width:173px; height:14px; ">결과내용</caption>
  426. <shape id="rectangle2" appearance="rectangle" style="left:0px; top:0px; width:445px; height:245px; "/>
  427. </group>
  428. <button id="btn_rowadd3" class="btn2_letter3" visibility="hidden" style="left:950px; top:50px; width:53px; height:19px; ">
  429. <caption>행추가</caption>
  430. <script type="javascript" ev:event="DOMActivate">
  431. <![CDATA[
  432. //입원환자관리 탭화면일때
  433. if ( btn_ipatmngt.selected ) {
  434. if ( model.getValue("/root/main/data/ipatmngt/grdlist["+ grd_ipatmngt.row +"]/pid") == "" ) {
  435. messageBox("추가할 환자를", "C002");
  436. return;
  437. }
  438. var grdrow = grd_ipatmngt.row;
  439. model.copyNode("/root/temp", "/root/main/data/ipatmngt/grdlist["+ grdrow +"]");
  440. grd_ipatmngt.insertrow(grdrow, "below");
  441. model.copyNode("/root/main/data/ipatmngt/grdlist["+ (grdrow+1) +"]", "/root/temp");
  442. model.setValue("/root/main/data/ipatmngt/grdlist["+ (grdrow+1) +"]/sick", "");
  443. model.setValue("/root/main/data/ipatmngt/grdlist["+ (grdrow+1) +"]/curedietpatyn", "");
  444. model.setValue("/root/main/data/ipatmngt/grdlist["+ (grdrow+1) +"]/dietroundyn", "");
  445. //model.setValue("/root/main/data/ipatmngt/grdlist["+ (grdrow+1) +"]/crmyn", "");
  446. model.setValue("/root/main/data/ipatmngt/grdlist["+ (grdrow+1) +"]/execcnts", "");
  447. model.setValue("/root/main/data/ipatmngt/grdlist["+ (grdrow+1) +"]/execdieter", getUserInfo("userid"));
  448. model.setValue("/root/main/data/ipatmngt/grdlist["+ (grdrow+1) +"]/execdd", getCurrentDate());
  449. //model.setFocus("/root/main/tab/menuwrite/list["+ (grdrow+1) +"]/dishflag");
  450. model.refresh();
  451. }
  452. //집단교육 탭화면일때
  453. else if ( btn_nonregleduc.selected ) {
  454. grd_nonregleduc.addRow();
  455. }
  456. ]]>
  457. </script>
  458. </button>
  459. <button id="btn_rowdel3" class="btn2_letter3" visibility="hidden" style="left:1006px; top:50px; width:53px; height:19px; ">
  460. <caption>행삭제</caption>
  461. <script type="javascript" ev:event="DOMActivate">
  462. <![CDATA[
  463. //var cur_row = grd_nonregleduc.row;
  464. //grd_nonregleduc.deleteRow(cur_row);
  465. grd_nonregleduc.deleteRow(grd_nonregleduc.row);
  466. ]]>
  467. </script>
  468. </button>
  469. <button id="btn_excel" class="btn2_letter2" style="left:1105px; top:50px; width:42px; height:19px; ">
  470. <caption>엑셀</caption>
  471. <script type="javascript" ev:event="DOMActivate">
  472. <![CDATA[
  473. if ( btn_ipatmngt.selected ) {
  474. var filename = window.fileDialog("save", ",", false, "입원치료식환자관리현황", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  475. if (filename != "") {
  476. grd_ipatmngt.saveExcel(filename, "grd_ipatmngt", true, false, "", "", "");
  477. }
  478. } else if ( btn_ipatmngtrslt.selected ) {
  479. var filename = window.fileDialog("save", ",", false, "환자관리결과현황", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  480. if (filename != "") {
  481. grd_ipatmngtrslt.saveExcel(filename, "grd_ipatmngtrslt", true, false, "", "", "");
  482. }
  483. } else if ( btn_telnutrcnst.selected ) {
  484. var filename = window.fileDialog("save", ",", false, "전화영양상담현황", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  485. if (filename != "") {
  486. grd_telnutrcnst.saveExcel(filename, "grd_telnutrcnst", true, false, "", "", "");
  487. }
  488. } else if ( btn_nonregleduc.selected ) {
  489. var filename = window.fileDialog("save", ",", false, "집단교육현황", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  490. if (filename != "") {
  491. grd_nonregleduc.saveExcel(filename, "grd_nonregleduc", true, false, "", "", "");
  492. }
  493. }
  494. ]]>
  495. </script>
  496. </button>
  497. <caption id="caption1" style="left:970px; top:0px; width:195px; height:20px; color:#ff0000; ">
  498. <![CDATA[데이터리스트의 높이조절하세요 ->]]>
  499. </caption>
  500. </group>
  501. <group id="grp_btn" style="left:0px; top:757px; width:1195px; height:27px; ">
  502. <button id="btn_reset" class="btn4_letter3" visibility="hidden" style="left:1067px; top:5px; width:68px; height:22px; ">
  503. <caption>초기화</caption>
  504. <script type="javascript" ev:event="DOMActivate">
  505. <![CDATA[
  506. finit();
  507. ]]>
  508. </script>
  509. </button>
  510. <button id="btn_save" class="btn4_letter2" visibility="hidden" style="left:1136px; top:5px; width:56px; height:22px; ">
  511. <caption>저장</caption>
  512. <script type="javascript" ev:event="DOMActivate">
  513. <![CDATA[
  514. if ( messageBox("", "Q002") == 6 ) {
  515. //입원환자관리 탭화면일때
  516. if ( btn_ipatmngt.selected ) {
  517. model.setValue("/root/send/data/ipatmngt/list", grd_ipatmngt.getUpdateData());
  518. if (submit("TXANC00401")) {
  519. submit("TRANC00401");
  520. }
  521. }
  522. //환자관리결과조회 탭화면일때
  523. // if ( btn_ipatmngtrslt.selected ) {
  524. // messageBox("결과조회는 저장", "E001");
  525. // return;
  526. // }
  527. //전화영양상담 탭화면일때
  528. else if ( btn_telnutrcnst.selected ) {
  529. //전화영양상담 메인 그리드
  530. if ( getGridUpdateData(grd_telnutrcnst) != "" ) {
  531. //필수입력항목 체크
  532. for ( i=1; i<grd_telnutrcnst.rows; i++) {
  533. if ( (model.getValue("/root/main/data/telnutrcnst/grdlist[" + i + "]/execyn") == "Y") &&
  534. ((model.getValue("/root/main/data/telnutrcnst/grdlist[" + i + "]/telexecdd") == "") ||
  535. (model.getValue("/root/main/data/telnutrcnst/grdlist[" + i + "]/execdieter") == "")) ) {
  536. messageBox("수행일자, 영양사 항목은", "I003");
  537. return;
  538. }
  539. }
  540. model.setValue("/root/send/data/telnutrcnst/list", grd_telnutrcnst.getUpdateData());
  541. if (submit("TXANC00402")) {
  542. submit("TRANC00402");
  543. }
  544. }
  545. //하단의 전화영양상담건수 그리드
  546. if ( getGridUpdateData(grd_cnstcount) != "" ) {
  547. //필수입력항목 체크
  548. for ( i=1; i<grd_cnstcount.rows; i++) {
  549. if ( (model.getValue("/root/main/data/telnutrcnstcnt/cnstcount[" + i + "]/cnstdd") == "") ||
  550. (model.getValue("/root/main/data/telnutrcnstcnt/cnstcount[" + i + "]/dieter") == "") ) {
  551. messageBox("상담일자, 영양사 항목은", "I003");
  552. return;
  553. }
  554. }
  555. model.setValue("/root/send/data/telnutrcnstcnt/cnstcount", grd_cnstcount.getUpdateData());
  556. if (submit("TXANC00404")) {
  557. submit("TRANC00404");
  558. }
  559. }
  560. }
  561. //집단교육 탭화면일때
  562. else if ( btn_nonregleduc.selected ) {
  563. //필수입력항목 체크
  564. for ( i=1; i<grd_nonregleduc.rows; i++) {
  565. if ( (model.getValue("/root/main/data/nonregleduc/grdlist[" + i + "]/educdd") == "") ||
  566. (model.getValue("/root/main/data/nonregleduc/grdlist[" + i + "]/eductm") == "") ||
  567. (model.getValue("/root/main/data/nonregleduc/grdlist[" + i + "]/educdieter") == "") ) {
  568. messageBox("일자, 시간, 영양사 항목은", "I003");
  569. return;
  570. }
  571. }
  572. model.setValue("/root/send/data/nonregleduc/list", grd_nonregleduc.getUpdateData());
  573. submit("TXANC00403");
  574. }
  575. //model.resetInstanceNode("/root/send/data");
  576. } else { return; }
  577. ]]>
  578. </script>
  579. </button>
  580. <button id="btn_listprnt" class="btn6_letter5" disabled="true" visibility="hidden" style="left:0px; top:5px; width:92px; height:22px; ">
  581. <caption>리스트출력</caption>
  582. </button>
  583. <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:1194px; y2:0px; "/>
  584. </group>
  585. <input id="input1" ref="/root/main/colsize/colsize" visibility="hidden" editable="false" style="left:930px; top:6px; width:20px; height:19px; "/>
  586. <group id="group4" overflow="hidden" style="left:1160px; top:11px; width:25px; height:70px; border-color:#99ccff; border-style:solid; ">
  587. <button id="resizeButton" style="left:0px; top:30px; width:25px; height:5px; background-color:#000000; ">
  588. <caption/>
  589. <script type="javascript" ev:event="onmousedown">
  590. <![CDATA[
  591. moving = true;
  592. ]]>
  593. </script>
  594. <script type="javascript" ev:event="onmouseup">
  595. <![CDATA[
  596. moving = false;
  597. input1.value = grd_ipatmngtrslt.dataHeight;
  598. resizeButton.attribute("top") = input1.value+"px";
  599. ]]>
  600. </script>
  601. </button>
  602. <script type="javascript" ev:event="onmousemove">
  603. <![CDATA[
  604. if(moving == true)
  605. {
  606. //그리드의 col width 를 조정한다
  607. resizeButton.attribute("top") = event.y+"px";
  608. input1.value = event.y;
  609. grd_ipatmngtrslt.dataHeight = input1.value;
  610. }
  611. ]]>
  612. </script>
  613. </group>
  614. </xhtml:body>
  615. </xhtml:html>