SPLPZ00100_암호확인.xrw 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198
  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. <userid/>
  24. <userinfo>
  25. <userinfolist>
  26. <userid/>
  27. <usernm/>
  28. <jobkindcd/>
  29. </userinfolist>
  30. </userinfo>
  31. </init>
  32. </root>
  33. </instance>
  34. <script type="javascript" ev:event="xforms-ready">
  35. <![CDATA[
  36. //-----------------------
  37. // 병리과 사용자목록 조회
  38. model.removeNodeset("/root/send");
  39. model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
  40. submit("TRLPZ00105");
  41. //alert("test");
  42. //--------------------------------------------------
  43. //model.makeValue("/root/send/usernm", getUserName());
  44. model.makeValue("/root/send/usernm", getUserId());
  45. model.makeValue("/root/send/userid", getUserId());
  46. model.makeValue("/root/send/deptcd", getUserInfo("dutplcecd"));
  47. model.makeValue("/root/send/deptnm", getUserInfo("dutplcenm"));
  48. model.makeValue("/root/send/pwd", "");
  49. //------------------
  50. if (checkOpener()) {
  51. //------------------------------------------
  52. // 업무화면 필요시 사용자 로그인 암호 초기화
  53. if(checkOpener()){
  54. opener.javascript.setParameter("pwdvalid", "N");
  55. }
  56. var type = opener.javascript.getParameter("type");
  57. var titlemsg = opener.javascript.getParameter("titlemsg");
  58. var helpmsg = opener.javascript.getParameter("helpmsg");
  59. if(type == "session"){
  60. titlemsg = "세션이 종료되었습니다.";
  61. //cap_helpmsg.visible = false;
  62. }else{
  63. //cap_helpmsg.visible = true;
  64. //cap_helpmsg.attribute("top") = "103px";
  65. //body.attribute("pageheight") = "215";
  66. //grp_biz.attribute("height") = "188px";
  67. //grp_btn.attribute("top") = "188px";
  68. //window.setSize(450, 270);
  69. }
  70. model.setValue("/root/init/titlemsg", titlemsg, true);
  71. model.setValue("/root/init/helpmsg", helpmsg, true);
  72. model.setValue("/root/init/type", type);
  73. model.refresh();
  74. }
  75. ]]>
  76. </script>
  77. <submission id="TRZUM00401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main"/>
  78. <submission id="TRLPZ00105" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/userinfo/userinfolist"/>
  79. </model>
  80. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  81. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  82. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  83. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  84. <script type="javascript" src="../../../lis/commonweb/js/LLZ001.js"/>
  85. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  86. </xhtml:head>
  87. <xhtml:body pagewidth="274" pageheight="130" style="text-align:right; margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  88. <group id="grp_biz" scroll="auto" style="left:0px; top:0px; width:256; height:103px; ">
  89. <output id="opt_titlemsg" ref="/root/init/titlemsg" class="tit_2" appearance="output" style="left:0px; top:10px; width:250px; height:13px; text-align:left; ">세션이 종료되었습니다.</output>
  90. <line id="line1" class="line_1" style="x1:0px; y1:25px; x2:255; y2:25px; "/>
  91. <caption id="cap_oldpwd" class="cell_1" style="left:0px; top:30px; width:91px; height:23px; ">사용자</caption>
  92. <caption id="cap_pwd" class="cell_1" style="left:0px; top:54px; width:91px; height:23px; ">근무지 부서</caption>
  93. <caption id="cap_cnfmpwd" class="cell_1" style="left:0px; top:79px; width:91px; height:23px; ">비밀번호 입력</caption>
  94. <output id="sct_pwd" ref="/root/send/deptnm" class="output" maxlength="20" style="left:94px; top:55px; width:160px; height:19px; "/>
  95. <secret id="sct_cnfmpwd" ref="/root/send/pwd" class="secret_essential" navindex="1" maxlength="20" style="left:94px; top:80px; width:160px; height:19px; ">
  96. <script type="javascript" ev:event="onkeyup">
  97. <![CDATA[
  98. if( event.keyCode == 13 ) {
  99. model.setFocus("btn_confirm");
  100. btn_confirm.dispatch("DOMActivate");
  101. }
  102. ]]>
  103. </script>
  104. </secret>
  105. <line id="line3" class="line_2" style="x1:0px; y1:52px; x2:254px; y2:52px; "/>
  106. <line id="line2" class="line_2" style="x1:0px; y1:77px; x2:254px; y2:77px; "/>
  107. <line id="line6" class="line_3" style="x1:0px; y1:102px; x2:255; y2:102px; "/>
  108. <select1 id="cmb_userlist" ref="/root/send/usernm" appearance="minimal" itemcount="20" style="left:94px; top:31px; width:96px; height:19px; ">
  109. <choices>
  110. <itemset nodeset="/root/init/userinfo/userinfolist">
  111. <label ref="usernm"/>
  112. <value ref="userid"/>
  113. </itemset>
  114. </choices>
  115. <script type="javascript" ev:event="xforms-value-changed">
  116. <![CDATA[
  117. model.makeValue("/root/send/userid", model.getValue("/root/send/usernm"));
  118. ]]>
  119. </script>
  120. </select1>
  121. </group>
  122. <group id="grp_btn" scroll="auto" style="left:0px; top:103px; width:256; height:27px; ">
  123. <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:254; y2:0px; "/>
  124. <button id="btn_confirm" class="btn4_letter2" navindex="2" style="left:197px; top:5px; width:56px; height:22px; ">
  125. <caption>확인</caption>
  126. <script type="javascript" ev:event="DOMActivate">
  127. <![CDATA[
  128. // var Stir = "산";
  129. //
  130. //
  131. // var dsfgdg= escape(Stir);
  132. //
  133. //
  134. //
  135. // alert(dsfgdg);
  136. //
  137. //
  138. // u = Stir.charCodeAt(0);
  139. //
  140. // alert(u.toString(16));
  141. //
  142. //
  143. //
  144. //
  145. //
  146. //
  147. // //var convert_msg = Stir.getByte();
  148. // var convert_msg = Stir.getBytes("ISO-8859-1");
  149. //
  150. // for(i=0;i<convert_msg.length;i++){
  151. // var ttt = (convert_msg[i]).toString(16) + "_";
  152. // alert(ttt);
  153. //
  154. // }
  155. model.setValue("/root/main/valid","N");
  156. setForceOn();
  157. if (submit("TRZUM00401")) {
  158. var valid = model.getValue("/root/main/valid");
  159. //업무화면 필요시 사용자 로그인 암호 확인
  160. if(checkOpener()){
  161. opener.javascript.setParameter("pwdvalid", valid);
  162. }
  163. if (valid != "Y") {
  164. messageBox("암호가","E004");
  165. model.setFocus("sct_cnfmpwd");
  166. } else {
  167. // 암호 확인 OK
  168. if(model.getValue("/root/init/type") == "session"){
  169. // 암호 확인 OK, 최근 submit 시간 업데이트한다.
  170. setGlobalVariable("last_submit", (new Date()).getTime());
  171. }
  172. opener.model.setValue("/root/temp/loginid", model.getValue("/root/send/userid"));
  173. opener.model.makeValue("/root/temp/loginnm", model.getValue("/root/init/userinfo/userinfolist[userid='"+model.getValue("/root/send/userid")+"']/usernm"));
  174. //-------------
  175. window.close();
  176. }
  177. }
  178. ]]>
  179. </script>
  180. </button>
  181. </group>
  182. </xhtml:body>
  183. </xhtml:html>