You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 line
1.1KB

  1. <html>
  2. <head>
  3. <meta http-equiv="Content-Type" content="text/html" ;>
  4. <meta charset="utf-8">
  5. <title>OA助手WPS用户名设置</title>
  6. <script type="text/javascript" src="js/common/enum.js"></script>
  7. <script type="text/javascript" src="js/common/common.js"></script>
  8. <script type="text/javascript">
  9. function changeUserName(){
  10. var l_Name = document.getElementById("txtUserName").value
  11. if (l_Name === "") {
  12. alert("请输入有效的用户名称");
  13. return;
  14. }
  15. wps.PluginStorage.setItem(constStrEnum.WPSInitUserName, l_Name);
  16. SetDocParamsValue(wps.WpsApplication().ActiveDocument,"userName",l_Name)
  17. pSetWPSAppUserName();
  18. wps.UpdateRibbon("btnUserName")
  19. //wps.WpsApplication().ActiveDocument.Activate();
  20. window.close();
  21. }
  22. </script>
  23. </head>
  24. <body>
  25. <p>请在下面输入WPS Office的用户名称:</p>
  26. <hr>
  27. <form method="POST" action="">
  28. <p>WPS用户名:<input type="text" id="txtUserName" size="20"></p>
  29. <p><input id="btnSet" type="button" value="确认" name="B1" onclick="changeUserName()"></p>
  30. </form>
  31. </body>
  32. </html>