UIB030010.xrw 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318
  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[统计管理>>现况分析>>三期MES系统表一]]>
  8. </xhtml:title>
  9. <model id="model1">
  10. <instance id="instance1">
  11. <root xmlns="">
  12. <formData>
  13. <StDate/>
  14. <EndDate/>
  15. <StlGrd/>
  16. <CHARGE_NO/>
  17. <DATE/>
  18. <DATETP>2</DATETP>
  19. <ZKL/>
  20. <CHARGENO1/>
  21. <CHARGENO2/>
  22. </formData>
  23. <reqData/>
  24. <resData/>
  25. <datagrid1/>
  26. <comboData>
  27. <Charge/>
  28. <StlGrd/>
  29. </comboData>
  30. <headLine>
  31. <SlabResult_VO>
  32. <SlabResult_Row>
  33. <ROWNUM>热连轧厂生产检验班报表</ROWNUM>
  34. <SLAB_NO/>
  35. <SLAB_THK/>
  36. <SLAB_WTH/>
  37. <SLAB_LEN/>
  38. <SLAB_WGT/>
  39. <STL_GRD/>
  40. <CRK_CD1/>
  41. <EXTSHAPE_DEC_DTIME/>
  42. <EXTSHAPE_DEC_EMP_ID/>
  43. <GR_SHIFT/>
  44. <GR_GROUP/>
  45. </SlabResult_Row>
  46. <SlabResult_Row>
  47. <ROWNUM>日期</ROWNUM>
  48. <SLAB_NO/>
  49. <SLAB_THK/>
  50. <SLAB_WTH/>
  51. <SLAB_LEN/>
  52. <SLAB_WGT/>
  53. <STL_GRD/>
  54. <CRK_CD1/>
  55. <EXTSHAPE_DEC_DTIME/>
  56. <EXTSHAPE_DEC_EMP_ID/>
  57. <GR_SHIFT/>
  58. <GR_GROUP>班组 &amp; 班次</GR_GROUP>
  59. </SlabResult_Row>
  60. </SlabResult_VO>
  61. </headLine>
  62. <subTitle>
  63. <SlabResult_VO>
  64. <SlabResult_Row>
  65. <ROWNUM>序号</ROWNUM>
  66. <SLAB_NO>板坯号</SLAB_NO>
  67. <SLAB_THK>厚度</SLAB_THK>
  68. <SLAB_WTH>宽度</SLAB_WTH>
  69. <SLAB_LEN>长度</SLAB_LEN>
  70. <SLAB_WGT>重量(吨)</SLAB_WGT>
  71. <STL_GRD>钢号</STL_GRD>
  72. <CRK_CD1>不合格类别</CRK_CD1>
  73. <EXTSHAPE_DEC_DTIME>板坯判定日</EXTSHAPE_DEC_DTIME>
  74. <EXTSHAPE_DEC_EMP_ID>板坯判定人</EXTSHAPE_DEC_EMP_ID>
  75. <GR_SHIFT>检验班次</GR_SHIFT>
  76. <GR_GROUP>检验班组</GR_GROUP>
  77. </SlabResult_Row>
  78. </SlabResult_VO>
  79. </subTitle>
  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. input2.value = commCurDate();
  96. }
  97. function find()
  98. {
  99. model.removenode("/root/reqData");
  100. model.makeNode("/root/reqData");
  101. commSendReq("/root/formData");
  102. if(model.getValue("/root/reqData/CHARGENO1") =="")
  103. {
  104. model.setValue("/root/reqData/CHARGENO1" , "J00-00000A");
  105. model.setValue("/root/reqData/CHARGENO2" , "J99-99999Z");
  106. }
  107. commSubmit("UIB030010-service", "success", "glueAction.do");
  108. model.copyNode("/root/datagrid1" , "/root/resData/ListResult_0_VO");
  109. model.refresh();
  110. }
  111. function excelExport()
  112. {
  113. // saveExcelScript(datagrid1, "Sheet1");
  114. var x1 = window.fileDialog("save", ",", false, "", "xls", "Excel File(*.xls)|*.xls");
  115. if(x1 == "") return;
  116. datagrid1.saveExcel(x1, "sheetname:Transaction;colhiddenextend:true;exportfalserows:0;");
  117. window.alert("导出成功" + x1 + " !!!");
  118. }
  119. function saveExcelScript(sDGridName, sExcelSheetName, saveType) {
  120. var sExcelName = window.fileDialog( "save", "", false, "SaveFileName", "xls", "Excel Files(*.xls)|*.xls" );
  121. if ( sExcelName == "" ) {
  122. return;
  123. }
  124. var sCSVName = sExcelName +".csv";
  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="caption13" style="left:0px; top:600px; width:980px; height:20px; background-color:#ccccff; border-top-color:#ffffff; border-style:solid; "/>
  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. <datagrid id="datagrid1" nodeset="/root/datagrid1/ListResult_0_Row" allowuserresize="true" caption="炉号^连铸机号^连浇序^样别^送样状态^实际牌号^定尺^规格^计划牌号^浇注支数^浇注重量^合格支数^合格重量^热送支数^落地支数^判定人^质检人^入库人^班组^生产时间^判定时间^入库时间|炉号^连铸机号^连浇序^样别^送样状态^实际牌号^定尺^规格^计划牌号^浇注支数^浇注重量^合格支数^合格重量^热送支数^落地支数^判定人^质检人^入库人^班组^生产时间^判定时间^入库时间" colsep="^" colwidth="80, 63, 41, 50, 40, 60, 60, 67, 68, 56, 73, 61, 62, 53, 51, 73, 60, 60, 50, 81, 89, 100" defaultrows="30" explorerbar="sort" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="label" style="left:0px; top:35px; width:980px; height:580px; border-style:solid; ">
  218. <col ref="CHARGE_NO" style="text-align:left; "/>
  219. <col ref="ACT_CCM_RT" style="text-align:left; "/>
  220. <col ref="CAST_CHARGE_SEQ" style="text-align:right; "/>
  221. <col visibility="hidden" style="text-align:left; "/>
  222. <col visibility="hidden" style="text-align:left; "/>
  223. <col ref="STL_GRD" style="text-align:left; "/>
  224. <col ref="SLAB_LEN" style="text-align:right; "/>
  225. <col ref="WTH_LEN" style="text-align:right; "/>
  226. <col ref="BEF_STL_GRD" style="text-align:left; "/>
  227. <col ref="CNT_ALL" style="text-align:right; "/>
  228. <col ref="CNT_ALL_WGT" style="text-align:right; "/>
  229. <col ref="CNT_1" style="text-align:right; "/>
  230. <col ref="CNT_1_WGT" style="text-align:right; "/>
  231. <col ref="CNT_HCR" style="text-align:right; "/>
  232. <col ref="CNT_CCR" style="text-align:right; "/>
  233. <col ref="CHARGE_INGR_DEC_EMP_ID" style="text-align:left; "/>
  234. <col visibility="hidden" style="text-align:left; "/>
  235. <col visibility="hidden" style="text-align:left; "/>
  236. <col visibility="hidden" style="text-align:left; "/>
  237. <col ref="CASTING_END_DTIME" format="yyyy-mm-dd" style="text-align:left; "/>
  238. <col ref="INGR_DEC_DTIME" format="yyyy-mm-dd hh:nn:ss" style="text-align:left; "/>
  239. <col ref="SMS_YARD_ENT_DTIME" style="text-align:left; "/>
  240. </datagrid>
  241. <object id="ObjTFExcel" clsid="{fe8d1001-6a9d-424d-ae2a-301493bb12da}" style="left:820px; top:5px; width:1px; height:1px; "/>
  242. <input id="input1" ref="/root/formData/StDate" inputtype="date" format="yyyy-mm-dd" style="left:135px; top:5px; width:100px; height:20px; "/>
  243. <select1 id="combo2" ref="/root/formData/DATETP" appearance="minimal" style="left:60px; top:5px; width:75px; height:20px; border-style:solid; ">
  244. <choices>
  245. <item>
  246. <label>生产时间</label>
  247. <value>2</value>
  248. </item>
  249. <item>
  250. <label>出库时间</label>
  251. <value>1</value>
  252. </item>
  253. <item>
  254. <label>判定时间</label>
  255. <value>3</value>
  256. </item>
  257. </choices>
  258. </select1>
  259. <input id="input2" ref="/root/formData/EndDate" inputtype="date" format="yyyy-mm-dd" style="left:245px; top:5px; width:100px; height:20px; "/>
  260. <input id="input3" ref="/root/formData/StlGrd" style="left:440px; top:5px; width:100px; height:20px; "/>
  261. <caption id="caption4" class="cell" style="left:360px; top:5px; width:80px; height:20px; border-style:solid; ">钢号</caption>
  262. <select id="checkbox1" ref="/root/formData/ZKL" class="cell" overflow="visible" appearance="full" style="left:0px; top:6px; width:75px; height:20px; border-style:none; ">
  263. <choices>
  264. <item>
  265. <label>在库量</label>
  266. <value>Y</value>
  267. </item>
  268. </choices>
  269. </select>
  270. <caption id="caption1" style="left:235px; top:10px; width:15px; height:20px; ">~</caption>
  271. <caption id="caption2" class="cell" style="left:555px; top:5px; width:75px; height:20px; ">炉号</caption>
  272. <input id="input4" ref="/root/formData/CHARGENO1" style="left:630px; top:5px; width:100px; height:20px; "/>
  273. <input id="input5" ref="/root/formData/CHARGENO2" style="left:740px; top:5px; width:100px; height:20px; "/>
  274. <caption id="caption3" style="left:730px; top:10px; width:20px; height:20px; ">~</caption>
  275. <button id="button1" style="left:855px; top:5px; width:60px; height:20px; ">
  276. <caption>FIND</caption>
  277. <script type="javascript" ev:event="DOMActivate">
  278. <![CDATA[
  279. find();
  280. ]]>
  281. </script>
  282. </button>
  283. </xhtml:body>
  284. </xhtml:html>