SPMMR05800_Stemi.xrw 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350
  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>STEMI</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <patinfo>
  11. <pid/>
  12. <hngnm/>
  13. <age/>
  14. <sex/>
  15. <mpphontel/>
  16. <hometel/>
  17. <orddd/>
  18. <chosflag/>
  19. <instcd/>
  20. <cretno/>
  21. </patinfo>
  22. <result>
  23. <paminfo>
  24. <list/>
  25. </paminfo>
  26. </result>
  27. <cond>
  28. <stemifromdd/>
  29. <stemitodd/>
  30. <recflag/>
  31. <srchpid/>
  32. <radio_select/>
  33. </cond>
  34. </main>
  35. <send>
  36. <stemi>
  37. <stemi1/>
  38. <stemi2/>
  39. <stemi3/>
  40. <stemi4/>
  41. <stemi5/>
  42. <stemi6/>
  43. <stemi7/>
  44. <stemi8/>
  45. <stemi9/>
  46. <stemi10/>
  47. <stemi11/>
  48. <stemi12/>
  49. <stemi13/>
  50. <stemi14/>
  51. <stemi15/>
  52. <stemi16/>
  53. <fstrgstrid/>
  54. <lastupdtrid/>
  55. <orddd/>
  56. <instcd/>
  57. <insrowcnt/>
  58. </stemi>
  59. <reqdata>
  60. <stemidd/>
  61. <srchflag/>
  62. </reqdata>
  63. </send>
  64. <hidden/>
  65. <init>
  66. <drinfolist/>
  67. <hardcditem/>
  68. <patstemiinfo/>
  69. <flag/>
  70. </init>
  71. <temp/>
  72. </root>
  73. </instance>
  74. <script type="javascript" ev:event="xforms-close">
  75. <![CDATA[
  76. if(model.getValue("/root/init/savechk")!="Y"){
  77. var chk=messageBox("", "Q002", ""); //예:6 아니오:7 취소:2
  78. if(chk=="6"){
  79. model.makeValue("/root/send/stemi/recflag", "2"); // 구분(스태미:2)
  80. if(model.getValue("/root/init/flag")=="U"){
  81. submit("TXMMR05802");
  82. }else{
  83. submit("TXMMR05801");
  84. }
  85. }
  86. }
  87. ]]>
  88. </script>
  89. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  90. <script type="javascript" ev:event="xforms-ready">
  91. <![CDATA[
  92. fInitialize_SPMMR05800();
  93. model.refresh();
  94. ]]>
  95. </script>
  96. <submission id="TRPMC02500" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/source" resultref="/root/main/result/patinfo"/>
  97. <submission id="TRMMR05800" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/patinfo"/>
  98. <submission id="TRMMR05801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/drinfolist"/>
  99. <submission id="TRMMR05802" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/stemi" resultref="/root/init/patstemiinfo"/>
  100. <submission id="TXMMR05800" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata"/>
  101. <submission id="TXMMR05801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/stemi"/>
  102. <submission id="TXMMR05802" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/stemi"/>
  103. </model>
  104. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  105. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  106. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  107. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  108. <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
  109. <script type="javascript" src="../../../emr/carecomweb/js/CareCom.js"/>
  110. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  111. <script type="javascript" src="../../../emr/medirecweb/js/SPMMR05800.js"/>
  112. </xhtml:head>
  113. <xhtml:body pagewidth="915" pageheight="410" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
  114. <group id="grp_stemi" style="left:0px; top:0px; width:895px; height:385px; ">
  115. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:124px; height:14px; ">STEMI</caption>
  116. <line id="line3" class="line_1" style="x1:0px; y1:15px; x2:520px; y2:15px; "/>
  117. <caption id="caption1" class="cell_1" style="left:205px; top:25px; width:74px; height:20px; vertical-align:middle; ">환자명</caption>
  118. <caption id="caption2" class="cell_1" style="left:205px; top:55px; width:74px; height:20px; vertical-align:middle; ">연 락 처</caption>
  119. <caption id="caption4" class="cell_1" style="left:20px; top:55px; width:74px; height:20px; vertical-align:middle; ">나이/성별</caption>
  120. <caption id="caption8" class="cell_1" style="left:0px; top:100px; width:191px; height:23px; vertical-align:middle; ">순환기내과 당직 전임의 호출시각</caption>
  121. <caption id="caption9" class="cell_1" style="left:0px; top:218px; width:191px; height:23px; vertical-align:middle; ">심혈관촬영실 도착시각</caption>
  122. <caption id="caption13" class="cell_1" style="left:0px; top:244px; width:191px; height:23px; vertical-align:middle; ">기 타</caption>
  123. <caption id="caption27" class="cell_1" style="left:20px; top:25px; width:74px; height:20px; vertical-align:middle; ">등록번호</caption>
  124. <input id="ipt_hngnm" ref="/root/send/stemi/stemi2" disabled="true" style="left:281px; top:27px; width:102px; height:19px; "/>
  125. <input id="ipt_age" ref="/root/send/stemi/stemi3" disabled="true" autonext="false" imemode="disabled" maxlength="3" format="#" style="left:96px; top:57px; width:44px; height:19px; "/>
  126. <select1 id="cmb_sex" ref="/root/send/stemi/stemi4" disabled="true" appearance="minimal" style="left:142px; top:57px; width:56px; height:19px; ">
  127. <choices>
  128. <item>
  129. <label>남</label>
  130. <value>M</value>
  131. </item>
  132. <item>
  133. <label>여</label>
  134. <value>F</value>
  135. </item>
  136. </choices>
  137. </select1>
  138. <line id="line4" class="line_1" style="x1:526px; y1:15px; x2:880px; y2:15px; "/>
  139. <caption id="caption28" class="tit_2" style="left:527px; top:1px; width:180px; height:13px; vertical-align:middle; ">Stemi 환자리스트</caption>
  140. <caption id="caption29" class="search_name" style="left:533px; top:71px; width:87px; height:17px; ">검색일자 :</caption>
  141. <input id="ipt_pid" ref="/root/send/stemi/stemi1" disabled="true" autonext="false" imemode="disabled" maxlength="10" style="left:96px; top:27px; width:102px; height:19px; "/>
  142. <caption id="caption30" class="cell_1" style="left:0px; top:192px; width:191px; height:23px; vertical-align:middle; ">심혈관촬영실 이동 요청시각</caption>
  143. <caption id="caption32" class="cell_1" style="left:0px; top:125px; width:191px; height:23px; vertical-align:middle; ">순환기내과 Staff 호출시각</caption>
  144. <caption id="caption33" class="cell_1" style="left:0px; top:150px; width:191px; height:23px; vertical-align:middle; ">심혈관촬영팀 호출시각</caption>
  145. <input id="ipt_tel" ref="/root/send/stemi/stemi5" disabled="true" style="left:280px; top:55px; width:102px; height:19px; "/>
  146. <select1 id="combo1" ref="/root/send/stemi/stemi6" appearance="minimal" style="left:205px; top:100px; width:115px; height:19px; ">
  147. <choices>
  148. <itemset nodeset="/root/init/drinfolist[cdseqno=1]">
  149. <label ref="usernm"/>
  150. <value ref="userid"/>
  151. </itemset>
  152. </choices>
  153. </select1>
  154. <input id="ipt_1" ref="/root/send/stemi/stemi7" editable="true" format="yyyy-mm-dd hh24:mm" style="left:395px; top:100px; width:115px; height:19px; "/>
  155. <line id="line1" class="line_1" style="x1:0px; y1:95px; x2:520px; y2:95px; "/>
  156. <line id="line2" class="line_1" style="x1:0px; y1:371px; x2:520px; y2:371px; "/>
  157. <button id="btn_2" class="btn2_letter4" style="left:325px; top:125px; width:64px; height:19px; ">
  158. <caption>SMS전송</caption>
  159. <script type="javascript" ev:event="onclick">
  160. <![CDATA[
  161. fSmsCallDr(event.currentTarget);
  162. ]]>
  163. </script>
  164. </button>
  165. <select1 id="combo2" ref="/root/send/stemi/stemi8" appearance="minimal" style="left:205px; top:125px; width:115px; height:19px; ">
  166. <choices>
  167. <itemset nodeset="/root/init/drinfolist[cdseqno=2]">
  168. <label ref="usernm"/>
  169. <value ref="userid"/>
  170. </itemset>
  171. </choices>
  172. </select1>
  173. <input id="ipt_2" ref="/root/send/stemi/stemi9" editable="true" format="yyyy-mm-dd hh24:mm" style="left:395px; top:125px; width:115px; height:19px; "/>
  174. <button id="btn_3" class="btn2_letter4" style="left:325px; top:150px; width:64px; height:19px; ">
  175. <caption>SMS전송</caption>
  176. <script type="javascript" ev:event="onclick">
  177. <![CDATA[
  178. fSmsCallDr(event.currentTarget);
  179. ]]>
  180. </script>
  181. </button>
  182. <select1 id="combo3" ref="/root/send/stemi/stemi10" appearance="minimal" style="left:205px; top:150px; width:115px; height:19px; ">
  183. <choices>
  184. <itemset nodeset="/root/init/drinfolist[cdseqno=3]">
  185. <label ref="usernm"/>
  186. <value ref="userid"/>
  187. </itemset>
  188. </choices>
  189. </select1>
  190. <input id="ipt_3" ref="/root/send/stemi/stemi11" editable="true" format="yyyy-mm-dd hh24:mm" style="left:395px; top:150px; width:115px; height:19px; "/>
  191. <select1 id="combo4" ref="/root/send/stemi/stemi12" appearance="minimal" style="left:205px; top:171px; width:115px; height:19px; ">
  192. <choices>
  193. <itemset nodeset="/root/init/drinfolist[cdseqno=4]">
  194. <label ref="usernm"/>
  195. <value ref="userid"/>
  196. </itemset>
  197. </choices>
  198. </select1>
  199. <input id="ipt_4" ref="/root/send/stemi/stemi13" editable="true" format="yyyy-mm-dd hh24:mm" style="left:395px; top:171px; width:115px; height:19px; "/>
  200. <input id="ipt_5" ref="/root/send/stemi/stemi14" editable="true" format="yyyy-mm-dd hh24:mm" style="left:395px; top:192px; width:115px; height:19px; "/>
  201. <input id="ipt_6" ref="/root/send/stemi/stemi15" editable="true" format="yyyy-mm-dd hh24:mm" style="left:395px; top:213px; width:115px; height:19px; "/>
  202. <textarea id="txt_1" ref="/root/send/stemi/stemi16" scroll="auto" style="left:1px; top:271px; width:509px; height:94px; "/>
  203. <datagrid id="grd_stemipatlist" nodeset="/root/main/patinfo" caption="등록번호^환자명^수진일" colsep="^" colwidth="121, 107, 106" mergecellsfixedrows="bycolrec" rowsep="|" style="left:525px; top:100px; width:355px; height:275px; ">
  204. <col ref="pid"/>
  205. <col ref="hngnm"/>
  206. <col ref="orddd" format="yyyy-mm-dd"/>
  207. <script type="javascript" ev:event="onclick">
  208. <![CDATA[
  209. model.resetInstanceNode("/root/send/stemi");
  210. var iRow = grd_stemipatlist.row;
  211. if(iRow > 0){
  212. model.makeValue("/root/send/stemi/pid", model.getValue("/root/main/patinfo["+iRow+"]/pid"));
  213. model.makeValue("/root/send/stemi/orddd", model.getValue("/root/main/patinfo["+iRow+"]/orddd"));
  214. model.makeValue("/root/send/stemi/cretno",model.getValue("/root/main/patinfo["+iRow+"]/cretno"));
  215. model.makeValue("/root/send/stemi/chosflag", model.getValue("/root/main/patinfo["+iRow+"]/chosflag"));
  216. model.makeValue("/root/send/stemi/instcd", model.getValue("/root/main/patinfo["+iRow+"]/instcd"));
  217. model.makeValue("/root/send/stemi/fstrgstrid", getUserInfo("userid")); //등록자
  218. model.makeValue("/root/send/stemi/lastupdtrid", getUserInfo("userid")); //등록자
  219. model.makeValue("/root/send/stemi/recflag", "2"); // 구분(스태미:2)
  220. if(model.getValue("/root/main/cond/radio_select")=="0"){
  221. fLoadStemi();
  222. }
  223. //if(model.getValue("/root/init/patstemiinfo/pid")==""){
  224. if(model.getValue("/root/main/cond/radio_select")=="1"){
  225. model.resetInstanceNode("/root/init/flag");
  226. model.makeValue("/root/send/stemi/insrowcnt", model.getValue("/root/init/hardcditem/hardcd[cdseqno=5]/hardcd"));
  227. model.makeValue("/root/send/stemi/stemi1", model.getValue("/root/main/patinfo["+iRow+"]/pid"));
  228. model.makeValue("/root/send/stemi/stemi2", model.getValue("/root/main/patinfo["+iRow+"]/hngnm"));
  229. model.makeValue("/root/send/stemi/stemi3", model.getValue("/root/main/patinfo["+iRow+"]/age"));
  230. model.makeValue("/root/send/stemi/stemi4", model.getValue("/root/main/patinfo["+iRow+"]/sex"));
  231. if(model.getValue("/root/main/patinfo["+iRow+"]/mpphontel")!=""){
  232. model.makeValue("/root/send/stemi/stemi5", model.getValue("/root/main/patinfo["+iRow+"]/mpphontel"));
  233. }else{
  234. model.makeValue("/root/send/stemi/stemi5", model.getValue("/root/main/patinfo["+iRow+"]/hometel"));
  235. }
  236. }
  237. }
  238. model.refresh();
  239. ]]>
  240. </script>
  241. </datagrid>
  242. <button id="btn_1" class="btn2_letter4" style="left:325px; top:100px; width:64px; height:19px; ">
  243. <caption>시간입력</caption>
  244. <script type="javascript" ev:event="onclick">
  245. <![CDATA[
  246. if(model.getValue("/root/send/stemi/stemi6")==""){
  247. alert("당직 전임의를 선택해주세요!");
  248. return;
  249. }else{
  250. var day = getCurrentDate();
  251. var tm = getCurrentTime();
  252. model.setValue("/root/send/stemi/stemi7", day + tm);
  253. }
  254. model.refresh();
  255. ]]>
  256. </script>
  257. </button>
  258. <button id="btn_4" class="btn2_letter4" style="left:325px; top:171px; width:64px; height:19px; ">
  259. <caption>SMS전송</caption>
  260. <script type="javascript" ev:event="onclick">
  261. <![CDATA[
  262. fSmsCallDr(event.currentTarget);
  263. ]]>
  264. </script>
  265. </button>
  266. <button id="button1" class="btn2_letter4" style="left:325px; top:192px; width:64px; height:19px; ">
  267. <caption>시간입력</caption>
  268. <script type="javascript" ev:event="onclick">
  269. <![CDATA[
  270. var day = getCurrentDate();
  271. var tm = getCurrentTime();
  272. model.setValue("/root/send/stemi/stemi14", day + tm);
  273. model.refresh();
  274. ]]>
  275. </script>
  276. </button>
  277. <button id="button4" class="btn2_letter4" style="left:325px; top:213px; width:64px; height:19px; ">
  278. <caption>시간입력</caption>
  279. <script type="javascript" ev:event="onclick">
  280. <![CDATA[
  281. var day = getCurrentDate();
  282. var tm = getCurrentTime();
  283. model.setValue("/root/send/stemi/stemi15", day + tm);
  284. model.refresh();
  285. ]]>
  286. </script>
  287. </button>
  288. <caption id="caption3" style="left:718px; top:70px; width:20px; height:20px; ">~</caption>
  289. <caption id="caption5" class="search_name" style="left:534px; top:40px; width:87px; height:17px; ">환자번호 :</caption>
  290. <input id="input2" ref="/root/main/cond/srchpid" autonext="false" imemode="disabled" maxlength="10" style="left:625px; top:40px; width:85px; height:19px; "/>
  291. <select1 id="radio1" ref="/root/main/cond/radio_select" appearance="full" cols="2" rows="1" overflow="visible" style="left:720px; top:41px; width:90px; height:20px; border-style:none; ">
  292. <choices>
  293. <item>
  294. <label>검색</label>
  295. <value>0</value>
  296. </item>
  297. <item>
  298. <label>전송</label>
  299. <value>1</value>
  300. </item>
  301. </choices>
  302. </select1>
  303. </group>
  304. <button id="button2" class="btn4_letter2" style="left:445px; top:70px; width:56px; height:22px; ">
  305. <caption>취소</caption>
  306. <script type="javascript" ev:event="DOMActivate">
  307. <![CDATA[
  308. window.close();
  309. ]]>
  310. </script>
  311. </button>
  312. <button id="button3" class="btn4_letter2" style="left:445px; top:47px; width:56px; height:22px; ">
  313. <caption>저장</caption>
  314. <script type="javascript" ev:event="DOMActivate">
  315. <![CDATA[
  316. if(model.getValue("/root/send/stemi/stemi1")!=""){
  317. fSaveStemi();
  318. alert("저장되었습니다!");
  319. model.makeValue("/root/init/savechk", "Y");
  320. }else if(model.getValue("/root/send/stemi/stemi1")==""){
  321. alert("환자가 선택되지 않았습니다!");
  322. return;
  323. }
  324. ]]>
  325. </script>
  326. </button>
  327. <input id="ipt_7" ref="/root/main/cond/stemifromdd" class="input" autonext="false" inputtype="date" style="left:625px; top:70px; width:87px; height:19px; "/>
  328. <input id="input1" ref="/root/main/cond/stemitodd" class="input" autonext="false" inputtype="date" style="left:735px; top:70px; width:87px; height:19px; "/>
  329. <button id="button5" class="btn4_letter2" style="left:825px; top:70px; width:56px; height:22px; ">
  330. <caption>검색</caption>
  331. <script type="javascript" ev:event="DOMActivate">
  332. <![CDATA[
  333. if(model.getValue("/root/main/cond/radio_select")=="" ){
  334. alert("검색 또는 전송을 선택해주세요!");
  335. }else{
  336. fStemiPatList();
  337. }
  338. ]]>
  339. </script>
  340. </button>
  341. </xhtml:body>
  342. </xhtml:html>