357310e54a2efa32aad18088bf67771616f6f5ba.svn-base 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <?xml-stylesheet type="text/css" href="../../css/body.css" ?>
  3. <?xml-stylesheet type="text/css" href="../css/bCommon.css" ?>
  4. <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">
  5. <xhtml:head>
  6. <xhtml:title>
  7. <![CDATA[统计管理>>现况分析>>热连轧品质统计月报]]>
  8. </xhtml:title>
  9. <model id="model1">
  10. <instance id="instance1">
  11. <root xmlns="">
  12. <formData>
  13. <STDATE/>
  14. <ENDDATE/>
  15. </formData>
  16. <reqData/>
  17. <resData/>
  18. <datagrid1/>
  19. <comboData>
  20. <Charge/>
  21. <StlGrd/>
  22. </comboData>
  23. <headLine>
  24. <SlabResult_VO>
  25. <SlabResult_Row>
  26. <ROWNUM>热连轧厂生产检验班报表</ROWNUM>
  27. <SLAB_NO/>
  28. <SLAB_THK/>
  29. <SLAB_WTH/>
  30. <SLAB_LEN/>
  31. <SLAB_WGT/>
  32. <STL_GRD/>
  33. <CRK_CD1/>
  34. <EXTSHAPE_DEC_DTIME/>
  35. <EXTSHAPE_DEC_EMP_ID/>
  36. <GR_SHIFT/>
  37. <GR_GROUP/>
  38. </SlabResult_Row>
  39. <SlabResult_Row>
  40. <ROWNUM>日期</ROWNUM>
  41. <SLAB_NO/>
  42. <SLAB_THK/>
  43. <SLAB_WTH/>
  44. <SLAB_LEN/>
  45. <SLAB_WGT/>
  46. <STL_GRD/>
  47. <CRK_CD1/>
  48. <EXTSHAPE_DEC_DTIME/>
  49. <EXTSHAPE_DEC_EMP_ID/>
  50. <GR_SHIFT/>
  51. <GR_GROUP>班组 &amp; 班次</GR_GROUP>
  52. </SlabResult_Row>
  53. </SlabResult_VO>
  54. </headLine>
  55. <subTitle>
  56. <SlabResult_VO>
  57. <SlabResult_Row>
  58. <ROWNUM>序号</ROWNUM>
  59. <SLAB_NO>板坯号</SLAB_NO>
  60. <SLAB_THK>厚度</SLAB_THK>
  61. <SLAB_WTH>宽度</SLAB_WTH>
  62. <SLAB_LEN>长度</SLAB_LEN>
  63. <SLAB_WGT>重量(吨)</SLAB_WGT>
  64. <STL_GRD>钢号</STL_GRD>
  65. <CRK_CD1>不合格类别</CRK_CD1>
  66. <EXTSHAPE_DEC_DTIME>板坯判定日</EXTSHAPE_DEC_DTIME>
  67. <EXTSHAPE_DEC_EMP_ID>板坯判定人</EXTSHAPE_DEC_EMP_ID>
  68. <GR_SHIFT>检验班次</GR_SHIFT>
  69. <GR_GROUP>检验班组</GR_GROUP>
  70. </SlabResult_Row>
  71. </SlabResult_VO>
  72. </subTitle>
  73. <CNT>
  74. <YL/>
  75. <JY/>
  76. <FY/>
  77. <HG/>
  78. <PZ/>
  79. <FJ/>
  80. </CNT>
  81. </root>
  82. </instance>
  83. <script type="javascript" ev:event="xforms-ready">
  84. <![CDATA[
  85. if(window.parent==null) Init();
  86. ]]>
  87. </script>
  88. </model>
  89. <script type="javascript" src="../../js/boaCommon.js"/>
  90. <script type="javascript" src="../../js/b01.js"/>
  91. <script type="javascript">
  92. <![CDATA[
  93. function Init(node)
  94. {
  95. input1.value = commCurDate();
  96. input2.value = commCurDate();
  97. /*model.removenode("/root/reqData");
  98. model.makeNode("/root/reqData");
  99. commSubmit("UIB020310-service", "findC", "glueAction.do");
  100. model.copyNode("/root/comboData/Charge","/root/resData/ChargeResult_VO");
  101. model.copyNode("/root/comboData/StlGrd","/root/resData/StlGrdResult_VO");
  102. model.makeValue("/root/formData/StDate",model.getValue("/root/resData/DateResult_VO/DateResult_Row/F_DATE"));
  103. model.makeValue("/root/formData/EndDate",model.getValue("/root/resData/DateResult_VO/DateResult_Row/T_DATE"));
  104. model.refresh();*/
  105. }
  106. function find()
  107. {
  108. model.removenode("/root/reqData");
  109. model.makeNode("/root/reqData");
  110. commSendReq("/root/formData");
  111. commSubmit("UIB030040-service", "success", "glueAction.do");
  112. model.copyNode("/root/datagrid1" , "/root/resData/ListResult_0_VO");
  113. model.refresh();
  114. add();
  115. }
  116. function add()
  117. {
  118. var YL = 0;
  119. var JY = 0;
  120. var FY = 0;
  121. var HG = 0;
  122. var PZ = 0;
  123. var FJ = 0;
  124. for(var i = 2;i<datagrid1.rows;i++)
  125. {
  126. YL = YL + parseInt(datagrid1.valueMatrix(i,datagrid1.colRef("SLAB_WGT"))== null?0:datagrid1.valueMatrix(i,datagrid1.colRef("SLAB_WGT"))*1000);
  127. JY = JY + parseInt(datagrid1.valueMatrix(i,datagrid1.colRef("JYL"))== null?0:datagrid1.valueMatrix(i,datagrid1.colRef("JYL"))*1000);
  128. FY = FY + parseInt(datagrid1.valueMatrix(i,datagrid1.colRef("FYL"))== null?0:datagrid1.valueMatrix(i,datagrid1.colRef("FYL"))*1000);
  129. HG = HG + parseInt(datagrid1.valueMatrix(i,datagrid1.colRef("HGL"))== null?0:datagrid1.valueMatrix(i,datagrid1.colRef("HGL"))*1000);
  130. PZ = PZ + parseInt(datagrid1.valueMatrix(i,datagrid1.colRef("PZL"))== null?0:datagrid1.valueMatrix(i,datagrid1.colRef("PZL"))*1000);
  131. FJ = FJ + parseInt(datagrid1.valueMatrix(i,datagrid1.colRef("FJH"))== null?0:datagrid1.valueMatrix(i,datagrid1.colRef("FJH"))*1000);
  132. }
  133. //alert((YL/1000).toFixed(3));
  134. //alert((JY/1000).toFixed(3));
  135. //alert((FY/1000).toFixed(3));
  136. //alert((HG/1000).toFixed(3));
  137. //alert((PZ/1000).toFixed(3));
  138. model.makeValue("/root/CNT/YL",(YL/1000).toFixed(3));
  139. model.makeValue("/root/CNT/JY",(JY/1000).toFixed(3));
  140. model.makeValue("/root/CNT/FY",(FY/1000).toFixed(3));
  141. model.makeValue("/root/CNT/HG",(HG/1000).toFixed(3));
  142. model.makeValue("/root/CNT/PZ",(PZ/1000).toFixed(3));
  143. model.makeValue("/root/CNT/FJ",(FJ/1000).toFixed(3));
  144. model.refresh();
  145. }
  146. function excelExport()
  147. {
  148. saveExcelScript(datagrid1, "Sheet1");
  149. }
  150. function saveExcelScript(sDGridName, sExcelSheetName, saveType) {
  151. var sExcelName = window.fileDialog( "save", "", false, "SaveFileName", "xls", "Excel Files(*.xls)|*.xls" );
  152. if ( sExcelName == "" ) {
  153. return;
  154. }
  155. // var sCSVName = "C:\\TFSmartUpdater\\" + sExcelName.lastIndexOf(".") +".csv";
  156. var sCSVName = sExcelName +".csv";
  157. // alert("sExcelName = ["+ sExcelName +"]\nsCSVName = ["+ sCSVName + "]");
  158. eval(sDGridName).saveText(sCSVName, "\n", ",", '\:', true);
  159. ObjTFExcel.launchNewInstance(0); //Execute EXCEL
  160. ObjTFExcel.createWorkbook(); //Create new Workbook(for example:Sheet1,Sheet2,Sheet3) -- createWorkBook(Excel-TemplateFile)
  161. ObjTFExcel.loadCSV(sCSVName); //Loading Contents, from CSV to Excel
  162. //Setting up EXCEL Layout.
  163. var nRows = sDGridName.rows - 1;
  164. var nCols = sDGridName.cols;
  165. //All of the range
  166. ObjTFExcel.fontcolor( 01, 01, nRows, nCols ) = "#000000" ;
  167. ObjTFExcel.font ( 01, 01, nRows, nCols ) = "SimSun" ;
  168. //Header
  169. //Line 1 : Sheet Title
  170. ObjTFExcel.rowheight( 01 ) = 30 ;
  171. ObjTFExcel.bold ( 01, 01, 01, nCols ) = true ;
  172. ObjTFExcel.fontsize ( 01, 01, 01, nCols ) = 14 ;
  173. ObjTFExcel.underline( 01, 01, 01, nCols ) = 3 ;
  174. ObjTFExcel.halign ( 01, 01, 01, nCols ) ="center" ;
  175. ObjTFExcel.valign ( 01, 01, 01, nCols ) ="top" ;
  176. ObjTFExcel.mergeCell( 01, 01, 01, nCols ) ;
  177. // ObjTFExcel.colwidth ( 01 ) = 100 ;
  178. //Line 2 : Date
  179. ObjTFExcel.rowheight( 02 ) = 18 ;
  180. ObjTFExcel.bold ( 02, 01, 02, 01 ) = true ;
  181. ObjTFExcel.fontsize ( 02, 01, 02, 01 ) = 9 ;
  182. ObjTFExcel.underline( 02, 01, 02, 01 ) = 0 ;
  183. ObjTFExcel.halign ( 02, 01, 02, 01 ) ="left" ;
  184. ObjTFExcel.valign ( 02, 01, 02, 01 ) ="middle" ;
  185. ObjTFExcel.mergeCell( 02, 01, 02, 03 ) ;
  186. // ObjTFExcel.colwidth ( 01 ) = 100 ;
  187. //Line 2 : Work-Group & Work-Part
  188. ObjTFExcel.rowHeight( 02 ) = 18 ;
  189. ObjTFExcel.bold ( 02, nCols - 2, 02, nCols ) = true ;
  190. ObjTFExcel.fontsize ( 02, nCols - 2, 02, nCols ) = 9 ;
  191. ObjTFExcel.underline( 02, nCols - 2, 02, nCols ) = 0 ;
  192. ObjTFExcel.halign ( 02, nCols - 2, 02, nCols ) ="right" ;
  193. ObjTFExcel.valign ( 02, nCols - 2, 02, nCols ) ="middle" ;
  194. ObjTFExcel.mergeCell( 02, nCols - 2, 02, nCols ) ;
  195. // ObjTFExcel.colwidth ( 01 ) = 100 ;
  196. //Query-Results Data
  197. var iRow = 3; // Header Line + 1;
  198. // ObjTFExcel.cellBgColor (iRow, 01, iRow , nCols ) = "#EEEEEE"; // Undefined...
  199. ObjTFExcel.setBorderColor(iRow, 01, nRows, nCols, "#000000");
  200. for(var i = 3; i <= nRows; i++ ) {
  201. ObjTFExcel.rowHeight( i ) = 18;
  202. }
  203. ObjTFExcel.bold (iRow, 01, nRows, nCols ) = false ;
  204. ObjTFExcel.fontsize (iRow, 01, nRows, nCols ) = 9 ;
  205. ObjTFExcel.underline(iRow, 01, nRows, nCols ) = 0 ;
  206. ObjTFExcel.valign (iRow, 01, nRows, nCols ) ="middle" ;
  207. ObjTFExcel.halign (iRow, 01, nRows, 01 ) ="center" ; //序号
  208. ObjTFExcel.colwidth ( 01 ) = 8 ;
  209. ObjTFExcel.halign (iRow, 02, nRows, 02 ) ="left" ; //板坯号
  210. ObjTFExcel.colwidth ( 02 ) = 20 ;
  211. ObjTFExcel.halign (iRow, 03, nRows, 03 ) ="left" ; //厚度
  212. ObjTFExcel.colwidth ( 03 ) = 20 ;
  213. ObjTFExcel.halign (iRow, 04, nRows, 04 ) ="left" ; //宽度
  214. ObjTFExcel.colwidth ( 04 ) = 20 ;
  215. ObjTFExcel.halign (iRow, 05, nRows, 05 ) ="left" ; //长度
  216. ObjTFExcel.colwidth ( 05 ) = 20 ;
  217. ObjTFExcel.halign (iRow, 06, nRows, 06 ) ="left" ; //重量(吨)
  218. ObjTFExcel.colwidth ( 06 ) = 20 ;
  219. ObjTFExcel.halign (iRow, 07, nRows, 07 ) ="left" ; //钢号
  220. ObjTFExcel.colwidth ( 07 ) = 20 ;
  221. ObjTFExcel.halign (iRow, 08, nRows, 08 ) ="center" ; //不合格类别
  222. ObjTFExcel.colwidth ( 08 ) = 12 ;
  223. ObjTFExcel.halign (iRow, 09, nRows, 09 ) ="right" ; //板坯判定日
  224. ObjTFExcel.colwidth ( 09 ) = 20 ;
  225. ObjTFExcel.setFormat(iRow, 09, nRows, 09, "yyyy\"-\"mm\"-\"dd\"\" hh\":\"mm\":\"ss\"\";@");
  226. ObjTFExcel.halign (iRow, 10, nRows, 10 ) ="center" ; //板坯判定人
  227. ObjTFExcel.colwidth ( 10 ) = 10 ;
  228. ObjTFExcel.halign (iRow, 11, nRows, 11 ) ="left" ; //检验班次
  229. ObjTFExcel.colwidth ( 11 ) = 8 ;
  230. ObjTFExcel.halign (iRow, 12, nRows, 12 ) ="right" ; //检验班组
  231. ObjTFExcel.colwidth ( 12 ) = 8 ;
  232. /*ObjTFExcel.halign (iRow, 13, nRows, 13 ) ="left" ; //最终修改人
  233. ObjTFExcel.colwidth ( 13 ) = 12 ;
  234. ObjTFExcel.halign (iRow, 14, nRows, 14 ) ="center" ; //最终修改时间
  235. ObjTFExcel.colwidth ( 14 ) = 20 ;
  236. ObjTFExcel.setFormat(iRow, 14, nRows, 14, "yyyy\"-\"mm\"-\"dd\"\" hh\":\"mm\":\"ss\"\";@");
  237. */
  238. ObjTFExcel.sheetName(1) = sExcelSheetName;
  239. ObjTFExcel.save(sExcelName); //Saving EXCEL
  240. ObjTFExcel.close(); //Closing EXCEL. (You must be closed EXCEL !!!)
  241. window.exec("EXCEL.EXE", sExcelName); //Openning EXCEL
  242. }
  243. ]]>
  244. </script>
  245. </xhtml:head>
  246. <xhtml:body pagewidth="980" pageheight="620">
  247. <caption id="caption4" class="cell" style="left:0px; top:5px; width:80px; height:20px; border-color:#000000; border-style:solid; ">日期</caption>
  248. <line id="line1" style="x1:0px; y1:0px; x2:980px; y2:0px; "/>
  249. <line id="line3" style="x1:0px; y1:30px; x2:980px; y2:30px; "/>
  250. <datagrid id="datagrid1" nodeset="/root/datagrid1/ListResult_0_Row" allowuserresize="true" caption="产地^规格^计划牌号^判定牌号^原料^检验量^复样量^成材率^合格量^品种量^非计划^工艺次^工艺次^工艺次^工艺次^工艺次^工艺次^工艺次^工艺次^工艺次^工艺次^工艺次^工艺次^工艺次^工艺次^工艺次^工艺次^工艺次^工艺次^工艺次^工艺次^工艺次^工艺次^钢质次^钢质次^钢质次^钢质次^钢质次^钢质次^钢质次^钢质改判^钢质改判^钢质改判^钢质改判^钢质改判^钢质改判^钢质改判^钢质改判^钢质改判^工艺改判^工艺改判^工艺改判^工艺改判^工艺改判^工艺改判^工艺改判^工艺改判^工艺改判^工艺改判^工艺改判^工艺改判^工艺改判^工艺改判^工艺改判^工艺改判^工艺改判^工艺改判^工艺改判^工艺改判^工艺改判^工艺改判|产地^规格^计划牌号^判定牌号^原料^检验量^复样量^成材率^合格量^品种量^非计划^凸度^浪形^辊印^压痕^划伤^凸块^异物压入^光亮带^重量不良^厚度不良^宽度不良^边损^楔形^麻点^卷形不良^折叠^塔形^不平度^性能次^废品^其他^累计^夹杂^裂纹^凹坑^分层^气泡^其它^累计^气泡^分层^夹杂^边裂^凹坑^横裂^纵裂^其它^累计^凸度^浪形^辊印^压痕^划伤^凸块^异物压入^光亮带^重量不良^厚度不良^宽度不良^边损^楔形^麻点^卷形不良^折叠^塔形^不平度^降级^废品^其他^累计" colsep="^" colwidth="70, 50, 64, 64, 50, 50, 62, 56, 50, 50, 50, 51, 50, 50, 50, 50, 59, 63, 61, 69, 78, 84, 51, 60, 50, 67, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 71, 66, 76, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50" defaultrows="30" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowsep="|" selectionmode="free" style="left:0px; top:60px; width:980px; height:560px; border-color:#000000; border-style:solid; ">
  251. <col ref="CD"/>
  252. <col ref="COIL_THK"/>
  253. <col ref="SPEC_STL_GRD"/>
  254. <col ref="SPEC_STL_GRD1"/>
  255. <col ref="SLAB_WGT"/>
  256. <col ref="JYL" visibility="hidden"/>
  257. <col ref="FYL"/>
  258. <col ref="CCL" visibility="hidden"/>
  259. <col ref="HGL"/>
  260. <col ref="PZL"/>
  261. <col ref="FJH"/>
  262. <col ref="GYC_TUDU"/>
  263. <col ref="GYC_LANGXING"/>
  264. <col ref="GYC_GUNYIN"/>
  265. <col ref="GYC_YAHENG"/>
  266. <col ref="GYC_HUASHANG"/>
  267. <col ref="GYC_TUKUAI"/>
  268. <col ref="GYC_YIWU"/>
  269. <col ref="GYC_GUANGLIANG"/>
  270. <col ref="GYC_ZHONGLIANG"/>
  271. <col ref="GYC_HOUDU"/>
  272. <col ref="GYC_KUANDU"/>
  273. <col ref="GYC_BIANSUN"/>
  274. <col ref="GYC_XIEXING"/>
  275. <col ref="GYC_MADIAN"/>
  276. <col ref="GYC_JUANXING"/>
  277. <col ref="GYC_ZHEDIE"/>
  278. <col ref="GYC_TAXING"/>
  279. <col ref="GYC_BUPING"/>
  280. <col ref="GYC_XINGNENG"/>
  281. <col ref="GYC_FEIPIN"/>
  282. <col ref="GYC_QITA"/>
  283. <col ref="GYC_LEIJI"/>
  284. <col ref="GZC_JIAZA"/>
  285. <col ref="GZC_LIEHEN"/>
  286. <col ref="GZC_AOKENG"/>
  287. <col ref="GZC_FENCENG"/>
  288. <col ref="GZC_QIPAO"/>
  289. <col ref="GZC_QITA"/>
  290. <col ref="GZC_LEIJI"/>
  291. <col ref="GZGP_QIPAO"/>
  292. <col ref="GZGP_FENCENG"/>
  293. <col ref="GZGP_JIAZA"/>
  294. <col ref="GZGP_BIANLIE"/>
  295. <col ref="GZGP_AOKENG"/>
  296. <col ref="GZGP_HENGLIE"/>
  297. <col ref="GZGP_ZONGLIE"/>
  298. <col ref="GZGP_QITA"/>
  299. <col ref="GZGP_LEIJI"/>
  300. <col ref="GYGP_TUDU"/>
  301. <col ref="GYGP_LANGXING"/>
  302. <col ref="GYGP_GUNYIN"/>
  303. <col ref="GYGP_YAHENG"/>
  304. <col ref="GYGP_HUASHANG"/>
  305. <col ref="GYGP_TUKUAI"/>
  306. <col ref="GYGP_YIWU"/>
  307. <col ref="GYGP_GUANGLIANG"/>
  308. <col ref="GYGP_ZHONGLIANG"/>
  309. <col ref="GYGP_HOUDU"/>
  310. <col ref="GYGP_HOUDU"/>
  311. <col ref="GYGP_BIANSUN"/>
  312. <col ref="GYGP_XIEXING"/>
  313. <col ref="GYGP_MADIAN"/>
  314. <col ref="GYGP_JUANXING"/>
  315. <col ref="GYGP_ZHEDIE"/>
  316. <col ref="GYGP_TAXING"/>
  317. <col ref="GYGP_BUPING"/>
  318. <col ref="GYGP_XINGNENG"/>
  319. <col ref="GYGP_FEIPIN"/>
  320. <col ref="GYGP_QITA"/>
  321. <col ref="GYGP_LEIJI"/>
  322. </datagrid>
  323. <object id="ObjTFExcel" clsid="{fe8d1001-6a9d-424d-ae2a-301493bb12da}" style="left:820px; top:5px; width:1px; height:1px; "/>
  324. <input id="input1" ref="/root/formData/STDATE" inputtype="date" format="yyyy-mm-dd" style="left:90px; top:5px; width:100px; height:20px; "/>
  325. <button id="button1" visibility="hidden" style="left:400px; top:5px; width:100px; height:20px; ">
  326. <caption>find</caption>
  327. <script type="javascript" ev:event="onclick">
  328. <![CDATA[
  329. find();
  330. ]]>
  331. </script>
  332. </button>
  333. <caption id="caption2" style="left:250px; top:35px; width:70px; height:20px; text-align:center; background-color:#00ff00; ">原料:</caption>
  334. <output id="output1" ref="/root/CNT/YL" style="left:320px; top:35px; width:75px; height:20px; text-align:center; "/>
  335. <caption id="caption3" style="left:395px; top:35px; width:70px; height:20px; text-align:center; background-color:#00ff00; ">非计划:</caption>
  336. <output id="output2" ref="/root/CNT/FJ" style="left:465px; top:35px; width:75px; height:20px; text-align:left; "/>
  337. <caption id="caption5" style="left:540px; top:35px; width:70px; height:20px; text-align:center; background-color:#00ff00; ">复样量:</caption>
  338. <output id="output3" ref="/root/CNT/FY" style="left:610px; top:35px; width:75px; height:20px; text-align:left; "/>
  339. <caption id="caption6" style="left:685px; top:35px; width:70px; height:20px; text-align:center; background-color:#00ff00; ">合格量:</caption>
  340. <output id="output4" ref="/root/CNT/HG" style="left:755px; top:35px; width:75px; height:20px; text-align:center; "/>
  341. <output id="output5" ref="/root/CNT/PZ" style="left:900px; top:35px; width:75px; height:20px; text-align:center; "/>
  342. <caption id="caption7" style="left:830px; top:35px; width:70px; height:20px; text-align:center; background-color:#00ff00; ">品种量:</caption>
  343. <caption id="caption10" style="left:190px; top:10px; width:20px; height:20px; ">~</caption>
  344. <input id="input2" ref="/root/formData/ENDDATE" inputtype="date" format="yyyy-mm-dd" style="left:200px; top:5px; width:100px; height:20px; "/>
  345. <button id="button2" style="left:880px; top:5px; width:100px; height:20px; background-color:#ccffcc; border-style:solid; ">
  346. <caption>导出</caption>
  347. <script type="javascript" ev:event="DOMActivate">
  348. <![CDATA[
  349. var x1 = window.fileDialog("save", ",", false, "", "xls", "Excel File(*.xls)|*.xls");
  350. datagrid1.saveExcel(x1, "sheetname:Transaction;colhiddenextend:true;exportfalserows:0;");
  351. window.alert("导出成功" + x1 + " !!!")
  352. ]]>
  353. </script>
  354. </button>
  355. </xhtml:body>
  356. </xhtml:html>