SMMNS01200_수술환자리스트.xrw 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461
  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. <oppatinfo>
  11. <oppatlist>
  12. <ioflag/>
  13. <oproomnm/>
  14. <patinroomdt/>
  15. <cpyn/>
  16. <opfromtmcd/>
  17. <opendtmcd/>
  18. <opusetm/>
  19. <orddeptcd/>
  20. <pid/>
  21. <hngnm/>
  22. <sa/>
  23. <opnm/>
  24. <diagnm/>
  25. <roomcd/>
  26. <anstreqflag/>
  27. <anstdrnm/>
  28. <opstatcd/>
  29. <perfdrnm/>
  30. <waittime/>
  31. <conctypenm/>
  32. <preworkup/>
  33. <hsctpreday/>
  34. <trsntype/>
  35. <hsctday/>
  36. <postcxday/>
  37. <oprsrvno/>
  38. <ophistno/>
  39. <opcnfmdd/>
  40. <perfdeptcd/>
  41. <perfdrid/>
  42. <instcd/>
  43. </oppatlist>
  44. </oppatinfo>
  45. <cond>
  46. <opcnfmdd/>
  47. <perfdeptcd/>
  48. <perfdrid/>
  49. <opstatcd>A</opstatcd>
  50. <pid/>
  51. <hngnm/>
  52. <oproomcd/>
  53. <sortcol/>
  54. <orderby/>
  55. <recinfo/>
  56. </cond>
  57. <totcnt>
  58. <totcnt/>
  59. </totcnt>
  60. <patinfo>
  61. <patinfolist/>
  62. </patinfo>
  63. </main>
  64. <send>
  65. <reqdata/>
  66. <savedata/>
  67. </send>
  68. <hidden>
  69. </hidden>
  70. <init>
  71. <M0014/>
  72. <M0015/>
  73. <orddept/>
  74. <userlist/>
  75. <userlist2/>
  76. <pamkey/>
  77. <rsltgetdata>
  78. <getdata/>
  79. </rsltgetdata>
  80. <hardcdno/>
  81. <M0017/>
  82. <oproomlist/>
  83. <oproomlist2/>
  84. <M0623/>
  85. </init>
  86. <temp>
  87. <patpamkeylist>
  88. <pid/>
  89. <orddd/>
  90. <cretno/>
  91. <instcd/>
  92. <ioflag/>
  93. <medispclidnm/>
  94. <atdoctnm/>
  95. <hngnm/>
  96. </patpamkeylist>
  97. </temp>
  98. <popupmenu>
  99. <menu>
  100. <item>
  101. <name>관심환자등록</name>
  102. <func>fCallWndConcPatRgst</func>
  103. </item>
  104. </menu>
  105. </popupmenu>
  106. <operation/>
  107. </root>
  108. </instance>
  109. <bind id="bind1" ref="/root/main/cond/tot" readonly="&quot;true&quot;"/>
  110. <submission id="TRMMO04105" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/patnm"/>
  111. <submission id="TRMMO04501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/oppatinfo"/>
  112. <submission id="TRMMO04503" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/pamkeyinfo"/>
  113. <script type="javascript" ev:event="xforms-ready">
  114. <![CDATA[
  115. fInitialize_SMMMO04500();
  116. ]]>
  117. </script>
  118. <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="post"/>
  119. <submission id="TRZSU10105" mediatype="application/x-www-form-urlencoded" method="post"/>
  120. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  121. <submission id="TRMMB01103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/userscrnenvinfo"/>
  122. <submission id="TXMMO04301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/hidden"/>
  123. <submission id="TRMMO04303" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/rsltgetdata"/>
  124. <submission id="TRMMO04504" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/pamkey"/>
  125. <submission id="TRMMB04101" mediatype="application/x-www-form-urlencoded" method="post"/>
  126. <submission id="TRMMB04102" mediatype="application/x-www-form-urlencoded" method="post"/>
  127. <submission id="TRMMB04103" mediatype="application/x-www-form-urlencoded" method="post"/>
  128. <submission id="TRMMO05704" mediatype="application/x-www-form-urlencoded" method="post"/>
  129. <submission id="TRMMO04129" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/hidden/recinfo"/>
  130. <submission id="TRMMO02705" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/aftcert" resultref="/root/hidden/aftcert"/>
  131. </model>
  132. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  133. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  134. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  135. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  136. <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
  137. <script type="javascript" src="../../../com/userdeptinfoweb/js/ZSU001.js"/>
  138. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  139. <script type="javascript" src="../../../emr/prcpmngtweb/js/SMMMO04100.js"/>
  140. <script type="javascript" src="../../../emr/prcpmngtweb/js/SMMMO04500.js"/>
  141. </xhtml:head>
  142. <xhtml:body guideline="1,1174;2,716;2,716;2,61;" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
  143. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:1px; width:1174px; height:61px; background-color:#fffbf2; border-color:#ffd799; "/>
  144. <input id="input11" ref="/root/main/cond/opcnfmdd" class="input_s_essential" inputtype="date" style="left:262px; top:9px; width:98px; height:19px; "/>
  145. <caption id="caption11" class="search_name" style="left:177px; top:10px; width:76px; height:17px; ">수 술 일 :</caption>
  146. <caption id="caption12" class="search_name" style="left:416px; top:9px; width:76px; height:17px; ">집 도 과 :</caption>
  147. <select1 id="radio1" ref="/root/main/cond/opstatcd" appearance="full" cellspacing="10" cols="5" overflow="visible" style="left:91px; top:33px; width:270px; height:20px; border-style:none; ">
  148. <choices>
  149. <item>
  150. <label>전체</label>
  151. <value>A</value>
  152. </item>
  153. <item>
  154. <label>미착</label>
  155. <value>M</value>
  156. </item>
  157. <item>
  158. <label>준비</label>
  159. <value>R</value>
  160. </item>
  161. <item>
  162. <label>진행</label>
  163. <value>I</value>
  164. </item>
  165. <item>
  166. <label>완료</label>
  167. <value>F</value>
  168. </item>
  169. </choices>
  170. <script type="javascript" ev:event="xforms-value-changed">
  171. <![CDATA[
  172. fReqOPPatList();
  173. ]]>
  174. </script>
  175. </select1>
  176. <line id="line6" class="line_1" style="x1:0px; y1:82px; x2:1174px; y2:82px; "/>
  177. <caption id="caption2" class="tit_2" style="left:0px; top:67px; width:126px; height:13px; vertical-align:middle; ">수술환자 리스트</caption>
  178. <caption id="caption1" style="left:97px; top:8px; width:30px; height:20px; font-weight:bold; vertical-align:middle; ">명</caption>
  179. <caption id="caption7" class="search_name" style="left:5px; top:8px; width:50px; height:17px; ">총</caption>
  180. <caption id="caption3" ref="/root/main/totcnt/totcnt" style="left:56px; top:8px; width:36px; height:20px; text-align:center; border-color:#ffffff; "/>
  181. <line id="line3" style="x1:1100px; y1:8px; x2:1100px; y2:52px; border-color:#ffe4bb; border-left-style:solid; "/>
  182. <caption id="caption10" class="search_name" style="left:6px; top:34px; width:76px; height:17px; ">수술상태:</caption>
  183. <caption id="caption4" class="search_name" style="left:696px; top:10px; width:76px; height:17px; ">집 도 의 :</caption>
  184. <input id="ipt_pid" ref="/root/main/cond/pid" class="input_search" imemode="disabled" maxlength="10" style="left:782px; top:33px; width:98px; height:19px; ">
  185. <script type="javascript" ev:event="onkeypress">
  186. <![CDATA[
  187. inputEnterKey("btn_reqpatnm", "DOMActivate");
  188. ]]>
  189. </script>
  190. </input>
  191. <caption id="caption5" class="search_name" style="left:894px; top:35px; width:76px; height:17px; ">환 자 명</caption>
  192. <caption id="caption6" class="search_name" style="left:696px; top:34px; width:76px; height:17px; ">등록번호 :</caption>
  193. <input id="input1" ref="/root/main/cond/hngnm" class="input_search" style="left:972px; top:33px; width:98px; height:19px; ">
  194. <script type="javascript" ev:event="onkeyup">
  195. <![CDATA[
  196. inputEnterKey("btn_patsrch", "DOMActivate");
  197. ]]>
  198. </script>
  199. </input>
  200. <button id="btn_req" class="btn1_letter2" style="left:1111px; top:20px; width:56px; height:22px; ">
  201. <caption>조회</caption>
  202. <script type="javascript" ev:event="DOMActivate">
  203. <![CDATA[
  204. model.setValue("/root/main/cond/orderby", "");
  205. model.setValue("/root/main/cond/sortcol", "");
  206. fReqOPPatList();
  207. ]]>
  208. </script>
  209. </button>
  210. <button id="btn_prcpclsnm" class="icon_search" style="left:1074px; top:36px; width:16px; height:16px; ">
  211. <caption/>
  212. <script type="javascript" ev:event="DOMActivate">
  213. <![CDATA[
  214. modal("SPPMC02500");
  215. var sPid = model.getValue("/root/main/patinfo/patinfolist/pid");
  216. var sHngnm = model.getValue("/root/main/patinfo/patinfolist/hngnm");
  217. model.setValue("/root/main/cond/pid", sPid);
  218. model.setValue("/root/main/cond/hngnm", sHngnm);
  219. model.refresh();
  220. ]]>
  221. </script>
  222. </button>
  223. <button id="btn_reqpatnm" disabled="true" style="left:840px; top:31px; width:45px; height:20px; ">
  224. <caption/>
  225. <script type="javascript" ev:event="DOMActivate">
  226. <![CDATA[
  227. fPidTrim("/root/main/cond/pid");;
  228. var pid = model.getValue("/root/main/cond/pid");
  229. if(pid == ""){
  230. return;
  231. }
  232. var pid = model.getValue("/root/main/cond/pid");
  233. if(reqPatInfo("pid", "ptbs", pid)==true){
  234. var hngnm = model.getValue("/root/init/patnm/patnm/hngnm");
  235. model.setValue("/root/main/cond/hngnm", hngnm);
  236. model.refresh();
  237. fReqOPPatList();
  238. }
  239. ]]>
  240. </script>
  241. </button>
  242. <select1 id="cmb_orddept" ref="/root/main/cond/perfdeptcd" class="combo" appearance="minimal" editmode="search" style="left:501px; top:9px; width:169px; height:19px; ">
  243. <choices>
  244. <itemset nodeset="/root/init/orddept/dept">
  245. <label ref="depthngnm"/>
  246. <value ref="deptcd"/>
  247. </itemset>
  248. </choices>
  249. <script type="javascript" ev:event="xforms-value-changed">
  250. <![CDATA[
  251. model.removeNodeset("/root/init/userlist");
  252. model.makeNode("/root/init/userlist/usercombo");
  253. mmbfGetUserComboList("/root/send/reqdata", "/root/init/userlist" , cmb_orddept.value, "0330"); //집도의 조회
  254. var deptcd = model.getValue("/root/main/cond/perfdeptcd");
  255. if (deptcd == "-") {
  256. model.makeValue("/root/init/userlist/usercombo/userid", "-");
  257. model.makeValue("/root/init/userlist/usercombo/usernm", "전체");
  258. model.setValue("/root/main/cond/perfdrid", "-");
  259. } else {
  260. addComboInstance("/root/init/userlist", "userid^usernm", "-^전체", "usercombo"); //의사콤보 전체항목 추가
  261. cmb_orddrid.select(1);
  262. }
  263. model.refresh();
  264. fReqOPPatList();
  265. ]]>
  266. </script>
  267. </select1>
  268. <datagrid id="grd_oppatlist" nodeset="/root/main/oppatinfo/oppatlist" caption="상태^수술방^환자도착시간^시작시간^종료시간^소요시간^진료과^집도과^등록번호^환자명^S/A^수술명^진단명^병실^CP^마취종류^마취의^환자상태^집도의^대기시간^관심^특이^PreWork Up^BMT예정일^이식형태^BMT day^instcd^Post Cx Day^선택진료여부^무통마취여부^oprsrvno^ophistno^opcnfmdd^perfdeptcd^perfdrid" colsep="^" colwidth="49, 70, 83, 63, 60, 63, 78, 78, 67, 71, 50, 100, 100, 55, 47, 60, 80, 67, 71, 59, 85, 44, 76, 80, 70, 74, 0, 75, 100, 0, 0, 0, 0, 0, 0" ellipsis="true" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="true" style="left:0px; top:87px; width:1174px; height:629px; ">
  269. <col disabled="true" ref="ioflag" type="combo">
  270. <choices>
  271. <item>
  272. <label>외래</label>
  273. <value>O</value>
  274. </item>
  275. <item>
  276. <label>입원</label>
  277. <value>I</value>
  278. </item>
  279. <item>
  280. <label>DSC</label>
  281. <value>D</value>
  282. </item>
  283. <item>
  284. <label>응급</label>
  285. <value>E</value>
  286. </item>
  287. </choices>
  288. </col>
  289. <col disabled="true" ref="oproomnm" type="combo">
  290. <choices>
  291. <itemset nodeset="/root/init/oproomlist/oproomlist">
  292. <label ref="oproomnm"/>
  293. <value ref="oproomcd"/>
  294. </itemset>
  295. </choices>
  296. </col>
  297. <col ref="patinroomdt" format="hh:nn"/>
  298. <col disabled="true" ref="opfromtmcd" format="hh:nn"/>
  299. <col disabled="true" ref="opendtmcd" format="hh:nn"/>
  300. <col ref="opusetm" format="hh:nn"/>
  301. <col disabled="true" ref="orddeptcd" type="combo">
  302. <choices>
  303. <itemset nodeset="/root/init/orddept/dept">
  304. <label ref="depthngnm"/>
  305. <value ref="deptcd"/>
  306. </itemset>
  307. </choices>
  308. </col>
  309. <col ref="perfdeptnm"/>
  310. <col ref="pid"/>
  311. <col ref="hngnm"/>
  312. <col ref="sa"/>
  313. <col ref="opnm"/>
  314. <col ref="diagnm"/>
  315. <col ref="roomcd"/>
  316. <col ref="cpflag"/>
  317. <col disabled="true" ref="anstreqflag" type="combo">
  318. <choices>
  319. <itemset nodeset="/root/init/M0017/M0017">
  320. <label ref="cdnm"/>
  321. <value ref="cdid"/>
  322. </itemset>
  323. </choices>
  324. </col>
  325. <col disabled="true" ref="anstdrnm"/>
  326. <col disabled="true" ref="opstatcd" type="combo">
  327. <choices>
  328. <itemset nodeset="/root/init/M0015/M0015">
  329. <label ref="cdnm"/>
  330. <value ref="cdid"/>
  331. </itemset>
  332. </choices>
  333. </col>
  334. <col ref="perfdrnm"/>
  335. <col ref="waittime"/>
  336. <col ref="conctypenm"/>
  337. <col ref="spclflag"/>
  338. <col ref="preworkup"/>
  339. <col ref="hsctpreday"/>
  340. <col ref="trsntype"/>
  341. <col ref="hsctday"/>
  342. <col ref="instcd"/>
  343. <col ref="postcxday"/>
  344. <col disabled="true" ref="specordtype" type="combo">
  345. <choices>
  346. <itemset nodeset="/root/init/M0623/M0623">
  347. <label ref="cdnm"/>
  348. <value ref="cdid"/>
  349. </itemset>
  350. </choices>
  351. </col>
  352. <col ref="painlessflag" visibility="hidden"/>
  353. <col ref="oprsrvno"/>
  354. <col ref="ophistno"/>
  355. <col ref="opcnfmdd"/>
  356. <col ref="perfdeptcd"/>
  357. <col ref="perfdrid"/>
  358. <script type="javascript" ev:event="ondblclick">
  359. <![CDATA[
  360. if (isDataCell() == true) {
  361. fReqOpPatPamInfo(grd_oppatlist.row);
  362. }
  363. ]]>
  364. </script>
  365. <script type="javascript" ev:event="onmousedown">
  366. <![CDATA[
  367. setPopupMenu("grd_oppatlist", false, "/root/popupmenu/menu/item", "name", "func");
  368. ]]>
  369. </script>
  370. <script type="javascript" ev:event="onclick">
  371. <![CDATA[
  372. if(grd_oppatlist.isCell(event.target)) { // 상단 ordtab 정보에 sortcol과 orderby 정보가 들어가지 않으므로 주석 처리
  373. var currow = grd_oppatlist.row;
  374. var curcol = grd_oppatlist.col;
  375. if(currow < 1){ //grid sort
  376. if(sORDERBY == "asc"){
  377. sORDERBY = "desc";
  378. }else{
  379. sORDERBY = "asc";
  380. }
  381. model.setValue("/root/main/cond/sortcol", curcol);
  382. model.setValue("/root/main/cond/orderby", sORDERBY);
  383. model.copyNode(opener.root.cond.oppatlist, root.main.cond);
  384. //nodeListSort(grd_oppatlist.nodeset, grd_oppatlist.colAttribute(curcol, "ref"), sORDERBY);
  385. grd_oppatlist.refresh();
  386. }else{
  387. var pid = model.getValue("/root/main/oppatinfo/oppatlist[" + grd_oppatlist.row + "]/pid");
  388. model.setValue(opener.root.source.pid, pid);
  389. }
  390. }
  391. ]]>
  392. </script>
  393. <script type="javascript" ev:event="onaftersort">
  394. <![CDATA[
  395. grd_oppatlist.gridToInstance();
  396. ]]>
  397. </script>
  398. </datagrid>
  399. <select1 id="cmb_orddrid" ref="/root/main/cond/perfdrid" appearance="minimal" itemcount="30" style="left:782px; top:10px; width:98px; height:19px; ">
  400. <choices>
  401. <itemset nodeset="/root/init/userlist/usercombo">
  402. <label ref="usernm"/>
  403. <value ref="userid"/>
  404. </itemset>
  405. </choices>
  406. </select1>
  407. <caption id="caption8" class="search_name" style="left:417px; top:34px; width:76px; height:17px; ">수 술 방</caption>
  408. <select1 id="cmb_oproomcd" ref="/root/main/cond/oproomcd" appearance="minimal" style="left:501px; top:33px; width:98px; height:19px; ">
  409. <choices>
  410. <itemset nodeset="/root/init/oproomlist2/oproomlist">
  411. <label ref="oproomnm"/>
  412. <value ref="oproomcd"/>
  413. </itemset>
  414. </choices>
  415. </select1>
  416. <button id="btn_patsrch" disabled="true" style="left:1020px; top:15px; width:45px; height:20px; ">
  417. <caption/>
  418. <script type="javascript" ev:event="DOMActivate">
  419. <![CDATA[
  420. var pid = model.getValue("/root/main/cond/pid");
  421. var hngnm = model.getValue("/root/main/cond/hngnm");
  422. if((pid =="")&&(hngnm !="")){
  423. fPatSrch(hngnm, "2");
  424. } else if((pid !="")&&(hngnm == "")){
  425. fPatSrch(pid, "1");
  426. } else {
  427. modal("SPPMC02500")
  428. }
  429. model.setValue("/root/main/cond/pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
  430. model.setValue("/root/main/cond/hngnm", model.getValue("/root/main/patinfo/patinfolist/hngnm"));
  431. model.refresh();
  432. ]]>
  433. </script>
  434. </button>
  435. <select1 id="radio2" ref="/root/main/cond/recinfo" appearance="full" cellspacing="10" cols="2" overflow="visible" style="left:910px; top:10px; width:155px; height:20px; border-style:none; ">
  436. <choices>
  437. <item>
  438. <label>마취기록</label>
  439. <value>A</value>
  440. </item>
  441. <item>
  442. <label>수술기록</label>
  443. <value>O</value>
  444. </item>
  445. </choices>
  446. <script type="javascript" ev:event="onclick">
  447. <![CDATA[
  448. opener.model.makeValue("/root/main/cond/recinfo", model.getValue("/root/main/cond/recinfo"));
  449. ]]>
  450. </script>
  451. </select1>
  452. </xhtml:body>
  453. </xhtml:html>