UIG030043.xrw 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <?xml-stylesheet type="text/css" href="../../css/body.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. <formData>
  10. <ldNo/>
  11. <hkStart/>
  12. <hkEnd/>
  13. <hkStation>HK08</hkStation>
  14. <rowStatus>u</rowStatus>
  15. </formData>
  16. </root>
  17. </instance>
  18. <script type="javascript" ev:event="xforms-ready">
  19. <![CDATA[
  20. init();
  21. ]]>
  22. </script>
  23. </model>
  24. <script type="javascript">
  25. <![CDATA[
  26. function init(){
  27. var parentWindow = window.opener;
  28. var ldNo = parentWindow.model.getValue("/root/tempData");
  29. model.setValue("/root/formData/ldNo",ldNo);
  30. model.setValue("/root/formData/hkStart",CurentTime());
  31. input1.refresh();input2.refresh();
  32. }
  33. function save(){
  34. commSendReq("/root/formData");
  35. commSubmit("UIG03COMM-service","LdHkUpdate","glueAction.do");
  36. alert("操作成功");
  37. window.close();
  38. }
  39. ]]>
  40. </script>
  41. <script type="javascript" src="../../js/boaCommon.js"/>
  42. <script type="javascript" src="../../js/G02.js"/>
  43. </xhtml:head>
  44. <xhtml:body pagewidth="300" pageheight="200">
  45. <button id="button1" style="left:200px; top:20px; width:85px; height:20px; background-image:../../images/btn_save1.gif; ">
  46. <caption>保 存</caption>
  47. <script type="javascript" ev:event="DOMActivate">
  48. <![CDATA[
  49. save();
  50. ]]>
  51. </script>
  52. </button>
  53. <caption id="caption1" class="cell" style="left:40px; top:80px; width:95px; height:25px; font-weight:bold; border-color:#000000; ">烘烤开始时间</caption>
  54. <caption id="caption11" class="cell" style="left:40px; top:50px; width:95px; height:25px; font-weight:bold; border-color:#000000; ">钢包号</caption>
  55. <caption id="caption2" class="cell" style="left:40px; top:15px; width:95px; height:25px; font-weight:bold; border-color:#000000; ">烘烤情况</caption>
  56. <caption id="caption3" class="cell" style="left:40px; top:140px; width:95px; height:25px; font-weight:bold; border-color:#000000; ">烘烤站号</caption>
  57. <caption id="caption4" class="cell" style="left:40px; top:110px; width:95px; height:25px; font-weight:bold; border-color:#000000; ">烘烤结束时间</caption>
  58. <input id="input1" ref="/root/formData/ldNo" disabled="true" style="left:135px; top:50px; width:125px; height:25px; "/>
  59. <select1 id="combo6" ref="/root/formData/hkStation" appearance="minimal" style="left:135px; top:140px; width:125px; height:25px; ">
  60. <choices>
  61. <item>
  62. <label>1#烘烤站</label>
  63. <value>HK01</value>
  64. </item>
  65. <item>
  66. <label>2#烘烤站</label>
  67. <value>HK02</value>
  68. </item>
  69. <item>
  70. <label>3#烘烤站</label>
  71. <value>HK03</value>
  72. </item>
  73. <item>
  74. <label>4#烘烤站</label>
  75. <value>HK04</value>
  76. </item>
  77. <item>
  78. <label>5#烘烤站</label>
  79. <value>HK05</value>
  80. </item>
  81. <item>
  82. <label>6#烘烤站</label>
  83. <value>HK06</value>
  84. </item>
  85. <item>
  86. <label>7#烘烤站</label>
  87. <value>HK07</value>
  88. </item>
  89. <item>
  90. <label>8#烘烤站</label>
  91. <value>HK08</value>
  92. </item>
  93. </choices>
  94. </select1>
  95. <input id="input2" ref="/root/formData/hkStart" inputtype="date" format="yyyy-mm-dd hh:nn:ss" style="left:135px; top:80px; width:125px; height:25px; "/>
  96. <input id="input3" ref="/root/formData/hkEnd" inputtype="date" format="yyyy-mm-dd hh:nn:ss" style="left:135px; top:110px; width:125px; height:25px; ">
  97. <script type="javascript" ev:event="xforms-value-changed">
  98. <![CDATA[
  99. var tempStr = model.getValue("/root/formData/hkEnd").toString();
  100. var startTime = model.getValue("/root/formData/hkStart");
  101. if(tempStr.length == 8){
  102. var hkEndTime = tempStr + "" + startTime.substr(8,6)
  103. model.setValue("/root/formData/hkEnd",hkEndTime);
  104. input3.refresh();
  105. }
  106. ]]>
  107. </script>
  108. </input>
  109. </xhtml:body>
  110. </xhtml:html>