SPCVO02900_VOC관리고객등록.xrw 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * Name : SPCVO02900_VOC관리고객등록
  4. * Summary : VOC 관리고객 등록
  5. * Programmer : 김준규
  6. * Date Written : 2007.10.21
  7. * History :
  8. * Remark :
  9. -->
  10. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  11. <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">
  12. <xhtml:head>
  13. <xhtml:title>VOC 관리고객 등록</xhtml:title>
  14. <model id="model1">
  15. <instance id="instance1">
  16. <root xmlns="">
  17. <main>
  18. <piddata>
  19. <pid/>
  20. <hngnm/>
  21. <mpphontel/>
  22. <zipcd1/>
  23. <zipcd2/>
  24. <zipcdaddr/>
  25. <detladdr/>
  26. <rrgstno/>
  27. <email/>
  28. <hometel/>
  29. </piddata>
  30. <mngdata>
  31. <pid/>
  32. <mngtmanflag/>
  33. <clntvalu/>
  34. <relaclntnm/>
  35. </mngdata>
  36. <search>
  37. <srchpid/>
  38. <srchpatnm/>
  39. <srchcintnm/>
  40. </search>
  41. <vocpopup>
  42. <title/>
  43. <contents/>
  44. <inputmode/>
  45. <receive_path/>
  46. </vocpopup>
  47. <temp>
  48. <data>
  49. <srchacptdd1/>
  50. <srchacptdd2/>
  51. <srchacpttypecd/>
  52. <srchprcsstatcd/>
  53. <srchdeptcd/>
  54. <srchdeptnm/>
  55. <srchpatnm/>
  56. <srchpid/>
  57. <srchfstrgstrnm/>
  58. </data>
  59. <key>
  60. <sndacptdd/>
  61. <sndacptseq/>
  62. <sndrgstseq/>
  63. <sndPID/>
  64. </key>
  65. </temp>
  66. </main>
  67. <temp>
  68. <piddata>
  69. <pid/>
  70. <hngnm/>
  71. <mpphontel/>
  72. <zipcd1/>
  73. <zipcd2/>
  74. <zipcdaddr/>
  75. <detladdr/>
  76. <rrgstno/>
  77. <hometel/>
  78. <email/>
  79. </piddata>
  80. </temp>
  81. <send>
  82. <data>
  83. <srchpatnm/>
  84. <srchpid/>
  85. <srchprcsstatcd/>
  86. </data>
  87. </send>
  88. <init/>
  89. </root>
  90. </instance>
  91. <submission id="TRCVP00302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/mngdata" resultref="/root/temp/piddata"/>
  92. <submission id="TRCVP00303" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/temp/key" resultref="/root/main/mngdata"/>
  93. <submission id="TRCVP00304" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/temp/key" resultref="/root/main/piddata"/>
  94. <submission id="TXCVP00301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/mngdata"/>
  95. <submission id="TXCVP00302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/piddata"/>
  96. </model>
  97. <script type="javascript" ev:event="xforms-ready">
  98. <![CDATA[
  99. var resndPID = model.getValue("/root/main/temp/key/sndPID")
  100. if ( resndPID == "" || resndPID == null ){
  101. var rtn = messageBox("조회에 필요한 항목이 전달되지", "E007");
  102. if(rtn == 1){
  103. window.close();
  104. }
  105. } else {
  106. submit("TRCVP00303");
  107. submit("TRCVP00304");
  108. }
  109. fCheckAuth();
  110. model.refresh();
  111. ]]>
  112. </script>
  113. <script type="javascript">
  114. <![CDATA[
  115. function fCheckAuth() {
  116. // 권한체크
  117. if (!checkAuth("r")) {
  118. }
  119. if (!checkAuth("x")) {
  120. }
  121. if (!checkAuth("p")) {
  122. }
  123. }
  124. ]]>
  125. </script>
  126. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  127. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  128. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  129. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  130. </xhtml:head>
  131. <xhtml:body pagewidth="745" pageheight="315" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
  132. <group id="grp_tle" style="left:0px; top:0px; width:725px; height:13px; ">
  133. <caption id="caption1" class="tit_1" style="left:0px; top:0px; width:142px; height:14px; ">VOC 관리고객 정보</caption>
  134. </group>
  135. <group id="grp_customer" style="left:0px; top:13px; width:725px; height:260px; ">
  136. <line id="line3" class="line_1" style="x1:0px; y1:5px; x2:725px; y2:5px; "/>
  137. <line id="line4" class="line_2" style="x1:0px; y1:32px; x2:725px; y2:32px; "/>
  138. <line id="line5" class="line_2" style="x1:0px; y1:56px; x2:725px; y2:56px; "/>
  139. <line id="line6" class="line_2" style="x1:100px; y1:80px; x2:725px; y2:80px; "/>
  140. <line id="line8" class="line_2" style="x1:0px; y1:104px; x2:725px; y2:104px; "/>
  141. <line id="line9" class="line_2" style="x1:0px; y1:128px; x2:725px; y2:128px; "/>
  142. <line id="line7" class="line_2" style="x1:0px; y1:152px; x2:725px; y2:152px; "/>
  143. <line id="line16" class="line_3" style="x1:0px; y1:257px; x2:725px; y2:257px; "/>
  144. <select1 id="cmb_Mngtflag" ref="/root/main/mngdata/mngtmanflag" class="combo_essential" appearance="minimal" style="left:591px; top:11px; width:130px; height:19px; ">
  145. <choices>
  146. <item>
  147. <label>일반</label>
  148. <value>A</value>
  149. </item>
  150. <item>
  151. <label>★★★★★</label>
  152. <value>B</value>
  153. </item>
  154. <item>
  155. <label>★(칭찬)</label>
  156. <value>C</value>
  157. </item>
  158. </choices>
  159. </select1>
  160. <input id="ipt_rela" ref="/root/main/mngdata/relaclntnm" class="input_default" style="left:108px; top:131px; width:614px; height:19px; "/>
  161. <textarea id="tar_ClntValu" ref="/root/main/mngdata/clntvalu" class="input_default" scroll="vertical" style="left:108px; top:155px; width:614px; height:100px; "/>
  162. <input id="ipt_rrgstno" ref="/root/main/piddata/rrgstno" class="output_fix" editable="false" format="999999-9" appearance="input" style="left:591px; top:35px; width:130px; height:19px; "/>
  163. <input id="ipt_email" ref="/root/main/piddata/email" class="output_fix" style="left:108px; top:107px; width:614px; height:19px; "/>
  164. <input id="ipt_phone" ref="/root/main/piddata/hometel" class="output_fix" appearance="input" style="left:349px; top:35px; width:130px; height:19px; "/>
  165. <input id="ipt_PID" ref="/root/main/piddata/pid" class="output_fix" editable="false" appearance="input" style="left:108px; top:11px; width:130px; height:19px; "/>
  166. <caption id="caption21" class="cell_1" style="left:241px; top:10px; width:105px; height:23px; text-align:center; vertical-align:middle; ">환자명</caption>
  167. <caption id="caption11" class="cell_1" style="left:483px; top:10px; width:105px; height:23px; text-align:center; vertical-align:middle; ">대상구분</caption>
  168. <input id="ipt_detladdr" ref="/root/main/piddata/detladdr" class="output_fix" style="left:108px; top:83px; width:614px; height:19px; "/>
  169. <caption id="caption22" class="cell_1" style="left:0px; top:10px; width:105px; height:23px; text-align:center; vertical-align:middle; ">등록번호</caption>
  170. <caption id="caption34" class="cell_1" style="left:0px; top:154px; width:105px; height:104px; text-align:center; vertical-align:middle; ">
  171. <![CDATA[메모 내용]]>
  172. <script type="javascript" ev:event="ondblclick">
  173. <![CDATA[
  174. var s_contents = model.getValue("/root/main/piddata/clntvalu");
  175. var receive_path = "/root/main/piddata/clntvalu";
  176. model.setValue("/root/main/vocpopup/title", "메모 내용");
  177. model.setValue("/root/main/vocpopup/contents", s_contents);
  178. model.makeValue("/root/main/vocpopup/inputmode", "i");
  179. model.makeValue("/root/main/vocpopup/receive_path", receive_path);
  180. open("SPCVO01000", "", "", "", "SPCVO01000", "/root/main/vocpopup", "/root/main/vocpopup");
  181. model.setValue("/root/main/vocpopup/title", "");
  182. model.setValue("/root/main/vocpopup/contents", "");
  183. model.setValue("/root/main/vocpopup/inputmode", "");
  184. model.setValue("/root/main/vocpopup/receive_path", "");
  185. model.refresh();
  186. ]]>
  187. </script>
  188. </caption>
  189. <input id="ipt_mobile" ref="/root/main/piddata/mpphontel" class="output_fix" appearance="input" style="left:108px; top:35px; width:130px; height:19px; "/>
  190. <caption id="caption3" class="cell_1" style="left:483px; top:34px; width:105px; height:23px; text-align:center; vertical-align:middle; ">주민번호</caption>
  191. <caption id="caption4" class="cell_1" style="left:0px; top:106px; width:105px; height:23px; text-align:center; vertical-align:middle; ">이메일</caption>
  192. <input id="ipt_PatNm" ref="/root/main/piddata/hngnm" class="output_fix" editable="false" appearance="input" style="left:349px; top:11px; width:127px; height:19px; "/>
  193. <caption id="caption14" class="cell_1" style="left:0px; top:58px; width:105px; height:46px; text-align:center; vertical-align:middle; ">주소</caption>
  194. <input id="ipt_ZipCd1" ref="/root/main/piddata/zipcd1" class="output_fix" style="left:108px; top:59px; width:55px; height:19px; "/>
  195. <input id="ipt_ZipCd2" ref="/root/main/piddata/zipcd2" class="output_fix" style="left:165px; top:59px; width:55px; height:19px; "/>
  196. <input id="ipt_ZipCdAddr" ref="/root/main/piddata/zipcdaddr" class="output_fix" style="left:222px; top:59px; width:499px; height:19px; "/>
  197. <caption id="caption6" class="cell_1" style="left:241px; top:34px; width:105px; height:23px; text-align:center; vertical-align:middle; ">집 전화번호</caption>
  198. <caption id="caption26" class="cell_1" style="left:0px; top:34px; width:105px; height:23px; text-align:center; vertical-align:middle; ">휴대폰</caption>
  199. <caption id="caption9" class="cell_1" style="left:0px; top:130px; width:105px; height:23px; text-align:center; vertical-align:middle; ">관련민원인</caption>
  200. </group>
  201. <group id="grp_btn" scroll="auto" style="left:0px; top:273px; width:725px; height:27px; ">
  202. <button id="btn_close" class="btn4_letter2" style="left:667px; top:5px; width:56px; height:22px; ">
  203. <caption>닫기</caption>
  204. <close ev:event="DOMActivate"/>
  205. </button>
  206. <button id="btn_refresh" class="btn5_letter9" style="left:3px; top:4px; width:119px; height:19px; ">
  207. <caption>환자정보 갱신하기</caption>
  208. <script type="javascript" ev:event="DOMActivate">
  209. <![CDATA[
  210. var s_pid = model.getValue("/root/main/piddata/pid");
  211. if (s_pid != ""){
  212. var rtn = messageBox(" 관리고객의 정보가 병원정보 시스템의 정보로 갱신되게 됩니다.", "Q004");
  213. if(rtn == 6){
  214. if(submit("TRCVP00302")){
  215. if( getNodesetCount("/root/temp/piddata") > 0 ){
  216. var pid_pid = model.getValue("/root/temp/piddata/pid");
  217. var pid_patnm = model.getValue("/root/temp/piddata/hngnm");
  218. var pid_mpphonno = model.getValue("/root/temp/piddata/mpphontel");
  219. var pid_zipcd1 = model.getValue("/root/temp/piddata/zipcd1");
  220. var pid_zipcd2 = model.getValue("/root/temp/piddata/zipcd2");
  221. var pid_zipcdaddr = model.getValue("/root/temp/piddata/zipcdaddr");
  222. var pid_detladdr = model.getValue("/root/temp/piddata/detladdr");
  223. var pid_rrgstno = model.getValue("/root/temp/piddata/rrgstno");
  224. var pid_hometel = model.getValue("/root/temp/piddata/hometel");
  225. var pid_email = model.getValue("/root/temp/piddata/email");
  226. model.setValue("/root/main/piddata/hngnm", pid_patnm);
  227. // model.setValue("/root/main/piddata/pid", pid_pid);
  228. model.setValue("/root/main/piddata/mpphontel", pid_mpphonno);
  229. model.setValue("/root/main/piddata/zipcd1", pid_zipcd1);
  230. model.setValue("/root/main/piddata/zipcd2", pid_zipcd2);
  231. model.setValue("/root/main/piddata/zipcdaddr", pid_zipcdaddr);
  232. model.setValue("/root/main/piddata/detladdr", pid_detladdr);
  233. model.setValue("/root/main/piddata/rrgstno", pid_rrgstno);
  234. model.setValue("/root/main/piddata/hometel", pid_hometel);
  235. model.setValue("/root/main/piddata/email", pid_email);
  236. model.refresh();
  237. if(submit("TXCVP00302")){
  238. messageBox("환자정보가 갱신 ", "I002");
  239. }
  240. }else{
  241. messageBox("존재하지 않는 환자 등록번호 ", "E008");
  242. model.makeNode("/root/temp/piddata");
  243. }
  244. }
  245. }
  246. } else {
  247. messageBox("등록번호가 없어 환자정보를 갱신 ", "E001");
  248. }
  249. ]]>
  250. </script>
  251. </button>
  252. <button id="btn_save" class="btn4_letter2" style="left:609px; top:5px; width:56px; height:22px; ">
  253. <caption>저장</caption>
  254. <script type="javascript" ev:event="DOMActivate">
  255. <![CDATA[
  256. var s_pid = model.getValue("/root/main/piddata/pid");
  257. if (s_pid != ""){
  258. if (isRequiredControls("cmb_Mngtflag") ){
  259. if(submit("TXCVP00301")){
  260. submit("TXCVP00302");
  261. messageBox("저장이 ", "I002");
  262. }
  263. }
  264. } else {
  265. messageBox("등록번호가 없어 저장 ", "E001");
  266. }
  267. ]]>
  268. </script>
  269. </button>
  270. <button id="btn_popVOC" class="btn2_letter9" style="left:125px; top:4px; width:119px; height:19px; ">
  271. <caption>VOC 등록이력 보기</caption>
  272. <script type="javascript" ev:event="DOMActivate">
  273. <![CDATA[
  274. var r_PID = model.getValue("/root/main/piddata/pid");
  275. model.setValue("/root/main/search/srchpid", r_PID);
  276. open("SPCVO00300", "", "460", "120", "SPCVO00300", "/root/main/search", "/root/main/search");
  277. ]]>
  278. </script>
  279. </button>
  280. </group>
  281. </xhtml:body>
  282. </xhtml:html>