SMMMO16900_PCA리스트.xrw 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292
  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>PCA 환자리스트</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <pcapatinfo>
  11. <pcapatlist/>
  12. </pcapatinfo>
  13. <totcnt>
  14. <totcnt/>
  15. </totcnt>
  16. <patinfo>
  17. <patinfolist/>
  18. </patinfo>
  19. <cond>
  20. <opcnfmdd/>
  21. <perfdeptcd/>
  22. <perfdrid/>
  23. <wardcd/>
  24. <pid/>
  25. <hngnm/>
  26. <anstdrid/>
  27. </cond>
  28. </main>
  29. <send>
  30. <reqdata/>
  31. <savedata/>
  32. </send>
  33. <hidden>
  34. </hidden>
  35. <init>
  36. <orddept/>
  37. <orddept2/>
  38. <userlist/>
  39. <userlist2/>
  40. <hardcdno/>
  41. </init>
  42. </root>
  43. </instance>
  44. <bind id="bind1" ref="/root/main/cond/tot" readonly="&quot;true&quot;"/>
  45. <submission id="TRMMO04105" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/patnm"/>
  46. <script type="javascript" ev:event="xforms-ready">
  47. <![CDATA[
  48. reqHardCodeInfo("/root/send/reqdata", "/root/init/hardcdno", 18); //마취통증의학과 부서코드 조회
  49. var anstdeptcd = model.getValue("/root/init/hardcdno/hardcd/hardcd");
  50. mmbfGetDeptCodeComboList("/root/send/reqdata", "/root/init/orddept" , "D"); //부서콤보 조회
  51. addComboInstance("/root/init/orddept", "deptcd^depthngnm", "-^전체", "dept"); //부서콤보 Item '전체'추가
  52. mmbfGetDeptCodeComboList("/root/send/reqdata", "/root/init/orddept2", "W"); //병동코드 콤보
  53. addComboInstance("/root/init/orddept2" , "deptcd^depthngnm", "-^전체", "dept"); //병동콤보 전체항목 추가
  54. mmbfGetUserComboList("/root/send/reqdata", "/root/init/userlist" , getUserInfo("dutplcecd"), "0330"); //의사콤보 조회
  55. addComboInstance("/root/init/userlist", "userid^usernm", "-^전체", "usercombo"); //의사콤보 Item '전체'추가
  56. mmbfGetUserComboList("/root/send/reqdata", "/root/init/userlist2" , anstdeptcd, "0330"); //마취통증의학과 의사콤보 조회
  57. addComboInstance("/root/init/userlist2", "userid^usernm", "-^전체", "usercombo"); //의사콤보 Item '전체'추가
  58. model.setValue(root.main.cond.opcnfmdd, getCurrentDate());
  59. model.setValue(root.main.cond.perfdrid , "-");
  60. cmb_anstdrid.select(0);
  61. cmb_wardcd.select(0);
  62. cmb_orddept.select(0);
  63. model.refresh();
  64. ]]>
  65. </script>
  66. <submission id="TRMMB04101" mediatype="application/x-www-form-urlencoded" method="post"/>
  67. <!-- 부서 리스트 조회-->
  68. <submission id="TRMMB04102" mediatype="application/x-www-form-urlencoded" method="post"/>
  69. <!-- 사용자 리스트 조회-->
  70. <submission id="TRMMB04103" mediatype="application/x-www-form-urlencoded" method="post"/>
  71. <!-- 하드코드 조회-->
  72. <submission id="TRMMO16901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/pcapatinfo"/>
  73. </model>
  74. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  75. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  76. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  77. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  78. <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
  79. <script type="javascript" src="../../../com/userdeptinfoweb/js/ZSU001.js"/>
  80. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  81. <script type="javascript" src="../../../emr/prcpmngtweb/js/SMMMO04100.js"/>
  82. <script type="javascript">
  83. <![CDATA[
  84. /**
  85. * @desc : 엑셀저장
  86. * @
  87. * @param :
  88. * @return :
  89. * @author : 김영학 (2008.12.23)
  90. * @---------------------------------------------------
  91. */
  92. function fsaveGridToExcel(grdObj, title){
  93. var fileName = window.fileDialog("save", ",", false, title, "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  94. if (fileName != ""){
  95. grdObj.saveExcel(fileName, title, true, true, "", "", true);
  96. }
  97. }
  98. /**
  99. * @desc : 환자 조회
  100. * @
  101. * @param :
  102. * @return :
  103. * @author : 김영학 (2008.12.23)
  104. * @---------------------------------------------------
  105. */
  106. function fPCAPatList() {
  107. model.copyNode("/root/send/reqdata", "/root/main/cond");
  108. submit("TRMMO16901");
  109. }
  110. ]]>
  111. </script>
  112. </xhtml:head>
  113. <xhtml:body guideline="1,1174;2,716;2,716;2,61;" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
  114. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:16px; width:1174px; height:61px; background-color:#fffbf2; border-color:#ffd799; "/>
  115. <input id="input11" ref="/root/main/cond/opcnfmdd" class="input_s_essential" navindex="1" inputtype="date" style="left:232px; top:24px; width:98px; height:19px; "/>
  116. <caption id="caption11" class="search_name" style="left:147px; top:25px; width:76px; height:17px; ">수 술 일 :</caption>
  117. <caption id="caption12" class="search_name" style="left:366px; top:24px; width:76px; height:17px; ">집 도 과 :</caption>
  118. <line id="line6" class="line_1" style="x1:0px; y1:97px; x2:1174px; y2:97px; "/>
  119. <caption id="caption2" class="tit_2" style="left:0px; top:82px; width:126px; height:13px; vertical-align:middle; ">PCA 환자 리스트</caption>
  120. <caption id="caption1" style="left:97px; top:23px; width:30px; height:20px; font-weight:bold; vertical-align:middle; ">명</caption>
  121. <caption id="caption7" class="search_name" style="left:5px; top:23px; width:50px; height:17px; ">총</caption>
  122. <caption id="caption3" ref="/root/main/totcnt/totcnt" style="left:56px; top:23px; width:36px; height:20px; text-align:center; border-color:#ffffff; "/>
  123. <line id="line3" style="x1:1100px; y1:23px; x2:1100px; y2:67px; border-color:#ffe4bb; border-left-style:solid; "/>
  124. <caption id="caption10" class="search_name" style="left:147px; top:49px; width:80px; height:17px; ">병 동</caption>
  125. <caption id="caption4" class="search_name" style="left:651px; top:25px; width:76px; height:17px; ">집 도 의 :</caption>
  126. <input id="ipt_pid" ref="/root/main/cond/pid" class="input_search" navindex="6" imemode="disabled" style="left:451px; top:48px; width:98px; height:19px; ">
  127. <script type="javascript" ev:event="onkeypress">
  128. <![CDATA[
  129. inputEnterKey("btn_reqpatnm", "DOMActivate");
  130. ]]>
  131. </script>
  132. </input>
  133. <caption id="caption5" class="search_name" style="left:651px; top:50px; width:76px; height:17px; ">환 자 명</caption>
  134. <caption id="caption6" class="search_name" style="left:366px; top:49px; width:76px; height:17px; ">등록번호 :</caption>
  135. <input id="input1" ref="/root/main/cond/hngnm" class="input_search" navindex="7" style="left:737px; top:48px; width:98px; height:19px; ">
  136. <script type="javascript" ev:event="onkeyup">
  137. <![CDATA[
  138. inputEnterKey("btn_patsrch", "DOMActivate");
  139. ]]>
  140. </script>
  141. </input>
  142. <button id="btn_req" class="btn1_letter2" navindex="8" style="left:1111px; top:35px; width:56px; height:22px; ">
  143. <caption>조회</caption>
  144. <script type="javascript" ev:event="DOMActivate">
  145. <![CDATA[
  146. fPCAPatList();
  147. ]]>
  148. </script>
  149. </button>
  150. <button id="btn_prcpclsnm" class="icon_search" style="left:555px; top:50px; width:16px; height:16px; ">
  151. <caption/>
  152. <script type="javascript" ev:event="DOMActivate">
  153. <![CDATA[
  154. modal("SPPMC02500");
  155. var sPid = model.getValue("/root/main/patinfo/patinfolist/pid");
  156. var sHngnm = model.getValue("/root/main/patinfo/patinfolist/hngnm");
  157. model.setValue("/root/main/cond/pid", sPid);
  158. model.setValue("/root/main/cond/hngnm", sHngnm);
  159. model.refresh();
  160. ]]>
  161. </script>
  162. </button>
  163. <button id="btn_reqpatnm" disabled="true" style="left:550px; top:45px; width:45px; height:20px; ">
  164. <caption/>
  165. <script type="javascript" ev:event="DOMActivate">
  166. <![CDATA[
  167. var pid = model.getValue("/root/main/cond/pid");
  168. var hngnm = model.getValue("/root/main/cond/hngnm");
  169. if((pid =="")&&(hngnm !="")){
  170. fPatSrch(hngnm, "2");
  171. } else if((pid !="")&&(hngnm == "")){
  172. fPatSrch(pid, "1");
  173. } else {
  174. modal("SPPMC02500")
  175. }
  176. model.setValue("/root/main/cond/pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
  177. model.setValue("/root/main/cond/hngnm", model.getValue("/root/main/patinfo/patinfolist/hngnm"));
  178. model.refresh();
  179. ]]>
  180. </script>
  181. </button>
  182. <select1 id="cmb_orddept" ref="/root/main/cond/perfdeptcd" class="combo" navindex="2" appearance="minimal" editmode="search" style="left:451px; top:24px; width:169px; height:19px; ">
  183. <choices>
  184. <itemset nodeset="/root/init/orddept/dept">
  185. <label ref="depthngnm"/>
  186. <value ref="deptcd"/>
  187. </itemset>
  188. </choices>
  189. <script type="javascript" ev:event="xforms-value-changed">
  190. <![CDATA[
  191. model.removeNodeset("/root/init/userlist");
  192. model.makeNode("/root/init/userlist/usercombo");
  193. mmbfGetUserComboList("/root/send/reqdata", "/root/init/userlist" , cmb_orddept.value, "0330"); //집도의 조회
  194. var deptcd = model.getValue("/root/main/cond/perfdeptcd");
  195. if (deptcd == "-") {
  196. model.makeValue("/root/init/userlist/usercombo/userid", "-");
  197. model.makeValue("/root/init/userlist/usercombo/usernm", "전체");
  198. model.setValue("/root/main/cond/perfdrid", "-");
  199. } else {
  200. addComboInstance("/root/init/userlist", "userid^usernm", "-^전체", "usercombo"); //의사콤보 전체항목 추가
  201. cmb_orddrid.select(0);
  202. }
  203. model.refresh();
  204. ]]>
  205. </script>
  206. </select1>
  207. <datagrid id="grd_pcapatlist" nodeset="/root/main/pcapatinfo/pcapatlist" caption="병실^등록번호^환자명^S/A^집도과^집도의^진단명^수술명^instcd" colsep="^" colwidth="63, 77, 87, 63, 120, 90, 287, 343, 0" ellipsis="true" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="true" navindex="9" style="left:0px; top:102px; width:1174px; height:629px; ">
  208. <col disabled="true" ref="roomcd" style="text-align:center; "/>
  209. <col ref="pid" style="text-align:center; "/>
  210. <col ref="hngnm" style="text-align:center; "/>
  211. <col ref="sa" style="text-align:center; "/>
  212. <col disabled="true" ref="perfdeptcd" style="text-align:center; "/>
  213. <col ref="perfdrnm" style="text-align:center; "/>
  214. <col ref="diagnm" style="text-align:center; "/>
  215. <col ref="opnm" style="text-align:center; "/>
  216. <col ref="instcd"/>
  217. <script type="javascript" ev:event="onaftersort">
  218. <![CDATA[
  219. grd_pcapatlist.gridToInstance();
  220. ]]>
  221. </script>
  222. </datagrid>
  223. <select1 id="cmb_orddrid" ref="/root/main/cond/perfdrid" navindex="3" appearance="minimal" editmode="search" itemcount="30" style="left:737px; top:25px; width:98px; height:19px; ">
  224. <choices>
  225. <itemset nodeset="/root/init/userlist/usercombo">
  226. <label ref="usernm"/>
  227. <value ref="userid"/>
  228. </itemset>
  229. </choices>
  230. </select1>
  231. <button id="btn_patsrch" disabled="true" style="left:840px; top:45px; width:45px; height:20px; ">
  232. <caption/>
  233. <script type="javascript" ev:event="DOMActivate">
  234. <![CDATA[
  235. var pid = model.getValue("/root/main/cond/pid");
  236. var hngnm = model.getValue("/root/main/cond/hngnm");
  237. if((pid =="")&&(hngnm !="")){
  238. fPatSrch(hngnm, "2");
  239. } else if((pid !="")&&(hngnm == "")){
  240. fPatSrch(pid, "1");
  241. } else {
  242. modal("SPPMC02500")
  243. }
  244. model.setValue("/root/main/cond/pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
  245. model.setValue("/root/main/cond/hngnm", model.getValue("/root/main/patinfo/patinfolist/hngnm"));
  246. model.refresh();
  247. ]]>
  248. </script>
  249. </button>
  250. <select1 id="cmb_wardcd" ref="/root/main/cond/wardcd" navindex="5" appearance="minimal" style="left:232px; top:48px; width:98px; height:19px; ">
  251. <choices>
  252. <itemset nodeset="/root/init/orddept2/dept">
  253. <label ref="depthngnm"/>
  254. <value ref="deptcd"/>
  255. </itemset>
  256. </choices>
  257. </select1>
  258. <select1 id="cmb_anstdrid" ref="/root/main/cond/anstdrid" navindex="4" appearance="minimal" editmode="search" itemcount="30" style="left:946px; top:25px; width:98px; height:19px; ">
  259. <choices>
  260. <itemset nodeset="/root/init/userlist2/usercombo">
  261. <label ref="usernm"/>
  262. <value ref="userid"/>
  263. </itemset>
  264. </choices>
  265. </select1>
  266. <caption id="caption8" class="search_name" style="left:860px; top:25px; width:76px; height:17px; ">마 취 의</caption>
  267. <caption id="caption9" class="tit_1" style="left:0px; top:0px; width:119px; height:14px; ">PCA 환자 리스트</caption>
  268. <button id="button1" class="btn2_letter2" style="left:1127px; top:77px; width:42px; height:19px; ">
  269. <caption>엑셀</caption>
  270. <script type="javascript" ev:event="DOMActivate">
  271. <![CDATA[
  272. var title = "PCA 환자 리스트";
  273. fsaveGridToExcel(grd_pcapatlist, title);
  274. ]]>
  275. </script>
  276. </button>
  277. </xhtml:body>
  278. </xhtml:html>