88a7153af9afd46e573ec8d6cf12da8df7a1b834.svn-base 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  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. <startTime/>
  13. <endTime/>
  14. <UI/>
  15. <HEIGH>200</HEIGH>
  16. </formData>
  17. <datagrid1/>
  18. <InitUIName>
  19. <UIName_Row>
  20. <LABEL/>
  21. <VALUE/>
  22. </UIName_Row>
  23. </InitUIName>
  24. <searchInfo/>
  25. </root>
  26. </instance>
  27. <script type="javascript" ev:event="xforms-ready">
  28. <![CDATA[
  29. if(window.parent==null) Init();
  30. ]]>
  31. </script>
  32. </model>
  33. <script type="javascript" src="../../js/boaCommon.js"/>
  34. <script type="javascript" src="../../js/b01.js"/>
  35. <script type="javascript" src="../../js/mesCommon.js"/>
  36. <script type="javascript" src="../../js/boaMsg.js"/>
  37. <script type="javascript">
  38. <![CDATA[
  39. function Init(node)
  40. {
  41. model.removenode("/root/reqData");
  42. model.makeNode("/root/reqData");
  43. input1.value = commCurDate();
  44. input2.value = commCurDate();
  45. commSubmit("UIB016000-service" , "success" , "glueAction.do");
  46. model.copyNode("/root/InitUIName" , "/root/resData/UIName_VO");
  47. model.refresh();
  48. }
  49. function find()
  50. {
  51. model.removenode("/root/reqData");
  52. //需要用between..and查询,所以开始时间加四个零(以最小的开始),结束时间加四个9,以最大的结束
  53. model.makeNode("/root/reqData");
  54. commSendReq("/root/formData");
  55. commSubmit("UIB016000-service" , "find" , "glueAction.do");
  56. model.copyNode("/root/datagrid1" , "/root/resData/HistoryResult_VO");
  57. model.refresh();
  58. //查询时恢复默认设置
  59. for(var i = datagrid1.fixedRows; i < datagrid1.rows ; i++)
  60. {
  61. datagrid1.rowheight(i) = 21;
  62. }
  63. }
  64. function setHeight()
  65. {
  66. var height = model.getValue("/root/formData/HEIGH");
  67. if(height == 0) height = 20;
  68. for(var i = datagrid1.fixedRows; i < datagrid1.rows;i++)
  69. {
  70. if(i == datagrid1.row)
  71. {
  72. datagrid1.rowheight(i) = height;
  73. }
  74. else
  75. {
  76. datagrid1.rowheight(i) = 20;
  77. }
  78. }
  79. }
  80. function excelExport()
  81. {
  82. return datagrid1;
  83. }
  84. ]]>
  85. </script>
  86. </xhtml:head>
  87. <xhtml:body pagewidth="980" pageheight="620">
  88. <caption id="caption1" class="cell" style="left:205px; top:5px; width:95px; height:20px; border-color:#000000; border-style:solid; ">操作时间</caption>
  89. <input id="input1" ref="/root/formData/startTime" inputtype="date" style="left:300px; top:5px; width:100px; height:20px; border-color:#000000; border-style:solid; "/>
  90. <caption id="caption2" style="left:405px; top:10px; width:19px; height:20px; ">~</caption>
  91. <input id="input2" ref="/root/formData/endTime" inputtype="date" style="left:415px; top:5px; width:100px; height:20px; border-color:#000000; border-style:solid; "/>
  92. <line id="line3" style="x1:0px; y1:0px; x2:980px; y2:0px; "/>
  93. <line id="line2" style="x1:0px; y1:30px; x2:980px; y2:30px; "/>
  94. <datagrid id="datagrid1" nodeset="/root/datagrid1/HistoryResult_Row" caption="状态区分^界面ID^执行SQL^参数^操作时间^操作人" colsep="^" colwidth="38, 100, 350, 262, 100, 100" dataheight="21" defaultrows="40" explorerbar="sortshow" mergecellsfixedrows="bycolrec" multitotal="true" rowheader="seq" rowheight="40" rowsep="|" selectionmode="listbox" tooltip="label" style="left:0px; top:35px; width:975px; height:580px; ">
  95. <col disabled="true" ref="ACT_TP" type="combo" style="text-align:left; ">
  96. <choices>
  97. <item>
  98. <label>删除</label>
  99. <value>D</value>
  100. </item>
  101. <item>
  102. <label>更新</label>
  103. <value>U</value>
  104. </item>
  105. <item>
  106. <label>插入</label>
  107. <value>I</value>
  108. </item>
  109. </choices>
  110. </col>
  111. <col disabled="true" ref="INTFE_ID" type="combo" style="text-align:left; ">
  112. <choices>
  113. <itemset nodeset="/root/InitUIName/UIName_Row">
  114. <label ref="LABEL"/>
  115. <value ref="VALUE"/>
  116. </itemset>
  117. </choices>
  118. </col>
  119. <col editable="false" ref="ACT_SQL" type="input" style="text-align:left; "/>
  120. <col editable="false" ref="WHERE_PARAM" type="input" style="text-align:left; "/>
  121. <col ref="REG_DTIME" format="yyyy-mm-dd hh:nn:ss" style="text-align:left; "/>
  122. <col ref="REG_ID" style="text-align:left; "/>
  123. <script type="javascript" ev:event="onclick">
  124. <![CDATA[
  125. setHeight();
  126. ]]>
  127. </script>
  128. <script type="javascript" ev:event="onkeydown">
  129. <![CDATA[
  130. if(event.keyCode==38 || event.keyCode ==40)
  131. {
  132. setHeight();
  133. }
  134. ]]>
  135. </script>
  136. </datagrid>
  137. <caption id="caption3" class="cell" style="left:540px; top:5px; width:100px; height:20px; ">操作界面</caption>
  138. <select1 id="combo1" ref="/root/formData/UI" appearance="minimal" editmode="input" showvalue="true" style="left:640px; top:5px; width:230px; height:20px; ">
  139. <choices>
  140. <itemset nodeset="/root/InitUIName/UIName_Row">
  141. <label ref="LABEL"/>
  142. <value ref="VALUE"/>
  143. </itemset>
  144. </choices>
  145. </select1>
  146. <input id="input3" ref="/root/formData/HEIGH" style="left:80px; top:5px; width:100px; height:20px; "/>
  147. <caption id="caption4" class="cell" style="left:0px; top:5px; width:80px; height:20px; ">行宽设置</caption>
  148. </xhtml:body>
  149. </xhtml:html>