SPCRC00400_병원정보설정.xrw 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * Name : SPCRC00400_병원정보설정
  4. * Summary : 병원정보설정
  5. * Programmer : 차재훈
  6. * Date Written : 2008.09.26
  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>병원정보설정</xhtml:title>
  14. <model id="model1">
  15. <instance id="instance1">
  16. <root xmlns="">
  17. <main>
  18. <item>
  19. <instcd/>
  20. <hospnm/>
  21. <hospreprtel/>
  22. <hospreprmail/>
  23. <deptnm/>
  24. <deptcd/>
  25. <mailsvr/>
  26. <mailacnt/>
  27. <mailpwd/>
  28. <savemode/>
  29. </item>
  30. </main>
  31. <send>
  32. </send>
  33. <temp>
  34. </temp>
  35. <init>
  36. </init>
  37. </root>
  38. </instance>
  39. <submission id="TRCRC00401" mediatype="application/x-www-form-urlencoded" method="post" resultref="/root/main/item"/>
  40. <submission id="TXCRC00401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/item" replace="instance"/>
  41. </model>
  42. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  43. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  44. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  45. <script type="javascript" src="../../../crm/crmweb/js/CCZ001.js"/>
  46. <script type="javascript" ev:event="xforms-ready">
  47. <![CDATA[
  48. //세션 기관 코드를 이용하여 병원 정보 조회
  49. submit("TRCRC00401");
  50. var dutplceinstcd = getUserInfo("dutplceinstcd");
  51. model.makeValue("/root/main/item/instcd", dutplceinstcd);
  52. if(model.getValue("/root/main/item/hospnm")!=""){
  53. model.makeValue("/root/main/item/savemode", "U");
  54. }else{
  55. model.makeValue("/root/main/item/savemode", "I");
  56. model.makeValue("/root/main/item/hospnm", "");
  57. model.makeValue("/root/main/item/hospreprtel", "");
  58. model.makeValue("/root/main/item/hospreprmail", "");
  59. model.makeValue("/root/main/item/mailsvr", "");
  60. model.makeValue("/root/main/item/mailacnt", "");
  61. model.makeValue("/root/main/item/mailpwd", "");
  62. model.makeValue("/root/main/item/deptcd", "");
  63. model.makeValue("/root/main/item/deptnm", "");
  64. }
  65. model.refresh();
  66. ]]>
  67. </script>
  68. <script type="javascript">
  69. <![CDATA[
  70. //=============//
  71. //필수입력 체크//
  72. //=============//
  73. function fCheckInput(){
  74. if (model.getValue("/root/main/item/hospnm")=="") {
  75. messageBox("병원 명칭을 입력하지","E007");
  76. model.setFocus("ipt_hospnm");
  77. return false;
  78. }
  79. if (model.getValue("/root/main/item/hospreprtel")=="") {
  80. messageBox("대표 전화를 입력하지","E007");
  81. model.setFocus("ipt_hospreprtel");
  82. return false;
  83. }
  84. if (model.getValue("/root/main/item/hospreprmail")=="") {
  85. messageBox("대표 메일을 입력하지","E007");
  86. model.setFocus("ipt_hospreprmail");
  87. return false;
  88. }
  89. if (model.getValue("/root/main/item/deptcd")=="") {
  90. messageBox("대표 부서를 입력하지","E007");
  91. model.setFocus("ipt_deptnm");
  92. return false;
  93. }
  94. return true;
  95. }
  96. ]]>
  97. </script>
  98. </xhtml:head>
  99. <xhtml:body pagewidth="510" pageheight="230" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  100. <group id="grp_body" style="left:0px; top:10px; width:490px; height:175px; ">
  101. <caption id="caption9" class="tit_2" style="left:0px; top:0px; width:105px; height:14px; ">병원 정보</caption>
  102. <line id="line2" class="line_1" style="x1:0px; y1:15px; x2:485px; y2:15px; "/>
  103. <caption id="cap_dmtitl" class="cell_1" style="left:0px; top:20px; width:90px; height:23px; text-align:center; vertical-align:middle; ">기관 코드</caption>
  104. <input id="opt_instcd" ref="/root/main/item/instcd" class="output_fix" maxlength="3" style="left:93px; top:22px; width:142px; height:19px; "/>
  105. <line id="line6" class="line_2" style="x1:0px; y1:43px; x2:485px; y2:43px; "/>
  106. <caption id="caption1" class="cell_1" style="left:0px; top:45px; width:90px; height:23px; text-align:center; vertical-align:middle; ">대표 전화</caption>
  107. <input id="ipt_hospreprtel" ref="/root/main/item/hospreprtel" class="input_essential" navindex="2" imemode="disabled" maxlength="15" style="left:93px; top:47px; width:142px; height:19px; "/>
  108. <line id="line1" class="line_2" style="x1:0px; y1:68px; x2:485px; y2:68px; "/>
  109. <caption id="caption2" class="cell_1" style="left:0px; top:70px; width:90px; height:23px; text-align:center; vertical-align:middle; ">대표부서</caption>
  110. <line id="line3" class="line_3" style="x1:0px; y1:93px; x2:485px; y2:93px; "/>
  111. <input id="ipt_deptnm" ref="/root/main/item/deptnm" class="input_essential" navindex="4" maxlength="45" style="left:93px; top:72px; width:142px; height:19px; ">
  112. <script type="javascript" ev:event="onkeyup">
  113. <![CDATA[
  114. inputEnterKey("btn_deptcd", "DOMActivate");
  115. ]]>
  116. </script>
  117. </input>
  118. <button id="btn_deptcd" class="icon_search" navindex="5" style="left:240px; top:73px; width:16px; height:16px; ">
  119. <caption/>
  120. <script type="javascript" ev:event="DOMActivate">
  121. <![CDATA[
  122. var search_condition = "deptnm";
  123. var search_term = model.getValue("/root/main/item/deptnm");
  124. var receive_deptcd_path = "/root/main/item/deptcd";
  125. var receive_deptnm_path = "/root/main/item/deptnm";
  126. cczfOpenSelectDept(search_condition, search_term, receive_deptcd_path, receive_deptnm_path);
  127. ]]>
  128. </script>
  129. </button>
  130. <output id="opt_deptcd" ref="/root/main/item/deptcd" class="output_fix" style="left:260px; top:72px; width:142px; height:19px; "/>
  131. <caption id="caption3" class="cell_1" style="left:0px; top:150px; width:90px; height:23px; text-align:center; vertical-align:middle; ">Mail PW</caption>
  132. <input id="ipt_mailpwd" ref="/root/main/item/mailpwd" class="input_default" navindex="8" imemode="disabled" maxlength="24" style="left:93px; top:152px; width:142px; height:19px; "/>
  133. <line id="line5" class="line_2" style="x1:0px; y1:148px; x2:485px; y2:148px; "/>
  134. <line id="line7" class="line_3" style="x1:0px; y1:173px; x2:485px; y2:173px; "/>
  135. <caption id="caption8" class="cell_1" style="left:0px; top:125px; width:90px; height:23px; text-align:center; vertical-align:middle; ">Mail Server</caption>
  136. <input id="ipt_mailsvr" ref="/root/main/item/mailsvr" class="input_default" navindex="6" imemode="disabled" maxlength="50" style="left:93px; top:127px; width:142px; height:19px; "/>
  137. <caption id="caption14" class="cell_1" style="left:245px; top:125px; width:90px; height:23px; text-align:center; vertical-align:middle; ">Mail Account</caption>
  138. <input id="ipt_mailacnt" ref="/root/main/item/mailacnt" class="input_default" navindex="7" imemode="disabled" maxlength="24" style="left:338px; top:127px; width:142px; height:19px; "/>
  139. <input id="ipt_hospnm" ref="/root/main/item/hospnm" class="input_essential" navindex="1" maxlength="45" style="left:338px; top:22px; width:142px; height:19px; "/>
  140. <caption id="caption10" class="cell_1" style="left:245px; top:20px; width:90px; height:23px; text-align:center; vertical-align:middle; ">병원 명칭</caption>
  141. <caption id="caption20" class="cell_1" style="left:245px; top:45px; width:90px; height:23px; text-align:center; vertical-align:middle; ">대표 E-mail</caption>
  142. <input id="ipt_email" ref="/root/main/item/hospreprmail" class="input_essential" navindex="3" maxlength="45" style="left:338px; top:47px; width:142px; height:19px; "/>
  143. <line id="line4" class="line_1" style="x1:0px; y1:120px; x2:485px; y2:120px; "/>
  144. <caption id="caption4" class="tit_2" style="left:0px; top:105px; width:105px; height:14px; ">병원 계정 정보</caption>
  145. </group>
  146. <group id="grp_save2" style="left:0px; top:185px; width:490px; height:35px; vertical-align:top; ">
  147. <button id="btn_save" class="btn4_letter2" navindex="9" style="left:375px; top:7px; width:56px; height:22px; ">
  148. <caption>저장</caption>
  149. <script type="javascript" ev:event="DOMActivate">
  150. <![CDATA[
  151. if(fCheckInput()){
  152. if (messageBox("병원 정보를","Q002")==6) {
  153. submit("TXCRC00401");
  154. window.close();
  155. }
  156. }
  157. ]]>
  158. </script>
  159. </button>
  160. <button id="btn_close" class="btn4_letter2" navindex="10" style="left:434px; top:7px; width:56px; height:22px; ">
  161. <caption>취소</caption>
  162. <script type="javascript" ev:event="DOMActivate">
  163. <![CDATA[
  164. window.close();
  165. ]]>
  166. </script>
  167. </button>
  168. </group>
  169. </xhtml:body>
  170. </xhtml:html>