report.xrw 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  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系统 >> 用户登录]]>
  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. </formData>
  17. </root>
  18. </instance>
  19. <script type="javascript" ev:event="xforms-ready">
  20. <![CDATA[
  21. model.setValue("/root/formData/searchInfo/REMOTE_ADDRESS", GetLocalIPAddress());
  22. window.showPopupMenu(false);
  23. find();
  24. ]]>
  25. </script>
  26. </model>
  27. <script type="javascript" src="../../js/boaCommon.js"/>
  28. <script type="javascript" src="../../js/boaMsg.js"/>
  29. <script type="javascript" src="../../js/mesCommon.js"/>
  30. <script type="javascript">
  31. <![CDATA[
  32. submitID = "report-service";
  33. function find() {
  34. exec("/root/formData/searchInfo", "", "find");
  35. if (Number(model.getXPathValue("count(/root/resData/ListResult_0_VO/ListResult_0_Row)")) < 1) {
  36. alert("登录用户名或密码错误!\n\n请与技术中心联系!");
  37. return;
  38. }
  39. if (model.getValue("/root/resData/ListResult_0_VO/ListResult_0_Row/LOCKED_YN") == "Y") {
  40. alert("该用户被锁定,不能登录!\n\n请与技术中心联系!");
  41. model.removenode("/root/resData");
  42. model.removenode("/root/reqData");
  43. return;
  44. }
  45. window.showIEMenu(false);
  46. window.load("./menu.xrw", "replace", "", "",
  47. "/root/resData/ListResult_0_VO/ListResult_0_Row", "root/initData/rcvInfo");
  48. }
  49. function GetLocalIPAddress() {
  50. var obj = null;
  51. var rslt = "";
  52. try {
  53. obj = new ActiveXObject("rcbdyctl.Setting");
  54. rslt = obj.GetIPAddress;
  55. obj = null;
  56. } catch(e) {}
  57. return rslt;
  58. }
  59. ]]>
  60. </script>
  61. </xhtml:head>
  62. <xhtml:body overflow="hidden" pagewidth="980" pageheight="703" guideline="1,1;" style="font-family:宋体; ">
  63. <img id="img2" src="../../images/background.jpg" style="left:40px; top:60px; width:900px; height:585px; background-stretch:stretch; "/>
  64. <input id="input1" ref="/root/formData/searchInfo/USER_CD" autonext="true" style="left:430px; top:296px; width:200px; height:24px; border-style:none; ">
  65. <script type="javascript" ev:event="onkeypress">
  66. <![CDATA[
  67. if (event.keyCode == 13) model.setFocus("secret1");
  68. ]]>
  69. </script>
  70. </input>
  71. <secret id="secret1" ref="/root/formData/searchInfo/USER_PW" imemode="disabled" style="left:430px; top:346px; width:200px; height:24px; border-style:none; ">
  72. <script type="javascript" ev:event="onkeypress">
  73. <![CDATA[
  74. if (event.keyCode == 13) {
  75. model.setFocus("input1");
  76. find();
  77. }
  78. ]]>
  79. </script>
  80. </secret>
  81. <button id="button1" style="left:387px; top:397px; width:73px; height:25px; background-color:transparent; border-style:none; ">
  82. <script type="javascript" ev:event="DOMActivate">
  83. <![CDATA[
  84. find();
  85. ]]>
  86. </script>
  87. <caption/>
  88. </button>
  89. <button id="button2" style="left:547px; top:397px; width:73px; height:25px; background-color:transparent; border-style:none; ">
  90. <caption/>
  91. <script type="javascript" ev:event="DOMActivate">
  92. <![CDATA[
  93. window.close();
  94. ]]>
  95. </script>
  96. </button>
  97. </xhtml:body>
  98. </xhtml:html>