SPPMC07300_동명이인환자관리.xrw 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186
  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>동명이인환자관리</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <patlist/>
  11. <patinfo>
  12. <hngnm/>
  13. <hngnm2/>
  14. <newhngnm2/>
  15. </patinfo>
  16. </main>
  17. <send>
  18. <pid/>
  19. <hngnm2/>
  20. <autoyn/>
  21. <hngnm/>
  22. </send>
  23. <init/>
  24. <hidden>
  25. <patinfo>
  26. <hngnm2/>
  27. </patinfo>
  28. </hidden>
  29. </root>
  30. </instance>
  31. <submission id="TRPMC07300" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/patlist"/>
  32. <submission id="TXPMC07301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/hidden/patinfo"/>
  33. <submission id="TRPMC07302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/patinfo"/>
  34. <submission id="TRPMC07303" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/patinfo"/>
  35. </model>
  36. <script type="javascript">
  37. <![CDATA[
  38. // 수동저장
  39. function fSave(pid, hngnm2) {
  40. model.setValue("/root/send/autoyn", "N");
  41. if (submit("TXPMC07301")) {
  42. messageBox("저장되었습니다.", "I000");
  43. }
  44. return hngnm2;
  45. }
  46. // 화면호출없이 자동으로 중복제거 후 등록
  47. function fAutoSave(pid, hngnm) {
  48. model.setValue("/root/send/pid", pid);
  49. model.setValue("/root/send/hngnm", hngnm);
  50. model.setValue("/root/send/autoyn", "Y");
  51. submit("TXPMC07301");
  52. var hngnm2 = model.getValue("/root/hidden/patinfo/hngnm2");
  53. return hngnm2;
  54. }
  55. // 동명이인 대상 리스트 취득
  56. function fSearch(pid) {
  57. model.setValue("/root/send/pid", pid);
  58. model.setValue("/root/main/patinfo/hngnm", "");
  59. model.setValue("/root/main/patinfo/hngnm2", "");
  60. submit("TRPMC07302");
  61. submit("TRPMC07300");
  62. if (datagrid1.rows <= 1) {
  63. messageBox("동명이인 환자가 존재하지 않습니다.", "I000")
  64. }
  65. }
  66. // 중복되지 않는 표시명 취득
  67. function fGetNewHngnm2(pid, hngnm) {
  68. model.setValue("/root/send/pid", pid);
  69. model.setValue("/root/send/hngnm", hngnm);
  70. submit("TRPMC07303");
  71. return model.getValue("/root/main/patinfo/newhngnm2");
  72. }
  73. ]]>
  74. </script>
  75. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  76. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  77. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  78. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  79. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  80. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  81. </xhtml:head>
  82. <xhtml:body pagewidth="580" pageheight="370" style="margin-left:8; margin-top:0; margin-right:0; margin-bottom:0; ">
  83. <datagrid id="datagrid1" nodeset="/root/main/patlist" caption="환자번호^성명^표시명^입원일자^상태^병동^병실" colsep="^" colwidth="80, 80, 80, 80, 40, 120, 52" mergecellsfixedrows="bycolrec" rowsep="|" style="left:5px; top:110px; width:550px; height:249px; ">
  84. <col ref="pid"/>
  85. <col ref="hngnm"/>
  86. <col ref="hngnm2"/>
  87. <col ref="indd"/>
  88. <col ref="indschacptstat"/>
  89. <col ref="wardnm"/>
  90. <col ref="roomcd"/>
  91. </datagrid>
  92. <input id="input1" ref="/root/send/pid" navindex="1" style="left:109px; top:32px; width:93px; height:19px; ">
  93. <script type="javascript" ev:event="onkeypress">
  94. <![CDATA[
  95. if (event.keyCode == "13") {
  96. setInputNodeCurText();
  97. button1.dispatch("DOMActivate");
  98. }
  99. ]]>
  100. </script>
  101. </input>
  102. <button id="button1" class="icon_search" navindex="2" style="left:209px; top:33px; width:16px; height:16px; ">
  103. <caption/>
  104. <script type="javascript" ev:event="DOMActivate">
  105. <![CDATA[
  106. var pid = model.getValue("/root/send/pid");
  107. if (isNull(pid)) {
  108. messageBox("환자번호는 필수입니다.", "C000");
  109. return;
  110. }
  111. fSearch(pid);
  112. ]]>
  113. </script>
  114. </button>
  115. <caption id="caption2" class="cell_1" style="left:308px; top:54px; width:82px; height:20px; ">수정표시명</caption>
  116. <input id="input2" ref="/root/send/hngnm2" navindex="3" style="left:392px; top:54px; width:98px; height:19px; "/>
  117. <button id="button2" class="btn4_letter2" navindex="4" style="left:499px; top:53px; width:56px; height:22px; text-align:left; ">
  118. <caption>수정</caption>
  119. <script type="javascript" ev:event="DOMActivate">
  120. <![CDATA[
  121. var pid = model.getValue("/root/send/pid")
  122. var hngnm2 = model.getValue("/root/send/hngnm2");
  123. // 필수값 체크
  124. if (isNull(pid) || isNull(hngnm2)) {
  125. messageBox("환자번호 및 표시명은 필수입니다.", "C000");
  126. return;
  127. }
  128. // 중복체크
  129. for (i = 0; i < datagrid1.rows; i++) {
  130. if (model.getValue("/root/main/patlist[" + i + "]/hngnm2") == hngnm2) {
  131. // 동일한 이름이 존재
  132. messageBox("동일한 표시명이 존재합니다. 표시명을 수정하십시요.", "C000");
  133. return;
  134. }
  135. }
  136. // 저장
  137. fSave(pid, hngnm2);
  138. ]]>
  139. </script>
  140. </button>
  141. <caption id="caption3" style="left:300px; top:35px; width:258px; height:15px; color:#ff0000; text-align:center; ">
  142. <![CDATA[* 동명이인환자 리스트를 참고하여 수정 *]]>
  143. <script type="javascript" ev:event="ondblclick">
  144. <![CDATA[
  145. fAutoSave(model.getValue("/root/send/pid"), model.getValue("/root/send/hngnm2"));
  146. ]]>
  147. </script>
  148. </caption>
  149. <caption id="caption4" class="cell_1" visibility="visible" style="left:6px; top:54px; width:101px; height:20px; ">성명/현표시명</caption>
  150. <input id="input3" ref="/root/main/patinfo/hngnm" disabled="true" style="left:109px; top:54px; width:93px; height:19px; "/>
  151. <input id="input4" ref="/root/main/patinfo/hngnm2" disabled="true" style="left:201px; top:54px; width:98px; height:19px; "/>
  152. <caption id="caption5" class="tit_2" style="left:6px; top:10px; width:100px; height:13px; ">환자정보</caption>
  153. <caption id="caption6" class="tit_2" style="left:5px; top:90px; width:139px; height:13px; ">동명이인환자 리스트</caption>
  154. <line id="line1" class="line_1" style="x1:5px; y1:25px; x2:555px; y2:25px; "/>
  155. <line id="line2" class="line_1" style="x1:5px; y1:105px; x2:555px; y2:105px; "/>
  156. <caption id="caption7" class="cell_1" visibility="visible" style="left:6px; top:32px; width:101px; height:20px; ">환자번호</caption>
  157. </xhtml:body>
  158. </xhtml:html>