UIB010340.xrw 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  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>
  6. <![CDATA[品质设计>>品质设计>>订单标准录入现况]]>
  7. </xhtml:title>
  8. <model id="model1">
  9. <instance id="instance1">
  10. <root xmlns="">
  11. <formData>
  12. <ABBSYM/>
  13. <ROWNUM/>
  14. </formData>
  15. <comboData>
  16. </comboData>
  17. <initData/>
  18. <datagrid1/>
  19. <interface>
  20. <SPEC_ABBSYM/>
  21. <SPEC_STL_GRD/>
  22. </interface>
  23. </root>
  24. </instance>
  25. <script type="javascript" ev:event="xforms-ready">
  26. <![CDATA[
  27. if(window.parent==null) Init();
  28. ]]>
  29. </script>
  30. </model>
  31. <script type="javascript" src="../../js/boaCommon.js"/>
  32. <script type="javascript" src="../../js/b01.js"/>
  33. <script type="javascript">
  34. <![CDATA[
  35. var isInit = false;
  36. function Init(node)
  37. {
  38. InitParams(node);
  39. if(!isInit)
  40. {
  41. commSubmit("UIB010340-service", "find_spec", "glueAction.do");
  42. model.copyNode("/root/initData" , "/root/resData/ABBSYM_RESULTS_VO");
  43. model.refresh();
  44. combo1.select(0);
  45. isInit = true;
  46. }
  47. }
  48. function find()
  49. {
  50. model.removenode("/root/reqData");
  51. model.makeNode("/root/reqData");
  52. //查询前两个订单
  53. model.setValue("/root/formData/ROWNUM","2");
  54. commSendReq("/root/formData");
  55. commSubmit("UIB010340-service", "find", "glueAction.do");
  56. model.copyNode("/root/datagrid1","/root/resData/SPEC_STATUS_RESULTS_VO");
  57. model.refresh();
  58. setRowColor();
  59. }
  60. function setRowColor()
  61. {
  62. for(var i = 2;i < datagrid1.rows;i++)
  63. {
  64. var flag = datagrid1.valueMatrix(i,datagrid1.colRef("FLAG"));
  65. if(flag == "1")
  66. {
  67. datagrid1.rowStyle(i, "data", "background-color") = "#ffff99";
  68. }
  69. if(flag == "2")
  70. {
  71. datagrid1.rowStyle(i, "data", "background-color") = "#f56009";
  72. }
  73. }
  74. }
  75. ]]>
  76. </script>
  77. </xhtml:head>
  78. <xhtml:body pagewidth="980" pageheight="620" style="font-family:宋体; ">
  79. <caption id="caption1" class="cell" style="left:0px; top:5px; width:86px; height:20px; text-align:left; border-color:#000000; border-style:solid; ">·标准号</caption>
  80. <select1 id="combo1" ref="/root/formData/ABBSYM" appearance="minimal" editmode="input" showvalue="false" style="left:88px; top:5px; width:372px; height:20px; border-color:#000000; border-style:solid; ">
  81. <choices>
  82. <itemset nodeset="/root/initData/ABBSYM_RESULTS_Row">
  83. <label ref="LABEL"/>
  84. <value ref="VALUE"/>
  85. </itemset>
  86. </choices>
  87. </select1>
  88. <line id="line1" style="x1:0px; y1:0px; x2:980px; y2:0px; "/>
  89. <line id="line3" style="x1:0px; y1:30px; x2:980px; y2:30px; "/>
  90. <datagrid id="datagrid1" nodeset="/root/datagrid1/SPEC_STATUS_RESULTS_Row" allowuserresize="false" caption="标准号^标准钢号^是否有设计规格标准^是否有设计规格标准^是否有设计规格标准^是否有设计规格标准^接收的订单号^代码(隐)|标准号^标准钢号^标准成分^标准材质^标准交付条件^Design key^接收的订单号^代码(隐)" colsep="^" colwidth="245, 140, 60, 60, 60, 60, 100, 100" defaultrows="30" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowsep="|" selectionmode="free" style="left:0px; top:34px; width:980px; height:586px; border-color:#000000; border-style:solid; ">
  91. <col ref="SPEC_ABBSYM"/>
  92. <col ref="SPEC_STL_GRD"/>
  93. <col ref="SI"/>
  94. <col ref="SQ"/>
  95. <col ref="KD"/>
  96. <col ref="KP"/>
  97. <col editable="false" ref="ORD" type="inputbutton"/>
  98. <col ref="FLAG" visibility="hidden"/>
  99. <script type="javascript" ev:event="onbuttonclick">
  100. <![CDATA[
  101. if(datagrid1.valueMatrix(datagrid1.row,datagrid1.colRef("ORD")) == "")
  102. return;
  103. model.makeValue("/root/interface/SPEC_ABBSYM",datagrid1.valueMatrix(datagrid1.row,datagrid1.colRef("SPEC_ABBSYM")));
  104. model.makeValue("/root/interface/SPEC_STL_GRD",datagrid1.valueMatrix(datagrid1.row,datagrid1.colRef("SPEC_STL_GRD")));
  105. var vleft = window.screenLeft + window.width/2+150; //- 355;
  106. var vtop = window.screenTop + window.height/2- 150; //- 250;
  107. window.load("./_UIB010340.xrw",
  108. "modal",
  109. "",
  110. "left:"+vleft+"; top:"+vtop+"; width:310; height:410; sysmenu:visible; min:visible; max:true; resize:true; caption:hidden;",
  111. "/root/interface", "/root/initData");
  112. Init();
  113. ]]>
  114. </script>
  115. </datagrid>
  116. </xhtml:body>
  117. </xhtml:html>