SMPMI06300_응급실출입증관리.xrw 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SMPMI06100_응급실출입증관리.xrw
  4. * 설 명 : 응급실 출입증 대여현황 관리
  5. * 설 계 자 : 조중래
  6. * 작 성 자 : 조중래
  7. * 작 성 일 : 2007.06.01
  8. * 수정이력 :
  9. * 2010.03.13 최초작성
  10. * 기 타 :
  11. * 구현예정 :
  12. -->
  13. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  14. <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">
  15. <xhtml:head>
  16. <xhtml:title>응급실 출입증관리</xhtml:title>
  17. <model id="model1">
  18. <instance id="instance1">
  19. <root xmlns="">
  20. <main>
  21. <patinfo>
  22. <patinfolist>
  23. </patinfolist>
  24. </patinfo>
  25. <pid/>
  26. <passno/>
  27. <rentstat/>
  28. <erpasslist/>
  29. <hngnm/>
  30. <allflag/>
  31. <result/>
  32. </main>
  33. <send>
  34. <pid/>
  35. <passno/>
  36. <rentstat/>
  37. <allflag/>
  38. </send>
  39. <init>
  40. </init>
  41. <hidden>
  42. </hidden>
  43. <source>
  44. <autoflag/>
  45. <srchcond/>
  46. <pid/>
  47. </source>
  48. </root>
  49. </instance>
  50. <script type="javascript" ev:event="xforms-ready">
  51. <![CDATA[
  52. // 화면초기화
  53. fInitializeSMPMI06100();
  54. ]]>
  55. </script>
  56. <submission id="TRPMI06301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/erpasslist"/>
  57. <submission id="TXPMI06302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/result"/>
  58. </model>
  59. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  60. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  61. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  62. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  63. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  64. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  65. <script type="javascript" src="../../../pam/opatmngtweb/js/PMOCOM.js"/>
  66. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  67. <script type="javascript" src="../../pamcomnweb/js/PAM.js"/>
  68. <script type="javascript" src="../js/SMPMI06300.js"/>
  69. <script type="javascript">
  70. <![CDATA[
  71. function fInitializeSMPMI06100() {
  72. // 각 컨트롤 초기화 실시
  73. model.resetInstanceNode("/root/main");
  74. model.resetInstanceNode("/root/send");
  75. model.resetInstanceNode("/root/source");
  76. input1.disabled = false;
  77. button1.disabled = false;
  78. model.setValue("/root/main/allflag", "");
  79. model.setValue("/root/main/rentstat", "1");
  80. model.refresh();
  81. model.setFocus("input1");
  82. }
  83. ]]>
  84. </script>
  85. </xhtml:head>
  86. <xhtml:body guideline="1,1211;2,789;">
  87. <caption id="caption1" class="tit_1" style="left:0px; top:0px; width:170px; height:13px; vertical-align:middle; ">응급실 출입증 관리</caption>
  88. <line id="line1" class="line_1" style="x1:10px; y1:41px; x2:456px; y2:41px; "/>
  89. <caption id="caption2" class="cell_1" style="left:10px; top:46px; width:80px; height:20px; ">환자번호</caption>
  90. <caption id="caption3" class="cell_1" style="left:274px; top:46px; width:80px; height:20px; ">성명</caption>
  91. <input id="input1" ref="/root/main/pid" class="input_essential" navindex="1" maxlength="10" style="left:92px; top:46px; width:100px; height:19px; ">
  92. <script type="javascript" ev:event="onkeypress">
  93. <![CDATA[
  94. // Enter 입력 시
  95. if (event.keyCode == "13") {
  96. // 현재 입력값 노드 반영
  97. setInputNodeCurText();
  98. var vcheck_pid = model.getvalue("/root/main/pid");
  99. //환자번호 null체크
  100. if (vcheck_pid == null || vcheck_pid == "" || vcheck_pid == " " || vcheck_pid == "-") {
  101. messageBox("환자번호를 입력해주세요", "E008");
  102. model.setFocus("input1");
  103. return;
  104. } else {
  105. //환자번호 조건으로 인적정보 조회
  106. model.setValue("/root/source/srchcond", "1");
  107. model.setValue("/root/source/pid", vcheck_pid);
  108. }
  109. // 환자정보검색
  110. fGetPatInfo();
  111. }
  112. ]]>
  113. </script>
  114. </input>
  115. <input id="input2" ref="/root/main/hngnm" navindex="-1" editable="false" style="left:356px; top:46px; width:100px; height:19px; background-color:#eaeaea; "/>
  116. <select1 id="radio1" ref="/root/main/rentstat" navindex="3" appearance="full" cols="2" overflow="visible" style="left:746px; top:48px; width:95px; height:20px; border-style:none; ">
  117. <choices>
  118. <item>
  119. <label>대여</label>
  120. <value>1</value>
  121. </item>
  122. <item>
  123. <label>반납</label>
  124. <value>2</value>
  125. </item>
  126. </choices>
  127. <script type="javascript" ev:event="xforms-value-changed">
  128. <![CDATA[
  129. model.getValue("/root/main/rentstat");
  130. ]]>
  131. </script>
  132. </select1>
  133. <button id="button1" class="icon_search" navindex="-1" style="left:197px; top:47px; width:16px; height:16px; ">
  134. <caption/>
  135. <script type="javascript" ev:event="DOMActivate">
  136. <![CDATA[
  137. // 환자정보검색
  138. fGetPatInfo();
  139. ]]>
  140. </script>
  141. </button>
  142. <caption id="caption5" class="tit_2" style="left:10px; top:25px; width:90px; height:20px; ">인적사항</caption>
  143. <caption id="caption6" class="tit_2" style="left:476px; top:25px; width:90px; height:13px; ">출입증정보</caption>
  144. <input id="input4" ref="/root/main/passno" navindex="2" maxlength="10" style="left:557px; top:46px; width:100px; height:19px; "/>
  145. <caption id="caption7" class="cell_1" style="left:476px; top:46px; width:80px; height:20px; ">출입증번호</caption>
  146. <caption id="caption8" class="cell_1" style="left:664px; top:46px; width:80px; height:20px; ">구분</caption>
  147. <line id="line2" class="line_1" style="x1:476px; y1:41px; x2:839px; y2:41px; "/>
  148. <button id="button2" class="btn4_letter2" navindex="4" disable.background-image="../../../com/commonweb/images/dis_btn4_letter2.gif" style="left:860px; top:44px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn4_letter2.gif; ">
  149. <caption>저장</caption>
  150. </button>
  151. <button id="button3" class="btn4_letter3" navindex="-1" disable.background-image="../../../com/commonweb/images/dis_btn4_letter3.gif" style="left:920px; top:44px; width:68px; height:22px; background-image:../../../com/commonweb/images/btn4_letter3.gif; ">
  152. <caption>초기화</caption>
  153. <script type="javascript" ev:event="DOMActivate">
  154. <![CDATA[
  155. fInitializeSMPMI06100();
  156. ]]>
  157. </script>
  158. </button>
  159. <datagrid id="datagrid1" nodeset="/root/main/erpasslist" caption="환자번호^성명^연락처^입원일자^입원위치^입퇴구분^출입증번호^대여상태^대여등록자^대여등록일시^반납등록자^반납등록일시" colsep="^" colwidth="100, 110, 100, 84, 75, 80, 179, 80, 81, 100, 80, 100" mergecellsfixedrows="bycolrec" rowsep="|" navindex="-1" style="left:10px; top:105px; width:1190px; height:675px; ">
  160. <col ref="pid"/>
  161. <col ref="hngnm"/>
  162. <col ref="tel"/>
  163. <col ref="indd"/>
  164. <col ref="ward"/>
  165. <col ref="indschacptstat"/>
  166. <col ref="passno"/>
  167. <col ref="rentstat"/>
  168. <col ref="fstrgstrid"/>
  169. <col ref="fstrgstdt"/>
  170. <col ref="returnrgstrid"/>
  171. <col ref="returndt"/>
  172. <script type="javascript" ev:event="ondblclick">
  173. <![CDATA[
  174. // 출입증 대여현황 리스트에서 출입증번호 취득 및 화면설정
  175. model.setValue("/root/main/passno", model.getValue("/root/main/erpasslist[" + datagrid1.row + "]/passno"));
  176. model.refresh();
  177. ]]>
  178. </script>
  179. </datagrid>
  180. <caption id="caption9" class="tit_2" style="left:10px; top:83px; width:157px; height:13px; ">출입증 대여현황 리스트</caption>
  181. <line id="line3" class="line_1" style="x1:10px; y1:100px; x2:1200px; y2:100px; "/>
  182. <caption id="caption10" style="left:580px; top:24px; width:265px; height:20px; font-size:11pxptpt; color:#ff0000; ">*반납의 경우에는 출입증번호만 입력하시면 됩니다.</caption>
  183. <select id="checkbox1" ref="/root/main/allflag" navindex="-1" overflow="visible" appearance="full" style="left:221px; top:48px; width:50px; height:15px; border-style:none; ">
  184. <choices>
  185. <item>
  186. <label>전체</label>
  187. <value>true</value>
  188. </item>
  189. </choices>
  190. <script type="javascript" ev:event="xforms-value-changed">
  191. <![CDATA[
  192. if (model.getValue("/root/main/allflag") == "true") {
  193. input1.disabled = true;
  194. button1.disabled = true;
  195. // 출입증 대여현황 리스트 취득
  196. fGetErPassList();
  197. } else {
  198. input1.disabled = false;
  199. button1.disabled = false;
  200. }
  201. ]]>
  202. </script>
  203. </select>
  204. </xhtml:body>
  205. </xhtml:html>