SPMMO33200_OnCall신청.xrw 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320
  1. <?xml version="1.0" encoding="UTF-8"?>
  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>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. </cond>
  21. <userinfo>
  22. <orddeptcd/>
  23. <orddeptnm/>
  24. <orddrid/>
  25. <orddrnm/>
  26. <mpphonno/>
  27. <pdano/>
  28. </userinfo>
  29. <patinfolist>
  30. <pid/>
  31. </patinfolist>
  32. <oncallinfo>
  33. <saveflag>I</saveflag>
  34. <appdt/>
  35. <appseq/>
  36. <statcd/>
  37. <acptyn/>
  38. <arvdt/>
  39. <arvdd/>
  40. <arvtm/>
  41. <enddt/>
  42. <enddd/>
  43. <endtm/>
  44. <pid/>
  45. <hngnm/>
  46. <patflagcd>E</patflagcd>
  47. <calldeptcd/>
  48. <calldeptnm/>
  49. <calldrid/>
  50. <calldrnm/>
  51. <callmpphonno/>
  52. <appdeptcd/>
  53. <apporddrid/>
  54. <appmpphonno/>
  55. <appcnts>환자의 위급한 상황으로 on call</appcnts>
  56. <workcnts/>
  57. <arvrgstdt/>
  58. <endrgstdt/>
  59. <sendsmsyn>N</sendsmsyn>
  60. </oncallinfo>
  61. <oncalllist/>
  62. </main>
  63. <send>
  64. <reqdata/>
  65. <savedata/>
  66. </send>
  67. <hidden/>
  68. <temp>
  69. <patinfo/>
  70. <callinfo/>
  71. </temp>
  72. </root>
  73. </instance>
  74. <submission id="TRMMO02505" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/temp/srchinfo"/>
  75. <submission id="TRMMB04101" mediatype="application/x-www-form-urlencoded" method="post"/>
  76. <submission id="TRMMB04102" mediatype="application/x-www-form-urlencoded" method="post"/>
  77. <submission id="TRMMO33201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/cond" resultref="/root/main/oncalllist"/>
  78. <submission id="TRMMO33202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/oncallinfo" resultref="/root/temp/patinfo"/>
  79. <submission id="TRMMO33203" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/oncallinfo" resultref="/root/temp/callinfo"/>
  80. <submission id="TXMMO33201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/oncalllist"/>
  81. <script type="javascript" ev:event="xforms-model-construct-done">
  82. <![CDATA[
  83. fInitOnCall("A");
  84. ]]>
  85. </script>
  86. </model>
  87. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  88. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  89. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  90. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  91. <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
  92. <script type="javascript" src="../../../emr/prcpmngtweb/js/SPMMO33200.js"/>
  93. </xhtml:head>
  94. <xhtml:body pagewidth="900" pageheight="600" style="margin-left:8; ">
  95. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:695px; height:13px; ">OnCall 신청</caption>
  96. <group id="group1" style="left:0px; top:15px; width:880px; height:560px; ">
  97. <line id="line6" class="line_2" style="x1:0px; y1:114px; x2:880px; y2:114px; "/>
  98. <caption id="caption1" class="cell_1" style="left:0px; top:5px; width:80px; height:25px; text-align:left; vertical-align:middle; ">진료과</caption>
  99. <caption id="caption2" class="cell_1" style="left:235px; top:5px; width:80px; height:25px; text-align:left; vertical-align:middle; ">성명 / 사번</caption>
  100. <caption id="caption4" class="cell_1" style="left:522px; top:5px; width:118px; height:25px; text-align:left; vertical-align:middle; ">휴대폰 / NZone</caption>
  101. <caption id="caption10" class="cell_1" style="left:0px; top:116px; width:80px; height:118px; text-align:left; vertical-align:middle; ">신청내용</caption>
  102. <line id="line3" class="line_1" style="x1:0px; y1:56px; x2:880px; y2:56px; "/>
  103. <line id="line4" class="line_2" style="x1:0px; y1:87px; x2:880px; y2:87px; "/>
  104. <line id="line7" class="line_3" style="x1:0px; y1:232px; x2:880px; y2:232px; "/>
  105. <textarea id="textarea1" ref="/root/main/oncallinfo/appcnts" navindex="4" style="left:82px; top:117px; width:795px; height:114px; "/>
  106. <line id="line1" class="line_1" style="x1:0px; y1:0px; x2:880px; y2:0px; "/>
  107. <line id="line2" class="line_3" style="x1:0px; y1:29px; x2:880px; y2:29px; "/>
  108. <button id="button3" class="btn4_letter2" style="left:821px; top:32px; width:56px; height:22px; ">
  109. <caption>신청</caption>
  110. <script type="javascript" ev:event="DOMActivate">
  111. <![CDATA[
  112. fSaveOnCallInfo("A");
  113. ]]>
  114. </script>
  115. </button>
  116. <caption id="caption15" class="tit_2" style="left:0px; top:245px; width:188px; height:13px; text-align:left; ">환자별 신청 내역</caption>
  117. <line id="line8" class="line_3" style="x1:0px; y1:557px; x2:880px; y2:557px; "/>
  118. <line id="line9" class="line_1" style="x1:0px; y1:260px; x2:880px; y2:260px; "/>
  119. <input id="input6" ref="/root/main/userinfo/orddeptnm" editable="false" style="left:82px; top:7px; width:150px; height:19px; "/>
  120. <input id="input7" ref="/root/main/userinfo/mpphonno" editable="false" style="left:643px; top:7px; width:137px; height:19px; "/>
  121. <input id="input8" ref="/root/main/userinfo/orddrnm" editable="false" style="left:317px; top:7px; width:90px; height:19px; "/>
  122. <input id="input9" ref="/root/main/userinfo/orddrid" editable="false" style="left:428px; top:7px; width:90px; height:19px; "/>
  123. <input id="input10" ref="/root/main/userinfo/pdano" editable="false" style="left:795px; top:7px; width:82px; height:19px; "/>
  124. <select1 id="cmb_orddept" ref="/root/main/oncallinfo/calldeptcd" class="combo_s_essential" navindex="2" appearance="minimal" style="left:82px; top:92px; width:150px; height:19px; ">
  125. <choices>
  126. <itemset nodeset="/root/init/orddept/dept">
  127. <label ref="depthngnm"/>
  128. <value ref="deptcd"/>
  129. </itemset>
  130. </choices>
  131. <script type="javascript" ev:event="xforms-value-changed">
  132. <![CDATA[
  133. fGetOrdDrList();
  134. ]]>
  135. </script>
  136. </select1>
  137. <select1 id="cmb_orddr" ref="/root/main/oncallinfo/calldrid" class="combo_s_essential" navindex="3" appearance="minimal" style="left:317px; top:92px; width:118px; height:19px; ">
  138. <choices>
  139. <itemset nodeset="/root/init/userlist/usercombo">
  140. <label ref="usernm"/>
  141. <value ref="userid"/>
  142. </itemset>
  143. </choices>
  144. <script type="javascript" ev:event="xforms-value-changed">
  145. <![CDATA[
  146. fGetUserCallInfo();
  147. ]]>
  148. </script>
  149. </select1>
  150. <input id="ipt_pid" ref="/root/main/oncallinfo/pid" class="input_s_essential" style="left:317px; top:65px; width:118px; height:19px; ">
  151. <script type="javascript" ev:event="onkeydown">
  152. <![CDATA[
  153. if( event.keycode == 13 ){
  154. fGetPatBaseInfo();
  155. }
  156. ]]>
  157. </script>
  158. </input>
  159. <caption id="cap_pid" class="cell_1" style="left:235px; top:63px; width:80px; height:25px; text-align:left; vertical-align:middle; ">환자번호</caption>
  160. <caption id="cap_hngnm" class="cell_1" style="left:438px; top:63px; width:80px; height:25px; text-align:left; vertical-align:middle; ">성명</caption>
  161. <input id="ipt_hngnm" ref="/root/main/oncallinfo/hngnm" class="input_s_essential" style="left:522px; top:65px; width:118px; height:19px; "/>
  162. <input id="ipt_appmpphonno" ref="/root/main/oncallinfo/appmpphonno" class="input_s_essential" navindex="1" format="99999999999999999999" style="left:730px; top:65px; width:146px; height:19px; "/>
  163. <caption id="cap_appmpphonno" class="cell_1" style="left:643px; top:63px; width:83px; height:25px; text-align:left; vertical-align:middle; ">신청 전화번호</caption>
  164. <select1 id="rdo_patflagcd" ref="/root/main/oncallinfo/patflagcd" appearance="full" cols="3" overflow="visible" style="left:85px; top:65px; width:150px; height:20px; border-style:none; ">
  165. <choices>
  166. <item>
  167. <label>응급실</label>
  168. <value>E</value>
  169. </item>
  170. <item>
  171. <label>일반</label>
  172. <value>S</value>
  173. </item>
  174. <item>
  175. <label>외상</label>
  176. <value>T</value>
  177. </item>
  178. </choices>
  179. </select1>
  180. <caption id="cap_patflagcd" class="cell_1" style="left:0px; top:61px; width:80px; height:25px; text-align:left; vertical-align:middle; ">환자구분</caption>
  181. <caption id="cap_orddept" class="cell_1" style="left:0px; top:89px; width:80px; height:25px; text-align:left; vertical-align:middle; ">진료과</caption>
  182. <caption id="cap_orddr" class="cell_1" style="left:235px; top:89px; width:80px; height:25px; text-align:left; vertical-align:middle; ">진료의사</caption>
  183. <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, 75, 65, 40, 0, 105, 110, 60, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 60, 85, 260, 0, 0, 0" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:265px; width:880px; height:290px; ">
  184. <col ref="saveflag"/>
  185. <col ref="pid"/>
  186. <col ref="hngnm"/>
  187. <col disabled="true" ref="statcd" type="combo">
  188. <choices>
  189. <item>
  190. <label>신청</label>
  191. <value>A</value>
  192. </item>
  193. <item>
  194. <label>도착</label>
  195. <value>R</value>
  196. </item>
  197. <item>
  198. <label>완료</label>
  199. <value>E</value>
  200. </item>
  201. </choices>
  202. </col>
  203. <col ref="acptyn"/>
  204. <col ref="appdt" format="yyyy-mm-dd hh:nn"/>
  205. <col ref="calldeptnm"/>
  206. <col ref="calldrnm"/>
  207. <col ref="appseq"/>
  208. <col ref="arvdt"/>
  209. <col ref="arvdd"/>
  210. <col ref="arvtm"/>
  211. <col ref="enddt"/>
  212. <col ref="enddd"/>
  213. <col ref="endtm"/>
  214. <col ref="patflagcd"/>
  215. <col ref="calldeptcd"/>
  216. <col ref="calldrid"/>
  217. <col ref="callmpphonno"/>
  218. <col ref="appdeptcd"/>
  219. <col ref="appdeptnm"/>
  220. <col ref="apporddrid"/>
  221. <col ref="apporddrnm"/>
  222. <col ref="appmpphonno"/>
  223. <col ref="appcnts"/>
  224. <col ref="workcnts"/>
  225. <col ref="arvrgstdt"/>
  226. <col ref="endrgstdt"/>
  227. <script type="javascript" ev:event="ondblclick">
  228. <![CDATA[
  229. if(model.getValue("/root/main/oncalllist/info["+grd_oncalllist.row+"]/statcd") == "E"){
  230. button3.disabled = true;
  231. ipt_pid.disabled = true;
  232. ipt_hngnm.disabled = true;
  233. rdo_patflagcd.disabled = true;
  234. cmb_orddept.disabled = true;
  235. cmb_orddr.disabled = true;
  236. input1.disabled = true;
  237. ipt_appmpphonno.disabled = true;
  238. textarea1.disabled = true;
  239. }else{
  240. button3.disabled = false;
  241. ipt_pid.disabled = false;
  242. ipt_hngnm.disabled = false;
  243. rdo_patflagcd.disabled = false;
  244. cmb_orddept.disabled = false;
  245. cmb_orddr.disabled = false;
  246. input1.disabled = false;
  247. ipt_appmpphonno.disabled = false;
  248. textarea1.disabled = false;
  249. }
  250. fGetOnCallInfo("A");
  251. ]]>
  252. </script>
  253. </datagrid>
  254. <caption id="caption7" class="cell_1" style="left:438px; top:89px; width:80px; height:25px; text-align:left; vertical-align:middle; ">전화번호</caption>
  255. <input id="input1" ref="/root/temp/callinfo/info/mpphonno2" class="input_s_essential" navindex="1" editable="false" format="99999999999999999999" style="left:522px; top:92px; width:118px; height:19px; "/>
  256. <caption id="caption3" style="left:413px; top:7px; width:10px; height:20px; ">/</caption>
  257. <caption id="caption5" style="left:785px; top:7px; width:10px; height:20px; ">/</caption>
  258. <button id="button1" class="btn3_letter2" style="left:760px; top:32px; width:56px; height:22px; ">
  259. <caption>신규</caption>
  260. <script type="javascript" ev:event="DOMActivate">
  261. <![CDATA[
  262. button3.disabled = false;
  263. ipt_pid.disabled = false;
  264. ipt_hngnm.disabled = false;
  265. rdo_patflagcd.disabled = false;
  266. cmb_orddept.disabled = false;
  267. cmb_orddr.disabled = false;
  268. input1.disabled = false;
  269. ipt_appmpphonno.disabled = false;
  270. textarea1.disabled = false;
  271. model.setValue("/root/main/oncallinfo/saveflag","I");
  272. model.setValue("/root/main/oncallinfo/appdt","");
  273. model.setValue("/root/main/oncallinfo/appseq","");
  274. model.setValue("/root/main/oncallinfo/statcd","");
  275. model.setValue("/root/main/oncallinfo/acptyn","");
  276. model.setValue("/root/main/oncallinfo/arvdt","");
  277. model.setValue("/root/main/oncallinfo/arvdd","");
  278. model.setValue("/root/main/oncallinfo/arvtm","");
  279. model.setValue("/root/main/oncallinfo/enddt","");
  280. model.setValue("/root/main/oncallinfo/endtm","");
  281. model.setValue("/root/main/oncallinfo/pid","");
  282. model.setValue("/root/main/oncallinfo/hngnm","");
  283. model.setValue("/root/main/oncallinfo/patflagcd","");
  284. model.setValue("/root/main/oncallinfo/calldeptcd","");
  285. model.setValue("/root/main/oncallinfo/calldeptnm","");
  286. model.setValue("/root/main/oncallinfo/calldrid","");
  287. model.setValue("/root/main/oncallinfo/calldrnm","");
  288. model.setValue("/root/main/oncallinfo/callmpphonno","");
  289. model.setValue("/root/main/oncallinfo/appdeptcd","");
  290. model.setValue("/root/main/oncallinfo/apporddrid","");
  291. model.setValue("/root/main/oncallinfo/appmpphonno","");
  292. model.setValue("/root/main/oncallinfo/appcnts","환자의 위급한 상황으로 on call");
  293. model.setValue("/root/main/oncallinfo/workcnts","");
  294. model.setValue("/root/main/oncallinfo/arvrgstdt","");
  295. model.setValue("/root/main/oncallinfo/endrgstdt","");
  296. fInitOnCall("A");
  297. ]]>
  298. </script>
  299. </button>
  300. <bool id="chk_smsyn" checkvalue="Y,N" ref="/root/main/oncallinfo/sendsmsyn" style="left:642px; top:95px; width:20px; height:15px; "/>
  301. <caption id="caption8" style="left:662px; top:95px; width:66px; height:15px; ">
  302. <![CDATA[SMS 발송]]>
  303. <script type="javascript" ev:event="onclick">
  304. <![CDATA[
  305. var chk_prcp = model.getValue("/root/main/oncallinfo/sendsmsyn");
  306. if (chk_prcp =="Y") {
  307. model.setValue("/root/main/oncallinfo/sendsmsyn", "N");
  308. } else {
  309. model.setValue("/root/main/oncallinfo/sendsmsyn", "Y");
  310. }
  311. model.refresh();
  312. ]]>
  313. </script>
  314. </caption>
  315. </group>
  316. </xhtml:body>
  317. </xhtml:html>