SMMNO01000_도착확인$.xrw 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345
  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. <main>
  10. <dethinfo>
  11. <dethinfo>
  12. <pid/>
  13. <indd/>
  14. <hngnm/>
  15. <dethdd/>
  16. <dethtm/>
  17. <dethdt/>
  18. <dethspec/>
  19. <dethyn/>
  20. <ioflag/>
  21. <ordrslt/>
  22. <rgstflag/>
  23. <cnclid/>
  24. <cncldt/>
  25. <dethdeptcd/>
  26. <inerflag/>
  27. </dethinfo>
  28. </dethinfo>
  29. <cond>
  30. <pid/>
  31. <hngnm/>
  32. <indd/>
  33. <dethdd/>
  34. <dethtm/>
  35. <dethyn/>
  36. <infyn/>
  37. <infetc/>
  38. <infetc1/>
  39. </cond>
  40. <paminfo/>
  41. <retinfo>
  42. <retinfo>
  43. <retmsg/>
  44. <dethdd/>
  45. <dethtm/>
  46. <dethdt/>
  47. <dethspec/>
  48. <dethyn/>
  49. </retinfo>
  50. </retinfo>
  51. </main>
  52. <send>
  53. <req/>
  54. </send>
  55. <init/>
  56. <hidden>
  57. <zsd>
  58. <resultref/>
  59. </zsd>
  60. </hidden>
  61. <temp>
  62. <pat_info/>
  63. <pid/>
  64. <orddd/>
  65. <ordtm/>
  66. <cretno/>
  67. <orddeptcd/>
  68. <orddrid/>
  69. <hngnm/>
  70. <mpphontel/>
  71. </temp>
  72. <tmp>
  73. <dethprtlist/>
  74. </tmp>
  75. </root>
  76. </instance>
  77. <script type="javascript">
  78. <![CDATA[
  79. function fInitialize()
  80. {
  81. // 환자정보 조회
  82. var sPamInfo = getGlobalVariable("paminfo");
  83. setCSVToNode("/root/main/paminfo",sPamInfo,"pamlist");
  84. if(sPamInfo != ""){
  85. ipt_pid.value = model.getValue("/root/main/paminfo/pamlist/pid");
  86. //ipt_rsvdd.value = model.getValue("/root/main/paminfo/pamlist/indd");
  87. var sPatname = model.getValue("/root/main/paminfo/pamlist/hngnm");
  88. sPatname = sPatname + " (" + model.getValue("/root/main/paminfo/pamlist/sex");
  89. sPatname = sPatname + "/" + model.getValue("/root/main/paminfo/pamlist/age") + ")";
  90. opt_hngnm.value = sPatname;
  91. fDethSearch(); //환자및 사망정보 조회
  92. } else {
  93. btn_dethcnfm.disabled = true ;// 사망확인 비활성화 시킨다.
  94. btn_dethcncl.disabled = true ;// 사망취소 비활성화 시킨다.
  95. model.setfocus("ipt_pid");
  96. }
  97. }
  98. function fDethSearch()
  99. {
  100. model.copynode("/root/send/req", "/root/main/cond");
  101. if (submit("TRMNW01401")) {
  102. //model.setValue("/root/main/dethinfo/dethinfo/pid", model.getValue("/root/main/cond/pid"));
  103. model.setValue("/root/main/cond/indd", model.getValue("/root/main/dethinfo/dethinfo/indd"));
  104. model.setValue("/root/main/cond/hngnm", model.getValue("/root/main/dethinfo/dethinfo/hngnm"));
  105. model.setValue(rdo_infyn.attribute("ref"), model.getValue("/root/main/dethinfo/dethinfo/infyn"));
  106. model.setValue(tar_infetc.attribute("ref"), model.getValue("/root/main/dethinfo/dethinfo/infetc"));
  107. model.setValue(opt_infetc1.attribute("ref"), model.getValue("/root/main/dethinfo/dethinfo/infetc1"));
  108. if (model.getValue("/root/main/dethinfo/dethinfo/dethyn") == "Y") {
  109. if(model.getValue("/root/main/dethinfo/dethinfo/rgstflag") == "doct") {
  110. model.makeValue("/root/main/dethinfo/dethinfo/dethspec", model.getValue("/root/main/dethinfo/dethinfo/dethspec") + " - 의사등록(수정불가)");
  111. btn_clock.disabled = false ;
  112. ipt_dethdd.disabled = false ;
  113. ipt_dethtm.disabled = false ;
  114. btn_clock.disabled = false;
  115. ipt_pid.disabled = false;
  116. ipt_dethdd.disabled = true;
  117. ipt_dethtm.disabled = true;
  118. btn_clock.disabled = true;
  119. btn_dethcnfm.disabled = true ; // 사망확인 비활성화 시킨다.
  120. btn_dethcncl.disabled = true ; // 사망취소 비활성화 시킨다.
  121. } else {
  122. btn_clock.disabled = true;
  123. ipt_dethdd.disabled = true ;
  124. ipt_dethtm.disabled = true ;
  125. btn_clock.disabled = true;
  126. btn_dethcnfm.disabled = true ;// 사망확인 비활성화 시킨다.
  127. btn_dethcncl.disabled = false ;// 사망취소 활성화 시킨다.
  128. }
  129. } else {
  130. if (model.getValue("/root/main/cond/hngnm") > "") {
  131. btn_clock.disabled = false ;
  132. ipt_dethdd.disabled = false ;
  133. ipt_dethtm.disabled = false ;
  134. btn_clock.disabled = false;
  135. btn_dethcnfm.disabled = false ;// 사망확인 활성화 시킨다.
  136. btn_dethcncl.disabled = true ;// 사망취소 비활성화 시킨다.
  137. } else {
  138. //model.setvalue("/root/main/dethinfo/dethinfo/dethspec", "");
  139. btn_dethcnfm.disabled = true ;// 사망확인 비활성화 시킨다.
  140. btn_dethcncl.disabled = true ;// 사망취소 비활성화 시킨다.
  141. opt_spec.value = "";
  142. messageBox("해당 환자번호가 ","I004");
  143. model.setfocus("ipt_pid");
  144. }
  145. model.makeValue("/root/main/dethinfo/dethinfo/dethdd", getCurrentDate());
  146. model.makeValue("/root/main/dethinfo/dethinfo/dethtm", getCurrentTime().substr(0,4));
  147. ipt_dethdd.refresh();
  148. ipt_dethtm.refresh();
  149. btn_clock.refresh();
  150. }
  151. ipt_pid.disabled = true ;
  152. }
  153. model.refresh();
  154. }
  155. function fDethSave(pDethyn)
  156. {
  157. if (pDethyn == "N") { // 사망취소인 경우
  158. model.makeValue("/root/main/dethinfo/dethinfo/dethdt", "-");
  159. model.makeValue("/root/main/dethinfo/dethinfo/ordrslt", "-");
  160. model.makeValue("/root/main/dethinfo/dethinfo/dethdd", "-");
  161. model.makeValue("/root/main/dethinfo/dethinfo/dethtm", "-");
  162. model.makeValue("/root/main/dethinfo/dethinfo/cnclid", getUserId()); // 사망취소자 ID
  163. model.makeValue("/root/main/dethinfo/dethinfo/cncldt", getCurrentDate() + getCurrentTime()); // 사망취소일시
  164. model.makeValue("/root/main/dethinfo/dethinfo/infyn", "");
  165. model.makeValue("/root/main/dethinfo/dethinfo/infetc", "");
  166. } else {
  167. var sDethdt = model.getValue("/root/main/dethinfo/dethinfo/dethdd") + model.getValue("/root/main/dethinfo/dethinfo/dethtm");
  168. model.makeValue("/root/main/dethinfo/dethinfo/dethdt", sDethdt);
  169. model.makeValue("/root/main/dethinfo/dethinfo/ordrslt", "4"); // 진료결과(4:사망)
  170. model.makeValue("/root/main/dethinfo/dethinfo/cnclid", "");
  171. model.makeValue("/root/main/dethinfo/dethinfo/cncldt", "");
  172. //20110426_KNUH_Start 감염정보, 감염정보기타 값 추가.
  173. model.makeValue("/root/main/dethinfo/dethinfo/infyn", model.getValue("/root/main/cond/infyn"));
  174. model.makeValue("/root/main/dethinfo/dethinfo/infetc", model.getValue("/root/main/cond/infetc"));
  175. //20110426_KNUH_Start
  176. if (model.getValue("/root/main/dethinfo/dethinfo/dethdt") == "") {
  177. messageBox("사망시간을 입력하지 ","E007");
  178. return;
  179. }
  180. var sCurdt = getCurrentDate() + getCurrentTime();
  181. if (sDethdt.substr(0, 12) > sCurdt.substr(0, 12)) {
  182. messageBox("사망시간을 미래일시로 등록할 수 없습니다.", "E999");
  183. return;
  184. }
  185. }
  186. var sRtnMsg = messageBox("","Q003");
  187. if(sRtnMsg != 6) return;
  188. model.makeValue("/root/main/dethinfo/dethinfo/dethyn", pDethyn); // 사망여부
  189. model.makeValue("/root/main/dethinfo/dethinfo/dethdeptcd", getUserInfo("dutplcecd")); // 사망등록부서
  190. // model.copynode("/root/send/req", "/root/main/dethinfo/dethinfo");
  191. model.makeValue("/root/send/req/pid" , model.getValue("/root/main/dethinfo/dethinfo/pid" ));
  192. model.makeValue("/root/send/req/dethdt" , model.getValue("/root/main/dethinfo/dethinfo/dethdt" ));
  193. model.makeValue("/root/send/req/dethyn" , model.getValue("/root/main/dethinfo/dethinfo/dethyn" ));
  194. model.makeValue("/root/send/req/ioflag" , model.getValue("/root/main/dethinfo/dethinfo/ioflag" ));
  195. model.makeValue("/root/send/req/inerflag" , model.getValue("/root/main/dethinfo/dethinfo/inerflag"));
  196. model.makeValue("/root/send/req/indd" , model.getValue("/root/main/dethinfo/dethinfo/indd" ));
  197. model.makeValue("/root/send/req/ordrslt" , model.getValue("/root/main/dethinfo/dethinfo/ordrslt" ));
  198. model.makeValue("/root/send/req/dethdd" , model.getValue("/root/main/dethinfo/dethinfo/dethdd" ));
  199. model.makeValue("/root/send/req/dethtm" , model.getValue("/root/main/dethinfo/dethinfo/dethtm" ));
  200. model.makeValue("/root/send/req/cnclid" , model.getValue("/root/main/dethinfo/dethinfo/cnclid" ));
  201. model.makeValue("/root/send/req/cncldt" , model.getValue("/root/main/dethinfo/dethinfo/cncldt" ));
  202. model.makeValue("/root/send/req/dethdeptcd", model.getValue("/root/main/dethinfo/dethinfo/dethdeptcd"));
  203. model.makeValue("/root/send/req/infyn" , model.getValue("/root/main/dethinfo/dethinfo/infyn"));
  204. model.makeValue("/root/send/req/infetc", model.getValue("/root/main/dethinfo/dethinfo/infetc"));
  205. model.removeNodeset("/root/main/retinfo");
  206. if (submit("TXMNW01402")) {
  207. if(model.getValue("/root/main/retinfo/retinfo/retmsg") != ""){
  208. messageBox(model.getValue("/root/main/retinfo/retinfo/retmsg"), "E");
  209. model.makeValue("/root/main/dethinfo/dethinfo/dethdd", model.getValue("/root/main/retinfo/retinfo/dethdd"));
  210. model.makeValue("/root/main/dethinfo/dethinfo/dethtm", model.getValue("/root/main/retinfo/retinfo/dethtm"));
  211. model.makeValue("/root/main/dethinfo/dethinfo/dethspec", model.getValue("/root/main/retinfo/retinfo/dethspec") + " - 의사등록(수정불가)" );
  212. ipt_dethdd.disabled = true;
  213. ipt_dethtm.disabled = true;
  214. btn_clock.disabled = true;
  215. btn_dethcnfm.disabled = true ;// 사망확인 비활성화 시킨다.
  216. btn_dethcncl.disabled = true ;// 사망취소 비활성화 시킨다.
  217. model.refresh();
  218. }else{
  219. btn_dethcnfm.disabled = true ;// 사망확인 비활성화 시킨다.
  220. btn_dethcncl.disabled = true ;// 사망취소 비활성화 시킨다.
  221. messageBox("", "I002");
  222. fDethSearch(); //환자및 사망정보 조회
  223. // fInit(); // 초기화
  224. // model.close();
  225. }
  226. }
  227. }
  228. //** 초기화 **//
  229. function fInit() {
  230. clearGroup(group3);
  231. //opt_hngnm.value = "";
  232. model.makeValue("/root/main/cond/hngnm", "");
  233. model.makeValue("/root/main/dethinfo/dethinfo/dethspec", "");
  234. ipt_pid.disabled = false ;
  235. btn_clock.disabled = true ;
  236. ipt_dethdd.disabled = true ;
  237. ipt_dethtm.disabled = true ;
  238. btn_clock.disabled = true;
  239. btn_dethcnfm.disabled = true ; // 사망확인 비활성화 시킨다.
  240. btn_dethcnfm.disabled = true ; // 사망확인 비활성화 시킨다.
  241. btn_dethcncl.disabled = true ; // 사망취소 비활성화 시킨다.
  242. model.setfocus("ipt_pid");
  243. model.refresh();
  244. }
  245. ]]>
  246. </script>
  247. <script type="javascript" ev:event="xforms-ready">
  248. <![CDATA[
  249. //fInitialize();
  250. ]]>
  251. </script>
  252. <submission id="TRMNW01401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/main/dethinfo"/>
  253. <submission id="TRMNW01402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/tmp/dethprtlist"/>
  254. <submission id="TXMNW01402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/main/retinfo"/>
  255. </model>
  256. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  257. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  258. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  259. <script type="javascript" src="../../../emr/carecomweb/js/CareCom.js"/>
  260. </xhtml:head>
  261. <xhtml:body pagewidth="800" pageheight="600" guideline="1,0;2,0;1,251;" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
  262. <group id="group3" scroll="auto" style="left:0px; top:0px; width:800px; height:555px; ">
  263. <caption id="caption6" style="left:0px; top:85px; width:800px; height:47px; font-size:30pt; font-weight:bold; text-align:center; ">진료과 도작 확인</caption>
  264. <line id="line5" class="line_1" style="x1:5px; y1:130px; x2:795px; y2:130px; "/>
  265. <datagrid id="grd_ordinfo" nodeset="/root/main/workerinfo3/workerinfolist" disabled="false" caption="진료일^진료과^진료의|진료일^진료과^진료의" colsep="^" colwidth="200, 386, 201" defaultrows="0" focuscolor="#ece1ec" mergecellsfixedrows="bycolrec" rowsep="|" style="left:5px; top:140px; width:790px; height:80px; font-size:14pt; font-weight:bold; border-style:none; ">
  266. <col ref="orddd" format="yyyy-mm-dd" style="font-size:14pt; "/>
  267. <col ref="orddeptcd" style="font-size:14pt; "/>
  268. <col ref="orddrid" style="font-size:14pt; "/>
  269. </datagrid>
  270. <caption id="caption15" class="cell_1" style="left:10px; top:285px; width:241px; height:65px; font-size:20pt; font-weight:bold; text-align:center; vertical-align:middle; ">등록번호</caption>
  271. <textarea id="text_pid" ref="/root/main/cond/pid" style="left:255px; top:285px; width:396px; height:65px; text-align:center; vertical-align:middle; "/>
  272. <input id="ipt_pid" ref="/root/main/cond/pid" navindex="1" maxlength="10" style="left:90px; top:245px; width:386px; height:19px; font-size:18pt; ">
  273. <script type="javascript" ev:event="onkeypress">
  274. <![CDATA[
  275. if(event.keyCode == "13"){
  276. model.setvalue("/root/main/cond/pid", ipt_pid.currentText);
  277. fDethSearch(); //환자및 사망정보 조회
  278. var IOFlag;
  279. // 상단정보존재여부 확인
  280. if(getNodesetCount("/root/main/paminfo/pamlist") > 0) {
  281. IOFlag = model.getValue("/root/main/paminfo/pamlist/ioflag");
  282. } else{
  283. if(model.getValue("/root/main/dethinfo/dethinfo/indd")==""){
  284. IOFlag = "O";
  285. }else{
  286. IOFlag = "I";
  287. }
  288. }
  289. model.makeValue("/root/main/dethinfo/dethinfo/ioflag", IOFlag); // 입원외래구분지정
  290. }
  291. ]]>
  292. </script>
  293. </input>
  294. <caption id="caption4" class="cell_1" style="left:10px; top:365px; width:241px; height:185px; font-size:20pt; font-weight:bold; text-align:center; vertical-align:middle; ">안내</caption>
  295. <textarea id="text_message" ref="/root/main/cond/infetc" style="left:256px; top:365px; width:539px; height:185px; "/>
  296. <button id="button22" class="btn2_letter3" style="left:740px; top:105px; width:53px; height:19px; ">
  297. <caption>초기화</caption>
  298. <script type="javascript" ev:event="DOMActivate">
  299. <![CDATA[
  300. fInit(); // 초기화
  301. ]]>
  302. </script>
  303. </button>
  304. <button id="button1" down.padding-left="8" style="left:675px; top:285px; width:115px; height:65px; font-size:20pt; font-weight:bold; color:#1f1e1e; text-align:center; background-color:#99ccff; ">
  305. <caption>확인</caption>
  306. </button>
  307. </group>
  308. <group id="grp_btn" scroll="auto" style="left:0px; top:560px; width:800px; height:30px; ">
  309. <button id="button9" class="btn4_letter2" navindex="7" style="left:720px; top:5px; width:56px; height:22px; ">
  310. <caption>닫기</caption>
  311. <script type="javascript" ev:event="DOMActivate">
  312. <![CDATA[
  313. window.close();
  314. ]]>
  315. </script>
  316. </button>
  317. <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:300px; y2:0px; "/>
  318. </group>
  319. </xhtml:body>
  320. </xhtml:html>