87c79c96741dca570e9d7f9bb8825ddfc596d3cb.svn-base 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <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">
  3. <xhtml:head>
  4. <xhtml:title>
  5. <![CDATA[新余钢铁股份有限公司产销MES系统-II >> 用户登录]]>
  6. </xhtml:title>
  7. <model id="model1">
  8. <instance id="instance1">
  9. <root xmlns="">
  10. <formData>
  11. <searchInfo>
  12. <USER_CD/>
  13. <USER_PW/>
  14. <REMOTE_ADDRESS/>
  15. </searchInfo>
  16. <SystemProperty>true</SystemProperty>
  17. </formData>
  18. <tmpData>
  19. <USER_CD/>
  20. <USER_PW/>
  21. </tmpData>
  22. </root>
  23. </instance>
  24. <script type="javascript" ev:event="xforms-ready">
  25. <![CDATA[
  26. exec();
  27. model.setValue("/root/formData/searchInfo/REMOTE_ADDRESS", GetLocalIPAddress());
  28. model.removenode("/root/reqData");
  29. model.removenode("/root/resData");
  30. window.showPopupMenu(false);
  31. ]]>
  32. </script>
  33. </model>
  34. <script type="javascript" src="../../js/boaCommon.js"/>
  35. <script type="javascript" src="../../js/boaMsg.js"/>
  36. <script type="javascript" src="../../js/mesCommon.js"/>
  37. <script type="javascript">
  38. <![CDATA[
  39. submitID = "login-service";
  40. function find() {
  41. exec("/root/formData/searchInfo", "", "find");
  42. if (Number(model.getXPathValue("count(/root/resData/ListResult_0_VO/ListResult_0_Row)")) < 1) {
  43. alert("用户名或口令错误");
  44. return;
  45. }
  46. if (model.getValue("/root/resData/ListResult_0_VO/ListResult_0_Row/LOCKED_YN") == "Y") {
  47. alert("该用户被锁定,不能登录!\n\n请与管理员联系!");
  48. model.removenode("/root/resData");
  49. model.removenode("/root/reqData");
  50. return;
  51. }
  52. window.showIEMenu(false);
  53. window.load("./menu.xrw", "replace", "", "",
  54. "/root/resData/ListResult_0_VO/ListResult_0_Row", "root/initData/rcvInfo");
  55. }
  56. function GetLocalIPAddress() {
  57. var obj = null;
  58. var rslt = "";
  59. try {
  60. obj = new ActiveXObject("rcbdyctl.Setting");
  61. rslt = obj.GetIPAddress;
  62. obj = null;
  63. } catch(e) {}
  64. return rslt;
  65. }
  66. ]]>
  67. </script>
  68. </xhtml:head>
  69. <xhtml:body overflow="hidden" pagewidth="980" pageheight="703" guideline="1,1;" style="font-family:宋体; ">
  70. <img id="img2" src="../../images/background.jpg" style="left:40px; top:60px; width:900px; height:585px; background-stretch:stretch; "/>
  71. <input id="input1" ref="/root/formData/searchInfo/USER_CD" autonext="true" style="left:445px; top:296px; width:200px; height:24px; border-style:none; ">
  72. <script type="javascript" ev:event="onkeypress">
  73. <![CDATA[
  74. if (event.keyCode == 13) model.setFocus("secret1");
  75. ]]>
  76. </script>
  77. </input>
  78. <secret id="secret1" ref="/root/formData/searchInfo/USER_PW" imemode="disabled" style="left:445px; top:346px; width:200px; height:24px; border-style:none; ">
  79. <script type="javascript" ev:event="onkeypress">
  80. <![CDATA[
  81. if (event.keyCode == 13) {
  82. model.setFocus("input1");
  83. find();
  84. }
  85. ]]>
  86. </script>
  87. </secret>
  88. <button id="button1" style="left:387px; top:397px; width:73px; height:25px; background-color:transparent; border-style:none; ">
  89. <script type="javascript" ev:event="DOMActivate">
  90. <![CDATA[
  91. find();
  92. ]]>
  93. </script>
  94. <caption/>
  95. </button>
  96. <button id="button2" style="left:547px; top:397px; width:73px; height:25px; background-color:transparent; border-style:none; ">
  97. <caption/>
  98. <script type="javascript" ev:event="DOMActivate">
  99. <![CDATA[
  100. window.close();
  101. ]]>
  102. </script>
  103. </button>
  104. </xhtml:body>
  105. </xhtml:html>