SMANC00550_영양관리기록.xrw 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395
  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. <ward/>
  14. <room/>
  15. <hngnm/>
  16. <execdd/>
  17. <exectm/>
  18. <mngtitem/>
  19. <nutrmngt/>
  20. <intndieter/>
  21. <execdieter/>
  22. </grdlist>
  23. </ipatmngt>
  24. </data>
  25. <patinfo>
  26. <patinfolist/>
  27. </patinfo>
  28. </main>
  29. <send>
  30. <searchitem>
  31. <ipatmngt>
  32. <ward/>
  33. <patflag/>
  34. <execddfrom/>
  35. <execddto/>
  36. <pid/>
  37. <hngnm/>
  38. <dieter/>
  39. <room/>
  40. <orddeptcd/>
  41. <subdeptcd/>
  42. <medispclid/>
  43. <atdoctid/>
  44. <mypatflag/>
  45. <srchdd/>
  46. <pid/>
  47. <orddeptnm/>
  48. <medispclnm/>
  49. <atdoctidnm/>
  50. </ipatmngt>
  51. </searchitem>
  52. <data>
  53. <ipatmngt>
  54. <list/>
  55. </ipatmngt>
  56. <telnutrcnst>
  57. <list/>
  58. </telnutrcnst>
  59. <telnutrcnstcnt>
  60. <cnstcount/>
  61. </telnutrcnstcnt>
  62. <nonregleduc>
  63. <list/>
  64. </nonregleduc>
  65. <mrjhedu>
  66. <listdata/>
  67. </mrjhedu>
  68. </data>
  69. <reqdata/>
  70. <globalinstance>
  71. <instance1/>
  72. </globalinstance>
  73. </send>
  74. <hidden>
  75. <msglist/>
  76. </hidden>
  77. <init>
  78. <basecode>
  79. <sick>
  80. <A0059>
  81. <cdid/>
  82. <cdnm/>
  83. </A0059>
  84. </sick>
  85. <ward>
  86. <dept>
  87. <deptcd/>
  88. <depthngnm/>
  89. </dept>
  90. </ward>
  91. <dieter>
  92. <alldieter>
  93. <cdid/>
  94. <cdnm/>
  95. </alldieter>
  96. <intndieter>
  97. <cdid/>
  98. <cdnm/>
  99. </intndieter>
  100. </dieter>
  101. <room>
  102. <room>
  103. <cdid/>
  104. <cdnm/>
  105. </room>
  106. </room>
  107. </basecode>
  108. <orddept/>
  109. <subdeptinfo/>
  110. <userlist/>
  111. <userlist2/>
  112. </init>
  113. <temp/>
  114. </root>
  115. </instance>
  116. <script type="javascript" ev:event="xforms-ready">
  117. <![CDATA[
  118. var dutplcecd = getUserInfo("dutplcecd"); // 부서코드 정보 가져오기
  119. finit();
  120. btn_search1.disabled = !checkAuth("R");
  121. //btn_rowadd3.visible = false;
  122. submit("TRANC00202"); //영양사 조회
  123. mmbfGetDeptCodeComboList("/root/send/reqdata", "/root/init/orddept" , "D"); //부서코드 콤보 (진료과)
  124. addComboInstance("/root/init/orddept", "deptcd^depthngnm", "-^전체", "dept"); // 콤보 항목에 "전체" 추가
  125. if( dutplcecd != "" ){ // 사용자 부서코드가 있으면 해당 부서를 자동으로 셋팅 함.
  126. model.setValue("/root/send/searchitem/ipatmngt/orddeptcd", dutplcecd);
  127. }
  128. if(cmb_orddept.label == ""){cmb_orddept.select(0);} // 선택된 진료과가 없는 경우 label이 기본인 "전체"일테니 default로 첫번째(전체) 설정
  129. model.refresh();
  130. ]]>
  131. </script>
  132. <script type="javascript">
  133. <![CDATA[
  134. function finit() {
  135. // 화면open시 공통코드 setting
  136. zbcfGetCodeList( new Array( "A0059" ), new Array( "/root/init/basecode/sick" ) );
  137. //zbcfGetDeptCodeList(getUserInfo("dutplceinstcd"), 'orduseyn', 'W', '/root/init/basecode/ward', 'depthngnm', 'asc', new Date().getDateFormat("YYYYMMDD"), "", 'after');
  138. zsdfGetWardDeptList(getUserInfo("dutplceinstcd"), '/root/init/basecode/ward', 'depthngnm', 'asc', new Date().getDateFormat("YYYYMMDD"), 'after');
  139. model.removeNodeset("/root/main/data/ipatmngt/grdlist");
  140. model.resetInstanceNode("/root/send");
  141. model.setValue("/root/send/searchitem/ipatmngt/execddfrom", getCurrentDate().toDate().getAddDate(-14,"D").getDateFormat("YYYYMMDD"));
  142. model.setValue("/root/send/searchitem/ipatmngt/execddto", getCurrentDate());
  143. model.setValue("/root/send/searchitem/ipatmngt/srchdd", getCurrentDate()); // 진료일
  144. model.refresh();
  145. }
  146. ]]>
  147. </script>
  148. <submission id="TRZBC00101"/>
  149. <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  150. <submission id="TRANC00202" mediatype="application/x-www-form-urlencoded" method="post" resultref="/root/init/basecode/dieter"/>
  151. <submission id="TRANT01004" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchitem/ipatmngt" resultref="/root/init/basecode/room"/>
  152. <submission id="TRANC00551" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchitem/ipatmngt" resultref="/root/main/data/ipatmngt"/>
  153. <submission id="TRMMB04101" mediatype="application/x-www-form-urlencoded" method="post"/>
  154. <submission id="TRMMB04102" mediatype="application/x-www-form-urlencoded" method="post"/>
  155. <submission id="TRMMB04106" mediatype="application/x-www-form-urlencoded" method="post"/>
  156. </model>
  157. <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
  158. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  159. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  160. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  161. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  162. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  163. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  164. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  165. <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
  166. </xhtml:head>
  167. <xhtml:body guideline="1,1194;2,737;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  168. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  169. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:216px; height:14px; ">영양관리 기록조회</caption>
  170. </group>
  171. <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  172. <switch id="swt_patmngt" style="left:0px; top:26px; width:1194px; height:718px; ">
  173. <case id="case1" selected="true">
  174. <group id="grp_sea" style="left:5px; top:5px; width:1182px; height:60px; vertical-align:top; ">
  175. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1182px; height:60px; background-color:#fffbf2; "/>
  176. <button id="btn_search1" class="btn1_letter2" style="left:1105px; top:20px; width:56px; height:22px; ">
  177. <caption>조회</caption>
  178. <script type="javascript" ev:event="DOMActivate">
  179. <![CDATA[
  180. var patflag = model.getValue("/root/send/searchitem/ipatmngt/patflag");
  181. var pid = model.getValue("/root/send/searchitem/ipatmngt/pid");
  182. var hngnm = model.getValue("/root/send/searchitem/ipatmngt/hngnm");
  183. var fromdd = model.getValue("/root/send/searchitem/ipatmngt/execddfrom");
  184. var todd = model.getValue("/root/send/searchitem/ipatmngt/execddto");
  185. if ( getDateInterval(fromdd, todd) < 0 ) {
  186. messageBox("조회 시작일은 종료일보다 클 수", "I004");
  187. return;
  188. } else {
  189. submit("TRANC00551");
  190. }
  191. ]]>
  192. </script>
  193. </button>
  194. <line id="line13" class="line_4" style="x1:1092px; y1:3px; x2:1092px; y2:56px; "/>
  195. <caption id="caption33" class="search_name" style="left:516px; top:37px; width:75px; height:17px; ">병 동</caption>
  196. <select1 id="cmb_ward" ref="/root/send/searchitem/ipatmngt/ward" class="combo_s_essential" appearance="minimal" style="left:595px; top:36px; width:115px; height:19px; ">
  197. <choices>
  198. <itemset nodeset="/root/init/basecode/ward/dept">
  199. <label ref="depthngnm"/>
  200. <value ref="deptcd"/>
  201. </itemset>
  202. </choices>
  203. <script type="javascript" ev:event="xforms-value-changed">
  204. <![CDATA[
  205. submit("TRANT01004"); //선택병동의 병실 조회
  206. ]]>
  207. </script>
  208. </select1>
  209. <select1 id="cmb_room" ref="/root/send/searchitem/ipatmngt/room" class="combo_s_essential" visibility="hidden" appearance="minimal" style="left:200px; top:40px; width:92px; height:19px; ">
  210. <choices>
  211. <itemset nodeset="/root/init/basecode/room/room">
  212. <label ref="cdnm"/>
  213. <value ref="cdid"/>
  214. </itemset>
  215. </choices>
  216. </select1>
  217. <caption id="caption2" class="search_name" visibility="hidden" style="left:135px; top:40px; width:86px; height:17px; ">병실</caption>
  218. <caption id="caption1" class="search_name" style="left:721px; top:36px; width:91px; height:17px; ">등록번호</caption>
  219. <button id="btn_pid" class="icon_search" style="left:870px; top:35px; width:16px; height:16px; ">
  220. <caption/>
  221. <script type="javascript" ev:event="DOMActivate">
  222. <![CDATA[
  223. modal("SPPMC02500", "", "200", "200", "SPPMC02500", "/root/hidden", "/root/main/patinfo/patinfolist");
  224. model.setValue("/root/send/searchitem/ipatmngt/pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
  225. model.setValue("/root/send/searchitem/ipatmngt/hngnm", model.getValue("/root/main/patinfo/patinfolist/hngnm"));
  226. model.refresh();
  227. ]]>
  228. </script>
  229. </button>
  230. <input id="ipt_pid1" ref="/root/send/searchitem/ipatmngt/pid" class="input" autonext="false" maxlength="10" format="9999999999" style="left:800px; top:35px; width:65px; height:19px; ">
  231. <script type="javascript" ev:event="onkeydown">
  232. <![CDATA[
  233. inputEnterKey("btn_search1", "DOMActivate");
  234. ]]>
  235. </script>
  236. </input>
  237. <caption id="caption5" class="search_name" style="left:900px; top:37px; width:86px; height:17px; ">환 자 명</caption>
  238. <input id="ipt_hngnm1" ref="/root/send/searchitem/ipatmngt/hngnm" class="input" style="left:979px; top:35px; width:70px; height:19px; ">
  239. <script type="javascript" ev:event="onkeydown">
  240. <![CDATA[
  241. inputEnterKey("btn_search1", "DOMActivate");
  242. ]]>
  243. </script>
  244. </input>
  245. <button id="btn_patnm" class="icon_search" style="left:1053px; top:35px; width:16px; height:16px; ">
  246. <caption/>
  247. <script type="javascript" ev:event="DOMActivate">
  248. <![CDATA[
  249. modal("SPPMC02500", "", "200", "200", "SPPMC02500", "/root/hidden", "/root/main/patinfo/patinfolist");
  250. model.setValue("/root/send/searchitem/ipatmngt/pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
  251. model.setValue("/root/send/searchitem/ipatmngt/hngnm", model.getValue("/root/main/patinfo/patinfolist/hngnm"));
  252. model.refresh();
  253. ]]>
  254. </script>
  255. </button>
  256. <input id="ipt_inddfrom" ref="/root/send/searchitem/ipatmngt/execddfrom" class="input_search" inputtype="date" style="left:95px; top:10px; width:90px; height:19px; "/>
  257. <caption id="caption19" class="search_n_b" style="left:187px; top:10px; width:12px; height:17px; font-weight:bolder; ">~</caption>
  258. <caption id="caption4" class="search_name" style="left:6px; top:10px; width:86px; height:17px; ">조회일자 :</caption>
  259. <input id="ipt_inddto" ref="/root/send/searchitem/ipatmngt/execddto" class="input_search" inputtype="date" style="left:200px; top:10px; width:90px; height:19px; "/>
  260. <select1 id="cmb_medispclid" ref="/root/send/searchitem/ipatmngt/medispclid" class="combo_search" appearance="minimal" itemcount="30" style="left:800px; top:10px; width:90px; height:19px; ">
  261. <choices>
  262. <itemset nodeset="/root/init/userlist/usercombo">
  263. <label ref="usernm"/>
  264. <value ref="userid"/>
  265. </itemset>
  266. </choices>
  267. </select1>
  268. <select1 id="combo4" ref="/root/send/searchitem/ipatmngt/atdoctid" class="combo_search" appearance="minimal" editmode="inputsearch" itemcount="30" style="left:979px; top:10px; width:90px; height:19px; ">
  269. <choices>
  270. <itemset nodeset="/root/init/userlist2/usercombo">
  271. <label ref="usernm"/>
  272. <value ref="userid"/>
  273. </itemset>
  274. </choices>
  275. </select1>
  276. <caption id="caption14" class="search_name" style="left:516px; top:10px; width:76px; height:17px; ">세 부 과</caption>
  277. <select1 id="cmb_subdept" ref="/root/send/searchitem/ipatmngt/subdeptcd" class="combo" appearance="minimal" style="left:595px; top:10px; width:115px; height:19px; ">
  278. <choices>
  279. <itemset nodeset="/root/init/subdeptinfo/subdeptlist">
  280. <label ref="subdeptnm"/>
  281. <value ref="subdeptcd"/>
  282. </itemset>
  283. </choices>
  284. </select1>
  285. <caption id="caption7" class="search_name" style="left:306px; top:10px; width:76px; height:17px; ">진 료 과</caption>
  286. <caption id="caption8" class="search_name" style="left:900px; top:10px; width:76px; height:17px; ">담 당 의</caption>
  287. <caption id="caption9" class="search_name" style="left:721px; top:10px; width:76px; height:17px; ">주 치 의</caption>
  288. <select1 id="cmb_orddept" ref="/root/send/searchitem/ipatmngt/orddeptcd" class="combo_search" appearance="minimal" editmode="search" style="left:385px; top:10px; width:115px; height:19px; ">
  289. <choices>
  290. <itemset nodeset="/root/init/orddept/dept">
  291. <label ref="depthngnm"/>
  292. <value ref="deptcd"/>
  293. </itemset>
  294. </choices>
  295. <script type="javascript" ev:event="xforms-value-changed">
  296. <![CDATA[
  297. model.removeNodeset("/root/init/userlist");
  298. model.removeNodeset("/root/init/userlist2");
  299. model.makeNode("/root/init/userlist/usercombo");
  300. model.makeNode("/root/init/userlist2/usercombo");
  301. mmbfGetUserComboList("/root/send/reqdata", "/root/init/userlist" , cmb_orddept.value, "0330", "", "M");
  302. mmbfGetUserComboList("/root/send/reqdata", "/root/init/userlist2", cmb_orddept.value, "0330", "", "A");
  303. if (model.getValue("/root/send/searchitem/ipatmngt/orddeptcd") == "-") {
  304. model.makeValue("/root/init/userlist/usercombo/userid", "-");
  305. model.makeValue("/root/init/userlist/usercombo/usernm", "전체");
  306. model.makeValue("/root/init/userlist2/usercombo/userid", "-");
  307. model.makeValue("/root/init/userlist2/usercombo/usernm", "전체");
  308. } else {
  309. addComboInstance("/root/init/userlist", "userid^usernm", "-^전체", "usercombo"); //의사콤보 전체항목 추가
  310. addComboInstance("/root/init/userlist2", "userid^usernm", "-^전체", "usercombo");//의사콤보 전체항목 추가
  311. }
  312. model.setValue("/root/send/searchitem/ipatmngt/medispclid", "-");
  313. model.setValue("/root/send/searchitem/ipatmngt/atdoctid", "-");
  314. var orddeptcd = model.getValue("/root/send/searchitem/ipatmngt/orddeptcd");
  315. mmbfGetSubDeptComboList("/root/send/reqdata", "/root/init/subdeptinfo", orddeptcd); // 세부과 정보 셋팅
  316. addComboInstance("/root/init/subdeptinfo", "subdeptnm^subdeptcd", "전체^-", "subdeptlist"); //의사콤보 전체항목 추가
  317. model.setValue("/root/send/searchitem/ipatmngt/subdeptcd", "");
  318. model.refresh();
  319. ]]>
  320. </script>
  321. </select1>
  322. <bool id="bool1" checkvalue="Y,N" ref="/root/send/searchitem/ipatmngt/mypatflag" style="left:2px; top:36px; width:25px; height:20px; "/>
  323. <caption id="caption11" style="left:27px; top:36px; width:79px; height:17px; font-weight:bold; ">
  324. <![CDATA[내환자 포함]]>
  325. <script type="javascript" ev:event="onclick">
  326. <![CDATA[
  327. var mypatflag = model.getValue("/root/send/searchitem/ipatmngt/mypatflag");
  328. if(mypatflag == "Y"){
  329. model.setValue("/root/send/searchitem/ipatmngt/mypatflag", "N");
  330. cap_orddd.visible = false;
  331. ipt_orddd.visible = false;
  332. }else{
  333. model.setValue("/root/send/searchitem/ipatmngt/mypatflag", "Y");
  334. cap_orddd.visible = true;
  335. ipt_orddd.visible = true;
  336. }
  337. model.refresh();
  338. ]]>
  339. </script>
  340. </caption>
  341. <caption id="cap_orddd" class="search_name" visibility="hidden" style="left:306px; top:35px; width:76px; height:17px; ">진 료 일</caption>
  342. <input id="ipt_orddd" ref="/root/send/searchitem/ipatmngt/srchdd" class="input" visibility="hidden" inputtype="date" style="left:385px; top:35px; width:115px; height:19px; "/>
  343. </group>
  344. <line id="line38" class="line_1" style="x1:5px; y1:69px; x2:1188px; y2:69px; "/>
  345. <datagrid id="grd_ipatmngt" nodeset="/root/main/data/ipatmngt/grdlist" autoresize="true" caption="병동^병실^환자명^등록번호^진료과^전문의^담당의^관리항목^영양관리^수행일자^수행시간^인턴영양사^영양사" colsep="^" colwidth="75, 65, 70, 75, 90, 75, 75, 100, 350, 70, 60, 70, 75" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:5px; top:74px; width:1183px; height:630px; text-align:center; ">
  346. <col disabled="true" ref="ward" type="combo" visibility="hidden">
  347. <choices>
  348. <itemset nodeset="/root/init/basecode/ward/dept">
  349. <label ref="depthngnm"/>
  350. <value ref="deptcd"/>
  351. </itemset>
  352. </choices>
  353. </col>
  354. <col disabled="true" ref="room"/>
  355. <col disabled="true" ref="hngnm"/>
  356. <col disabled="true" ref="pid"/>
  357. <col disabled="true" ref="orddeptnm"/>
  358. <col disabled="true" ref="medispclnm"/>
  359. <col disabled="true" ref="atdoctidnm"/>
  360. <col disabled="true" ref="mngtitem"/>
  361. <col disabled="true" ref="nutrmngt" style="text-align:left; "/>
  362. <col disabled="true" ref="execdd" format="yyyy-mm-dd"/>
  363. <col disabled="true" ref="exectm" format="hh:nn"/>
  364. <col disabled="true" ref="intndieter" type="combo">
  365. <choices>
  366. <itemset nodeset="/root/init/basecode/dieter/intndieter">
  367. <label ref="cdnm"/>
  368. <value ref="cdid"/>
  369. </itemset>
  370. </choices>
  371. </col>
  372. <col disabled="true" ref="execdieter" type="combo">
  373. <choices>
  374. <itemset nodeset="/root/init/basecode/dieter/alldieter">
  375. <label ref="cdnm"/>
  376. <value ref="cdid"/>
  377. </itemset>
  378. </choices>
  379. </col>
  380. </datagrid>
  381. </case>
  382. </switch>
  383. </group>
  384. </xhtml:body>
  385. </xhtml:html>