SPZUM20000_비밀번호변경.xrw 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  3. <xhtml:html xmlns:ex="http://www.comsquare.co.kr/xforms/excel" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:ms="urn:schemas-microsoft-com:xslt" xmlns:my="http://www.comsquare.co.kr/example" 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" xmlns:cs="http://www.comsquare.co.kr/xforms">
  4. <xhtml:head>
  5. <xhtml:title>비밀번호변경</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <send>
  10. <pwd/>
  11. <oldpwd/>
  12. <cnfmpwd/>
  13. <chkyn/>
  14. <keeppwd/>
  15. </send>
  16. <temp/>
  17. <hidden>
  18. <lastpwdchgdt/>
  19. </hidden>
  20. </root>
  21. </instance>
  22. <submission id="TXZUM01101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp"/>
  23. <script type="javascript" ev:event="xforms-ready">
  24. <![CDATA[
  25. body.attribute("onkeypress") = "fOnKeyPress();";
  26. var viewerObj = getViewer("sysMessage");
  27. var certloadyn = viewerObj.window.model.getValue("/root/hidden/lastpwdchgdt/checkloginpwyn");
  28. if(certloadyn == "Y" && getUserInfo("ispwvalidyn")=="N"){
  29. msg.value = "※ 기존 비밀번호가 규칙에 맞지 않습니다.";
  30. sct_keeppwd.disabled = true;
  31. btn_keeppwd.disabled = true;
  32. }else{
  33. msg.value = "※ 비밀번호가 만료되었습니다.";
  34. sct_keeppwd.disabled = false;
  35. btn_keeppwd.disabled = false;
  36. }
  37. ]]>
  38. </script>
  39. </model>
  40. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  41. <script type="javascript" src="../../../com/hismainweb/js/ZUM008.js"/>
  42. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  43. <script type="javascript">
  44. <![CDATA[
  45. function fOnKeyPress(){
  46. var keyCode = 0;
  47. var shiftKey = false;
  48. keyCode = event.keyCode;
  49. shiftKey = event.shiftKey;
  50. if(!shiftKey && keyCode >=65 && keyCode <=90)
  51. cap_capslock.visible = true;
  52. else
  53. cap_capslock.visible = false;
  54. }
  55. // 시스템 비밀번호 변경시 체크
  56. function fCheckPassword(){
  57. if(isRequiredControls("sct_oldpwd", "sct_pwd", "sct_cnfmpwd")){
  58. var pwdKind = model.getValue("/root/send/pwdkind");
  59. if (sct_pwd.value != sct_cnfmpwd.value){
  60. messageBox("새비밀번호가 ","E004");
  61. model.setFocus("sct_pwd");
  62. return false;
  63. }
  64. }else{
  65. return false;
  66. }
  67. /*
  68. var pwdNew = sct_pwd.value;
  69. if(pwdNew.length<10){
  70. messageBox("비밀번호는 최소 10자리여야 합니다.","E999");
  71. return false;
  72. }
  73. var alpha = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
  74. var number = "1234567890";
  75. var special = "-_=+\|()*&^%$#@!~`?><;/,.:";
  76. var flag1,flag2,flag3;
  77. for(var i=0; i<pwdNew.length; i++){
  78. if(alpha.match(pwdNew.charAt(i))){
  79. flag1=true;
  80. }
  81. if(number.match(pwdNew.charAt(i))){
  82. flag2=true;
  83. }
  84. if(special.match(pwdNew.charAt(i))){
  85. flag3=true;
  86. }
  87. }
  88. if(!(flag1 && flag2 && flag3)){
  89. messageBox("비밀번호는 영문자, 숫자, 특수문자 조합이어야 합니다.","E999");
  90. return false;
  91. }
  92. */
  93. /*
  94. var pwdNew = sct_pwd.value;
  95. var userid = getUserId();
  96. //영문, 숫자 혼용해서 10~17자 이내
  97. var reg_pw = /^(?=.*[a-zA-Z])(?=.*[-_=+\|()*&^%$#@!~`?])(?=.*[0-9]).{10,17}$/;
  98. if(!reg_pw.test(pwdNew)) {
  99. messageBox("10~17자 영문, 숫자, 특수문자를 모두 사용하십시오.","E999");
  100. return false;
  101. } else if(/(\w)\1\1\1/.test(pwdNew)) {
  102. messageBox("패스워드에 같은 문자/숫자를 4번 이상 사용하실 수 없습니다.","E999");
  103. return false;
  104. } else if(pwdNew.indexOf(userid) > -1){
  105. messageBox("ID 또는 사번과 동일한 문자는 사용하실 수 없습니다.","E999");
  106. return false;
  107. }
  108. return true;
  109. */
  110. return fCommonCheckPassword(sct_pwd.value);
  111. }]]>
  112. </script>
  113. </xhtml:head>
  114. <xhtml:body pagewidth="390" pageheight="560" guideline="1,121;1,263;1,25;1,363;1,49;">
  115. <caption id="cap_keeppwd" class="cell_1" style="left:75px; top:140px; width:91px; height:23px; ">현재비밀번호</caption>
  116. <shape id="roundrect1" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:25px; top:65px; width:340px; height:45px; "/>
  117. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:98px; height:15px; ">비밀번호 변경</caption>
  118. <caption id="cap_cnfmpwd" class="cell_1" style="left:75px; top:294px; width:91px; height:23px; ">새비밀번호확인</caption>
  119. <secret id="sct_oldpwd" ref="/root/send/oldpwd" class="secret_essential" maxlength="20" style="left:169px; top:239px; width:130px; height:19px; "/>
  120. <secret id="sct_pwd" ref="/root/send/pwd" class="secret_essential" maxlength="20" style="left:169px; top:267px; width:130px; height:19px; "/>
  121. <caption id="cap_oldpwd" class="cell_1" style="left:75px; top:238px; width:91px; height:23px; ">이전비밀번호</caption>
  122. <secret id="sct_cnfmpwd" ref="/root/send/cnfmpwd" class="secret_essential" maxlength="20" style="left:169px; top:295px; width:130px; height:19px; "/>
  123. <caption id="cap_pwd" class="cell_1" style="left:75px; top:266px; width:91px; height:23px; ">새비밀번호</caption>
  124. <line id="line6" class="line_3" style="x1:75px; y1:316px; x2:299px; y2:316px; "/>
  125. <button id="btn_pwd" class="btn4_letter10" disable.background-image="../../../com/commonweb/images/dis_btn4_letter9.gif" style="left:120px; top:330px; width:152px; height:22px; background-image:../../../com/commonweb/images/btn4_letter9.gif; ">
  126. <caption>로그인비밀번호변경</caption>
  127. <script type="javascript" ev:event="DOMActivate">
  128. <![CDATA[
  129. if(fCheckPassword()){
  130. setAlertOn();
  131. model.setValue("/root/send/chkyn", "false");
  132. // 치과쪽 SSL이 없어서 로직 분리. SSL 생길 시 수정 요망 (behson 160311)
  133. if(getUserInfo("dutplceinstcd") == "033"){
  134. if(submit("TXZUM01101")){ // 치과인 경우
  135. window.close();
  136. }
  137. }else{
  138. if(submitSSL("TXZUM01101")){ // 치과가 아닌경우(본원,칠곡)
  139. window.close();
  140. }
  141. }
  142. }
  143. ]]>
  144. </script>
  145. </button>
  146. <caption id="caption8" class="hand" style="left:50px; top:435px; width:290px; height:20px; ">변경된 비밀번호는 3개월간 유지</caption>
  147. <caption id="caption1" class="hand" style="left:50px; top:366px; width:335px; height:30px; ">
  148. <![CDATA[최소 10자리 이상 숫자, 영문, 특수문자 반드시 포함
  149. (대소문자구분됨)]]>
  150. </caption>
  151. <line id="line1" class="line_3" style="x1:75px; y1:288px; x2:299px; y2:288px; "/>
  152. <line id="line2" class="line_3" style="x1:75px; y1:260px; x2:299px; y2:260px; "/>
  153. <caption id="caption2" style="left:40px; top:70px; width:321px; height:35px; font-weight:bold; ">
  154. <![CDATA[인증평가 및 개인정보보호를 위해 로그인 비밀번호를
  155. 변경해 주시기 바랍니다.]]>
  156. </caption>
  157. <button id="btn_keeppwd" class="btn4_letter6" disable.background-image="../../../com/commonweb/images/dis_btn4_letter9.gif" style="left:135px; top:175px; width:104px; height:22px; background-image:../../../com/commonweb/images/btn4_letter9.gif; ">
  158. <caption>비밀번호유지</caption>
  159. <script type="javascript" ev:event="DOMActivate">
  160. <![CDATA[
  161. if(!isRequiredControls("sct_keeppwd")) return;
  162. if(!fCommonCheckPassword(sct_keeppwd.value,false)){
  163. messageBox("기존 비밀번호가 규칙에 맞지 않습니다.\n비밀번호를 변경해 주시기 바랍니다.","E999");
  164. model.setFocus("sct_oldpwd");
  165. return;
  166. }
  167. setAlertOn();
  168. model.setValue("/root/send/chkyn", "true");
  169. // 치과쪽 SSL이 없어서 로직 분리. SSL 생길 시 수정 요망 (behson 160311)
  170. if(getUserInfo("dutplceinstcd") == "033"){
  171. if(submit("TXZUM01101")){ // 치과인 경우
  172. window.close();
  173. }
  174. }else{
  175. if(submitSSL("TXZUM01101")){ // 치과가 아닌경우(본원,칠곡)
  176. window.close();
  177. }
  178. }
  179. ]]>
  180. </script>
  181. </button>
  182. <caption id="caption4" class="tit_2" style="left:30px; top:215px; width:120px; height:13px; ">비밀번호 변경</caption>
  183. <line id="line3" class="line_6" style="x1:25px; y1:210px; x2:364px; y2:210px; "/>
  184. <secret id="sct_keeppwd" ref="/root/send/keeppwd" class="secret_essential" maxlength="20" style="left:169px; top:141px; width:130px; height:19px; "/>
  185. <line id="line4" class="line_3" style="x1:75px; y1:162px; x2:299px; y2:162px; "/>
  186. <caption id="cap_capslock" visibility="hidden" style="left:105px; top:5px; width:200px; height:20px; font-weight:bold; color:#ff0000; ">[CapsLock키가 눌려있습니다.]</caption>
  187. <caption id="caption5" class="hand" style="left:50px; top:395px; width:308px; height:20px; ">사용자계정(ID)은 비밀번호에 포함될 수 없음</caption>
  188. <caption id="caption7" class="hand" style="left:50px; top:415px; width:303px; height:20px; ">문자/숫자 4자리 이상 반복될 수 없음</caption>
  189. <caption id="caption20" style="left:35px; top:455px; width:300px; height:20px; font-weight:bold; color:#3366ff; text-align:left; ">※ 관련근거: 진료지원실(의무기록)-1042호(본원)</caption>
  190. <caption id="caption9" class="tit_2" style="left:30px; top:120px; width:138px; height:13px; ">기존 비밀번호 유지</caption>
  191. <caption id="msg" style="left:50px; top:30px; width:280px; height:30px; font-weight:bold; color:#ff0000; text-align:center; background-color:transparent; "/>
  192. <button id="button1" class="btn4_letter2" style="left:308px; top:5px; width:56px; height:22px; ">
  193. <caption>종료</caption>
  194. <script type="javascript" ev:event="DOMActivate">
  195. <![CDATA[
  196. var rtn = messageBox("비밀번호 미변경 시 로그아웃됩니다. ", "Q003");
  197. if(rtn == 6){
  198. var status = getViewer("sysMessage");
  199. status.window.javascript.fLogout("session");
  200. }
  201. ]]>
  202. </script>
  203. </button>
  204. <caption id="caption3" style="left:35px; top:492px; width:320px; height:15px; font-weight:bold; color:#3366ff; ">※ 문의: 전산실(T. 6597)</caption>
  205. <caption id="caption10" style="left:114px; top:473px; width:230px; height:20px; font-weight:bold; color:#3366ff; text-align:left; ">진료행정과(의무기록)-267호(칠곡)</caption>
  206. <caption id="caption11" autoresize="false" style="left:35px; top:510px; width:350px; height:45px; font-weight:bold; color:#ff00ff; text-align:left; ">
  207. <![CDATA[※ MIS 비밀번호 수정 시
  208. - 5분 뒤 문서암호(DRM) 비번도 같이 변경됨
  209. - 1시간 뒤 무선AP(KNUH-STAFF) 비번도 같이 변경됨 ]]>
  210. </caption>
  211. </xhtml:body>
  212. </xhtml:html>