SPMMO06800_응급실의사호출내역.xrw 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227
  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. <erorddrcallhist>
  11. <erorddrcallhist/>
  12. </erorddrcallhist>
  13. <cond>
  14. <calldd/>
  15. <orddeptcd/>
  16. <orddrid/>
  17. <pid/>
  18. <hngnm/>
  19. </cond>
  20. </main>
  21. <send>
  22. <reqdata/>
  23. <savedata/>
  24. </send>
  25. <hidden/>
  26. <init>
  27. <orddept/>
  28. <userlist/>
  29. <patnm/>
  30. </init>
  31. </root>
  32. </instance>
  33. <submission id="TRMMO06801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/erorddrcallhist"/>
  34. <submission id="TRMMB04101" mediatype="application/x-www-form-urlencoded" method="post"/>
  35. <submission id="TRMMB04102" mediatype="application/x-www-form-urlencoded" method="post"/>
  36. <script type="javascript" ev:event="xforms-ready">
  37. <![CDATA[
  38. model.setValue("/root/main/cond/calldd", getCurrentDate());
  39. mmbfGetDeptCodeComboList("/root/send/reqdata", "/root/init/orddept", "D", getCurrentDate());
  40. addComboInstance("/root/init/orddept", "deptcd^depthngnm", "-^전체", "dept"); //진료과 전체항목 추가
  41. model.makeNode("/root/init/userlist/usercombo");
  42. addComboInstance("/root/init/userlist", "userid^usernm", "-^전체", "usercombo"); //의사콤보 전체항목 추가
  43. if(checkOpener()){
  44. var pid = opener.javascript.getParameter("SPMMO06800_pid");
  45. var hngnm = opener.javascript.getParameter("SPMMO06800_hngnm");
  46. }
  47. if(pid == "" || pid == null){
  48. pid = getPatientInfo("pid");
  49. hngnm = getPatientInfo("pname");
  50. }
  51. model.setValue("/root/main/cond/pid" , pid);
  52. model.setValue("/root/main/cond/hngnm" , hngnm);
  53. model.setValue("/root/main/cond/orddeptcd", "-");
  54. model.setValue("/root/main/cond/orddrid" , "-");
  55. model.refresh();
  56. fReqERDrCallHistList();
  57. ]]>
  58. </script>
  59. <submission id="TRMMO04105" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/patnm"/>
  60. </model>
  61. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  62. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  63. <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
  64. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  65. <script type="javascript">
  66. <![CDATA[
  67. var sERORDDRCALLHIST_PATH = "/root/main/erorddrcallhist/erorddrcallhist";
  68. /**
  69. * @desc 핸드폰번호 자리수에 따라 010-XXXX-XXX, 010-XXX-XXXX변경
  70. */
  71. function fReConcPhone(){
  72. var totrow = grd_erdrcalllist.rows;
  73. for(var currow = 1; currow < grd_erdrcalllist.rows; currow++){
  74. var callcntcno = model.getValue(sERORDDRCALLHIST_PATH + "[" + currow + "]/callcntcno");
  75. if(callcntcno.length == 11){
  76. var dispcallcntcno = callcntcno.substr(0, 3) + "-" + callcntcno.substr(3, 4) + "-" + callcntcno.substr(7, 4);
  77. }else if(callcntcno.length == 10){
  78. var dispcallcntcno = callcntcno.substr(0, 3) + "-" + callcntcno.substr(3, 3) + "-" + callcntcno.substr(6, 4);
  79. }
  80. model.setValue(sERORDDRCALLHIST_PATH + "[" + currow + "]/dispcallcntcno" , dispcallcntcno);
  81. }
  82. model.refresh();
  83. }
  84. /**
  85. * @desc 응급실의사 호출내역 조회
  86. */
  87. function fReqERDrCallHistList(){
  88. model.copyNode("/root/send/reqdata", "/root/main/cond");
  89. if(submit("TRMMO06801")){
  90. fReConcPhone();
  91. var levelcol = grd_erdrcalllist.colRef("lvl");
  92. var outlinecol= grd_erdrcalllist.colRef("outline");
  93. setTree(grd_erdrcalllist, levelcol, outlinecol);
  94. }
  95. }
  96. ]]>
  97. </script>
  98. </xhtml:head>
  99. <xhtml:body pagewidth="1090" pageheight="713" guideline="1,1070;1,1086;2,713;" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
  100. <datagrid id="grd_erdrcalllist" nodeset="/root/main/erorddrcallhist/erorddrcallhist" caption="^levl^환자번호^indd^cretno^visitno^erorddoctcd^호출순서^callcntcno^callcnts^이름^진료과^담당의^^호출번호^호출일시^callnm^callpsnid^호출자^도착일시^visitrgstrid^등록자^호출내용^소요시간" colsep="^" colwidth="30, 0, 70, 0, 0, 0, 0, 0, 0, 0, 75, 100, 75, 29, 90, 100, 0, 0, 75, 100, 0, 75, 190, 55" extendlastcol="noscroll" mergecellsfixedrows="bycolrec" rowsep="|" tooltip="true" navindex="5" style="left:0px; top:70px; width:1070px; height:625px; ">
  101. <col disabled="true" ref="outline"/>
  102. <col ref="lvl"/>
  103. <col ref="pid" style="text-align:center; "/>
  104. <col ref="indd"/>
  105. <col ref="cretno"/>
  106. <col ref="visitno"/>
  107. <col ref="erorddoctcd"/>
  108. <col ref="callno"/>
  109. <col ref="callcntcno"/>
  110. <col ref="callcnts"/>
  111. <col ref="pname" style="text-align:center; "/>
  112. <col disabled="true" ref="erorddeptcd" type="combo">
  113. <choices>
  114. <itemset nodeset="/root/init/orddept/dept">
  115. <label ref="depthngnm"/>
  116. <value ref="deptcd"/>
  117. </itemset>
  118. </choices>
  119. </col>
  120. <col ref="erorddoctnm" style="text-align:center; "/>
  121. <col checkvalue="M,S" disabled="true" ref="mainyn" type="combo" style="text-align:center; ">
  122. <choices>
  123. <item>
  124. <label>주</label>
  125. <value>M</value>
  126. </item>
  127. <item>
  128. <label>부</label>
  129. <value>S</value>
  130. </item>
  131. </choices>
  132. </col>
  133. <col ref="dispcallcntcno"/>
  134. <col ref="calldt" format="yyyy-mm-dd hh:nn" style="left:349px; top:23px; width:111px; height:23px; "/>
  135. <col ref="callnm"/>
  136. <col ref="callpsnid"/>
  137. <col ref="callpsnnm" style="text-align:center; "/>
  138. <col ref="arrivdt" format="yyyy-mm-dd hh:nn"/>
  139. <col ref="visitrgstrid"/>
  140. <col ref="visitrgstnm" visibility="hidden" style="text-align:center; "/>
  141. <col ref="callcnts"/>
  142. <col ref="usetm" format="hh:nn:ss" style="text-align:center; "/>
  143. </datagrid>
  144. <caption id="caption2" class="tit_2" style="left:0px; top:49px; width:161px; height:14px; vertical-align:middle; ">응급실의사 호출내역</caption>
  145. <line id="line5" class="line_1" style="x1:0px; y1:65px; x2:1071px; y2:65px; "/>
  146. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1070px; height:46px; background-color:#fffbf2; border-color:#ffd799; "/>
  147. <caption id="caption11" class="search_name" style="left:11px; top:14px; width:76px; height:17px; ">호출일자</caption>
  148. <input id="input11" ref="/root/main/cond/calldd" inputtype="date" style="left:96px; top:14px; width:100px; height:19px; "/>
  149. <caption id="caption1" class="search_name" style="left:285px; top:14px; width:134px; height:17px; ">진료과 / 담당의</caption>
  150. <button id="btn_req" class="btn1_letter2" style="left:1001px; top:12px; width:56px; height:22px; ">
  151. <caption>조회</caption>
  152. <script type="javascript" ev:event="DOMActivate">
  153. <![CDATA[
  154. fReqERDrCallHistList();
  155. ]]>
  156. </script>
  157. </button>
  158. <line id="line3" style="x1:990px; y1:7px; x2:990px; y2:39px; border-color:#ffe4bb; border-left-style:solid; "/>
  159. <select1 id="combo2" ref="/root/main/cond/orddrid" appearance="minimal" style="left:519px; top:14px; width:100px; height:19px; ">
  160. <choices>
  161. <itemset nodeset="/root/init/userlist/usercombo">
  162. <label ref="usernm"/>
  163. <value ref="userid"/>
  164. </itemset>
  165. </choices>
  166. </select1>
  167. <caption id="caption3" class="search_name" style="left:665px; top:14px; width:85px; height:17px; ">등록번호</caption>
  168. <input id="input1" ref="/root/main/cond/pid" style="left:746px; top:14px; width:84px; height:19px; ">
  169. <script type="javascript" ev:event="onkeypress">
  170. <![CDATA[
  171. inputEnterKey("btn_reqpatinfo", "DOMActivate");
  172. ]]>
  173. </script>
  174. </input>
  175. <input id="input2" ref="/root/main/cond/hngnm" disabled="true" style="left:833px; top:14px; width:88px; height:19px; "/>
  176. <select1 id="cmb_orddept" ref="/root/main/cond/orddeptcd" appearance="minimal" style="left:416px; top:14px; width:100px; height:19px; ">
  177. <choices>
  178. <itemset nodeset="/root/init/orddept/dept">
  179. <label ref="depthngnm"/>
  180. <value ref="deptcd"/>
  181. </itemset>
  182. </choices>
  183. <script type="javascript" ev:event="xforms-value-changed">
  184. <![CDATA[
  185. if(cmb_orddept.value != "-"){ //전체로 변경이 아닌 경우, 해당부서 의사조회
  186. mmbfGetUserComboList("/root/send/reqdata", "/root/init/userlist" , cmb_orddept.value, "0330");
  187. }else{
  188. model.removenodeset("/root/init/userlist/usercombo");
  189. model.makeNode("/root/init/userlist/usercombo");
  190. }
  191. addComboInstance("/root/init/userlist", "userid^usernm", "-^전체", "usercombo"); //의사콤보 전체항목 추가
  192. model.setValue("/root/main/cond/orddrid", "-");
  193. model.refresh();
  194. ]]>
  195. </script>
  196. </select1>
  197. <button id="btn_reqpatinfo" visibility="hidden" style="left:935px; top:15px; width:45px; height:20px; ">
  198. <caption/>
  199. <script type="javascript" ev:event="DOMActivate">
  200. <![CDATA[
  201. var pid = model.getValue("/root/main/cond/pid");
  202. if(pid == ""){
  203. return;
  204. }
  205. var pid = model.getValue("/root/main/cond/pid");
  206. if(reqPatInfo("pid", "ptbs", pid)==true){
  207. var hngnm = model.getValue("/root/init/patnm/patnm/hngnm");
  208. model.setValue("/root/main/cond/hngnm", hngnm);
  209. model.refresh();
  210. fReqERDrCallHistList();
  211. }
  212. ]]>
  213. </script>
  214. </button>
  215. </xhtml:body>
  216. </xhtml:html>