SPZUM00400_암호확인.xrw 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/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>비밀번호 확인</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <valid/>
  11. </main>
  12. <send>
  13. <usernm/>
  14. <pwd/>
  15. <userid/>
  16. <deptnm/>
  17. <deptcd/>
  18. </send>
  19. <init>
  20. <titlemsg/>
  21. <type/>
  22. <helpmsg/>
  23. <titlemsg2/>
  24. </init>
  25. </root>
  26. </instance>
  27. <script type="javascript" ev:event="xforms-ready">
  28. <![CDATA[
  29. model.setValue("/root/send/usernm",getUserName());
  30. model.setValue("/root/send/userid",getUserId());
  31. model.setValue("/root/send/deptcd",getUserInfo("dutplcecd"));
  32. model.setValue("/root/send/deptnm",getUserInfo("dutplcenm"));
  33. if(checkOpener()){
  34. //업무화면 필요시 사용자 로그인 암호 초기화
  35. if(checkOpener()){
  36. opener.javascript.setParameter("pwdvalid", "N");
  37. }
  38. var type = opener.javascript.getParameter("type");
  39. var titlemsg = opener.javascript.getParameter("titlemsg");
  40. var helpmsg = opener.javascript.getParameter("helpmsg");
  41. if(type == "session"){
  42. titlemsg = "정보보호를 위해 본인확인을 합니다.";
  43. opt_titlemsg2.visible = true;
  44. opt_titlemsg.attribute("background-image") = "";
  45. opt_titlemsg2.value = "오랜 시간 사용자 입력이 없어";
  46. cap_helpmsg.visible = false;
  47. }else{
  48. cap_helpmsg.visible = true;
  49. cap_helpmsg.attribute("top") = "103px";
  50. body.attribute("pageheight") = "215";
  51. grp_biz.attribute("height") = "188px";
  52. grp_btn.attribute("top") = "188px";
  53. window.setSize(279, 270);
  54. }
  55. model.setValue("/root/init/titlemsg", titlemsg);
  56. model.setValue("/root/init/helpmsg", helpmsg, true);
  57. model.setValue("/root/init/type", type);
  58. model.refresh();
  59. }
  60. ]]>
  61. </script>
  62. <submission id="TRZUM00401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main"/>
  63. </model>
  64. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  65. </xhtml:head>
  66. <xhtml:body pagewidth="271" pageheight="150" guideline="2,150;" style="text-align:right; margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  67. <group id="grp_biz" scroll="auto" style="left:0px; top:0px; width:255px; height:118px; ">
  68. <line id="line1" class="line_1" style="x1:0px; y1:40px; x2:255px; y2:40px; "/>
  69. <caption id="cap_oldpwd" class="cell_1" style="left:0px; top:45px; width:91px; height:23px; ">사용자</caption>
  70. <caption id="cap_pwd" class="cell_1" style="left:0px; top:69px; width:91px; height:23px; ">근무지 부서</caption>
  71. <caption id="cap_cnfmpwd" class="cell_1" style="left:0px; top:94px; width:91px; height:23px; ">비밀번호 입력</caption>
  72. <output id="sct_oldpwd" ref="/root/send/usernm" class="output" maxlength="20" style="left:94px; top:46px; width:160px; height:19px; "/>
  73. <output id="sct_pwd" ref="/root/send/deptnm" class="output" maxlength="20" style="left:94px; top:70px; width:160px; height:19px; "/>
  74. <secret id="sct_cnfmpwd" ref="/root/send/pwd" class="secret_essential" navindex="1" maxlength="20" style="left:94px; top:95px; width:160px; height:19px; ">
  75. <script type="javascript" ev:event="onkeyup">
  76. <![CDATA[
  77. if( event.keyCode == 13 ) {
  78. model.setFocus("btn_confirm");
  79. btn_confirm.dispatch("DOMActivate");
  80. }
  81. ]]>
  82. </script>
  83. </secret>
  84. <line id="line3" class="line_2" style="x1:0px; y1:67px; x2:255px; y2:67px; "/>
  85. <line id="line2" class="line_2" style="x1:0px; y1:92px; x2:255px; y2:92px; "/>
  86. <line id="line6" class="line_3" style="x1:0px; y1:117px; x2:255px; y2:117px; "/>
  87. <caption id="cap_helpmsg" ref="/root/init/helpmsg" class="hand" style="left:0px; top:30px; width:255px; height:85px; "/>
  88. <output id="opt_titlemsg" ref="/root/init/titlemsg" style="left:0px; top:20px; width:255px; height:19px; font-weight:bold; text-align:left; vertical-align:middle; word-wrap:hard; padding-left:15; background-image:../../../com/commonweb/images/tit_bullet2.gif; ">세션이 종료되었습니다.</output>
  89. <output id="opt_titlemsg2" ref="/root/init/titlemsg2" visibility="hidden" style="left:0px; top:0px; width:255px; height:19px; font-weight:bold; text-align:left; vertical-align:middle; word-wrap:hard; padding-left:15; background-image:../../../com/commonweb/images/tit_bullet2.gif; ">세션이 종료되었습니다.</output>
  90. </group>
  91. <group id="grp_btn" scroll="auto" style="left:0px; top:118px; width:255px; height:27px; ">
  92. <button id="btn_cancel" class="btn4_letter2" navindex="3" style="left:194px; top:5px; width:56px; height:22px; ">
  93. <caption>종료</caption>
  94. <script type="javascript" ev:event="DOMActivate">
  95. <![CDATA[
  96. var rtnCode = messageBox("현재 로그인한 사용자를 강제로 로그아웃시킵니다.\n저장하지 않은 모든 내용은 사라집니다.\n그래도 종료를", "Q003");
  97. if (rtnCode == 6) {
  98. opener.javascript.setParameter("islogout", "true");
  99. window.close();
  100. } else {
  101. opener.javascript.setParameter("islogout", "false");
  102. }
  103. ]]>
  104. </script>
  105. </button>
  106. <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:255px; y2:0px; "/>
  107. <button id="btn_confirm" class="btn4_letter2" navindex="2" style="left:135px; top:5px; width:56px; height:22px; ">
  108. <caption>확인</caption>
  109. <script type="javascript" ev:event="DOMActivate">
  110. <![CDATA[
  111. model.setValue("/root/main/valid","N");
  112. setForceOn();
  113. if (submit("TRZUM00401")) {
  114. var valid = model.getValue("/root/main/valid");
  115. //업무화면 필요시 사용자 로그인 암호 확인
  116. if(checkOpener()){
  117. opener.javascript.setParameter("pwdvalid", valid);
  118. }
  119. if (valid != "Y") {
  120. messageBox("암호가","E004");
  121. model.setFocus("sct_cnfmpwd");
  122. } else {
  123. // 암호 확인 OK
  124. if(model.getValue("/root/init/type") == "session"){
  125. // 암호 확인 OK, 최근 submit 시간 업데이트한다.
  126. setGlobalVariable("last_submit", (new Date()).getTime());
  127. }
  128. //btn_cancel.dispatch("DOMActivate");
  129. window.close();
  130. }
  131. }
  132. ]]>
  133. </script>
  134. </button>
  135. </group>
  136. </xhtml:body>
  137. </xhtml:html>