SPPMI02400_환자상세전화번호.xrw 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209
  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>Untitle</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <send>
  10. <data1>
  11. <pid/>
  12. </data1>
  13. <data2>
  14. <grd_pdtt/>
  15. <s_pdtt>
  16. <pid/>
  17. </s_pdtt>
  18. </data2>
  19. </send>
  20. <main>
  21. <ptbs>
  22. <ptbs_pid/>
  23. <ptbs_hngnm/>
  24. <ptbs_sex/>
  25. <ptbs_age/>
  26. </ptbs>
  27. <pdttlist>
  28. <grdpatdetlinfo/>
  29. </pdttlist>
  30. </main>
  31. <hidden>
  32. <temp/>
  33. </hidden>
  34. <init>
  35. <P0016list>
  36. <P0016>
  37. <cdnm/>
  38. <cdid/>
  39. </P0016>
  40. </P0016list>
  41. </init>
  42. </root>
  43. </instance>
  44. <submission id="TRPMI02401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data1" resultref="/root/main"/>
  45. <script ev:event="xforms-ready" type="javascript">
  46. <![CDATA[
  47. zbcfGetCodeList(new Array("P0016"),new Array("/root/init/P0016list"));
  48. fPatTelInfoRef();
  49. model.refresh();
  50. ]]>
  51. </script>
  52. <submission id="TXPMI02401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data2"/>
  53. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  54. </model>
  55. <script src="../../../com/commonweb/js/common.js" type="javascript"/>
  56. <script src="../../../com/commonweb/js/utilHelper.js" type="javascript"/>
  57. <script src="../../../com/commonweb/js/tfHelper.js" type="javascript"/>
  58. <script src="../../../com/commonweb/js/dateHelper.js" type="javascript"/>
  59. <script src="../../../com/commonweb/js/stringHelper.js" type="javascript"/>
  60. <script src="../../../com/basiccodeweb/js/ZBC001.js" type="javascript"/>
  61. <script src="../../../com/zipcodeweb/js/ZBP001.js" type="javascript"/>
  62. <script type="javascript">
  63. <![CDATA[
  64. function fPatTelInfoRef()
  65. {
  66. model.setValue("/root/main/ptbs/ptbs_pid",model.getValue("/root/send/data1/pid"));
  67. var ptbs_pid = model.getValue("/root/main/ptbs/ptbs_pid");
  68. if (ptbs_pid == null || ptbs_pid == "" || ptbs_pid == " ") {
  69. messageBox("환자번호가","I004");
  70. return false;
  71. } else {
  72. if (submit("TRPMI02401")) {
  73. }
  74. }
  75. }
  76. function fSetGridNextCell(keyCode)
  77. {
  78. // 현재 event Target이 combo일 경우 처리
  79. model.setFocus("body");
  80. model.setFocus("grd_list");
  81. if( keyCode == null) {
  82. var grdCol = grd_patinfolist.col +1;
  83. grd_patinfolist.col = grdCol;
  84. grd_patinfolist.dispatch("onentercell");
  85. grd_patinfolist.editCell();
  86. }
  87. if( event.keyCode == keyCode ) {
  88. var grdCol = grd_patinfolist.col +1;
  89. grd_patinfolist.col = grdCol;
  90. grd_patinfolist.dispatch("onentercell");
  91. grd_patinfolist.editCell();
  92. }
  93. }
  94. ]]>
  95. </script>
  96. </xhtml:head>
  97. <xhtml:body pagewidth="597" pageheight="290" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  98. <group id="group3" scroll="auto" style="left:0px; top:0px; width:581px; height:290px; ">
  99. <caption id="caption1" class="tit_2" style="left:5px; top:10px; width:161px; height:14px; ">환자상세정보</caption>
  100. <line id="line1" class="line_1" style="x1:0px; y1:25px; x2:581px; y2:25px; "/>
  101. <line id="line2" class="line_2" style="x1:0px; y1:52px; x2:581px; y2:52px; "/>
  102. <group id="group1" style="left:0px; top:263px; width:581px; height:27px; ">
  103. <button id="button1" class="btn4_letter2" style="left:466px; top:5px; width:56px; height:22px; ">
  104. <caption>저장</caption>
  105. <script ev:event="DOMActivate" type="javascript">
  106. <![CDATA[
  107. var cur_row = grd_patinfolist.row;
  108. if (cur_row > 0) {
  109. // (tfHelper.js) 그리드 업데이트 데이터 반환, 업데이트 정보가 없을경우 "" 반환
  110. var updtdata = getGridUpdateData(grd_patinfolist);
  111. model.setValue("/root/send/data2/grd_pdtt",updtdata);
  112. var updchk = model.getValue("/root/send/data2/grd_pdtt");
  113. // alert(updchk);
  114. if (updchk == null || updchk == "" || updchk == " ") {
  115. messageBox("변경사항이","I004");
  116. return false;
  117. } else {
  118. model.setValue("/root/send/data2/s_pdtt/pid",model.getValue("/root/main/ptbs/ptbs_pid"));
  119. model.setValue("/root/send/data2/grd_pdtt",grd_patinfolist.getUpdateData());
  120. submit("TXPMI02401");
  121. fPatTelInfoRef();
  122. model.refresh();
  123. }
  124. }
  125. ]]>
  126. </script>
  127. </button>
  128. <button id="button2" class="btn4_letter2" style="left:525px; top:5px; width:56px; height:22px; ">
  129. <caption>닫기</caption>
  130. <script ev:event="DOMActivate" type="javascript">
  131. <![CDATA[
  132. window.close();
  133. ]]>
  134. </script>
  135. </button>
  136. <line id="line5" class="line_6" style="x1:0px; y1:0px; x2:581px; y2:0px; "/>
  137. </group>
  138. <caption id="caption4" class="cell_1" style="left:0px; top:30px; width:85px; height:23px; vertical-align:middle; ">등록번호</caption>
  139. <caption id="caption2" class="cell_1" style="left:203px; top:30px; width:94px; height:23px; vertical-align:middle; ">환자성명</caption>
  140. <caption id="caption3" class="cell_1" style="left:415px; top:30px; width:74px; height:23px; vertical-align:middle; ">성별/나이</caption>
  141. <button id="button3" class="btn2_letter3" style="left:416px; top:5px; width:53px; height:19px; ">
  142. <caption>행추가</caption>
  143. <script ev:event="DOMActivate" type="javascript">
  144. <![CDATA[
  145. grd_patinfolist.addItem();
  146. //행추가, 행삽입 버튼 클릭시 셀 단위로 선택할 수 있도록 변경. 입력시 방향키로 이동 함.
  147. grd_patinfolist.selectionMode = "free";
  148. ]]>
  149. </script>
  150. </button>
  151. <button id="button5" class="btn2_letter3" style="left:472px; top:5px; width:53px; height:19px; ">
  152. <caption>행삽입</caption>
  153. <script ev:event="DOMActivate" type="javascript">
  154. <![CDATA[
  155. var cur_row = grd_patinfolist.row;
  156. grd_patinfolist.insertItem(cur_row,"after");
  157. grd_patinfolist.selectionMode = "free";
  158. ]]>
  159. </script>
  160. </button>
  161. <datagrid id="grd_patinfolist" nodeset="/root/main/pdttlist/grdpatdetlinfo" caption="관계^전화번호^특기사항^순서" colsep="^" colwidth="78, 104, 375, 100" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:57px; width:581px; height:206px; ">
  162. <col ref="patrela" type="combo">
  163. <choices>
  164. <itemset nodeset="/root/init/P0016list/P0016">
  165. <label ref="cdnm"/>
  166. <value ref="cdid"/>
  167. </itemset>
  168. </choices>
  169. </col>
  170. <col ref="tel" type="input"/>
  171. <col ref="etcremfact" type="input"/>
  172. <col ref="seqno" visibility="hidden"/>
  173. <script ev:event="xforms-select" type="javascript">
  174. <![CDATA[
  175. fSetGridNextCell();
  176. ]]>
  177. </script>
  178. <script ev:event="onendedit" type="javascript">
  179. <![CDATA[
  180. fSetGridNextCell(13);
  181. ]]>
  182. </script>
  183. </datagrid>
  184. <output id="output1" ref="/root/main/ptbs/ptbs_hngnm" class="output_fix" style="left:300px; top:31px; width:112px; height:19px; "/>
  185. <output id="output2" ref="/root/main/ptbs/ptbs_sex" class="output_fix" style="left:492px; top:31px; width:43px; height:19px; "/>
  186. <output id="output3" ref="/root/main/ptbs/ptbs_age" class="output_fix" style="left:538px; top:31px; width:43px; height:19px; "/>
  187. <output id="output4" ref="/root/main/ptbs/ptbs_pid" class="output_fix" style="left:88px; top:31px; width:112px; height:19px; "/>
  188. </group>
  189. <button id="button4" class="btn2_letter3" style="left:528px; top:5px; width:53px; height:19px; ">
  190. <caption>행삭제</caption>
  191. <script ev:event="DOMActivate" type="javascript">
  192. <![CDATA[
  193. var cur_row = grd_patinfolist.row;
  194. grd_patinfolist.deleteItem(cur_row);
  195. ]]>
  196. </script>
  197. </button>
  198. </xhtml:body>
  199. </xhtml:html>