SMMNS01400_의뢰환자리스트.xrw 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/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/>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <cond>
  11. <cnstdd/>
  12. <reqflag/>
  13. <orddeptcd/>
  14. <orddrid/>
  15. <replyn/>
  16. <pid/>
  17. <hngnm/>
  18. <fromdd/>
  19. <todd/>
  20. <ioflag>-</ioflag>
  21. <queryflag>orgin</queryflag>
  22. <sortcol/>
  23. <orderby/>
  24. </cond>
  25. <cnstpatinfo>
  26. <cnstpatlist>
  27. <pid/>
  28. <hngnm/>
  29. <orddd/>
  30. <cretno/>
  31. <reqflag/>
  32. <recvdeptcd/>
  33. <recvuserid/>
  34. <recvusernm/>
  35. <replyn/>
  36. <repldd/>
  37. <repltm/>
  38. <reqdeptcd/>
  39. <reqdeptnm/>
  40. <requserid/>
  41. <requsernm/>
  42. <reqdt/>
  43. <eryn/>
  44. <termengnm/>
  45. <ioflag/>
  46. <roomcd/>
  47. <sa/>
  48. <cnstseq/>
  49. </cnstpatlist>
  50. <cnsttotcnt>
  51. <deptreqcnt/>
  52. <deptrecvcnt/>
  53. <patreqcnt/>
  54. </cnsttotcnt>
  55. </cnstpatinfo>
  56. <totcnt>
  57. <totcnt/>
  58. </totcnt>
  59. <patinfo>
  60. <patinfolist/>
  61. </patinfo>
  62. </main>
  63. <send>
  64. <reqdata/>
  65. <savedata/>
  66. </send>
  67. <hidden>
  68. </hidden>
  69. <init>
  70. <orddept/>
  71. <userlist/>
  72. <rsltgetdata>
  73. <getdata/>
  74. </rsltgetdata>
  75. <M0623/>
  76. </init>
  77. <temp/>
  78. </root>
  79. </instance>
  80. <script type="javascript" ev:event="xforms-ready">
  81. <![CDATA[
  82. fInitialize_SMMMO04800();
  83. ]]>
  84. </script>
  85. <submission id="TRMMB01103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/userscrnenvinfo"/>
  86. <submission id="TRMMO04105" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/patnm"/>
  87. <submission id="TRMMO04303" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/rsltgetdata"/>
  88. <submission id="TRMMO04801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/cnstpatinfo"/>
  89. <submission id="TRMMB04101" mediatype="application/x-www-form-urlencoded" method="post"/>
  90. <submission id="TRMMB04102" mediatype="application/x-www-form-urlencoded" method="post"/>
  91. <submission id="TRMMO04129" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/hidden/recinfo"/>
  92. </model>
  93. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  94. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  95. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  96. <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
  97. <script type="javascript" src="../../../emr/prcpmngtweb/js/SMMMO04100.js"/>
  98. <script type="javascript" src="../../../emr/prcpmngtweb/js/SMMMO04800.js"/>
  99. </xhtml:head>
  100. <xhtml:body guideline="1,1174;2,716;1,81;2,9;1,946;1,452;2,61;" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
  101. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1174px; height:84px; background-color:#fffbf2; border-color:#ffd799; "/>
  102. <input id="ipt_pid" ref="/root/main/cond/pid" class="input_search" maxlength="10" style="left:579px; top:36px; width:90px; height:19px; ">
  103. <script type="javascript" ev:event="onkeypress">
  104. <![CDATA[
  105. inputEnterKey("btn_reqpatnm", "DOMActivate");
  106. ]]>
  107. </script>
  108. </input>
  109. <caption id="caption1" class="search_name" style="left:5px; top:36px; width:76px; height:17px; ">진 료 과</caption>
  110. <caption id="caption2" style="left:96px; top:34px; width:30px; height:20px; font-weight:bold; vertical-align:middle; margin-left:20; margin-top:8; ">명</caption>
  111. <caption id="caption4" class="search_name" style="left:498px; top:36px; width:76px; height:17px; ">등록번호</caption>
  112. <caption id="caption6" class="search_name" style="left:5px; top:9px; width:76px; height:17px; ">의 뢰 일</caption>
  113. <line id="line3" style="x1:1098px; y1:8px; x2:1098px; y2:76px; border-color:#ffe4bb; border-left-style:solid; "/>
  114. <caption id="caption3" class="tit_2" style="left:1px; top:86px; width:126px; height:13px; vertical-align:middle; ">CONSULT</caption>
  115. <line id="line6" class="line_1" style="x1:0px; y1:100px; x2:1175px; y2:100px; "/>
  116. <caption id="caption8" class="search_name" style="left:307px; top:36px; width:76px; height:17px; ">진 료 의</caption>
  117. <caption id="caption9" class="search_name" style="left:685px; top:36px; width:76px; height:17px; ">성 명</caption>
  118. <caption id="caption10" class="search_name" style="left:307px; top:9px; width:76px; height:17px; ">의뢰구분</caption>
  119. <caption id="caption11" class="search_name" style="left:498px; top:9px; width:76px; height:17px; ">회신구분</caption>
  120. <select1 id="cmb_orddept" ref="/root/main/cond/orddeptcd" class="combo_default" appearance="minimal" editmode="search" style="left:84px; top:36px; width:150px; height:19px; ">
  121. <choices>
  122. <itemset nodeset="/root/init/orddept/dept">
  123. <label ref="depthngnm"/>
  124. <value ref="deptcd"/>
  125. </itemset>
  126. </choices>
  127. <script type="javascript" ev:event="xforms-value-changed">
  128. <![CDATA[
  129. model.removeNodeset("/root/init/userlist");
  130. model.makeNode("/root/init/userlist/usercombo");
  131. mmbfGetUserComboList("/root/send/reqdata", "/root/init/userlist" , cmb_orddept.value, "0330");
  132. addComboInstance("/root/init/userlist", "userid^usernm", "-^전체", "usercombo"); //의사콤보 전체항목 추가
  133. model.setValue("/root/main/cond/orddrid", "-");
  134. model.refresh();
  135. fReqCnstPatList("orgin");
  136. ]]>
  137. </script>
  138. </select1>
  139. <select1 id="cmb_reqflag" ref="/root/main/cond/reqflag" class="combo_default" appearance="minimal" style="left:386px; top:9px; width:90px; height:19px; ">
  140. <choices>
  141. <item>
  142. <label>전체</label>
  143. <value>-</value>
  144. </item>
  145. <item>
  146. <label>진료의뢰</label>
  147. <value>1</value>
  148. </item>
  149. <item>
  150. <label>협진</label>
  151. <value>2</value>
  152. </item>
  153. <item>
  154. <label>타과의뢰</label>
  155. <value>3</value>
  156. </item>
  157. </choices>
  158. </select1>
  159. <select1 id="cmb_replyn" ref="/root/main/cond/replyn" class="combo_default" appearance="minimal" style="left:579px; top:9px; width:90px; height:19px; ">
  160. <choices>
  161. <item>
  162. <label>전체</label>
  163. <value>-</value>
  164. </item>
  165. <item>
  166. <label>Y</label>
  167. <value>Y</value>
  168. </item>
  169. <item>
  170. <label>N</label>
  171. <value>N</value>
  172. </item>
  173. </choices>
  174. </select1>
  175. <input id="ipt_hngnm" ref="/root/main/cond/hngnm" class="input_search" style="left:764px; top:36px; width:90px; height:19px; ">
  176. <script type="javascript" ev:event="onkeyup">
  177. <![CDATA[
  178. inputEnterKey("btn_patsrch", "DOMActivate");
  179. ]]>
  180. </script>
  181. </input>
  182. <select1 id="cmb_orddrid" ref="/root/main/cond/orddrid" class="combo_default" appearance="minimal" itemcount="30" style="left:386px; top:36px; width:90px; height:19px; ">
  183. <choices>
  184. <itemset nodeset="/root/init/userlist/usercombo">
  185. <label ref="usernm"/>
  186. <value ref="userid"/>
  187. </itemset>
  188. </choices>
  189. </select1>
  190. <input id="ipt_cnstdd" ref="/root/main/cond/fromdd" inputtype="date" style="left:84px; top:9px; width:90px; height:19px; "/>
  191. <datagrid id="grd_cnstpatlist" nodeset="/root/main/cnstpatinfo/cnstpatlist" caption="응급^등록번호^성명^S/A^의뢰의사^의뢰과^의뢰일시^병실^회신여부^회신일시^진단명^회신의사^formrecseq^acptorddd^acptcretno^orddd^cretno^ioflag^의뢰내용^특이" colsep="^" colwidth="45, 79, 80, 56, 68, 89, 106, 52, 57, 100, 232, 65, 0, 0, 0, 0, 0, 0, 138, 30" ellipsis="true" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="32" rowsep="|" tooltip="true" style="left:0px; top:105px; width:1174px; height:611px; ">
  192. <col ref="eryn" type="combo" style="text-align:center; ">
  193. <choices>
  194. <item>
  195. <label>Y</label>
  196. <value>Y</value>
  197. </item>
  198. <item>
  199. <label>N</label>
  200. <value>N</value>
  201. </item>
  202. </choices>
  203. </col>
  204. <col ref="pid" style="text-align:center; "/>
  205. <col ref="hngnm" style="text-align:left; "/>
  206. <col ref="sa" style="text-align:center; "/>
  207. <col ref="requsernm" style="text-align:left; "/>
  208. <col ref="reqdeptnm" style="text-align:center; "/>
  209. <col ref="reqdt" format="yyyy-mm-dd hh:mm" style="text-align:center; "/>
  210. <col ref="roomcd" style="text-align:center; "/>
  211. <col disabled="true" ref="replyn" type="combo" style="text-align:center; ">
  212. <choices>
  213. <item>
  214. <label>Y</label>
  215. <value>Y</value>
  216. </item>
  217. <item>
  218. <label>N</label>
  219. <value>N</value>
  220. </item>
  221. </choices>
  222. </col>
  223. <col ref="recvtm" format="yyyy-mm-dd hh:mm"/>
  224. <col ref="termengnm"/>
  225. <col ref="recvusernm" style="text-align:left; "/>
  226. <col ref="formrecseq"/>
  227. <col ref="acptorddd"/>
  228. <col ref="acptcretno"/>
  229. <col ref="orddd"/>
  230. <col ref="cretno"/>
  231. <col ref="ioflag"/>
  232. <col ref="cnstcnts"/>
  233. <col/>
  234. <script type="javascript" ev:event="ondblclick">
  235. <![CDATA[
  236. if (isDataCell() == true) {
  237. fReqCnstPatPamInfo();
  238. }
  239. ]]>
  240. </script>
  241. <script type="javascript" ev:event="onmousedown">
  242. <![CDATA[
  243. setPopupMenu("grd_cnstpatlist", false, "/root/popupmenu/menu/item", "name", "func");
  244. ]]>
  245. </script>
  246. <script type="javascript" ev:event="onaftersort">
  247. <![CDATA[
  248. grd_cnstpatlist.gridToInstance();
  249. ]]>
  250. </script>
  251. <script type="javascript" ev:event="onclick">
  252. <![CDATA[
  253. if(grd_cnstpatlist.isCell(event.target)) {
  254. var currow = grd_cnstpatlist.row;
  255. var curcol = grd_cnstpatlist.col;
  256. if(currow < 1){
  257. if(sORDERBY == "asc"){
  258. sORDERBY = "desc";
  259. }else{
  260. sORDERBY = "asc";
  261. }
  262. model.setValue("/root/main/cond/sortcol", curcol);
  263. model.setValue("/root/main/cond/orderby", sORDERBY);
  264. model.copyNode(opener.root.cond.cnstpatlist, root.main.cond);
  265. //nodeListSort(grd_cnstpatlist.nodeset, grd_cnstpatlist.colAttribute(curcol, "ref"), sORDERBY);
  266. grd_cnstpatlist.refresh();
  267. }else{
  268. var pid = model.getValue("/root/main/cnstpatinfo/cnstpatlist[" + grd_cnstpatlist.row + "]/pid");
  269. model.setValue(opener.root.source.pid, pid);
  270. }
  271. }
  272. ]]>
  273. </script>
  274. </datagrid>
  275. <caption id="caption5" class="search_name" style="left:685px; top:9px; width:76px; height:17px; ">진료구분</caption>
  276. <select1 id="combo1" ref="/root/main/cond/ioflag" class="combo_default" appearance="minimal" style="left:764px; top:9px; width:90px; height:19px; ">
  277. <choices>
  278. <item>
  279. <label>전체</label>
  280. <value>-</value>
  281. </item>
  282. <item>
  283. <label>외래</label>
  284. <value>O</value>
  285. </item>
  286. <item>
  287. <label>입원</label>
  288. <value>I</value>
  289. </item>
  290. <item>
  291. <label>DSC</label>
  292. <value>D</value>
  293. </item>
  294. <item>
  295. <label>응급</label>
  296. <value>E</value>
  297. </item>
  298. </choices>
  299. </select1>
  300. <button id="btn_reqpatnm" style="left:637px; top:59px; width:30px; height:20px; ">
  301. <caption/>
  302. <script type="javascript" ev:event="DOMActivate">
  303. <![CDATA[
  304. fPidTrim("/root/main/cond/pid");
  305. var pid = model.getValue("/root/main/cond/pid");
  306. if(reqPatInfo("pid", "ptbs", pid)==true){
  307. var hngnm = model.getValue("/root/init/patnm/patnm/hngnm");
  308. model.setValue("/root/main/cond/hngnm", hngnm);
  309. model.refresh();
  310. fReqCnstPatList();
  311. }
  312. model.refresh();
  313. ]]>
  314. </script>
  315. </button>
  316. <input id="input1" ref="/root/main/cond/todd" inputtype="date" style="left:193px; top:9px; width:90px; height:19px; ">
  317. <![CDATA[-->]]>
  318. </input>
  319. <caption id="caption7" style="left:177px; top:11px; width:15px; height:20px; ">~</caption>
  320. <button id="btn_prcpclsnm" class="icon_search" style="left:858px; top:37px; width:16px; height:16px; ">
  321. <caption/>
  322. <script type="javascript" ev:event="DOMActivate">
  323. <![CDATA[
  324. fPidTrim("/root/main/cond/pid");
  325. modal("SPPMC02500");
  326. var pid = model.getValue("/root/main/patinfo/patinfolist/pid");
  327. var hngnm = model.getValue("/root/main/patinfo/patinfolist/hngnm");
  328. model.setValue("/root/main/cond/pid", pid);
  329. model.setValue("/root/main/cond/hngnm", hngnm);
  330. model.refresh();
  331. ]]>
  332. </script>
  333. </button>
  334. <button id="btn_patcnt" class="btn1_letter7" visibility="visible" style="left:915px; top:57px; width:116px; height:22px; ">
  335. <caption>환자별보낸건</caption>
  336. <script type="javascript" ev:event="DOMActivate">
  337. <![CDATA[
  338. fReqCnstPatList("pid");
  339. ]]>
  340. </script>
  341. </button>
  342. <input id="ipt_patcnt" ref="/root/main/cnstpatinfo/cnsttotcnt/patreqcnt" visibility="visible" style="left:1035px; top:57px; width:55px; height:19px; text-align:center; "/>
  343. <button id="btn_deptrevcnt" class="btn1_letter7" style="left:915px; top:33px; width:116px; height:22px; ">
  344. <caption>과별 받은건</caption>
  345. <script type="javascript" ev:event="DOMActivate">
  346. <![CDATA[
  347. fReqCnstPatList("recv");
  348. ]]>
  349. </script>
  350. </button>
  351. <input id="ipt_deptrevcnt" ref="/root/main/cnstpatinfo/cnsttotcnt/deptrecvcnt" style="left:1035px; top:33px; width:55px; height:19px; text-align:center; "/>
  352. <input id="ipt_deptreqcnt" ref="/root/main/cnstpatinfo/cnsttotcnt/deptreqcnt" style="left:1035px; top:9px; width:55px; height:19px; text-align:center; "/>
  353. <button id="btn_deptreqcnt" class="btn1_letter7" style="left:915px; top:9px; width:116px; height:22px; ">
  354. <caption>과별 보낸건</caption>
  355. <script type="javascript" ev:event="DOMActivate">
  356. <![CDATA[
  357. fReqCnstPatList("req");
  358. ]]>
  359. </script>
  360. </button>
  361. <line id="line1" style="x1:907px; y1:8px; x2:907px; y2:76px; border-color:#ffe4bb; border-left-style:solid; "/>
  362. <button id="btn_req" class="btn1_letter2" style="left:1110px; top:33px; width:56px; height:22px; ">
  363. <caption>조회</caption>
  364. <script type="javascript" ev:event="DOMActivate">
  365. <![CDATA[
  366. fReqCnstPatList("orgin");
  367. ]]>
  368. </script>
  369. </button>
  370. <button id="btn_patsrch" style="left:825px; top:61px; width:30px; height:20px; ">
  371. <caption/>
  372. <script type="javascript" ev:event="DOMActivate">
  373. <![CDATA[
  374. var pid = model.getValue("/root/main/cond/pid");
  375. var hngnm = model.getValue("/root/main/cond/hngnm");
  376. if((pid =="")&&(hngnm !="")){
  377. fPatSrch(hngnm, "2");
  378. } else if((pid !="")&&(hngnm == "")){
  379. fPatSrch(pid, "1");
  380. } else {
  381. modal("SPPMC02500")
  382. }
  383. model.setValue("/root/main/cond/pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
  384. model.setValue("/root/main/cond/hngnm", model.getValue("/root/main/patinfo/patinfolist/hngnm"));
  385. model.refresh();
  386. ]]>
  387. </script>
  388. </button>
  389. </xhtml:body>
  390. </xhtml:html>