SMMMO04400_응급환자리스트.xrw 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746
  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. <erpatinfo>
  11. <erpatlist/>
  12. <erpatcnt/>
  13. </erpatinfo>
  14. <cond>
  15. <pid/>
  16. <orddeptcd/>
  17. <medispclid/>
  18. <hngnm/>
  19. <srchflag>1</srchflag>
  20. <srchdd/>
  21. <orddd/>
  22. <section>-</section>
  23. <sortcol/>
  24. <orderby/>
  25. <staytm>1</staytm>
  26. <atdoctid/>
  27. <erorddeptcd/>
  28. <ermedispclid/>
  29. <mypatflag>N</mypatflag>
  30. </cond>
  31. <patinfo>
  32. <patinfolist/>
  33. </patinfo>
  34. </main>
  35. <send/>
  36. <hidden>
  37. <srchcond/>
  38. <pid/>
  39. <hngnm/>
  40. <pattriagelist/>
  41. <erincnclinfo/>
  42. </hidden>
  43. <init>
  44. <orddept/>
  45. <userlist/>
  46. <section>-</section>
  47. <rsltgetdata>
  48. <getdata/>
  49. </rsltgetdata>
  50. <userscrnenvinfo/>
  51. <hardcdno/>
  52. <colorflag/>
  53. <calltime/>
  54. <bpcallyn/>
  55. <M0623/>
  56. <erorddept/>
  57. <eruserlist/>
  58. <userlist2/>
  59. <M0720/>
  60. </init>
  61. <popupmenu>
  62. <menu>
  63. <item>
  64. <name>관심환자등록</name>
  65. <func>fCallWndConcPatRgst</func>
  66. </item>
  67. <item>
  68. <name>주의요망환자관리</name>
  69. <func>fCallWndWarnPat</func>
  70. </item>
  71. <item>
  72. <name>-</name>
  73. <func/>
  74. </item>
  75. <item>
  76. <name>Triage등록</name>
  77. <func>fOpenERTriage</func>
  78. </item>
  79. <item>
  80. <name>-</name>
  81. <func/>
  82. </item>
  83. <item>
  84. <name>전공의 적용</name>
  85. <func>fRgstCnclAtDoct</func>
  86. </item>
  87. <!--item>
  88. <name>내 환자 적용</name>
  89. <func>fRgstCnclMyPat</func>
  90. </item-->
  91. <item>
  92. <name>인턴등록</name>
  93. <func>fOpenErInternMngt</func>
  94. </item>
  95. <item>
  96. <name>-</name>
  97. <func/>
  98. </item>
  99. <item>
  100. <name>의사호출</name>
  101. <func>fOpenERCallDr</func>
  102. </item>
  103. <item>
  104. <name>의사호출현황</name>
  105. <func>fOpenErCallDrHist</func>
  106. </item>
  107. <item>
  108. <name>권역외상센터의사호출</name>
  109. <func>fOpenTRCallDr</func>
  110. </item>
  111. <item>
  112. <name>-</name>
  113. <func/>
  114. </item>
  115. <item>
  116. <name>중증응급 등록/해제</name>
  117. <func>fErRecoverWardRgst</func>
  118. </item>
  119. <item>
  120. <name>중증응급 환자조회</name>
  121. <func>fErRecoverWardSrch</func>
  122. </item>
  123. <item>
  124. <name>-</name>
  125. <func/>
  126. </item>
  127. <item>
  128. <name>간호TPR 조회</name>
  129. <func>fCallCareTPRInfo</func>
  130. </item>
  131. <item>
  132. <name>-</name>
  133. <func/>
  134. </item>
  135. <item>
  136. <name>의사결정</name>
  137. <func>fIntensionDecision</func>
  138. </item>
  139. <item>
  140. <name>빈병상현황</name>
  141. <func>fEmptyBedCheck</func>
  142. </item>
  143. <item>
  144. <name>입원의뢰서</name>
  145. <func>fEnterHosReq</func>
  146. </item>
  147. <item>
  148. <name>-</name>
  149. <func/>
  150. </item>
  151. <item>
  152. <name>환자바코드 출력</name>
  153. <func>fPrintPatLabel</func>
  154. </item>
  155. <item>
  156. <name>안전사고보고</name>
  157. <func>fPatQi</func>
  158. </item>
  159. <!--
  160. <item>
  161. <name>RC환자정보</name>
  162. <func>fA</func>
  163. </item>
  164. <item>
  165. <name>심사전달사항</name>
  166. <func>fB</func>
  167. </item>
  168. <item>
  169. <name>-</name>
  170. <func/>
  171. </item>
  172. <item>
  173. <name>V/S조회</name>
  174. <func>fC</func>
  175. </item>
  176. <item>
  177. <name>-</name>
  178. <func/>
  179. </item>
  180. -->
  181. </menu>
  182. </popupmenu>
  183. <popupmenu2>
  184. <menu>
  185. <item>
  186. <name>관심환자등록</name>
  187. <func>fCallWndConcPatRgst</func>
  188. </item>
  189. <item>
  190. <name>주의요망환자관리</name>
  191. <func>fCallWndWarnPat</func>
  192. </item>
  193. <item>
  194. <name>-</name>
  195. <func/>
  196. </item>
  197. <item>
  198. <name>Triage등록</name>
  199. <func>fOpenERTriage</func>
  200. </item>
  201. <item>
  202. <name>-</name>
  203. <func/>
  204. </item>
  205. <item>
  206. <name>전공의 적용</name>
  207. <func>fRgstCnclAtDoct</func>
  208. </item>
  209. <item>
  210. <name>-</name>
  211. <func/>
  212. </item>
  213. <item>
  214. <name>인턴등록</name>
  215. <func>fOpenErInternMngt</func>
  216. </item>
  217. <item>
  218. <name>-</name>
  219. <func/>
  220. </item>
  221. <item>
  222. <name>의사호출 사용자관리</name>
  223. <func>fOpenDrList</func>
  224. </item>
  225. <item>
  226. <name>응급스케쥴등록</name>
  227. <func>fSaveErCallVisit</func>
  228. </item>
  229. <item>
  230. <name>일반의사호출</name>
  231. <func>fOpenERCallDr</func>
  232. </item>
  233. <item>
  234. <name>의사호출현황</name>
  235. <func>fOpenErCallDrHist</func>
  236. </item>
  237. <item>
  238. <name>-</name>
  239. <func/>
  240. </item>
  241. <item>
  242. <name>중증 호출 당직관리</name>
  243. <func>fOpenNurseERDrScheDrList</func>
  244. </item>
  245. <item>
  246. <name>중증 응급 호출</name>
  247. <func>fOpenNurseERCallDr</func>
  248. </item>
  249. <!--
  250. <item>
  251. <name>중증 Visit 등록</name>
  252. <func>fOpenNurseERVisitDr</func>
  253. </item>
  254. -->
  255. <item>
  256. <name>-</name>
  257. <func/>
  258. </item>
  259. <item>
  260. <name>중증응급</name>
  261. <func>fErRecoverWardRgst</func>
  262. </item>
  263. <item>
  264. <name>-</name>
  265. <func/>
  266. </item>
  267. <item>
  268. <name>의사호출 Deactivation</name>
  269. <func>fOpenDrCallDeaction</func>
  270. </item>
  271. <item>
  272. <name>의사호출 Addition</name>
  273. <func>fOpenDrCallAddition</func>
  274. </item>
  275. <item>
  276. <name>-</name>
  277. <func/>
  278. </item>
  279. <item>
  280. <name>간호TPR 조회</name>
  281. <func>fCallCareTPRInfo</func>
  282. </item>
  283. <item>
  284. <name>-</name>
  285. <func/>
  286. </item>
  287. <item>
  288. <name>안전사고보고</name>
  289. <func>fPatQi</func>
  290. </item>
  291. <!--
  292. <item>
  293. <name>RC환자정보</name>
  294. <func>fA</func>
  295. </item>
  296. <item>
  297. <name>심사전달사항</name>
  298. <func>fB</func>
  299. </item>
  300. <item>
  301. <name>-</name>
  302. <func/>
  303. </item>
  304. <item>
  305. <name>V/S조회</name>
  306. <func>fC</func>
  307. </item>
  308. <item>
  309. <name>-</name>
  310. <func/>
  311. </item>
  312. -->
  313. </menu>
  314. </popupmenu2>
  315. </root>
  316. </instance>
  317. <script type="javascript" ev:event="xforms-ready">
  318. <![CDATA[
  319. fInitialize_SMMMO04400();
  320. ]]>
  321. </script>
  322. <submission id="TRMMO04105" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/patnm"/>
  323. <submission id="TRMMO04401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/erpatinfo"/>
  324. <submission id="TRMMO04402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/section"/>
  325. <submission id="TRMMO04403" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/hidden/pattriagelist"/>
  326. <submission id="TRMMO04404" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/hidden/erincnclinfo"/>
  327. <submission id="TRMMB01103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/userscrnenvinfo"/>
  328. <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="post"/>
  329. <submission id="TRZSU10105" mediatype="application/x-www-form-urlencoded" method="post"/>
  330. <submission id="TRMMO04303" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/rsltgetdata"/>
  331. <submission id="TRMMB04101" mediatype="application/x-www-form-urlencoded" method="post"/>
  332. <submission id="TRMMB04102" mediatype="application/x-www-form-urlencoded" method="post"/>
  333. <submission id="TRMMB04103" mediatype="application/x-www-form-urlencoded" method="post"/>
  334. <submission id="TRMMO04129" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/hidden/recinfo"/>
  335. <submission id="TRMMO02705" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/aftcert" resultref="/root/hidden/aftcert"/>
  336. <submission id="TRMMB04107" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  337. </model>
  338. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  339. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  340. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  341. <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
  342. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  343. <script type="javascript" src="../../../com/userdeptinfoweb/js/ZSU001.js"/>
  344. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  345. <script type="javascript" src="../../../emr/prcpmngtweb/js/SMMMO04100.js"/>
  346. <script type="javascript" src="../../../emr/prcpmngtweb/js/SMMMO04400.js"/>
  347. </xhtml:head>
  348. <xhtml:body guideline="1,1174;2,718;2,716;2,64;2,10;1,4;" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
  349. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:1px; width:1174px; height:61px; background-color:#fffbf2; border-color:#ffd799; "/>
  350. <caption id="caption7" class="search_name" style="left:343px; top:9px; width:76px; height:17px; ">진료과</caption>
  351. <line id="line6" class="line_1" style="x1:0px; y1:79px; x2:1174px; y2:79px; "/>
  352. <caption id="caption2" class="tit_2" style="left:0px; top:64px; width:126px; height:13px; vertical-align:middle; ">응급환자 리스트</caption>
  353. <input id="ipt_pid" ref="/root/main/cond/pid" class="input_search" imemode="disabled" maxlength="10" style="left:760px; top:36px; width:70px; height:19px; ">
  354. <script type="javascript" ev:event="onkeypress">
  355. <![CDATA[
  356. inputEnterKey("btn_reqpatnm", "DOMActivate");
  357. ]]>
  358. </script>
  359. </input>
  360. <caption id="caption3" class="search_name" style="left:837px; top:36px; width:60px; height:17px; ">성 명</caption>
  361. <caption id="caption4" class="search_name" style="left:681px; top:36px; width:76px; height:17px; ">등록번호</caption>
  362. <input id="input3" ref="/root/main/cond/hngnm" class="input_search" style="left:899px; top:36px; width:90px; height:19px; ">
  363. <script type="javascript" ev:event="onkeypress">
  364. <![CDATA[
  365. if(event.keyCode == 13){
  366. model.setValue("/root/hidden/srchcond", "2");
  367. model.setValue("/root/hidden/hngnm", input3.currentText);
  368. modal("SPPMC02500", "1","150", "150", "SPPMC02500", "/root/hidden", "/root/send");
  369. var pid = model.getValue("/root/main/patinfo/patinfolist/pid");
  370. var hngnm = model.getValue("/root/main/patinfo/patinfolist/hngnm");
  371. model.setValue("/root/main/cond/pid", pid);
  372. model.setValue("/root/main/cond/hngnm", hngnm);
  373. model.refresh();
  374. }
  375. ]]>
  376. </script>
  377. </input>
  378. <caption id="caption6" class="search_name" style="left:192px; top:9px; width:64px; height:17px; ">구 역</caption>
  379. <button id="btn_prcpclsnm" class="icon_search" style="left:993px; top:37px; width:16px; height:16px; ">
  380. <caption/>
  381. <script type="javascript" ev:event="DOMActivate">
  382. <![CDATA[
  383. modal("SPPMC02500");
  384. var sPid = model.getValue("/root/main/patinfo/patinfolist/pid");
  385. var sHngnm = model.getValue("/root/main/patinfo/patinfolist/hngnm");
  386. model.setValue("/root/main/cond/pid", sPid);
  387. model.setValue("/root/main/cond/hngnm", sHngnm);
  388. model.refresh();
  389. ]]>
  390. </script>
  391. </button>
  392. <button id="btn_reqpatnm" disabled="true" style="left:475px; top:35px; width:45px; height:20px; ">
  393. <caption/>
  394. <script type="javascript" ev:event="DOMActivate">
  395. <![CDATA[
  396. fPidTrim("/root/main/cond/pid");
  397. var pid = model.getValue("/root/main/cond/pid");
  398. if(pid == ""){
  399. return;
  400. }
  401. var pid = model.getValue("/root/main/cond/pid");
  402. if(reqPatInfo("pid", "ptbs", pid)==true){
  403. var hngnm = model.getValue("/root/init/patnm/patnm/hngnm");
  404. model.setValue("/root/main/cond/hngnm", hngnm);
  405. model.refresh();
  406. fReqERPatList();
  407. }
  408. model.refresh();
  409. ]]>
  410. </script>
  411. </button>
  412. <select1 id="combo1" ref="/root/main/cond/section" class="combo" appearance="minimal" style="left:260px; top:10px; width:70px; height:19px; ">
  413. <choices>
  414. <itemset nodeset="/root/init/section/section">
  415. <label ref="typenm"/>
  416. <value ref="typecd"/>
  417. </itemset>
  418. </choices>
  419. </select1>
  420. <bool id="bool1" checkvalue="Y,N" ref="/root/main/cond/mypatflag" style="left:272px; top:34px; width:20px; height:20px; "/>
  421. <caption id="caption11" style="left:290px; top:35px; width:54px; height:19px; font-weight:bold; ">
  422. <![CDATA[내환자]]>
  423. <script type="javascript" ev:event="onclick">
  424. <![CDATA[
  425. var mypatflag = model.getValue("/root/main/cond/mypatflag");
  426. if(mypatflag == "Y"){
  427. model.setValue("/root/main/cond/mypatflag", "N");
  428. }else{
  429. model.setValue("/root/main/cond/mypatflag", "Y");
  430. }
  431. model.refresh();
  432. ]]>
  433. </script>
  434. <hint>
  435. <![CDATA[전문의/담당의/호출의에 포함된 환자]]>
  436. </hint>
  437. </caption>
  438. <select1 id="radio1" ref="/root/main/cond/srchflag" appearance="full" cellspacing="10" cols="4" rows="1" overflow="visible" style="left:86px; top:38px; width:181px; height:19px; border-style:none; ">
  439. <choices>
  440. <item>
  441. <label>재원</label>
  442. <value>1</value>
  443. </item>
  444. <item>
  445. <label>퇴실정리</label>
  446. <value>2</value>
  447. </item>
  448. <item>
  449. <label>퇴원</label>
  450. <value>3</value>
  451. </item>
  452. </choices>
  453. <script type="javascript" ev:event="xforms-value-changed">
  454. <![CDATA[
  455. fReqERPatList();
  456. ]]>
  457. </script>
  458. </select1>
  459. <caption id="caption1" class="search_name" style="left:530px; top:36px; width:76px; height:17px; ">호출의</caption>
  460. <caption id="caption5" class="search_name" style="left:837px; top:11px; width:76px; height:17px; ">재원환자</caption>
  461. <output id="out_curpatcnt" ref="/root/main/erpatinfo/erpatcnt/ercurpatcnt" style="left:915px; top:11px; width:30px; height:19px; text-align:right; "/>
  462. <caption id="caption9" style="left:945px; top:11px; width:10px; height:20px; ">/</caption>
  463. <output id="out_epatcnt" ref="/root/main/erpatinfo/erpatcnt/erpattotalcnt" style="left:955px; top:11px; width:34px; height:19px; text-align:right; "/>
  464. <caption id="caption8" style="left:990px; top:11px; width:20px; height:20px; font-weight:bold; ">명</caption>
  465. <button id="button1" class="btn3_letter3" style="left:1025px; top:25px; width:68px; height:22px; ">
  466. <caption>Triage</caption>
  467. <script type="javascript" ev:event="DOMActivate">
  468. <![CDATA[
  469. modal("SPMNE04400");
  470. fReqERPatList();
  471. ]]>
  472. </script>
  473. </button>
  474. <select1 id="cmb_orddept" ref="/root/main/cond/orddeptcd" class="combo_search" appearance="minimal" style="left:410px; top:9px; width:111px; height:19px; ">
  475. <choices>
  476. <itemset nodeset="/root/init/orddept/dept">
  477. <label ref="depthngnm"/>
  478. <value ref="deptcd"/>
  479. </itemset>
  480. </choices>
  481. <script type="javascript" ev:event="xforms-value-changed">
  482. <![CDATA[
  483. model.removeNodeset("/root/init/userlist");
  484. model.makeNode("/root/init/userlist/usercombo");
  485. if(cmb_orddept.value == "-"){
  486. model.removeNode("/root/init/userlist/usercombo");
  487. model.makeValue("/root/init/userlist/usercombo/userid", "-");
  488. model.makeValue("/root/init/userlist/usercombo/usernm", "전체");
  489. model.removeNode("/root/init/userlist2/usercombo");
  490. model.makeValue("/root/init/userlist2/usercombo/userid", "-");
  491. model.makeValue("/root/init/userlist2/usercombo/usernm", "전체");
  492. }else{
  493. var sOrdDd = model.getValue("/root/main/cond/srchdd");
  494. mmbfGetUserComboList("/root/send/reqdata", "/root/init/userlist" , cmb_orddept.value, "0330", "", "M", sOrdDd); //진료과 의사콤보 조회
  495. addComboInstance("/root/init/userlist", "userid^usernm", "-^전체", "usercombo"); //의사콤보 전체항목 추가
  496. mmbfGetUserComboList("/root/send/reqdata", "/root/init/userlist2" , cmb_orddept.value, "0330", "", "A", sOrdDd); //진료과 의사콤보 조회
  497. addComboInstance("/root/init/userlist2", "userid^usernm", "-^전체", "usercombo"); //의사콤보 전체항목 추가
  498. }
  499. model.setValue("/root/main/cond/medispclid", "-");
  500. model.setValue("/root/main/cond/atdoctid", "-");
  501. model.refresh();
  502. fReqERPatList();
  503. ]]>
  504. </script>
  505. </select1>
  506. <caption id="caption12" class="search_name" style="left:4px; top:9px; width:76px; height:17px; ">조회일자</caption>
  507. <input id="input2" ref="/root/main/cond/srchdd" inputtype="date" style="left:84px; top:9px; width:90px; height:19px; ">
  508. <script type="javascript" ev:event="xforms-value-changed">
  509. <![CDATA[
  510. model.removeNodeset("/root/init/orddept");
  511. model.makeNode("/root/init/orddept/dept");
  512. var sOrdDd = model.getValue("/root/main/cond/srchdd");
  513. var sOrdDeptCd = model.getValue("/root/main/cond/orddeptcd");
  514. mmbfGetDeptCodeComboList("/root/send/reqdata", "/root/init/orddept", "D", sOrdDd); // 진료일자 기준으로 진료과를 다시 조회
  515. addComboInstance("/root/init/orddept" , "deptcd^depthngnm", "-^전체", "dept"); //부서콤보 Item '전체'추가
  516. if(isNull(model.getValue("/root/init/orddept/dept[deptcd='"+sOrdDeptCd+"']/deptcd"))) {
  517. if(fContainsHardCD("445", sOrdDeptCd)) { // 소아청소년과 분과 이면 소아청소년과로 설정.
  518. model.setValue("/root/main/cond/orddeptcd", "2110000000");
  519. cmb_orddept.dispatch("xforms-value-changed");
  520. cmb_erorddeptcd.dispatch("xforms-value-changed");
  521. } else {
  522. messageBox ( "선택일자에 존재하지 않는 진료과 입니다.\n\n진료과를 다시 선택 하세요.", "I" );
  523. model.setValue("/root/main/cond/orddeptcd", "-");
  524. }
  525. }
  526. model.refresh();
  527. ]]>
  528. </script>
  529. </input>
  530. <button id="btn_req" class="btn1_letter2" style="left:1110px; top:25px; width:56px; height:22px; ">
  531. <caption>조회</caption>
  532. <script type="javascript" ev:event="DOMActivate">
  533. <![CDATA[
  534. model.setValue("/root/main/cond/orderby", "");
  535. model.setValue("/root/main/cond/sortcol", "");
  536. fReqERPatList();
  537. ]]>
  538. </script>
  539. </button>
  540. <line id="line1" style="x1:1015px; y1:7px; x2:1015px; y2:57px; border-color:#ffe4bb; border-left-style:solid; "/>
  541. <select1 id="cmb_orddrid" ref="/root/main/cond/ermedispclid" class="combo_search" appearance="minimal" style="left:599px; top:36px; width:70px; height:19px; ">
  542. <choices>
  543. <itemset nodeset="/root/init/eruserlist/usercombo">
  544. <label ref="usernm"/>
  545. <value ref="userid"/>
  546. </itemset>
  547. </choices>
  548. </select1>
  549. <datagrid id="grd_erpatlist" nodeset="/root/main/erpatinfo/erpatlist" class="datagrid2" caption="질병군분류^BED^특이^의사결정^입원장^상태^등록번호^중증^Triage^KTAS^성명^환자명^S/A^진료과^전문의^담당의^호출진료과^진료과코드^호출의사^의사번호^진단명^주호소^병실^Remark^Remark2^내원일시^인턴1^인턴2^Call Time^Visit Time^체류시간^선택진료여부^DRG^indd^cretno^orddeptcd^visitno^rrgstno1^color^adrvcolor^recovwardcd^actsymp^dschdclrtyn^tmcolorm^staytime^prcpcolor" colsep="^" colwidth="70, 46, 30, 55, 45, 30, 65, 35, 35, 40, 0, 100, 45, 80, 55, 55, 80, 0, 55, 0, 145, 145, 47, 112, 100, 104, 74, 72, 70, 67, 80, 100, 50, 70, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0" ellipsis="true" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="32" rowsep="|" tooltip="true" style="left:0px; top:84px; width:1174px; height:601px; ">
  550. <col ref="drginfo" style="text-align:center; "/>
  551. <col ref="bed" style="text-align:center; "/>
  552. <col ref="spclflag" style="text-align:center; "/>
  553. <col disabled="true" ref="adflag" type="combo">
  554. <choices>
  555. <itemset nodeset="/root/init/M0720/M0720">
  556. <label ref="cdnm"/>
  557. <value ref="cdid"/>
  558. </itemset>
  559. </choices>
  560. </col>
  561. <col ref="adrvflag" style="text-align:center; "/>
  562. <col ref="patstat" style="text-align:center; "/>
  563. <col ref="pid" style="text-align:center; "/>
  564. <col ref="recovwardnm" style="text-align:center; "/>
  565. <col ref="serdiagflag" style="text-align:center; "/>
  566. <col ref="serdiagflag2" style="text-align:center; "/>
  567. <col disabled="true" ref="hngnm" style="text-align:center; "/>
  568. <col disabled="true" ref="dispnm2" style="text-align:center; "/>
  569. <col ref="sa" style="text-align:center; "/>
  570. <col ref="ordindeptnm"/>
  571. <col ref="medispclnm" style="text-align:center; "/>
  572. <col ref="atdoctnm" style="text-align:center; "/>
  573. <col disabled="true" ref="orddeptnm"/>
  574. <col ref="erorddeptcd" visibility="hidden"/>
  575. <col ref="orddoctnm" style="text-align:center; "/>
  576. <col ref="orddoctid" visibility="hidden"/>
  577. <col ref="diagnm"/>
  578. <col ref="mainsynom" style="left:847px; top:32px; width:145px; height:23px; "/>
  579. <col ref="roomcd"/>
  580. <col ref="remark1"/>
  581. <col ref="remark2"/>
  582. <col ref="chosdd" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
  583. <col ref="internnm1" style="text-align:center; "/>
  584. <col ref="internnm2" style="text-align:center; "/>
  585. <col ref="calltm" format="hh:nn:ss" style="text-align:center; "/>
  586. <col ref="visttm" format="hh:nn:ss" style="text-align:center; "/>
  587. <col ref="staytm" style="text-align:center; "/>
  588. <col disabled="true" ref="specordtype" type="combo">
  589. <choices>
  590. <itemset nodeset="/root/init/M0623/M0623">
  591. <label ref="cdnm"/>
  592. <value ref="cdid"/>
  593. </itemset>
  594. </choices>
  595. </col>
  596. <col ref="drgyn" style="text-align:center; "/>
  597. <col ref="indd" visibility="hidden"/>
  598. <col ref="cretno" visibility="hidden"/>
  599. <col ref="orddeptcd" visibility="hidden"/>
  600. <col ref="visitno" visibility="hidden"/>
  601. <col ref="rrgstno1" visibility="hidden"/>
  602. <col ref="color" visibility="hidden"/>
  603. <col ref="adrvcolor" visibility="hidden"/>
  604. <col ref="recovwardcd" visibility="hidden"/>
  605. <col ref="actsymp" visibility="hidden"/>
  606. <col ref="dschdclrtyn" visibility="hidden"/>
  607. <col ref="tmcolor" visibility="hidden"/>
  608. <col ref="staytime" visibility="hidden"/>
  609. <col ref="prcpcolor" visibility="hidden"/>
  610. <script type="javascript" ev:event="onmousedown">
  611. <![CDATA[
  612. if(model.getValue("/root/init/calltime/hardcd/hardcd") != "-"){
  613. setPopupMenu("grd_erpatlist", false, "/root/popupmenu2/menu/item", "name", "func");
  614. }else{
  615. setPopupMenu("grd_erpatlist", false, "/root/popupmenu/menu/item", "name", "func");
  616. }
  617. ]]>
  618. </script>
  619. <script type="javascript" ev:event="ondblclick">
  620. <![CDATA[
  621. if (isDataCell() == true) {
  622. setGlobalVariable("OrderMainRefresh", "Y"); // 처방 메인 refresh 단일화를 위한 글로벌 변수 셋팅 - 20081212 by Moonsh
  623. if ( fChkBfPrcpLoad("E") == false ) {
  624. return;
  625. }
  626. fSelectERPat();
  627. }
  628. //박유진 091104 간호TPR 기록창이 떠있는 경우에만 적용
  629. if (findChildWindowByScreenID("SMMNR00900") != null){
  630. //테스트중
  631. fCallCareTPRInfo();
  632. }
  633. ]]>
  634. </script>
  635. <script type="javascript" ev:event="DOMFocusOut">
  636. <![CDATA[
  637. initPopupMenu();
  638. ]]>
  639. </script>
  640. <script type="javascript" ev:event="onclick">
  641. <![CDATA[
  642. if(grd_erpatlist.isCell(event.target)){
  643. var currow = grd_erpatlist.row;
  644. var curcol = grd_erpatlist.col;
  645. if(currow == 0){ //grid sort
  646. if(sORDERBY == "asc"){
  647. sORDERBY = "desc";
  648. }else{
  649. sORDERBY = "asc";
  650. }
  651. model.setValue("/root/main/cond/sortcol", curcol);
  652. model.setValue("/root/main/cond/orderby", sORDERBY);
  653. model.copyNode(opener.root.cond.erpatlist, root.main.cond);
  654. //nodeListSort(grd_erpatlist.nodeset, grd_erpatlist.colAttribute(curcol, "ref"), sORDERBY);
  655. fChngColorERPatList();
  656. grd_erpatlist.refresh();
  657. }else{
  658. var pid = model.getValue("/root/main/erpatinfo/erpatlist[" + grd_erpatlist.row + "]/pid");
  659. model.setValue(opener.root.source.pid, pid);
  660. }
  661. }
  662. ]]>
  663. </script>
  664. <script type="javascript" ev:event="onaftersort">
  665. <![CDATA[
  666. grd_erpatlist.gridToInstance();
  667. ]]>
  668. </script>
  669. </datagrid>
  670. <group id="group2" style="left:4px; top:690px; width:1085px; height:26px; ">
  671. <shape id="roundrect5" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:525px; top:0px; width:554px; height:26px; background-color:#ffffff; border-color:#3366ff; "/>
  672. <shape id="roundrect4" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:4px; top:0px; width:511px; height:26px; background-color:#ffffff; border-color:#3366ff; "/>
  673. <shape id="rectangle4" appearance="rectangle" style="left:715px; top:4px; width:30px; height:19px; background-color:#ccffcc; border-color:#000000; "/>
  674. <shape id="rectangle5" appearance="rectangle" style="left:885px; top:4px; width:30px; height:19px; background-color:#ffcc99; border-color:#000000; "/>
  675. <shape id="rectangle6" appearance="rectangle" style="left:535px; top:4px; width:30px; height:19px; background-color:#ffffff; border-color:#000000; "/>
  676. <caption id="caption17" style="left:13px; top:5px; width:493px; height:15px; ">◇ : 응급실 입원장 발행 ◆ : 응급실 입원장 발행, 원무에서 접수 ◎ : 외래 입원장 발행</caption>
  677. <caption id="caption18" style="left:745px; top:4px; width:124px; height:19px; ">응급입원후 6시간 이상</caption>
  678. <caption id="caption19" style="left:565px; top:4px; width:134px; height:19px; ">의사처방이존재하는경우</caption>
  679. <caption id="caption29" style="left:920px; top:4px; width:136px; height:19px; ">6시간미만, 의사처방 X</caption>
  680. </group>
  681. <select1 id="combo3" ref="/root/main/cond/medispclid" class="combo_search" appearance="minimal" style="left:599px; top:10px; width:70px; height:19px; ">
  682. <choices>
  683. <itemset nodeset="/root/init/userlist/usercombo">
  684. <label ref="usernm"/>
  685. <value ref="userid"/>
  686. </itemset>
  687. </choices>
  688. </select1>
  689. <caption id="caption36" class="search_name" style="left:530px; top:10px; width:65px; height:17px; ">전문의</caption>
  690. <caption id="caption37" class="search_name" style="left:343px; top:35px; width:76px; height:17px; ">호출과</caption>
  691. <select1 id="cmb_erorddeptcd" ref="/root/main/cond/erorddeptcd" class="combo_search" appearance="minimal" style="left:410px; top:35px; width:111px; height:19px; ">
  692. <choices>
  693. <itemset nodeset="/root/init/orddept/dept">
  694. <label ref="depthngnm"/>
  695. <value ref="deptcd"/>
  696. </itemset>
  697. </choices>
  698. <script type="javascript" ev:event="xforms-value-changed">
  699. <![CDATA[
  700. model.removeNodeset("/root/init/eruserlist");
  701. model.makeNode("/root/init/eruserlist/usercombo");
  702. if(cmb_orddept.value == "-"){
  703. model.removeNode("/root/init/eruserlist/usercombo");
  704. model.makeValue("/root/init/eruserlist/usercombo/userid", "-");
  705. model.makeValue("/root/init/eruserlist/usercombo/usernm", "전체");
  706. }else{
  707. var sOrdDd = model.getValue("/root/main/cond/srchdd");
  708. mmbfGetUserComboList("/root/send/reqdata", "/root/init/eruserlist" , cmb_erorddeptcd.value, "0330", "", "", sOrdDd); //진료과 의사콤보 조회
  709. addComboInstance("/root/init/eruserlist", "userid^usernm", "-^전체", "usercombo"); //의사콤보 전체항목 추가
  710. }
  711. model.setValue("/root/main/cond/ermedispclid", "-");
  712. model.refresh();
  713. fReqERPatList();
  714. ]]>
  715. </script>
  716. </select1>
  717. <select1 id="combo5" ref="/root/main/cond/atdoctid" class="combo_search" appearance="minimal" style="left:760px; top:10px; width:70px; height:19px; ">
  718. <choices>
  719. <itemset nodeset="/root/init/userlist2/usercombo">
  720. <label ref="usernm"/>
  721. <value ref="userid"/>
  722. </itemset>
  723. </choices>
  724. </select1>
  725. <caption id="caption38" class="search_name" style="left:681px; top:10px; width:76px; height:17px; ">담 당 의</caption>
  726. <caption id="caption10" class="search_name" style="left:4px; top:35px; width:76px; height:17px; ">조회조건</caption>
  727. </xhtml:body>
  728. </xhtml:html>