SPMMO33300_OnCall도착.xrw 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307
  1. <?xml version="1.0" encoding="UTF-8"?>
  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>On Call 관리 (도착등록)</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <init>
  10. <orddept/>
  11. <userlist/>
  12. </init>
  13. <main>
  14. <cond>
  15. <condflag/>
  16. <condpid/>
  17. <fromdd/>
  18. <todd/>
  19. <codnstat/>
  20. <conddeptcd/>
  21. <conddrid/>
  22. </cond>
  23. <userinfo>
  24. <orddeptcd/>
  25. <orddeptnm/>
  26. <orddrid/>
  27. <orddrnm/>
  28. <mpphonno/>
  29. <pdano/>
  30. </userinfo>
  31. <oncallinfo>
  32. <saveflag>U</saveflag>
  33. <appdt/>
  34. <appseq/>
  35. <statcd/>
  36. <acptyn/>
  37. <arvdt/>
  38. <arvdd/>
  39. <arvtm/>
  40. <enddt/>
  41. <enddd/>
  42. <endtm/>
  43. <pid/>
  44. <hngnm/>
  45. <patflagcd>E</patflagcd>
  46. <calldeptcd/>
  47. <calldrid/>
  48. <appdeptcd/>
  49. <apporddrid/>
  50. <appmpphonno/>
  51. <appcnts/>
  52. <workcnts/>
  53. <arvrgstdt/>
  54. <endrgstdt/>
  55. </oncallinfo>
  56. <oncalllist/>
  57. </main>
  58. <send>
  59. <reqdata/>
  60. <savedata/>
  61. </send>
  62. <hidden/>
  63. <temp/>
  64. </root>
  65. </instance>
  66. <submission id="TRMMB04101" mediatype="application/x-www-form-urlencoded" method="post"/>
  67. <submission id="TRMMB04102" mediatype="application/x-www-form-urlencoded" method="post"/>
  68. <submission id="TRMMO33201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/cond" resultref="/root/main/oncalllist"/>
  69. <submission id="TXMMO33201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/oncalllist"/>
  70. <script type="javascript" ev:event="xforms-ready">
  71. <![CDATA[
  72. if(getUserInfo("dutplceinstcd") == "031" && getCurrentDate() >= "20150831") { // 본원일경우 온콜 수답 집계 변경 내용 팝업 2015.08.24 엄영만
  73. modal("SPMMO33410");
  74. }
  75. ]]>
  76. </script>
  77. <script type="javascript" ev:event="xforms-model-construct-done">
  78. <![CDATA[
  79. fInitOnCall("R");
  80. ]]>
  81. </script>
  82. </model>
  83. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  84. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  85. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  86. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  87. <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
  88. <script type="javascript" src="../../../emr/prcpmngtweb/js/SPMMO33200.js"/>
  89. </xhtml:head>
  90. <xhtml:body pagewidth="900" pageheight="800" style="margin-left:8; margin-right:8; ">
  91. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:695px; height:14px; ">OnCall 도착등록</caption>
  92. <group id="group1" style="left:0px; top:15px; width:880px; height:760px; ">
  93. <caption id="caption7" class="cell_1" style="left:255px; top:541px; width:80px; height:25px; text-align:left; vertical-align:middle; ">환자번호</caption>
  94. <caption id="caption8" class="cell_1" style="left:443px; top:567px; width:80px; height:25px; text-align:left; vertical-align:middle; ">전화번호</caption>
  95. <caption id="caption9" class="cell_1" style="left:0px; top:567px; width:80px; height:25px; text-align:left; vertical-align:middle; ">진료과</caption>
  96. <caption id="caption10" class="cell_1" style="left:0px; top:593px; width:80px; height:111px; text-align:left; vertical-align:middle; ">신청내용</caption>
  97. <caption id="caption11" class="cell_1" style="left:443px; top:541px; width:80px; height:25px; text-align:left; vertical-align:middle; ">성명</caption>
  98. <caption id="caption12" class="cell_1" style="left:0px; top:541px; width:80px; height:25px; text-align:left; vertical-align:middle; ">환자구분</caption>
  99. <caption id="caption13" class="cell_1" style="left:255px; top:567px; width:80px; height:25px; text-align:left; vertical-align:middle; ">진료의사</caption>
  100. <input id="input1" ref="/root/main/oncallinfo/pid" disabled="true" editable="false" style="left:337px; top:543px; width:103px; height:19px; "/>
  101. <line id="line4" class="line_2" style="x1:0px; y1:565px; x2:880px; y2:565px; "/>
  102. <line id="line5" class="line_2" style="x1:0px; y1:591px; x2:880px; y2:591px; "/>
  103. <input id="input2" ref="/root/main/oncallinfo/appmpphonno" disabled="true" editable="false" style="left:525px; top:569px; width:145px; height:19px; "/>
  104. <input id="input5" ref="/root/main/oncallinfo/hngnm" disabled="true" editable="false" style="left:525px; top:543px; width:145px; height:19px; "/>
  105. <select1 id="radio1" ref="/root/main/oncallinfo/patflagcd" disabled="true" appearance="full" cellspacing="5" cols="3" overflow="visible" style="left:82px; top:544px; width:170px; height:20px; border-style:none; ">
  106. <choices>
  107. <item>
  108. <label>응급실</label>
  109. <value>E</value>
  110. </item>
  111. <item>
  112. <label>일반</label>
  113. <value>S</value>
  114. </item>
  115. <item>
  116. <label>외상</label>
  117. <value>T</value>
  118. </item>
  119. </choices>
  120. </select1>
  121. <textarea id="textarea1" ref="/root/main/oncallinfo/appcnts" disabled="true" editable="false" style="left:82px; top:595px; width:793px; height:105px; "/>
  122. <button id="button3" class="btn4_letter4" style="left:736px; top:732px; width:80px; height:22px; ">
  123. <caption>도착등록</caption>
  124. <script type="javascript" ev:event="DOMActivate">
  125. <![CDATA[
  126. for (var i = 1; i < grd_oncalllist.cols - 1; i++) {
  127. if (grd_oncalllist.colSort(i) != "none") {
  128. xSortCol = i;
  129. xSortType = grd_oncalllist.colsort(i);
  130. break;
  131. }
  132. }
  133. fSaveOnCallInfo("R");
  134. if (xSortCol != -1) {
  135. grd_oncalllist.colSort(xSortCol) = xSortType;
  136. grd_oncalllist.sort(1, 1, grd_oncalllist.rows - 1, grd_oncalllist.cols - 1) = "usersort";
  137. grd_oncalllist.gridToInstance();
  138. }
  139. ]]>
  140. </script>
  141. </button>
  142. <select1 id="cmb_orddept" ref="/root/main/oncallinfo/calldeptcd" disabled="true" appearance="minimal" style="left:82px; top:569px; width:170px; height:19px; ">
  143. <choices>
  144. <itemset nodeset="/root/init/orddept/dept">
  145. <label ref="depthngnm"/>
  146. <value ref="deptcd"/>
  147. </itemset>
  148. </choices>
  149. </select1>
  150. <select1 id="cmb_orddr" ref="/root/main/oncallinfo/calldrid" disabled="true" appearance="minimal" style="left:337px; top:569px; width:103px; height:19px; ">
  151. <choices>
  152. <itemset nodeset="/root/init/userlist/usercombo">
  153. <label ref="usernm"/>
  154. <value ref="userid"/>
  155. </itemset>
  156. </choices>
  157. </select1>
  158. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:880px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  159. <caption id="caption5" class="search_name" style="left:10px; top:9px; width:86px; height:17px; ">신청일자 :</caption>
  160. <input id="input3" ref="/root/main/cond/fromdd" inputtype="date" style="left:100px; top:8px; width:100px; height:19px; "/>
  161. <input id="input6" ref="/root/main/cond/todd" inputtype="date" style="left:220px; top:8px; width:100px; height:19px; "/>
  162. <caption id="caption1" style="left:205px; top:9px; width:11px; height:20px; ">~</caption>
  163. <button id="button1" class="btn1_letter2" style="left:810px; top:7px; width:56px; height:22px; ">
  164. <caption>조회</caption>
  165. <script type="javascript" ev:event="DOMActivate">
  166. <![CDATA[
  167. fGetOnCallList();
  168. ]]>
  169. </script>
  170. </button>
  171. <line id="line2" style="x1:798px; y1:7px; x2:798px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  172. <line id="line8" class="line_1" style="x1:0px; y1:536px; x2:880px; y2:536px; "/>
  173. <line id="line9" class="line_1" style="x1:0px; y1:55px; x2:880px; y2:55px; "/>
  174. <caption id="caption15" class="tit_2" style="left:0px; top:40px; width:188px; height:13px; text-align:left; ">환자별 신청 내역</caption>
  175. <button id="button2" class="btn4_letter2" style="left:818px; top:732px; width:56px; height:22px; ">
  176. <caption>종료</caption>
  177. <script type="javascript" ev:event="DOMActivate">
  178. <![CDATA[
  179. window.close();
  180. ]]>
  181. </script>
  182. </button>
  183. <caption id="caption2" class="cell_1" style="left:0px; top:705px; width:80px; height:25px; text-align:left; vertical-align:middle; ">도착시간</caption>
  184. <line id="line7" class="line_3" style="x1:0px; y1:729px; x2:880px; y2:729px; "/>
  185. <line id="line1" class="line_2" style="x1:0px; y1:703px; x2:880px; y2:703px; "/>
  186. <button id="button4" class="icon_clock" style="left:233px; top:709px; width:16px; height:16px; ">
  187. <caption/>
  188. <script type="javascript" ev:event="DOMActivate">
  189. <![CDATA[
  190. model.setValue("/root/main/oncallinfo/arvdd", getCurrentDate());
  191. model.setValue("/root/main/oncallinfo/arvtm", getCurrentTime());
  192. ipt_arvdd.refresh();
  193. ipt_arvtm.refresh();
  194. ]]>
  195. </script>
  196. </button>
  197. <input id="ipt_arvdd" ref="/root/main/oncallinfo/arvdd" inputtype="date" style="left:82px; top:707px; width:100px; height:19px; "/>
  198. <caption id="cap_arvdd" class="cell_1" visibility="hidden" style="left:270px; top:705px; width:35px; height:25px; text-align:left; vertical-align:middle; ">도착일자</caption>
  199. <input id="ipt_arvtm" ref="/root/main/oncallinfo/arvtm" format="hh:nn" style="left:184px; top:707px; width:45px; height:19px; "/>
  200. <caption id="cap_arvtm" class="cell_1" visibility="hidden" style="left:305px; top:705px; width:35px; height:25px; text-align:left; vertical-align:middle; ">도착시간</caption>
  201. <datagrid id="grd_oncalllist" nodeset="/root/main/oncalllist/info" caption="saveflag^등록번호^성명^상태^acptyn^신청일시^appseq^arvdt^arvdd^arvtm^enddt^enddd^endtm^patflagcd^calldeptcd^진료과^calldrid^진료의^callmpphonno^appdeptcd^appdeptnm^apporddrid^신청자^신청 전화번호^신청 내용^workcnts^arvrgstdt^endrgstdt" colsep="^" colwidth="0, 70, 65, 40, 0, 105, 0, 0, 0, 0, 0, 0, 0, 0, 0, 110, 0, 60, 0, 0, 0, 0, 60, 85, 260, 0, 0, 0" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:60px; width:880px; height:475px; ">
  202. <col ref="saveflag"/>
  203. <col ref="pid"/>
  204. <col ref="hngnm"/>
  205. <col disabled="true" ref="statcd" type="combo">
  206. <choices>
  207. <item>
  208. <label>신청</label>
  209. <value>A</value>
  210. </item>
  211. <item>
  212. <label>도착</label>
  213. <value>R</value>
  214. </item>
  215. <item>
  216. <label>완료</label>
  217. <value>E</value>
  218. </item>
  219. </choices>
  220. </col>
  221. <col ref="acptyn"/>
  222. <col ref="appdt" format="yyyy-mm-dd hh:nn"/>
  223. <col ref="appseq"/>
  224. <col ref="arvdt"/>
  225. <col ref="arvdd"/>
  226. <col ref="arvtm"/>
  227. <col ref="enddt"/>
  228. <col ref="enddd"/>
  229. <col ref="endtm"/>
  230. <col ref="patflagcd"/>
  231. <col ref="calldeptcd"/>
  232. <col ref="calldeptnm"/>
  233. <col ref="calldrid"/>
  234. <col ref="calldrnm"/>
  235. <col ref="callmpphonno"/>
  236. <col ref="appdeptcd"/>
  237. <col ref="appdeptnm"/>
  238. <col ref="apporddrid"/>
  239. <col ref="apporddrnm"/>
  240. <col ref="appmpphonno"/>
  241. <col ref="appcnts"/>
  242. <col ref="workcnts"/>
  243. <col ref="arvrgstdt"/>
  244. <col ref="endrgstdt"/>
  245. <script type="javascript" ev:event="ondblclick">
  246. <![CDATA[
  247. fGetOnCallInfo("A");
  248. ]]>
  249. </script>
  250. <script type="javascript" ev:event="onaftersort">
  251. <![CDATA[
  252. grd_oncalllist.gridToInstance();
  253. ]]>
  254. </script>
  255. <script type="javascript" ev:event="onclick">
  256. <![CDATA[
  257. if (grd_oncalllist.mouseCol > 0 && grd_oncalllist.mouseRow == 0) {
  258. if (grd_oncalllist.colSort(grd_oncalllist.mouseCol) == "desc") {
  259. grd_oncalllist.colSort(grd_oncalllist.mouseCol) = "asc";
  260. } else {
  261. grd_oncalllist.colSort(grd_oncalllist.mouseCol) = "desc";
  262. }
  263. for (var i = 1; i < grd_oncalllist.cols - 1; i++) {
  264. if ( grd_oncalllist.mouseCol != i) {
  265. grd_oncalllist.colSort(i) = "none";
  266. }
  267. }
  268. grd_oncalllist.sort(1, 1, grd_oncalllist.rows - 1, grd_oncalllist.cols - 1) = "usersort";
  269. grd_oncalllist.gridToInstance();
  270. }
  271. ]]>
  272. </script>
  273. </datagrid>
  274. <caption id="caption4" class="search_name" style="left:338px; top:9px; width:81px; height:17px; ">진 료 과:</caption>
  275. <caption id="caption3" class="search_name" style="left:582px; top:9px; width:79px; height:17px; ">진 료 의:</caption>
  276. <select1 id="cmb_orddr2" ref="/root/main/cond/conddrid" class="combo_s_essential" navindex="3" appearance="minimal" style="left:662px; top:8px; width:85px; height:19px; ">
  277. <choices>
  278. <itemset nodeset="/root/init/userlist/usercombo">
  279. <label ref="usernm"/>
  280. <value ref="userid"/>
  281. </itemset>
  282. </choices>
  283. </select1>
  284. <select1 id="cmb_orddept2" ref="/root/main/cond/conddeptcd" class="combo_s_essential" navindex="2" appearance="minimal" style="left:423px; top:8px; width:140px; height:19px; ">
  285. <choices>
  286. <itemset nodeset="/root/init/orddept/dept">
  287. <label ref="depthngnm"/>
  288. <value ref="deptcd"/>
  289. </itemset>
  290. </choices>
  291. <script type="javascript" ev:event="xforms-value-changed">
  292. <![CDATA[
  293. fGetOrdDrList1(cmb_orddept2.value);
  294. ]]>
  295. </script>
  296. </select1>
  297. </group>
  298. </xhtml:body>
  299. </xhtml:html>