SPPIJ00800_퇴원확정변경.xrw 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * @(#)SPPIJ00800_퇴원확정변경.xrw
  4. * 수정이력
  5. * - 2012.03.27 / 최초작성 / 이은정
  6. *
  7. -->
  8. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  9. <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">
  10. <xhtml:head>
  11. <xhtml:title>퇴원확정 변경 관리</xhtml:title>
  12. <model id="model1">
  13. <instance id="instance1">
  14. <root xmlns="">
  15. <send>
  16. <send_pid>
  17. <pid/>
  18. </send_pid>
  19. <send_upt>
  20. <pid/>
  21. <indd/>
  22. <cretno/>
  23. <seqno/>
  24. <gbn/>
  25. </send_upt>
  26. </send>
  27. <main>
  28. <list1>
  29. <gridinpt>
  30. <hngnm/>
  31. <indd/>
  32. <dschdclrtyn/>
  33. <dschnotiyn/>
  34. <dschnotidt/>
  35. <dschnotirgstnm/>
  36. <dschnotirgstdt/>
  37. <indschstat/>
  38. <iprcaddyn/>
  39. <pid/>
  40. <cretno/>
  41. <seqno/>
  42. </gridinpt>
  43. </list1>
  44. </main>
  45. </root>
  46. </instance>
  47. <submission id="TRPIJ00801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list1"/>
  48. <submission id="TXPIJ00801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/send_upt" resultref="/root/result"/>
  49. </model>
  50. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  51. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  52. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  53. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  54. <script type="javascript" src="../../../pam/insucomweb/js/PAM.js"/>
  55. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  56. <script type="javascript">
  57. <![CDATA[
  58. function fDschNotiChange(gubun) {
  59. var pid = model.getValue("/root/main/list1/gridinpt/pid");
  60. var row = datagrid1.row;
  61. if (pid == '') {
  62. messageBox("변경할 대상이 ","I004");
  63. return;
  64. }
  65. var indd = model.getValue("/root/main/list1/gridinpt["+row+"]/indd");
  66. var cretno = model.getValue("/root/main/list1/gridinpt["+row+"]/cretno");
  67. var seqno = model.getValue("/root/main/list1/gridinpt["+row+"]/seqno");
  68. var dschnotiyn = model.getValue("/root/main/list1/gridinpt["+row+"]/dschnotiyn");
  69. var indschstat = model.getValue("/root/main/list1/gridinpt["+row+"]/indschstat");
  70. model.setValue("/root/send/send_upt/pid",pid);
  71. model.setValue("/root/send/send_upt/indd",indd);
  72. model.setValue("/root/send/send_upt/cretno",cretno);
  73. model.setValue("/root/send/send_upt/seqno",seqno);
  74. model.setValue("/root/send/send_upt/gbn",gubun);
  75. if (gubun == 'Y') {
  76. if (dschnotiyn == "Y") {
  77. messageBox("이미 퇴원확정 상태이므로 실행할 수","I004"); // 퇴원확정 클릭 시 기존 확정 상태 체크함
  78. return;
  79. }
  80. }
  81. if (gubun == 'N') {
  82. if (indschstat != "재") {
  83. messageBox("상태가 가퇴원 혹은 퇴원인 경우 퇴원확정 취소할 수","I004"); // 퇴원확정 취소 클릭 시 수납 상태 체크함
  84. return;
  85. }
  86. if (dschnotiyn == "N") {
  87. messageBox("퇴원확정 상태가 아니므로 취소할 수","I004"); // 퇴원확정 취소 클릭 시 기존 확정 상태 체크함
  88. return;
  89. }
  90. }
  91. if (submit("TXPIJ00801")) {
  92. submit("TRPIJ00801");
  93. model.refresh();
  94. }
  95. }
  96. ]]>
  97. </script>
  98. </xhtml:head>
  99. <xhtml:body pagewidth="680" pageheight="290" style="margin-left:8; margin-top:0; margin-right:0; margin-bottom:0; ">
  100. <caption id="caption1" class="tit_2" style="left:15px; top:10px; width:100px; height:13px; ">퇴원확정 변경</caption>
  101. <line id="line1" class="line_1" style="x1:5px; y1:25px; x2:650px; y2:25px; "/>
  102. <caption id="caption3" class="cell_1" style="left:6px; top:30px; width:65px; height:19px; ">환자번호</caption>
  103. <input id="ipt_pid" ref="/root/send/send_pid/pid" class="input_default" style="left:70px; top:30px; width:100px; height:19px; ">
  104. <script type="javascript" ev:event="onkeypress">
  105. <![CDATA[
  106. if (event.keyCode == "13") { // Enter 입력 시에
  107. model.refresh();
  108. submit("TRPIJ00801");
  109. }
  110. ]]>
  111. </script>
  112. </input>
  113. <datagrid id="datagrid1" nodeset="/root/main/list1/gridinpt" caption="환자명^최초입원일^예고^확정^확정일자^확정자^수정일자^상태^추가처방" colsep="^" colwidth="70, 85, 33, 33, 110, 80, 110, 33, 62" mergecellsfixedrows="bycolrec" rowsep="|" style="left:5px; top:55px; width:645px; height:80px; ">
  114. <col ref="hngnm" style="text-align:center; "/>
  115. <col ref="indd" format="yyyy-mm-dd" style="text-align:center; "/>
  116. <col ref="dschdclrtyn" style="text-align:center; "/>
  117. <col ref="dschnotiyn" style="text-align:center; "/>
  118. <col ref="dschnotidt" style="text-align:center; "/>
  119. <col ref="dschnotirgstnm" style="text-align:center; "/>
  120. <col ref="dschnotirgstdt" style="text-align:center; "/>
  121. <col ref="indschstat" style="text-align:center; "/>
  122. <col ref="iprcaddyn" style="text-align:center; "/>
  123. </datagrid>
  124. <caption id="caption2" style="left:15px; top:185px; width:288px; height:20px; color:#ff0000; ">* 퇴원 확정 당일인 경우 진행 되지 않습니다.</caption>
  125. <caption id="caption4" style="left:15px; top:165px; width:316px; height:20px; color:#ff0000; ">* 상태가 "가퇴원" 혹은 "퇴원"인 경우 진행되지 않습니다.</caption>
  126. <caption id="caption5" style="left:15px; top:205px; width:316px; height:20px; color:#ff0000; ">* 청구 생성된 환자인 경우 진행되지 않습니다.</caption>
  127. <caption id="caption6" style="left:15px; top:225px; width:566px; height:20px; color:#ff0000; ">* 응급실/화학요법실/일일수술실 환자는 진행되지 않습니다. </caption>
  128. <caption id="caption7" style="left:15px; top:145px; width:565px; height:20px; color:#0000ff; ">* 퇴원확정 취소 : 처방 DC 및 추가처방 가능 (확정='N', 확정자='심사자명', 추가처방='Y')</caption>
  129. <shape id="rectangle1" appearance="rectangle" style="left:5px; top:139px; width:645px; height:131px; border-color:#0000ff; "/>
  130. <button id="btn_noti" class="btn2_letter7" style="left:280px; top:30px; width:97px; height:19px; ">
  131. <caption>퇴원확정</caption>
  132. <script type="javascript" ev:event="onclick">
  133. <![CDATA[
  134. fDschNotiChange('Y');
  135. ]]>
  136. </script>
  137. </button>
  138. <button id="btn_noticncl" class="btn2_letter7" style="left:180px; top:30px; width:97px; height:19px; ">
  139. <caption>퇴원확정 취소</caption>
  140. <script type="javascript" ev:event="onclick">
  141. <![CDATA[
  142. fDschNotiChange('N');
  143. ]]>
  144. </script>
  145. </button>
  146. <button id="btn_close" class="btn2_letter3" style="left:595px; top:30px; width:53px; height:19px; ">
  147. <caption>닫 기</caption>
  148. <script type="javascript" ev:event="onclick">
  149. <![CDATA[
  150. window.close();
  151. ]]>
  152. </script>
  153. </button>
  154. <caption id="caption8" style="left:15px; top:245px; width:566px; height:20px; color:#ff0000; "> → 2015년 3월 20일자로 모든 환자에 대해 변경 가능하도록 수정하였습니다. </caption>
  155. </xhtml:body>
  156. </xhtml:html>