SMMNW14100_환자이송정보관리.xrw 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342
  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. <init>
  10. <cmblist>
  11. <trnsmthdlist/>
  12. <callremfactlist/>
  13. <callnomngtlist/>
  14. </cmblist>
  15. </init>
  16. <main>
  17. <cond>
  18. <pid/>
  19. <fromdeptcd/>
  20. <todeptcd/>
  21. <trnsmthd/>
  22. <callremfact/>
  23. <callremfactdesc/>
  24. <hngnm/>
  25. <inoutflag/>
  26. <infcflag/>
  27. <roomcd/>
  28. <acptflag/>
  29. <indd/>
  30. <cretno/>
  31. <calltm/>
  32. <calldd/>
  33. <callno/>
  34. <capinfo/>
  35. <cnclflag/>
  36. </cond>
  37. <paminfo/>
  38. </main>
  39. <send>
  40. <savedata/>
  41. </send>
  42. <temp>
  43. <patinfo/>
  44. </temp>
  45. <temp2>
  46. <patinfo/>
  47. </temp2>
  48. </root>
  49. </instance>
  50. <script type="javascript" ev:event="xforms-ready">
  51. <![CDATA[
  52. //허용병동코드, 이송방법, Remark정보
  53. model.makeValue("/root/send/reqdata/status", "1");
  54. submit("TRMNW14101");
  55. addComboItem("cmb_callremfact", "기타", "99", "after");
  56. var instcd = getUserInfo("dutplceinstcd");
  57. var standard_yn = "orduseyn";
  58. var ord_deptflag = 'W';
  59. var rslt_ref = "/root/init/dept";
  60. var sort_field = "depthngnm";
  61. var sort_method = "asc";
  62. var dt = getCurrentDate();
  63. /////zbcfGetDeptCodeList(instcd, standard_yn, ord_deptflag, rslt_ref, sort_field, sort_method); //부서코드 콤보조회
  64. /////zsdfGetOutOrdDeptList( instcd, rslt_ref, sort_field, sort_method, dt );
  65. // 간호외래진료부서콤보 (특정하위부서를 포함- 분만실, 육아상담실, 인공신장실)
  66. zbcfGetDeptCodeList(instcd, standard_yn, ord_deptflag, rslt_ref , sort_field, sort_method, dt);
  67. var pid="";
  68. var indd="";
  69. var cretno="";
  70. model.makeNode("/root/main/paminfo");
  71. var node = getGlobalVariable("paminfo");
  72. setCSVToNode("/root/main/paminfo", node);
  73. //팝업화면이 아닐경우 상단에 환자 정보가 있는지 여부를 확인하고
  74. if (model.getValue("/root/main/paminfo/list/pid") != "") { //상단정보에 환자가 셋팅되어 있을 경우
  75. pid = model.getValue("/root/main/paminfo/list/pid");
  76. } else {
  77. //팝업으로 뜬화면인가 여부확인.팝업일 경우 팝업화면 파라메터를 가지고온다.
  78. if(checkOpener()) {
  79. pid = opener.javascript.getParameter("SMMNW14100_PID");
  80. }
  81. }
  82. //환자 등록번호가 존재할 경우에는
  83. if(pid != "") {
  84. model.setValue(ipt_pid.attribute("ref"), pid);
  85. ipt_pid.refresh();
  86. fSearchPatInfo();
  87. }
  88. ]]>
  89. </script>
  90. <submission id="TRMNW14101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/cmblist"/>
  91. <submission id="TRMNW14102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/temp/patinfo"/>
  92. <submission id="TXMNW14101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/temp/patinfo"/>
  93. <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="urlencoded-post" replace="instance"/>
  94. </model>
  95. <script type="javascript">
  96. <![CDATA[
  97. function fSearchPatInfo() {
  98. model.makeValue("/root/send/reqdata/pid", model.getValue(ipt_pid.attribute("ref")));
  99. submit("TRMNW14102");
  100. model.copyNode("/root/main/cond", "/root/temp/patinfo/patlist");
  101. if(model.getValue("/root/temp/patinfo/patlist/acptflag") == "0") {
  102. model.setValue("/root/main/cond/capinfo", "이송요청 하지 않은 환자입니다.");
  103. btn_save.disabled = false;
  104. btn_cancel.disabled = true;
  105. } else if(model.getValue("/root/temp/patinfo/patlist/acptflag") == "1") {
  106. model.setValue("/root/main/cond/capinfo", "이송요청 상태이므로 수정은 가능하십니다.");
  107. btn_save.disabled = false;
  108. btn_cancel.disabled = false;
  109. } else {
  110. model.setValue("/root/main/cond/capinfo", "접수이후에는 이송정보를 수정할 수 없습니다.");
  111. btn_save.disabled = true;
  112. btn_cancel.disabled = true;
  113. }
  114. model.refresh();
  115. }
  116. ]]>
  117. </script>
  118. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  119. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  120. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  121. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  122. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  123. </xhtml:head>
  124. <xhtml:body pagewidth="385" pageheight="335" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  125. <group id="grp_biz" scroll="auto" style="left:0px; top:0px; width:365px; height:305px; ">
  126. <caption id="caption6" class="tit_2" style="left:0px; top:5px; width:178px; height:13px; ">환지이송정보관리</caption>
  127. <line id="line1" class="line_1" style="x1:0px; y1:20px; x2:360px; y2:20px; "/>
  128. <select1 id="cmb_trnsmthd" ref="/root/main/cond/trnsmthd" appearance="minimal" style="left:77px; top:98px; width:100px; height:19px; ">
  129. <choices>
  130. <itemset nodeset="/root/init/cmblist/trnsmthdlist">
  131. <label ref="cnts"/>
  132. <value ref="movewayno"/>
  133. </itemset>
  134. </choices>
  135. </select1>
  136. <select1 id="cmb_callremfact" ref="/root/main/cond/callremfact" appearance="minimal" style="left:77px; top:122px; width:100px; height:19px; ">
  137. <choices>
  138. <itemset nodeset="/root/init/cmblist/callremfactlist">
  139. <label ref="cnts"/>
  140. <value ref="remarkno"/>
  141. </itemset>
  142. </choices>
  143. <script type="javascript" ev:event="xforms-value-changed">
  144. <![CDATA[
  145. ]]>
  146. </script>
  147. </select1>
  148. <input id="ipt_pid" ref="/root/main/cond/pid" style="left:77px; top:26px; width:100px; height:19px; ">
  149. <script type="javascript" ev:event="onkeypress">
  150. <![CDATA[
  151. if(event.keyCode == 13) {
  152. setInputNodeCurText();
  153. fSearchPatInfo();
  154. }
  155. ]]>
  156. </script>
  157. <script type="javascript" ev:event="DOMFocusOut">
  158. <![CDATA[
  159. setInputNodeCurText();
  160. fSearchPatInfo();
  161. ]]>
  162. </script>
  163. </input>
  164. <input id="ipt_hngnm" ref="/root/main/cond/hngnm" disabled="true" style="left:257px; top:26px; width:100px; height:19px; "/>
  165. <line id="line2" class="line_2" style="x1:0px; y1:47px; x2:360px; y2:47px; "/>
  166. <caption id="caption2" class="cell_1" style="left:0px; top:25px; width:75px; height:23px; text-align:center; ">등록번호</caption>
  167. <caption id="caption3" class="cell_1" style="left:180px; top:25px; width:75px; height:23px; text-align:center; ">환자명</caption>
  168. <select1 id="cmb_fromdeptcd" ref="/root/main/cond/fromdeptcd" disabled="true" appearance="minimal" style="left:77px; top:50px; width:100px; height:19px; ">
  169. <choices>
  170. <itemset nodeset="/root/init/dept/dept">
  171. <label ref="depthngnm"/>
  172. <value ref="deptcd"/>
  173. </itemset>
  174. </choices>
  175. </select1>
  176. <select1 id="cmb_todeptcd" ref="/root/main/cond/todeptcd" appearance="minimal" style="left:77px; top:74px; width:100px; height:19px; ">
  177. <choices>
  178. <itemset nodeset="/root/init/cmblist/callnomngtlist">
  179. <label ref="deptnm"/>
  180. <value ref="deptcd"/>
  181. </itemset>
  182. </choices>
  183. </select1>
  184. <line id="line3" class="line_2" style="x1:0px; y1:71px; x2:360px; y2:71px; "/>
  185. <caption id="caption4" class="cell_1" style="left:0px; top:49px; width:75px; height:23px; text-align:center; ">병동</caption>
  186. <line id="line4" class="line_2" style="x1:0px; y1:95px; x2:360px; y2:95px; "/>
  187. <caption id="caption5" class="cell_1" style="left:0px; top:73px; width:75px; height:23px; text-align:center; ">요청내용</caption>
  188. <select1 id="rdo_inoutflag" ref="/root/main/cond/inoutflag" appearance="full" cols="2" overflow="visible" style="left:180px; top:77px; width:100px; height:13px; border-style:none; ">
  189. <choices>
  190. <item>
  191. <label>IN</label>
  192. <value>I</value>
  193. </item>
  194. <item>
  195. <label>OUT</label>
  196. <value>O</value>
  197. </item>
  198. </choices>
  199. </select1>
  200. <line id="line6" class="line_2" style="x1:0px; y1:119px; x2:360px; y2:119px; "/>
  201. <caption id="cap_job" class="cell_1" style="left:0px; top:97px; width:75px; height:23px; text-align:center; ">이송방법</caption>
  202. <caption id="caption1" class="cell_1" style="left:0px; top:121px; width:75px; height:66px; text-align:center; ">Remark</caption>
  203. <caption id="caption8" class="cell_1" style="left:180px; top:49px; width:75px; height:23px; text-align:center; ">병실</caption>
  204. <input id="ipt_roomcd" ref="/root/main/cond/roomcd" disabled="true" style="left:257px; top:50px; width:100px; height:19px; "/>
  205. <input id="ipt_acptflag" ref="/root/main/cond/acptflag" visibility="hidden" style="left:180px; top:176px; width:100px; height:19px; "/>
  206. <button id="btn_save" class="btn4_letter2" style="left:305px; top:191px; width:56px; height:22px; ">
  207. <caption>요청</caption>
  208. <script type="javascript" ev:event="DOMActivate">
  209. <![CDATA[
  210. var todeptcd = model.getValue(cmb_todeptcd.attribute("ref"));
  211. var inoutflag = model.getValue(rdo_inoutflag.attribute("ref"));
  212. var trnsmthd = model.getValue(cmb_trnsmthd.attribute("ref"));
  213. if(todeptcd == "" || inoutflag == "") {
  214. messageBox("요청내용을 선택하십시오.", "E");
  215. return;
  216. }
  217. if(trnsmthd == "") {
  218. messageBox("이송방법을 선택하십시오.", "E");
  219. return;
  220. }
  221. var rtn = messageBox("이송요청하시겠습니까?", "Q");
  222. if(rtn=="6") {
  223. model.copyNode("/root/temp2/patinfo", "/root/main/cond");
  224. fSearchPatInfo();
  225. if(model.getValue("/root/temp/patinfo/patlist/acptflag") > "1") {
  226. messageBox("이송실에서 확인한 상태라 내용을 수정하실수 없습니다.", "E");
  227. return;
  228. }
  229. model.copyNode("/root/send/savedata", "/root/temp2/patinfo");
  230. if(submit("TXMNW14101")) {
  231. messageBox("저장되었습니다. ", "I");
  232. fSearchPatInfo();
  233. }
  234. }
  235. ]]>
  236. </script>
  237. </button>
  238. <input id="ipt_calldd" ref="/root/main/cond/calldd" visibility="hidden" style="left:180px; top:98px; width:85px; height:19px; "/>
  239. <input id="ipt_calltm" ref="/root/main/cond/calltm" visibility="hidden" style="left:267px; top:98px; width:45px; height:19px; "/>
  240. <input id="ipt_callno" ref="/root/main/cond/callno" visibility="hidden" style="left:315px; top:98px; width:45px; height:19px; "/>
  241. <caption id="caption10" ref="/root/main/cond/capinfo" style="left:5px; top:186px; width:305px; height:20px; font-weight:bold; color:#0000ff; text-align:left; "/>
  242. <caption id="caption11" style="left:5px; top:196px; width:295px; height:108px; font-weight:bold; ">
  243. <![CDATA[접수구분 설명
  244. 요청전 : 아직 병동에서 요청하지 않은 상태
  245. 대기 : 이송실에서 요청승인한 상태
  246. 접수완료 : 이송실에서 이송요원 배정한 상태
  247. 이송완료 : 환자이송을 완료한 상태
  248. 취소는 요청상태일때만 가능]]>
  249. </caption>
  250. <select1 id="cmb_acptflag" ref="/root/main/cond/acptflag" disabled="true" appearance="minimal" style="left:257px; top:98px; width:100px; height:19px; ">
  251. <choices>
  252. <item>
  253. <label>요청전</label>
  254. <value>0</value>
  255. </item>
  256. <item>
  257. <label>요청</label>
  258. <value>1</value>
  259. </item>
  260. <item>
  261. <label>대기</label>
  262. <value>2</value>
  263. </item>
  264. <item>
  265. <label>접수완료</label>
  266. <value>3</value>
  267. </item>
  268. <item>
  269. <label>이송완료</label>
  270. <value>4</value>
  271. </item>
  272. </choices>
  273. </select1>
  274. <caption id="caption9" class="cell_1" style="left:180px; top:97px; width:75px; height:23px; text-align:center; ">접수구분</caption>
  275. <line id="line7" class="line_3" style="x1:0px; y1:186px; x2:360px; y2:186px; "/>
  276. <button id="btn_cancel" class="btn4_letter2" style="left:305px; top:214px; width:56px; height:22px; ">
  277. <caption>취소</caption>
  278. <script type="javascript" ev:event="DOMActivate">
  279. <![CDATA[
  280. var rtn = messageBox("이송요청 취소하시겠습니까?", "Q");
  281. if(rtn=="6") {
  282. var callremfact = model.getValue("/root/main/cond/callremfact");
  283. var callremfactdesc = model.getValue("/root/main/cond/callremfactdesc");
  284. fSearchPatInfo();
  285. if(model.getValue("/root/temp/patinfo/patlist/acptflag") > 1) {
  286. messageBox("이송실에서 확인한 상태라 취소하실수 없습니다.", "E");
  287. return;
  288. }
  289. model.setValue("/root/main/cond/cnclflag","Y");
  290. model.setValue("/root/main/cond/callremfact", callremfact);
  291. model.setValue("/root/main/cond/callremfactdesc", callremfactdesc);
  292. model.copyNode("/root/send/savedata", "/root/main/cond");
  293. if(submit("TXMNW14101")) {
  294. messageBox("저장되었습니다. ", "I");
  295. fSearchPatInfo();
  296. }
  297. }
  298. ]]>
  299. </script>
  300. </button>
  301. <input id="ipt_cnclflag" ref="/root/main/cond/cnclflag" visibility="hidden" style="left:280px; top:230px; width:70px; height:19px; "/>
  302. <textarea id="tar_callremfactdesc" ref="/root/main/cond/callremfactdesc" style="left:77px; top:143px; width:285px; height:41px; "/>
  303. <caption id="caption7" style="left:335px; top:287px; width:27px; height:14px; ">[표]</caption>
  304. </group>
  305. </xhtml:body>
  306. </xhtml:html>