SPPMO01400_전화번호수정.xrw 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SPPMO01400_전화번호수정.xrw
  4. * 설 명 : 환자전화번호수정
  5. * 설 계 자 : 이형재
  6. * 작 성 자 : 이형재
  7. * 작 성 일 : 2007.11.20
  8. * 수정이력 :
  9. * 기 타 :
  10. -->
  11. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  12. <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">
  13. <xhtml:head>
  14. <xhtml:title>전화번호수정</xhtml:title>
  15. <model id="model1">
  16. <instance id="instance1">
  17. <root xmlns="">
  18. <main>
  19. <patinfo>
  20. <patinfolist>
  21. <pid/>
  22. <hngnm/>
  23. <engnm/>
  24. <chinm/>
  25. <rrgstno1/>
  26. <rrgstno2/>
  27. <brthdd/>
  28. <sex/>
  29. <age/>
  30. <bindpid/>
  31. <hometel/>
  32. <mpphontel/>
  33. <etctel1/>
  34. <etctel2/>
  35. <smsaprvyn/>
  36. <email/>
  37. <zipcd1/>
  38. <zipcd2/>
  39. <zipcdseq/>
  40. <addr/>
  41. <detladdr/>
  42. <btype/>
  43. <rh/>
  44. <forgeryn/>
  45. <nati/>
  46. <psptno/>
  47. <recmyn/>
  48. <recmerid/>
  49. <recmerrela/>
  50. <vipyn/>
  51. <viprem/>
  52. <religncd/>
  53. <baptnm/>
  54. <chchnm/>
  55. <dethyn/>
  56. <dethdt/>
  57. <chosresn/>
  58. <animyn/>
  59. <exptresncd/>
  60. <inhospyn/>
  61. <remfact/>
  62. <outuncoamt/>
  63. <dschuncoamt/>
  64. <fstrgstrid/>
  65. <fstrgstdt/>
  66. <lastupdtrid/>
  67. <lastupdtdt/>
  68. <rrgstno3/>
  69. <builno/>
  70. </patinfolist>
  71. </patinfo>
  72. <popupendflag/>
  73. <result>
  74. <patinfo/>
  75. </result>
  76. <detailaddr/>
  77. </main>
  78. <send/>
  79. <init>
  80. <P0015list>
  81. <P0015>
  82. <cdid/>
  83. <cdnm/>
  84. </P0015>
  85. </P0015list>
  86. <P0157list>
  87. <P0157>
  88. <cdid/>
  89. <cdnm/>
  90. </P0157>
  91. </P0157list>
  92. </init>
  93. <hidden>
  94. <uid>
  95. <childre>
  96. <wid/>
  97. </childre>
  98. </uid>
  99. </hidden>
  100. <source>
  101. <srchcond/>
  102. <pid/>
  103. <hngnm/>
  104. <rrgstno1/>
  105. <rrgstno2/>
  106. <snflag/>
  107. </source>
  108. <result/>
  109. </root>
  110. </instance>
  111. <submission id="TRPMC02500" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/source" resultref="/root/main/result/patinfo"/>
  112. <submission id="TXPMO01401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/patinfo/patinfolist" resultref="/root/result"/>
  113. </model>
  114. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  115. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  116. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  117. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  118. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  119. <script type="javascript" src="../../../com/zipcodeweb/js/ZBP001.js"/>
  120. <script type="javascript" ev:event="xforms-ready">
  121. <![CDATA[
  122. //var pid="";
  123. //model.setValue("/root/source/pid", "15467821");
  124. //pid="15467821";
  125. if (checkOpener()){ //팝업화면으로 사용될 때
  126. pid = model.getValue("/root/source/pid");
  127. }
  128. if(pid != ""){
  129. fSearchPatInfo();
  130. }
  131. ]]>
  132. </script>
  133. <script type="javascript">
  134. <![CDATA[
  135. function fSearchPatInfo(){
  136. model.setValue("/root/source/srchcond", "1");
  137. //환자등록번호 체크
  138. var pid = model.getValue("/root/source/pid");
  139. if(pid.length >= 1 ){
  140. model.resetInstanceNode("/root/main/result");
  141. model.makeNode("/root/main/result/patinfo");
  142. if(submit("TRPMC02500")){
  143. //fSearch는 인적사항 화면을 임포트 해간 화면에서 구현해 주어야 하는 함수이다.
  144. if( getNodesetCount("/root/main/result/patinfo/patinfolist") > 0 ){
  145. model.copyNode("/root/main/patinfo", "/root/main/result/patinfo");
  146. model.refresh();
  147. //fSearch();
  148. }else{
  149. model.resetInstanceNode("/root/main/patinfo/patinfolist");
  150. messageBox("없는 환자 번호 입니다.", "E999", "");
  151. model.refresh();
  152. }
  153. }
  154. }else{
  155. messageBox("환자등록번호를 정확히", "C001");
  156. }
  157. }
  158. ]]>
  159. </script>
  160. </xhtml:head>
  161. <xhtml:body pagewidth="333" pageheight="265" style="font-size:12pt; ">
  162. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:194px; height:110px; ">전화번호 수정</caption>
  163. <output id="output3" ref="/root/main/patinfo/patinfolist/hngnm" class="output_fix" style="left:78px; top:47px; width:100px; height:19px; "/>
  164. <output id="output5" ref="/root/main/patinfo/patinfolist/pid" class="output_fix" style="left:78px; top:23px; width:100px; height:19px; "/>
  165. <input id="input1" ref="/root/main/patinfo/patinfolist/hometel" navindex="1" style="left:78px; top:71px; width:100px; height:19px; "/>
  166. <input id="input2" ref="/root/main/patinfo/patinfolist/mpphontel" navindex="2" style="left:78px; top:95px; width:100px; height:19px; "/>
  167. <button id="button1" class="btn4_letter2" navindex="8" style="left:208px; top:241px; width:56px; height:22px; background-color:#ffff99; ">
  168. <caption>저 장</caption>
  169. <script type="javascript" ev:event="onclick">
  170. <![CDATA[
  171. var vcheck_hometel = model.getValue("/root/main/patinfo/patinfolist/hometel");
  172. var vcheck_mpphontel = model.getValue("/root/main/patinfo/patinfolist/mpphontel");
  173. // 2016/08/29 이정택(휴대폰 번호는 숫자만 입력하도록 수정)
  174. if(!isNull(vcheck_mpphontel)){
  175. for(var i=0; i<vcheck_mpphontel.length; i++){
  176. var str = vcheck_mpphontel.charAt(i).charCodeAt(0);
  177. if(parseInt(str)==45){ // '-' 입력가능하도록 스킵처리
  178. }else if(parseInt(str)<48 || parseInt(str)>57){
  179. messageBox("휴대폰란에는 숫자만 입력가능합니다", "E");
  180. return;
  181. }
  182. }
  183. }
  184. // 2016/08/29 이정택(휴대폰 번호는 숫자만 입력하도록 수정)
  185. if(vcheck_hometel =="" && vcheck_mpphontel ==""){
  186. messageBox("전화번호 정보를 확인하십시오","E999","");
  187. model.setFocus("input1");
  188. // return false;
  189. }else{
  190. // IP주소 저장 추가 by 조중래 20130906
  191. model.makeValue("/root/main/patinfo/patinfolist/ipaddr", getUserInfo("ipaddr"));
  192. submit("TXPMO01401");
  193. if(checkOpener()){
  194. //var openWindow = window.opener;
  195. opener.javascript.setParameter("SMPMO01400_hometel", model.getValue("/root/main/patinfo/patinfolist/hometel") );
  196. opener.javascript.setParameter("SMPMO01400_mpphontel", vcheck_mpphontel);
  197. opener.javascript.setParameter("SMPMO01400_save", "Y"); //20091203 zzui
  198. }
  199. model.close();
  200. }
  201. ]]>
  202. </script>
  203. </button>
  204. <button id="button2" class="btn4_letter2" navindex="9" style="left:269px; top:241px; width:56px; height:22px; background-color:#ffff99; ">
  205. <caption>취 소</caption>
  206. <script type="javascript" ev:event="onclick">
  207. <![CDATA[
  208. if(checkOpener()){
  209. opener.javascript.setParameter("SMPMO01400_save", ""); //20091203 zzui
  210. }
  211. model.close();
  212. ]]>
  213. </script>
  214. </button>
  215. <output id="output1" ref="/root/main/patinfo/patinfolist/zipcd1" class="output_fix" style="left:78px; top:167px; width:50px; height:19px; "/>
  216. <caption id="caption7" style="left:129px; top:168px; width:10px; height:20px; ">-</caption>
  217. <output id="output2" ref="/root/main/patinfo/patinfolist/zipcd2" class="output_fix" style="left:139px; top:167px; width:50px; height:19px; "/>
  218. <output id="output4" ref="/root/main/patinfo/patinfolist/addr" class="output_fix" appearance="output" style="left:78px; top:191px; width:250px; height:19px; "/>
  219. <input id="input30" ref="/root/main/patinfo/patinfolist/detladdr" navindex="7" appearance="output" style="left:78px; top:215px; width:250px; height:19px; "/>
  220. <line id="line4" class="line_1" style="x1:5px; y1:17px; x2:328px; y2:17px; "/>
  221. <line id="line1" class="line_2" style="x1:5px; y1:68px; x2:328px; y2:68px; "/>
  222. <line id="line3" class="line_2" style="x1:5px; y1:188px; x2:327px; y2:188px; "/>
  223. <line id="line5" class="line_2" style="x1:5px; y1:44px; x2:328px; y2:44px; "/>
  224. <line id="line6" class="line_2" style="x1:5px; y1:92px; x2:328px; y2:92px; "/>
  225. <line id="line7" class="line_2" style="x1:5px; y1:116px; x2:328px; y2:116px; "/>
  226. <line id="line11" class="line_2" style="x1:5px; y1:140px; x2:328px; y2:140px; "/>
  227. <line id="line10" class="line_2" style="x1:5px; y1:164px; x2:328px; y2:164px; "/>
  228. <line id="line8" class="line_2" style="x1:5px; y1:212px; x2:328px; y2:212px; "/>
  229. <button id="button3" class="icon_search" navindex="6" style="left:225px; top:168px; width:16px; height:16px; ">
  230. <caption/>
  231. <script type="javascript" ev:event="DOMActivate">
  232. <![CDATA[
  233. zbcfOpenZipCodeList("combination"
  234. , ""
  235. , "/root/main/patinfo/patinfolist/zipcd1"
  236. , "/root/main/patinfo/patinfolist/zipcd2"
  237. , "/root/main/patinfo/patinfolist/zipcdseq"
  238. , "/root/main/patinfo/patinfolist/addr"
  239. , ""
  240. , "/root/main/patinfo/patinfolist/detladdr"
  241. , "/root/main/patinfo/patinfolist/builno"
  242. );
  243. ]]>
  244. </script>
  245. </button>
  246. <output id="output6" ref="/root/main/patinfo/patinfolist/zipcdseq" class="output_fix" style="left:193px; top:167px; width:27px; height:19px; "/>
  247. <input id="input3" ref="/root/main/patinfo/patinfolist/etctel1" navindex="4" style="left:78px; top:119px; width:100px; height:19px; "/>
  248. <bool id="bool1" checkvalue="Y,N" ref="/root/main/patinfo/patinfolist/smsaprvyn" style="left:182px; top:91px; width:25px; height:20px; "/>
  249. <input id="input4" ref="/root/main/patinfo/patinfolist/etctel2" navindex="5" style="left:78px; top:143px; width:100px; height:19px; "/>
  250. <caption id="caption11" style="left:206px; top:92px; width:85px; height:20px; ">SMS 승인여부</caption>
  251. <output id="output8" ref="/root/main/patinfo/patinfolist/rrgstno1" class="output_fix" style="left:185px; top:46px; width:65px; height:19px; "/>
  252. <output id="output10" ref="/root/main/patinfo/patinfolist/rrgstno3" class="output_fix" style="left:260px; top:46px; width:65px; height:19px; "/>
  253. <caption id="caption13" class="cell_1" style="left:185px; top:22px; width:70px; height:23px; text-align:left; ">주민번호</caption>
  254. <caption id="caption10" class="cell_1" style="left:5px; top:118px; width:70px; height:23px; text-align:left; ">주보호자</caption>
  255. <caption id="caption1" class="cell_1" style="left:5px; top:70px; width:70px; height:23px; text-align:left; ">연락처</caption>
  256. <caption id="caption2" class="cell_1" style="left:5px; top:94px; width:70px; height:23px; text-align:left; ">휴대폰</caption>
  257. <caption id="caption3" class="cell_1" style="left:5px; top:22px; width:70px; height:23px; text-align:left; ">등록번호</caption>
  258. <caption id="caption12" class="cell_1" style="left:5px; top:142px; width:70px; height:23px; text-align:left; ">가족</caption>
  259. <caption id="caption4" class="cell_1" style="left:5px; top:46px; width:70px; height:23px; text-align:left; ">성 명</caption>
  260. <caption id="caption5" class="cell_1" style="left:5px; top:166px; width:70px; height:23px; text-align:left; ">우편번호</caption>
  261. <caption id="caption8" class="cell_1" style="left:5px; top:190px; width:70px; height:23px; text-align:left; ">주 소</caption>
  262. <caption id="caption9" class="cell_1" style="left:5px; top:214px; width:70px; height:23px; text-align:left; ">상세주소</caption>
  263. <line id="line9" class="line_3" style="x1:5px; y1:236px; x2:328px; y2:236px; "/>
  264. <caption id="caption14" style="left:250px; top:45px; width:10px; height:20px; ">-</caption>
  265. </xhtml:body>
  266. </xhtml:html>