_020240COIL.xrw 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  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. <ordNo/>
  11. <coilNo/>
  12. </formData>
  13. <ordGrid/>
  14. <coilGrid/>
  15. <dd/>
  16. </root>
  17. </instance>
  18. <script type="javascript" ev:event="xforms-ready">
  19. <![CDATA[
  20. input3.value = cPage;//显示出当前为第几页
  21. ]]>
  22. </script>
  23. </model>
  24. <script type="javascript" src="../../js/boaCommon.js"/>
  25. <script type="javascript" src="../../js/b01.js"/>
  26. <script type="javascript">
  27. <![CDATA[
  28. var ope = window.opener;//获得父窗口对象
  29. var cPage = 1;//当前行
  30. function findCoil()//获取订单所对应的钢卷号的信息
  31. {
  32. model.removenode("/root/reqData");
  33. model.makeValue("/root/reqData/COILNO" , input1.value.Trim()+"%");//订单号
  34. commSubmit("UIB020240-service" , "findCoil" , "glueAction.do");
  35. model.copyNode("/root/coilGrid" , "/root/resData/CoilResult_VO");
  36. datagrid2.refresh();
  37. }
  38. ]]>
  39. </script>
  40. </xhtml:head>
  41. <xhtml:body pagewidth="450" pageheight="600">
  42. <caption id="caption1" class="cell" style="left:20px; top:5px; width:60px; height:20px; text-align:center; ">订单号</caption>
  43. <datagrid id="datagrid1" nodeset="/root/ordGrid/initORD_Row" caption="选择^订单号^公司名称" colsep="^" colwidth="51, 127, 100" defaultrows="20" mergecellsfixedrows="bycolrec" rowsep="|" tooltip="true" style="left:20px; top:25px; width:355px; height:275px; ">
  44. <col checkvalue="Y,N" ref="CHK" type="radio"/>
  45. <col editable="false" ref="ORDNO" type="input"/>
  46. <col editable="false" ref="CUST_NM" type="input"/>
  47. <script type="javascript" ev:event="onclick">
  48. <![CDATA[
  49. if(datagrid1.row < 1)
  50. return;
  51. datagrid1.editCell();
  52. input1.value = datagrid1.valueMatrix(datagrid1.row , 1);//返回订单信息到输入框中
  53. if(datagrid1.valueMatrix(datagrid1.row , 0)=="Y")
  54. {
  55. findCoil();//查询订单所对应的钢卷号
  56. }
  57. ]]>
  58. </script>
  59. </datagrid>
  60. <input id="input1" ref="/root/formData/ordNo" style="left:80px; top:5px; width:100px; height:20px; ">
  61. <script type="javascript" ev:event="onkeydown">
  62. <![CDATA[
  63. if(event.keyCode==13)//若回车时
  64. {
  65. findCoil();
  66. }
  67. ]]>
  68. </script>
  69. </input>
  70. <button id="button1" style="left:185px; top:5px; width:65px; height:20px; background-image:..\..\images\btn_move.GIF; ">
  71. <caption>上一页</caption>
  72. <script type="javascript" ev:event="DOMActivate">
  73. <![CDATA[
  74. if(cPage==1) return;//若当前页为第一页,则返回
  75. model.removenode("/root/reqData");
  76. cPage = cPage -1;
  77. model.makeValue("/root/reqData/curPageNum" , cPage);//上一页
  78. model.makeValue("/root/reqData/pageEvent" , "X");//表需要分页
  79. commSubmit("UIB020240-service" , "findOrd" , "glueAction.do");
  80. model.copyNode("/root/ordGrid" , "/root/resData/initORD_VO");
  81. input3.value = cPage;//显示出当前为第几页
  82. model.refresh();
  83. ]]>
  84. </script>
  85. </button>
  86. <button id="button2" style="left:250px; top:5px; width:60px; height:20px; background-image:..\..\images\btn_add.GIF; ">
  87. <caption>下一页</caption>
  88. <script type="javascript" ev:event="onclick">
  89. <![CDATA[
  90. model.removenode("/root/reqData");
  91. cPage = cPage + 1;
  92. model.makeValue("/root/reqData/curPageNum" , cPage);//上一页
  93. model.makeValue("/root/reqData/pageEvent" , "X");//表需要分页
  94. commSubmit("UIB020240-service" , "findOrd" , "glueAction.do");
  95. model.copyNode("/root/ordGrid" , "/root/resData/initORD_VO");
  96. input3.value = cPage;//显示出当前为第几页
  97. model.refresh();
  98. ]]>
  99. </script>
  100. </button>
  101. <caption id="caption2" class="cell" style="left:20px; top:305px; width:80px; height:20px; ">钢卷号选择</caption>
  102. <input id="input2" ref="/root/formData/coilNo" style="left:100px; top:305px; width:100px; height:20px; "/>
  103. <datagrid id="datagrid2" nodeset="/root/coilGrid/CoilResult_Row" caption="选择^钢卷号^综合判定等级" colsep="^" colwidth="49, 150, 100" defaultrows="20" mergecellsfixedrows="bycolrec" rowsep="|" tooltip="true" style="left:20px; top:325px; width:350px; height:260px; ">
  104. <col checkvalue="Y,N" type="radio"/>
  105. <col editable="false" ref="COIL_NO" type="input"/>
  106. <col editable="false" ref="TOT_DEC_GRD" type="input"/>
  107. <script type="javascript" ev:event="onclick">
  108. <![CDATA[
  109. if(datagrid2.valueMatrix(datagrid2.row , 0)=="Y")
  110. {
  111. input2.value = datagrid2.valueMatrix(datagrid2.row , 1);//返回钢卷号到输入框中
  112. }
  113. ]]>
  114. </script>
  115. </datagrid>
  116. <button id="button3" style="left:295px; top:305px; width:80px; height:20px; background-image:D:\Workspace\MESSpace\xgmes3\WebContents\images\find.GIF; ">
  117. <caption>选择</caption>
  118. <script type="javascript" ev:event="onclick">
  119. <![CDATA[
  120. window.close();
  121. ope.input2.value = input2.value;
  122. ]]>
  123. </script>
  124. </button>
  125. <caption id="caption3" class="cell" style="left:310px; top:5px; width:70px; height:20px; ">第 页</caption>
  126. <input id="input3" ref="/root/dd" style="left:330px; top:5px; width:30px; height:20px; text-align:center; "/>
  127. </xhtml:body>
  128. </xhtml:html>