UIH02_SELECT_STL_GRD.xrw 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <?xml-stylesheet href="../../css/body.css" type="text/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/>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <radioData/>
  10. <storeValue/>
  11. <inputValue/>
  12. <resData/>
  13. <reqData/>
  14. </root>
  15. </instance>
  16. <script type="javascript" ev:event="xforms-ready">
  17. <![CDATA[
  18. //清空发送接点
  19. model.removenode("/root/reqData");
  20. model.makeNode("/root/reqData");
  21. //传入需要的条件,求出相关的钢卷瑕疵代码
  22. commSubmit("UIH010010-service","db","glueAction.do");
  23. //把返回的钢号代码放到相应的接点
  24. model1.duplicate("/root/radioData","/root/resData/STL_VO");
  25. model.refresh();
  26. ]]>
  27. </script>
  28. </model>
  29. <script type="javascript" src="../../js/boaMsg.js"/>
  30. <script type="javascript" src="../../js/boaCommon.js"/>
  31. </xhtml:head>
  32. <xhtml:body pagewidth="650" pageheight="500">
  33. <select1 id="radio1" ref="/root/storeValue" appearance="full" cellspacing="10" cols="5" direction="downacross" itemheight="25" itemwidth="135" rows="10" overflow="visible" style="left:20px; top:40px; width:620px; height:340px; border-style:none; ">
  34. <choices>
  35. <itemset nodeset="/root/radioData/STL_VO/STL_Row">
  36. <label ref="LABEL"/>
  37. <value ref="VALUE"/>
  38. </itemset>
  39. </choices>
  40. <script type="javascript" ev:event="onclick">
  41. <![CDATA[
  42. var radioValue = radio1.value;
  43. model.setValue("/root/inputValue",radioValue);
  44. model.refresh();
  45. ]]>
  46. </script>
  47. <script type="javascript" ev:event="ondblclick">
  48. <![CDATA[
  49. //这里双击选中的钢卷号,直接把钢号带入轧制标准页面
  50. var inputValue = input1.value;
  51. var opp1 = window.opener;
  52. opp1.model.setValue("/root/formData/STL_GRD",inputValue);
  53. opp1.model.refresh();
  54. window.close();
  55. ]]>
  56. </script>
  57. </select1>
  58. <caption id="caption2" class="cell" style="left:120px; top:15px; width:140px; height:23px; "/>
  59. <input id="input1" ref="/root/inputValue" style="left:122px; top:18px; width:136px; height:17px; "/>
  60. <caption id="caption3" class="cell" style="left:20px; top:15px; width:100px; height:23px; ">钢号</caption>
  61. <button id="button2" style="left:265px; top:18px; width:85px; height:20px; ">
  62. <caption>确定</caption>
  63. <script type="javascript" ev:event="DOMActivate">
  64. <![CDATA[
  65. var inputValue = input1.value;
  66. var opp1 = window.opener;
  67. opp1.model.setValue("/root/formData/STL_GRD",inputValue);
  68. opp1.model.refresh();
  69. window.close();
  70. ]]>
  71. </script>
  72. </button>
  73. </xhtml:body>
  74. </xhtml:html>