SPMMO06801_권역외상의사호출내역.xrw 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309
  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>권역외상의사 호출내역</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <torddrcallhist>
  11. <torddrcallhist/>
  12. </torddrcallhist>
  13. <cond>
  14. <fromdd/>
  15. <todd/>
  16. <orddeptcd/>
  17. <orddrid/>
  18. <pid/>
  19. <hngnm/>
  20. <resyn>N</resyn>
  21. <viewdel>N</viewdel>
  22. </cond>
  23. <userinfo/>
  24. </main>
  25. <send>
  26. <reqdata/>
  27. <savedata/>
  28. </send>
  29. <hidden/>
  30. <init>
  31. <orddept/>
  32. <userlist/>
  33. <patnm/>
  34. </init>
  35. </root>
  36. </instance>
  37. <submission id="TRMMO06802" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/torddrcallhist"/>
  38. <submission id="TRMMB04101" mediatype="application/x-www-form-urlencoded" method="post"/>
  39. <submission id="TRMMB04102" mediatype="application/x-www-form-urlencoded" method="post"/>
  40. <script type="javascript" ev:event="xforms-ready">
  41. <![CDATA[
  42. mmbfGetDeptCodeComboList("/root/send/reqdata", "/root/init/orddept", "D", getCurrentDate());
  43. addComboInstance("/root/init/orddept", "deptcd^depthngnm", "-^전체", "dept"); //진료과 전체항목 추가
  44. model.makeNode("/root/init/userlist/usercombo");
  45. addComboInstance("/root/init/userlist", "userid^usernm", "-^전체", "usercombo"); //의사콤보 전체항목 추가
  46. model.setValue("/root/main/cond/fromdd", getCurrentDate());
  47. model.setValue("/root/main/cond/todd", getCurrentDate());
  48. model.setValue("/root/main/cond/pid" , "");
  49. model.setValue("/root/main/cond/hngnm" , "");
  50. model.setValue("/root/main/cond/orddeptcd", "-");
  51. model.setValue("/root/main/cond/orddrid", "-");
  52. // 외상당직 superuser 여부
  53. model.makeValue("/root/send/userid", getUserInfo("userid"));
  54. model.makeValue("/root/send/dutplcecd", "2870000000");
  55. model.makeValue("/root/send/workdd", getCurrentDate());
  56. submit("TRMNE05805");
  57. var sSuperUser = model.getValue("/root/main/userinfo/superuser");
  58. if (sSuperUser == "Y") {
  59. btn_excel1.visible = true;
  60. btn_excel2.visible = true;
  61. } else {
  62. btn_excel1.visible = false;
  63. btn_excel2.visible = false;
  64. }
  65. model.refresh();
  66. fReqTDrCallHistList();
  67. ]]>
  68. </script>
  69. <submission id="TRMMO04105" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/patnm"/>
  70. <submission id="TRMNE05805" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/userinfo"/>
  71. </model>
  72. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  73. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  74. <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
  75. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  76. <script type="javascript">
  77. <![CDATA[
  78. var sTORDDRCALLHIST_PATH = "/root/main/torddrcallhist/torddrcallhist";
  79. /**
  80. * @desc 핸드폰번호 자리수에 따라 010-XXXX-XXX, 010-XXX-XXXX변경
  81. */
  82. function fReConcPhone(){
  83. var totrow = grd_erdrcalllist.rows;
  84. var dispcallcntcno = "";
  85. for(var currow = 1; currow < grd_erdrcalllist.rows; currow++){
  86. dispcallcntcno = "";
  87. var callcntcno = model.getValue(sTORDDRCALLHIST_PATH + "[" + currow + "]/callcntcno");
  88. if(callcntcno.length == 11){
  89. dispcallcntcno = callcntcno.substr(0, 3) + "-" + callcntcno.substr(3, 4) + "-" + callcntcno.substr(7, 4);
  90. }else if(callcntcno.length == 10){
  91. dispcallcntcno = callcntcno.substr(0, 3) + "-" + callcntcno.substr(3, 3) + "-" + callcntcno.substr(6, 4);
  92. } else {
  93. dispcallcntcno = callcntcno;
  94. }
  95. model.setValue(sTORDDRCALLHIST_PATH + "[" + currow + "]/dispcallcntcno" , dispcallcntcno);
  96. }
  97. model.refresh();
  98. }
  99. /**
  100. * @desc 응급실의사 호출내역 조회
  101. */
  102. function fReqTDrCallHistList(){
  103. model.copyNode("/root/send/reqdata", "/root/main/cond");
  104. if(submit("TRMMO06802")){
  105. fReConcPhone();
  106. for (var i = 0; i < grd_erdrcalllist.cols; i++) {
  107. if( i < 7 ) {
  108. grd_erdrcalllist.mergecol(i)=true;
  109. } else {
  110. grd_erdrcalllist.mergecol(i)=false;
  111. }
  112. grd_erdrcalllist.mergecells="byrestriccol";
  113. }
  114. }
  115. }
  116. ]]>
  117. </script>
  118. </xhtml:head>
  119. <xhtml:body pagewidth="1190" pageheight="713" guideline="1,1172;1,1192;2,713;" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
  120. <datagrid id="grd_erdrcalllist" nodeset="/root/main/torddrcallhist/torddrcallhist" caption="환자번호^이름^성별/나이^중증^내원일시^진료과^담당의^호출번호^호출일시^callnm^callpsnid^호출자^도착일시^visitrgstrid^등록자^호출내용^호출취소^소요시간(분)" colsep="^" colwidth="60, 60, 60, 30, 100, 85, 60, 90, 100, 0, 0, 60, 100, 0, 0, 192, 55, 80" extendlastcol="scroll" rowheader="seq" rowsep="|" tooltip="true" navindex="5" style="left:0px; top:70px; width:1172px; height:625px; ">
  121. <col ref="pid" style="text-align:center; "/>
  122. <col ref="pname" style="text-align:center; "/>
  123. <col ref="sa" style="text-align:center; "/>
  124. <col ref="serflag" style="text-align:center; "/>
  125. <col ref="indt" format="yyyy-mm-dd hh:nn"/>
  126. <col ref="erorddeptnm"/>
  127. <col ref="erorddoctnm" style="text-align:center; "/>
  128. <col ref="dispcallcntcno"/>
  129. <col ref="calldt" format="yyyy-mm-dd hh:nn" style="left:349px; top:23px; width:111px; height:23px; "/>
  130. <col ref="callnm"/>
  131. <col ref="callpsnid"/>
  132. <col ref="callpsnnm" style="text-align:center; "/>
  133. <col ref="arrivdt" format="yyyy-mm-dd hh:nn"/>
  134. <col ref="visitrgstrid"/>
  135. <col ref="visitrgstnm" visibility="hidden" style="text-align:center; "/>
  136. <col ref="callcnts"/>
  137. <col ref="histcd" style="text-align:center; "/>
  138. <col ref="usetm" style="text-align:center; "/>
  139. </datagrid>
  140. <caption id="caption2" class="tit_2" style="left:0px; top:49px; width:161px; height:14px; vertical-align:middle; ">권역외상의사 호출내역</caption>
  141. <line id="line5" class="line_1" style="x1:0px; y1:65px; x2:1172px; y2:65px; "/>
  142. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1172px; height:46px; background-color:#fffbf2; border-color:#ffd799; "/>
  143. <caption id="caption11" class="search_name" style="left:11px; top:14px; width:76px; height:17px; ">호출기간</caption>
  144. <input id="ipt_fromdd" ref="/root/main/cond/fromdd" inputtype="date" style="left:96px; top:14px; width:85px; height:19px; "/>
  145. <input id="ipt_todd" ref="/root/main/cond/todd" inputtype="date" style="left:200px; top:14px; width:85px; height:19px; "/>
  146. <caption id="caption1" class="search_name" style="left:305px; top:14px; width:120px; height:17px; ">진료과 / 담당의</caption>
  147. <button id="btn_req" class="btn1_letter2" style="left:1106px; top:12px; width:56px; height:22px; ">
  148. <caption>조회</caption>
  149. <script type="javascript" ev:event="DOMActivate">
  150. <![CDATA[
  151. fReqTDrCallHistList();
  152. ]]>
  153. </script>
  154. </button>
  155. <button id="btn_excel1" class="btn2_letter3" visibility="hidden" style="left:980px; top:14px; width:53px; height:19px; ">
  156. <caption>엑셀1</caption>
  157. <script type="javascript" ev:event="DOMActivate">
  158. <![CDATA[
  159. var sTitle = "권역외상의사 호출내역1"
  160. var fileName = window.fileDialog("save", ",", false, sTitle, "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  161. if (fileName != ""){
  162. grd_excel.saveExcel(fileName, sTitle, true, true, "", "", true);
  163. }
  164. ]]>
  165. </script>
  166. </button>
  167. <button id="btn_excel2" class="btn2_letter3" visibility="hidden" style="left:1035px; top:14px; width:53px; height:19px; ">
  168. <caption>엑셀2</caption>
  169. <script type="javascript" ev:event="DOMActivate">
  170. <![CDATA[
  171. var sTitle = "권역외상의사 호출내역2"
  172. var fileName = window.fileDialog("save", ",", false, sTitle, "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  173. if (fileName != ""){
  174. grd_erdrcalllist.saveExcel(fileName, sTitle, true, true, "", "", true);
  175. }
  176. ]]>
  177. </script>
  178. </button>
  179. <line id="line3" style="x1:1095px; y1:7px; x2:1095px; y2:39px; border-color:#ffe4bb; border-left-style:solid; "/>
  180. <select1 id="combo2" ref="/root/main/cond/orddrid" appearance="minimal" style="left:534px; top:14px; width:81px; height:19px; ">
  181. <choices>
  182. <itemset nodeset="/root/init/userlist/usercombo">
  183. <label ref="usernm"/>
  184. <value ref="userid"/>
  185. </itemset>
  186. </choices>
  187. </select1>
  188. <caption id="caption3" class="search_name" style="left:635px; top:14px; width:85px; height:17px; ">등록번호</caption>
  189. <input id="input1" ref="/root/main/cond/pid" style="left:716px; top:14px; width:59px; height:19px; ">
  190. <script type="javascript" ev:event="onkeypress">
  191. <![CDATA[
  192. inputEnterKey("btn_reqpatinfo", "DOMActivate");
  193. ]]>
  194. </script>
  195. </input>
  196. <input id="input2" ref="/root/main/cond/hngnm" disabled="true" style="left:778px; top:14px; width:67px; height:19px; "/>
  197. <select1 id="cmb_orddept" ref="/root/main/cond/orddeptcd" appearance="minimal" style="left:431px; top:14px; width:100px; height:19px; ">
  198. <choices>
  199. <itemset nodeset="/root/init/orddept/dept">
  200. <label ref="depthngnm"/>
  201. <value ref="deptcd"/>
  202. </itemset>
  203. </choices>
  204. <script type="javascript" ev:event="xforms-value-changed">
  205. <![CDATA[
  206. if(cmb_orddept.value != "-"){ //전체로 변경이 아닌 경우, 해당부서 의사조회
  207. mmbfGetUserComboList("/root/send/reqdata", "/root/init/userlist" , cmb_orddept.value, "0330");
  208. }else{
  209. model.removenodeset("/root/init/userlist/usercombo");
  210. model.makeNode("/root/init/userlist/usercombo");
  211. }
  212. addComboInstance("/root/init/userlist", "userid^usernm", "-^전체", "usercombo"); //의사콤보 전체항목 추가
  213. model.setValue("/root/main/cond/orddrid", "-");
  214. model.refresh();
  215. ]]>
  216. </script>
  217. </select1>
  218. <caption id="caption8" style="left:877px; top:4px; width:66px; height:20px; ">
  219. <![CDATA[전공의 포함]]>
  220. <script type="javascript" ev:event="onclick">
  221. <![CDATA[
  222. var chk_resyn = model.getValue("/root/main/cond/resyn");
  223. if (chk_resyn =="Y") {
  224. model.setValue("/root/main/cond/resyn", "N");
  225. } else {
  226. model.setValue("/root/main/cond/resyn", "Y");
  227. }
  228. model.refresh();
  229. ]]>
  230. </script>
  231. </caption>
  232. <bool id="chk_proprcp" checkvalue="Y,N" ref="/root/main/cond/resyn" style="left:857px; top:4px; width:25px; height:20px; "/>
  233. <button id="btn_reqpatinfo" visibility="hidden" style="left:830px; top:15px; width:45px; height:20px; ">
  234. <caption/>
  235. <script type="javascript" ev:event="DOMActivate">
  236. <![CDATA[
  237. var pid = model.getValue("/root/main/cond/pid");
  238. if(pid == ""){
  239. return;
  240. }
  241. var pid = model.getValue("/root/main/cond/pid");
  242. if(reqPatInfo("pid", "ptbs", pid)==true){
  243. var hngnm = model.getValue("/root/init/patnm/patnm/hngnm");
  244. model.setValue("/root/main/cond/hngnm", hngnm);
  245. model.refresh();
  246. fReqTDrCallHistList();
  247. }
  248. ]]>
  249. </script>
  250. </button>
  251. <caption id="caption4" style="left:180px; top:16px; width:20px; height:20px; text-align:center; ">~</caption>
  252. <datagrid id="grd_excel" nodeset="/root/main/torddrcallhist/torddrcallhist" visibility="hidden" caption="instcd^pid^indd^cretno^visitno^erorddoctcd^callno^pname^sa^erorddeptcd^erorddeptnm^erorddoctnm^mainsubflag^callcntcno^callcnts^calldt^callpsnid^callpsnnm^arrivdt^visitrgstrid^visitrgstnm^usetm" colsep="^" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:210px; width:1172px; height:140px; ">
  253. <col ref="instcd"/>
  254. <col ref="pid"/>
  255. <col ref="indd"/>
  256. <col ref="cretno"/>
  257. <col ref="visitno"/>
  258. <col ref="erorddoctcd"/>
  259. <col ref="callno"/>
  260. <col ref="pname"/>
  261. <col ref="sa"/>
  262. <col ref="erorddeptcd"/>
  263. <col ref="erorddeptnm"/>
  264. <col ref="erorddoctnm"/>
  265. <col ref="mainsubflag"/>
  266. <col ref="callcntcno"/>
  267. <col ref="callcnts"/>
  268. <col ref="calldt"/>
  269. <col ref="callpsnid"/>
  270. <col ref="callpsnnm"/>
  271. <col ref="arrivdt"/>
  272. <col ref="visitrgstrid"/>
  273. <col ref="visitrgstnm"/>
  274. <col ref="usetm"/>
  275. </datagrid>
  276. <caption id="caption5" style="left:878px; top:25px; width:78px; height:20px; ">
  277. <![CDATA[외상호출 취소]]>
  278. <script type="javascript" ev:event="onclick">
  279. <![CDATA[
  280. var chk_resyn = model.getValue("/root/main/cond/viewdel");
  281. if (chk_resyn =="Y") {
  282. model.setValue("/root/main/cond/viewdel", "N");
  283. } else {
  284. model.setValue("/root/main/cond/viewdel", "Y");
  285. }
  286. model.refresh();
  287. ]]>
  288. </script>
  289. </caption>
  290. <bool id="chk_veiwall" checkvalue="Y,N" ref="/root/main/cond/viewdel" style="left:864px; top:27px; width:13px; height:13px; "/>
  291. </xhtml:body>
  292. </xhtml:html>