f0d70d1595188f1c3cee4e2a7fdcf5fa5a03e443.svn-base 3.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  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>Untitle</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <GongXu>1</GongXu>
  10. <TcId/>
  11. <Table>
  12. <XuanZe/>
  13. </Table>
  14. </root>
  15. </instance>
  16. <script type="javascript" ev:event="xforms-ready">
  17. <![CDATA[
  18. Init();
  19. ]]>
  20. </script>
  21. </model>
  22. </xhtml:head>
  23. <xhtml:body>
  24. <button id="button1" style="left:655px; top:20px; width:100px; height:20px; font-family:宋体; font-size:11pt; font-weight:bold; background-image:../../images/btn_find.GIF; ">
  25. <caption>查询</caption>
  26. </button>
  27. <button id="button2" style="left:742px; top:20px; width:100px; height:20px; font-family:宋体; font-size:11pt; font-weight:bold; background-image:../../images/btn_save.GIF; ">
  28. <caption>保存</caption>
  29. </button>
  30. <button id="button3" style="left:829px; top:20px; width:100px; height:20px; font-family:宋体; font-size:11pt; font-weight:bold; background-image:../../images/btn_exit.GIF; ">
  31. <caption>关闭</caption>
  32. <script type="javascript" ev:event="onclick">
  33. <![CDATA[
  34. window.close();//关闭窗口
  35. ]]>
  36. </script>
  37. </button>
  38. <button id="button4" style="left:830px; top:50px; width:100px; height:20px; font-family:宋体; font-size:11pt; font-weight:bold; background-image:../../images/btn_save.GIF; ">
  39. <caption>发送</caption>
  40. </button>
  41. <select1 id="combo1" ref="/root/GongXu" appearance="minimal" style="left:126px; top:50px; width:100px; height:20px; ">
  42. <choices>
  43. <item>
  44. <label>--全部--</label>
  45. <value>1</value>
  46. </item>
  47. <item>
  48. <label>炼钢</label>
  49. <value>2</value>
  50. </item>
  51. <item>
  52. <label>热轧</label>
  53. <value>3</value>
  54. </item>
  55. </choices>
  56. </select1>
  57. <script type="javascript">
  58. <![CDATA[
  59. function Init(node)
  60. {
  61. datagrid1.fixedcellcheckbox(1,datagrid1.colRef("CHK"))=true;//设置第0行的checkbox的属性为true 便于进行全选操作
  62. datagrid1.colStatus(0)=false; //设置第0列也即为checkbox所在列的列状态为false。
  63. model.duplicate("/root/initResult","/root/resData");//复制结点
  64. model.refresh();
  65. }
  66. ]]>
  67. </script>
  68. <input id="input1" ref="/root/TcId" format="999999-9999999" style="left:326px; top:50px; width:100px; height:20px; "/>
  69. <datagrid id="datagrid1" nodeset="/root/Table/XuanZe" backcoloralternate="#eaf4fe" caption="选择^TRANSACTION ID^TRANSACTION DESC^DATA|^TRANSACTION ID^TRANSACTION DESC^DATA" colwidth="38, 144, 154, 100" defaultrows="10" mergecellsfixedrows="bycolrec" rowsep="|" colsep="^" style="left:35px; top:75px; width:860px; height:485px; font-family:宋体; font-size:11pt; ">
  70. <col ref="CHK" type="checkbox"/>
  71. <col/>
  72. <col/>
  73. <col/>
  74. </datagrid>
  75. <button id="button5" style="left:620px; top:55px; width:100px; height:20px; background-image:../../images/btn_save.GIF; ">
  76. <caption>添加行</caption>
  77. <script type="javascript" ev:event="onclick">
  78. <![CDATA[
  79. datagrid1.addrow();
  80. ]]>
  81. </script>
  82. </button>
  83. <button id="button6" style="left:695px; top:55px; width:100px; height:20px; background-image:../../images/btn_save.GIF; ">
  84. <caption>删除行</caption>
  85. <script type="javascript" ev:event="onclick">
  86. <![CDATA[
  87. datagrid1.removerow();
  88. ]]>
  89. </script>
  90. </button>
  91. <caption id="caption3" class="cell" style="left:35px; top:50px; width:90px; height:20px; font-weight:bold; text-align:center; border-color:#000000; border-style:solid; ">工序</caption>
  92. <caption id="caption1" class="cell" style="left:235px; top:50px; width:90px; height:20px; font-weight:bold; text-align:center; border-color:#000000; border-style:solid; ">TC ID</caption>
  93. </xhtml:body>
  94. </xhtml:html>