7799fd5e7299f36410de61e82c5ae072df4fc36f.svn-base 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361
  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. <DATE/>
  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. </CNT>
  80. </root>
  81. </instance>
  82. <script type="javascript" ev:event="xforms-ready">
  83. <![CDATA[
  84. if(window.parent==null) Init();
  85. ]]>
  86. </script>
  87. </model>
  88. <script type="javascript" src="../../js/boaCommon.js"/>
  89. <script type="javascript" src="../../js/b01.js"/>
  90. <script type="javascript">
  91. <![CDATA[
  92. function Init(node)
  93. {
  94. input1.value = commCurDate();
  95. /*model.removenode("/root/reqData");
  96. model.makeNode("/root/reqData");
  97. commSubmit("UIB020310-service", "findC", "glueAction.do");
  98. model.copyNode("/root/comboData/Charge","/root/resData/ChargeResult_VO");
  99. model.copyNode("/root/comboData/StlGrd","/root/resData/StlGrdResult_VO");
  100. model.makeValue("/root/formData/StDate",model.getValue("/root/resData/DateResult_VO/DateResult_Row/F_DATE"));
  101. model.makeValue("/root/formData/EndDate",model.getValue("/root/resData/DateResult_VO/DateResult_Row/T_DATE"));
  102. model.refresh();*/
  103. }
  104. function find()
  105. {
  106. model.removenode("/root/reqData");
  107. model.makeNode("/root/reqData");
  108. commSendReq("/root/formData");
  109. commSubmit("UIB030050-service", "success", "glueAction.do");
  110. model.copyNode("/root/datagrid1" , "/root/resData/ListResult_0_VO");
  111. model.refresh();
  112. }
  113. function excelExport()
  114. {
  115. saveExcelScript(datagrid1, "Sheet1");
  116. }
  117. function saveExcelScript(sDGridName, sExcelSheetName, saveType) {
  118. var sExcelName = window.fileDialog( "save", "", false, "SaveFileName", "xls", "Excel Files(*.xls)|*.xls" );
  119. if ( sExcelName == "" ) {
  120. return;
  121. }
  122. // var sCSVName = "C:\\TFSmartUpdater\\" + sExcelName.lastIndexOf(".") +".csv";
  123. var sCSVName = sExcelName +".csv";
  124. // alert("sExcelName = ["+ sExcelName +"]\nsCSVName = ["+ sCSVName + "]");
  125. eval(sDGridName).saveText(sCSVName, "\n", ",", '\:', true);
  126. ObjTFExcel.launchNewInstance(0); //Execute EXCEL
  127. ObjTFExcel.createWorkbook(); //Create new Workbook(for example:Sheet1,Sheet2,Sheet3) -- createWorkBook(Excel-TemplateFile)
  128. ObjTFExcel.loadCSV(sCSVName); //Loading Contents, from CSV to Excel
  129. //Setting up EXCEL Layout.
  130. var nRows = sDGridName.rows - 1;
  131. var nCols = sDGridName.cols;
  132. //All of the range
  133. ObjTFExcel.fontcolor( 01, 01, nRows, nCols ) = "#000000" ;
  134. ObjTFExcel.font ( 01, 01, nRows, nCols ) = "SimSun" ;
  135. //Header
  136. //Line 1 : Sheet Title
  137. ObjTFExcel.rowheight( 01 ) = 30 ;
  138. ObjTFExcel.bold ( 01, 01, 01, nCols ) = true ;
  139. ObjTFExcel.fontsize ( 01, 01, 01, nCols ) = 14 ;
  140. ObjTFExcel.underline( 01, 01, 01, nCols ) = 3 ;
  141. ObjTFExcel.halign ( 01, 01, 01, nCols ) ="center" ;
  142. ObjTFExcel.valign ( 01, 01, 01, nCols ) ="top" ;
  143. ObjTFExcel.mergeCell( 01, 01, 01, nCols ) ;
  144. // ObjTFExcel.colwidth ( 01 ) = 100 ;
  145. //Line 2 : Date
  146. ObjTFExcel.rowheight( 02 ) = 18 ;
  147. ObjTFExcel.bold ( 02, 01, 02, 01 ) = true ;
  148. ObjTFExcel.fontsize ( 02, 01, 02, 01 ) = 9 ;
  149. ObjTFExcel.underline( 02, 01, 02, 01 ) = 0 ;
  150. ObjTFExcel.halign ( 02, 01, 02, 01 ) ="left" ;
  151. ObjTFExcel.valign ( 02, 01, 02, 01 ) ="middle" ;
  152. ObjTFExcel.mergeCell( 02, 01, 02, 03 ) ;
  153. // ObjTFExcel.colwidth ( 01 ) = 100 ;
  154. //Line 2 : Work-Group & Work-Part
  155. ObjTFExcel.rowHeight( 02 ) = 18 ;
  156. ObjTFExcel.bold ( 02, nCols - 2, 02, nCols ) = true ;
  157. ObjTFExcel.fontsize ( 02, nCols - 2, 02, nCols ) = 9 ;
  158. ObjTFExcel.underline( 02, nCols - 2, 02, nCols ) = 0 ;
  159. ObjTFExcel.halign ( 02, nCols - 2, 02, nCols ) ="right" ;
  160. ObjTFExcel.valign ( 02, nCols - 2, 02, nCols ) ="middle" ;
  161. ObjTFExcel.mergeCell( 02, nCols - 2, 02, nCols ) ;
  162. // ObjTFExcel.colwidth ( 01 ) = 100 ;
  163. //Query-Results Data
  164. var iRow = 3; // Header Line + 1;
  165. // ObjTFExcel.cellBgColor (iRow, 01, iRow , nCols ) = "#EEEEEE"; // Undefined...
  166. ObjTFExcel.setBorderColor(iRow, 01, nRows, nCols, "#000000");
  167. for(var i = 3; i <= nRows; i++ ) {
  168. ObjTFExcel.rowHeight( i ) = 18;
  169. }
  170. ObjTFExcel.bold (iRow, 01, nRows, nCols ) = false ;
  171. ObjTFExcel.fontsize (iRow, 01, nRows, nCols ) = 9 ;
  172. ObjTFExcel.underline(iRow, 01, nRows, nCols ) = 0 ;
  173. ObjTFExcel.valign (iRow, 01, nRows, nCols ) ="middle" ;
  174. ObjTFExcel.halign (iRow, 01, nRows, 01 ) ="center" ; //序号
  175. ObjTFExcel.colwidth ( 01 ) = 8 ;
  176. ObjTFExcel.halign (iRow, 02, nRows, 02 ) ="left" ; //板坯号
  177. ObjTFExcel.colwidth ( 02 ) = 20 ;
  178. ObjTFExcel.halign (iRow, 03, nRows, 03 ) ="left" ; //厚度
  179. ObjTFExcel.colwidth ( 03 ) = 20 ;
  180. ObjTFExcel.halign (iRow, 04, nRows, 04 ) ="left" ; //宽度
  181. ObjTFExcel.colwidth ( 04 ) = 20 ;
  182. ObjTFExcel.halign (iRow, 05, nRows, 05 ) ="left" ; //长度
  183. ObjTFExcel.colwidth ( 05 ) = 20 ;
  184. ObjTFExcel.halign (iRow, 06, nRows, 06 ) ="left" ; //重量(吨)
  185. ObjTFExcel.colwidth ( 06 ) = 20 ;
  186. ObjTFExcel.halign (iRow, 07, nRows, 07 ) ="left" ; //钢号
  187. ObjTFExcel.colwidth ( 07 ) = 20 ;
  188. ObjTFExcel.halign (iRow, 08, nRows, 08 ) ="center" ; //不合格类别
  189. ObjTFExcel.colwidth ( 08 ) = 12 ;
  190. ObjTFExcel.halign (iRow, 09, nRows, 09 ) ="right" ; //板坯判定日
  191. ObjTFExcel.colwidth ( 09 ) = 20 ;
  192. ObjTFExcel.setFormat(iRow, 09, nRows, 09, "yyyy\"-\"mm\"-\"dd\"\" hh\":\"mm\":\"ss\"\";@");
  193. ObjTFExcel.halign (iRow, 10, nRows, 10 ) ="center" ; //板坯判定人
  194. ObjTFExcel.colwidth ( 10 ) = 10 ;
  195. ObjTFExcel.halign (iRow, 11, nRows, 11 ) ="left" ; //检验班次
  196. ObjTFExcel.colwidth ( 11 ) = 8 ;
  197. ObjTFExcel.halign (iRow, 12, nRows, 12 ) ="right" ; //检验班组
  198. ObjTFExcel.colwidth ( 12 ) = 8 ;
  199. /*ObjTFExcel.halign (iRow, 13, nRows, 13 ) ="left" ; //最终修改人
  200. ObjTFExcel.colwidth ( 13 ) = 12 ;
  201. ObjTFExcel.halign (iRow, 14, nRows, 14 ) ="center" ; //最终修改时间
  202. ObjTFExcel.colwidth ( 14 ) = 20 ;
  203. ObjTFExcel.setFormat(iRow, 14, nRows, 14, "yyyy\"-\"mm\"-\"dd\"\" hh\":\"mm\":\"ss\"\";@");
  204. */
  205. ObjTFExcel.sheetName(1) = sExcelSheetName;
  206. ObjTFExcel.save(sExcelName); //Saving EXCEL
  207. ObjTFExcel.close(); //Closing EXCEL. (You must be closed EXCEL !!!)
  208. window.exec("EXCEL.EXE", sExcelName); //Openning EXCEL
  209. }
  210. ]]>
  211. </script>
  212. </xhtml:head>
  213. <xhtml:body pagewidth="980" pageheight="620">
  214. <caption id="caption4" class="cell" style="left:0px; top:5px; width:80px; height:20px; border-color:#000000; border-style:solid; ">日期</caption>
  215. <line id="line1" style="x1:0px; y1:0px; x2:980px; y2:0px; "/>
  216. <line id="line3" style="x1:0px; y1:30px; x2:980px; y2:30px; "/>
  217. <object id="ObjTFExcel" clsid="{fe8d1001-6a9d-424d-ae2a-301493bb12da}" style="left:820px; top:5px; width:1px; height:1px; "/>
  218. <input id="input1" ref="/root/formData/DATE" inputtype="date" format="yyyy-mm-dd" style="left:90px; top:5px; width:100px; height:20px; "/>
  219. <button id="button1" visibility="hidden" style="left:355px; top:5px; width:100px; height:20px; ">
  220. <caption>find</caption>
  221. <script type="javascript" ev:event="onclick">
  222. <![CDATA[
  223. find();
  224. ]]>
  225. </script>
  226. </button>
  227. <multilinegrid id="multilinegrid1" nodeset="/root/datagrid1/ListResult_0_Row" caption="日 期^日 期^原料^合格原料^合格产量^成材率^合格率^工艺次小计^凸度^浪形^辊印^压痕^划伤^凸块^异物压入^光亮带^重量不良^厚度不良^宽度不良^边损^楔形^麻点^卷形不良^折叠^塔形^不平度^性能次^废品^其他^钢质次小计^夹杂^裂纹^凹坑^分层^气泡^其它|日 期^日 期^原料^合格原料^合格产量^成材率^合格率^工艺次小计^凸度^浪形^辊印^压痕^划伤^凸块^异物压入^光亮带^重量不良^厚度不良^宽度不良^边损^楔形^麻点^卷形不良^折叠^塔形^不平度^性能次^废品^其他^钢质次小计^夹杂^裂纹^凹坑^分层^气泡^其它" colsep="^" colwidth="50, 50, 80, 80, 80, 80, 80, 75, 50, 50, 50, 50, 50, 50, 63, 50, 71, 70, 71, 50, 50, 50, 72, 50, 50, 50, 50, 50, 50, 70, 50, 50, 50, 50, 50, 50" fixedcols="2" rowsep="|" mergecellsfixedrows="bycolrec" style="left:0px; top:40px; width:980px; height:580px; ">
  228. <row>
  229. <col ref="SEQ" rowspan="2"/>
  230. <col ref="DANGRI"/>
  231. <col ref="SLAB_WGT"/>
  232. <col ref="HGYL"/>
  233. <col ref="HGL"/>
  234. <col ref="CCL" visibility="hidden"/>
  235. <col ref="HGLV"/>
  236. <col ref="GYC_LEIJI"/>
  237. <col ref="GYC_TUDU"/>
  238. <col ref="GYC_LANGXING"/>
  239. <col ref="GYC_GUNYIN"/>
  240. <col ref="GYC_YAHENG"/>
  241. <col ref="GYC_HUASHANG"/>
  242. <col ref="GYC_TUKUAI"/>
  243. <col ref="GYC_YIWU"/>
  244. <col ref="GYC_GUANGLIANG"/>
  245. <col ref="GYC_ZHONGLIANG"/>
  246. <col ref="GYC_HOUDU"/>
  247. <col ref="GYC_KUANDU"/>
  248. <col ref="GYC_BIANSUN"/>
  249. <col ref="GYC_XIEXING"/>
  250. <col ref="GYC_MADIAN"/>
  251. <col ref="GYC_JUANXING"/>
  252. <col ref="GYC_ZHEDIE"/>
  253. <col ref="GYC_TAXING"/>
  254. <col ref="GYC_BUPING"/>
  255. <col ref="GYC_XINGNENG"/>
  256. <col ref="GYC_FEIPIN"/>
  257. <col ref="GYC_QITA"/>
  258. <col ref="GZC_LEIJI"/>
  259. <col ref="GZC_JIAZA"/>
  260. <col ref="GZC_LIEHEN"/>
  261. <col ref="GZC_AOKENG"/>
  262. <col ref="GZC_FENCENG"/>
  263. <col ref="GZC_QIPAO"/>
  264. <col ref="GZC_QITA"/>
  265. </row>
  266. <row>
  267. <col ref="LEIJI"/>
  268. <col ref="SLAB_WGT_LJ"/>
  269. <col ref="HGYL_LJ"/>
  270. <col ref="HGL_LJ"/>
  271. <col ref="CCL_LJ" visibility="hidden"/>
  272. <col ref="HGLV_LJ"/>
  273. <col ref="GYC_LEIJI_LJ"/>
  274. <col ref="GYC_TUDU_LJ"/>
  275. <col ref="GYC_LANGXING_LJ"/>
  276. <col ref="GYC_GUNYIN_LJ"/>
  277. <col ref="GYC_YAHENG_LJ"/>
  278. <col ref="GYC_HUASHANG_LJ"/>
  279. <col ref="GYC_TUKUAI_LJ"/>
  280. <col ref="GYC_YIWU_LJ"/>
  281. <col ref="GYC_GUANGLIANG_LJ"/>
  282. <col ref="GYC_ZHONGLIANG_LJ"/>
  283. <col ref="GYC_HOUDU_LJ"/>
  284. <col ref="GYC_KUANDU_LJ"/>
  285. <col ref="GYC_BIANSUN_LJ"/>
  286. <col ref="GYC_XIEXING_LJ"/>
  287. <col ref="GYC_MADIAN_LJ"/>
  288. <col ref="GYC_JUANXING_LJ"/>
  289. <col ref="GYC_ZHEDIE_LJ"/>
  290. <col ref="GYC_TAXING_LJ"/>
  291. <col ref="GYC_BUPING_LJ"/>
  292. <col ref="GYC_XINGNENG_LJ"/>
  293. <col ref="GYC_FEIPIN_LJ"/>
  294. <col ref="GYC_QITA_LJ"/>
  295. <col ref="GZC_LEIJI_LJ"/>
  296. <col ref="GZC_JIAZA_LJ"/>
  297. <col ref="GZC_LIEHEN_LJ"/>
  298. <col ref="GZC_AOKENG_LJ"/>
  299. <col ref="GZC_FENCENG_LJ"/>
  300. <col ref="GZC_QIPAO_LJ"/>
  301. <col ref="GZC_QITA_LJ"/>
  302. </row>
  303. </multilinegrid>
  304. <caption id="caption8" style="left:200px; top:5px; width:220px; height:20px; background-color:#00ff00; ">提示:查询日期为当月1日,到选定日期</caption>
  305. <button id="button2" style="left:880px; top:5px; width:100px; height:20px; background-color:#ccffcc; border-style:solid; ">
  306. <caption>导出</caption>
  307. <script type="javascript" ev:event="DOMActivate">
  308. <![CDATA[
  309. var x1 = window.fileDialog("save", ",", false, "", "xls", "Excel File(*.xls)|*.xls");
  310. multilinegrid1.saveExcel(x1, "sheetname:Transaction;colhiddenextend:true;exportfalserows:0;");
  311. window.alert("导出成功" + x1 + " !!!")
  312. ]]>
  313. </script>
  314. </button>
  315. <button id="button3" visibility="hidden" style="left:470px; top:5px; width:100px; height:20px; ">
  316. <caption>button3</caption>
  317. <script type="javascript" ev:event="onclick">
  318. <![CDATA[
  319. find();
  320. ]]>
  321. </script>
  322. </button>
  323. </xhtml:body>
  324. </xhtml:html>