f6f7363be52c8067da7e241a51172200d7834b70.svn-base 54 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <?xml-stylesheet href="D:/workspace/xgmes3/WebContents/css/body.css" type="text/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[热轧作业>>钢卷库管理>>钢卷库冷轧移送(UIH052400)]]>
  7. </xhtml:title>
  8. <model id="model1">
  9. <instance id="instance1">
  10. <root xmlns="">
  11. <reqData/>
  12. <resData/>
  13. <datagrid1/>
  14. <datagrid2/>
  15. <WK>
  16. <TRNF_SHIFT/>
  17. <TRNF_GROUP/>
  18. <TRNF_REG/>
  19. <TRNF_DTIME/>
  20. <TRANSFER_TYPE/>
  21. <TRANSFER_NO/>
  22. <COIL_NOS/>
  23. <ACT_WGTS/>
  24. <ORD_NOS/>
  25. <ORD_SEQS/>
  26. <CUR_PROG_CDS/>
  27. <LSHS/>
  28. <TRANSSEQS/>
  29. </WK>
  30. <TR>
  31. <TRANSFER_TIME/>
  32. <TRANSFER_NO/>
  33. </TR>
  34. <QDATA>
  35. <ORD_YN/>
  36. <ORD_NO/>
  37. <ORD_SEQ/>
  38. <COIL_NO/>
  39. </QDATA>
  40. <EXCELHead>
  41. <ListResult_1_VO>
  42. <ListResult_1_Row>
  43. <col1>冷轧钢卷移送明细单</col1>
  44. <col2/>
  45. <col3/>
  46. <col4/>
  47. <col5/>
  48. <col6/>
  49. <col7/>
  50. <col8/>
  51. <col9/>
  52. <col10/>
  53. <col11/>
  54. <col12/>
  55. <col13/>
  56. </ListResult_1_Row>
  57. <ListResult_1_Row>
  58. <col1>移送班次</col1>
  59. <col2/>
  60. <col3/>
  61. <col4>移送班组</col4>
  62. <col5/>
  63. <col6/>
  64. <col7/>
  65. <col8/>
  66. <col9/>
  67. <col10/>
  68. <col11/>
  69. <col12/>
  70. <col13/>
  71. </ListResult_1_Row>
  72. <ListResult_1_Row>
  73. <col1>移送人</col1>
  74. <col2/>
  75. <col3/>
  76. <col4>移送时间</col4>
  77. <col5/>
  78. <col6/>
  79. <col7/>
  80. <col8/>
  81. <col9/>
  82. <col10/>
  83. <col11/>
  84. <col12/>
  85. <col13/>
  86. </ListResult_1_Row>
  87. <ListResult_1_Row>
  88. <col1>序号</col1>
  89. <col2>钢卷号</col2>
  90. <col3>冶炼炉号</col3>
  91. <col4>钢种</col4>
  92. <col5>成品厚度</col5>
  93. <col6>成品宽度</col6>
  94. <col7>订单厚度</col7>
  95. <col8>订单宽度</col8>
  96. <col9>重量</col9>
  97. <col10>外径</col10>
  98. <col11>内径</col11>
  99. <col12>堆放位置</col12>
  100. <col13>外观质量</col13>
  101. </ListResult_1_Row>
  102. <ListResult_1_Row>
  103. <col1>序号</col1>
  104. <col2>钢卷号</col2>
  105. <col3>冶炼炉号</col3>
  106. <col4>钢种</col4>
  107. <col5>成品厚度</col5>
  108. <col6>成品宽度</col6>
  109. <col7>订单厚度</col7>
  110. <col8>订单宽度</col8>
  111. <col9>重量</col9>
  112. <col10>外径</col10>
  113. <col11>内径</col11>
  114. <col12>堆放位置</col12>
  115. <col13>外观质量</col13>
  116. </ListResult_1_Row>
  117. </ListResult_1_VO>
  118. </EXCELHead>
  119. <dg1/>
  120. <EXCELHead2>
  121. <ListResult_2_VO>
  122. <ListResult_2_Row>
  123. <col1>冷轧钢卷移送实绩明细单</col1>
  124. <col2/>
  125. <col3/>
  126. <col4/>
  127. <col5/>
  128. <col6/>
  129. <col7/>
  130. <col8/>
  131. <col9/>
  132. <col10/>
  133. <col11/>
  134. <col12/>
  135. <col13/>
  136. <col14/>
  137. <col15/>
  138. <col16/>
  139. <col17/>
  140. <col18/>
  141. </ListResult_2_Row>
  142. <ListResult_2_Row>
  143. <col1/>
  144. <col2>退回班次</col2>
  145. <col3/>
  146. <col4>退回班组</col4>
  147. <col5/>
  148. <col6/>
  149. <col7/>
  150. <col8/>
  151. <col9/>
  152. <col10/>
  153. <col11/>
  154. <col12/>
  155. <col13/>
  156. <col14/>
  157. <col15/>
  158. <col16/>
  159. <col17/>
  160. <col18/>
  161. </ListResult_2_Row>
  162. <ListResult_2_Row>
  163. <col1/>
  164. <col2>退回人</col2>
  165. <col3/>
  166. <col4>退回时间</col4>
  167. <col5/>
  168. <col6/>
  169. <col7/>
  170. <col8/>
  171. <col9/>
  172. <col10/>
  173. <col11/>
  174. <col12/>
  175. <col13/>
  176. <col14/>
  177. <col15/>
  178. <col16/>
  179. <col17/>
  180. <col18/>
  181. </ListResult_2_Row>
  182. <ListResult_2_Row>
  183. <col1>序号</col1>
  184. <col2>钢卷号</col2>
  185. <col3>牌号</col3>
  186. <col4>合同号</col4>
  187. <col5>订单号</col5>
  188. <col6>宽度</col6>
  189. <col7>厚度</col7>
  190. <col8>长度</col8>
  191. <col9>重量</col9>
  192. <col10>移送区分</col10>
  193. <col11>车辆号</col11>
  194. <col12>移送顺序</col12>
  195. <col13>退回堆放位置</col13>
  196. <col14>移送日期</col14>
  197. <col15>接收人</col15>
  198. <col16>接收时间</col16>
  199. <col17>退回人</col17>
  200. <col18>退回时间</col18>
  201. </ListResult_2_Row>
  202. <ListResult_2_Row>
  203. <col1>序号</col1>
  204. <col2>钢卷号</col2>
  205. <col3>牌号</col3>
  206. <col4>合同号</col4>
  207. <col5>订单号</col5>
  208. <col6>宽度</col6>
  209. <col7>厚度</col7>
  210. <col8>长度</col8>
  211. <col9>重量</col9>
  212. <col10>移送区分</col10>
  213. <col11>车辆号</col11>
  214. <col12>移送顺序</col12>
  215. <col13>退回堆放位置</col13>
  216. <col14>移送日期</col14>
  217. <col15>接收人</col15>
  218. <col16>接收时间</col16>
  219. <col17>退回人</col17>
  220. <col18>退回时间</col18>
  221. </ListResult_2_Row>
  222. </ListResult_2_VO>
  223. </EXCELHead2>
  224. <dg2/>
  225. <RegResultc>
  226. <InitRegResultc_Row>
  227. <LABEL/>
  228. <VALUE/>
  229. </InitRegResultc_Row>
  230. </RegResultc>
  231. </root>
  232. </instance>
  233. <script type="javascript" ev:event="xforms-ready">
  234. <![CDATA[
  235. if(window.parent==null) Init();
  236. ]]>
  237. </script>
  238. </model>
  239. <script type="javascript" src="../../js/boaCommon.js"/>
  240. <script type="javascript">
  241. <![CDATA[
  242. //页面初始化的时候需要获取登录的相关用户信息
  243. function Init(node) {
  244. InitParams(node);
  245. commSubmit("UIB010278-service", "success", "glueAction.do");
  246. model.copyNode("/root/RegResultc" , "/root/resData/InitRegResultc_VO");
  247. model.refresh();
  248. }
  249. //调用公共的初始化方法获得登录用户名
  250. function InitParams(node) {
  251. if (typeof node == "undefined" && typeof node != "object") return;
  252. model.removenode("/root/initData/rcvInfo");
  253. model.makeNode("/root/initData/rcvInfo");
  254. var nodeList = node.childNodes;
  255. node = model.instances(0).selectSingleNode("/root/initData/rcvInfo");
  256. for (var i = 0; i < nodeList.length; i++)
  257. node.appendChild(nodeList.item(i));
  258. }
  259. /**
  260. 移送实绩导出功能数据设置
  261. */
  262. function setExcelData(){
  263. var transList = new Array();
  264. var nRows = 0;
  265. var nCnt = datagrid2.rows - datagrid2.fixedRows + 1;
  266. var coilNos = "";
  267. var actWgts = "";
  268. var ordNos = "";
  269. var ordSeqs = "";
  270. var curProgCds = "";
  271. var lshs = "";
  272. var transSeqs = "";//移送顺序
  273. var transId = 1;
  274. for( var i = datagrid2.fixedRows ; i <= nCnt ; i++ ) {
  275. if( true) {
  276. //移送顺序
  277. // if(datagrid1.valueMatrix(i, datagrid1.colRef("CR_PLANT_TRS_SEQ")) == ""){
  278. // alert("移送的钢卷必须输入移送顺序,请确认后重新操作!");
  279. // return;
  280. // }
  281. //钢卷号
  282. coilNos += datagrid2.valueMatrix(i, datagrid2.colRef("OLD_SAMPL_NO"))+"|";
  283. actWgts += datagrid2.valueMatrix(i, datagrid2.colRef("ACT_WGT"))+"|";
  284. ordNos += datagrid2.valueMatrix(i, datagrid2.colRef("ORD_NO"))+"|";
  285. ordSeqs += datagrid2.valueMatrix(i, datagrid2.colRef("ORD_SEQ"))+"|";
  286. curProgCds += datagrid2.valueMatrix(i, datagrid2.colRef("CUR_PROG_CD"))+"|";
  287. lshs += datagrid2.valueMatrix(i, datagrid2.colRef("COIL_NO"))+"|";//流水号
  288. transSeqs += datagrid2.valueMatrix(i, datagrid2.colRef("CR_PLANT_TRS_SEQ")) + "|";
  289. var transObj = new TransObject2();
  290. transObj.id2 = transId;
  291. transObj.coilNo2 = datagrid2.valueMatrix(i, datagrid2.colRef("OLD_SAMPL_NO"));
  292. transObj.stlGrd2 = datagrid2.valueMatrix(i, datagrid2.colRef("STL_GRD"));
  293. transObj.ordNo2 = datagrid2.valueMatrix(i, datagrid2.colRef("ORD_NO"));
  294. transObj.ordSeq2 = datagrid2.valueMatrix(i, datagrid2.colRef("ORD_SEQ"));
  295. transObj.coilWth2 = datagrid2.valueMatrix(i, datagrid2.colRef("COIL_WTH"));
  296. transObj.coilThk2 = datagrid2.valueMatrix(i, datagrid2.colRef("COIL_THK"));
  297. transObj.coilLen2 = datagrid2.valueMatrix(i, datagrid2.colRef("COIL_LEN"));
  298. transObj.coilWgt2 = datagrid2.valueMatrix(i, datagrid2.colRef("ACT_WGT"));
  299. transObj.crPlantClf2 = datagrid2.valueMatrix(i, datagrid2.colRef("CR_PLANT_TRS_CLF"));
  300. transObj.crPlantNo2 = datagrid2.valueMatrix(i, datagrid2.colRef("CR_PLANT_TRS_NO"));
  301. transObj.crPlantCd2 = datagrid2.valueMatrix(i, datagrid2.colRef("CR_PLANT_TRS_CD"));
  302. transObj.curLoadLoc2 = datagrid2.valueMatrix(i, datagrid2.colRef("CUR_LOAD_LOC"));
  303. transObj.crPlantTime2 = datagrid2.valueMatrix(i, datagrid2.colRef("CR_PLANT_TRS_DTIME"));
  304. transObj.receiveReg2 = datagrid2.valueMatrix(i, datagrid2.colRef("RECEIVE_REG"));
  305. transObj.receiveTime2 = datagrid2.valueMatrix(i, datagrid2.colRef("RECEIBE_TIME"));
  306. transObj.trnfReg2 = datagrid2.valueMatrix(i, datagrid2.colRef("TRNF_REG"));
  307. transObj.trnfTime2 = datagrid2.valueMatrix(i, datagrid2.colRef("TRNF_DTIME"));
  308. transId++;
  309. transList.push(transObj);
  310. }
  311. nRows++;
  312. }
  313. if(nRows > 0){
  314. model.makeValue("/root/WK/COIL_NOS",coilNos);
  315. model.duplicate("/root/reqData","/root/WK/COIL_NOS");
  316. model.makeValue("/root/WK/ACT_WGTS",actWgts);
  317. model.duplicate("/root/reqData","/root/WK/ACT_WGTS");
  318. model.makeValue("/root/WK/ORD_NOS",ordNos);
  319. model.duplicate("/root/reqData","/root/WK/ORD_NOS");
  320. model.makeValue("/root/WK/ORD_SEQS",ordSeqs);
  321. model.duplicate("/root/reqData","/root/WK/ORD_SEQS");
  322. model.makeValue("/root/WK/CUR_PROG_CDS",curProgCds);
  323. model.duplicate("/root/reqData","/root/WK/CUR_PROG_CDS");
  324. model.makeValue("/root/WK/LSHS",lshs);
  325. model.duplicate("/root/reqData","/root/WK/LSHS");
  326. model.makeValue("/root/WK/TRANSSEQS",transSeqs);
  327. model.duplicate("/root/reqData","/root/WK/TRANSSEQS");
  328. //这里加入班次、班组、出库人、时间
  329. model.duplicate("/root/reqData","/root/WK/TRNF_SHIFT");
  330. model.duplicate("/root/reqData","/root/WK/TRNF_GROUP");
  331. model.duplicate("/root/reqData","/root/WK/TRNF_REG");
  332. model.duplicate("/root/reqData","/root/WK/TRNF_DTIME");
  333. model.duplicate("/root/reqData","/root/WK/TRANSFER_TYPE");
  334. model.duplicate("/root/reqData","/root/WK/TRANSFER_NO");
  335. if(transList.length > 0)
  336. {
  337. commAppendData ("/root/dg2/ListResult_2_VO" ,"/root/EXCELHead2/ListResult_2_VO" );
  338. //var wgtCount = 0;
  339. for(var k = 0;k < transList.length;k++){
  340. var transObj = transList[k];
  341. var row = k+5;
  342. model.makeNode("/root/dg2/ListResult_2_VO/ListResult_2_Row["+ row +"]/col1");
  343. model.setValue("/root/dg2/ListResult_2_VO/ListResult_2_Row["+ row +"]/col1",transObj.id2);
  344. model.makeNode("/root/dg2/ListResult_2_VO/ListResult_2_Row["+ row +"]/col2");
  345. model.setValue("/root/dg2/ListResult_2_VO/ListResult_2_Row["+ row +"]/col2",transObj.coilNo2);
  346. model.makeNode("/root/dg2/ListResult_2_VO/ListResult_2_Row["+ row +"]/col3");
  347. model.setValue("/root/dg2/ListResult_2_VO/ListResult_2_Row["+ row +"]/col3",transObj.stlGrd2);
  348. model.makeNode("/root/dg2/ListResult_2_VO/ListResult_2_Row["+ row +"]/col4");
  349. model.setValue("/root/dg2/ListResult_2_VO/ListResult_2_Row["+ row +"]/col4",transObj.ordNo2);
  350. model.makeNode("/root/dg2/ListResult_2_VO/ListResult_2_Row["+ row +"]/col5");
  351. model.setValue("/root/dg2/ListResult_2_VO/ListResult_2_Row["+ row +"]/col5",transObj.ordSeq2);
  352. model.makeNode("/root/dg2/ListResult_2_VO/ListResult_2_Row["+ row +"]/col6");
  353. model.setValue("/root/dg2/ListResult_2_VO/ListResult_2_Row["+ row +"]/col6",transObj.coilWth2);
  354. model.makeNode("/root/dg2/ListResult_2_VO/ListResult_2_Row["+ row +"]/col7");
  355. model.setValue("/root/dg2/ListResult_2_VO/ListResult_2_Row["+ row +"]/col7",transObj.coilThk2);
  356. model.makeNode("/root/dg2/ListResult_2_VO/ListResult_2_Row["+ row +"]/col8");
  357. model.setValue("/root/dg2/ListResult_2_VO/ListResult_2_Row["+ row +"]/col8",transObj.coilLen2);
  358. model.makeNode("/root/dg2/ListResult_2_VO/ListResult_2_Row["+ row +"]/col9");
  359. model.setValue("/root/dg2/ListResult_2_VO/ListResult_2_Row["+ row +"]/col9",transObj.coilWgt2);
  360. model.makeNode("/root/dg2/ListResult_2_VO/ListResult_2_Row["+ row +"]/col10");
  361. model.setValue("/root/dg2/ListResult_2_VO/ListResult_2_Row["+ row +"]/col10",transObj.crPlantClf2);
  362. model.makeNode("/root/dg2/ListResult_2_VO/ListResult_2_Row["+ row +"]/col11");
  363. model.setValue("/root/dg2/ListResult_2_VO/ListResult_2_Row["+ row +"]/col11",transObj.crPlantNo2);
  364. model.makeNode("/root/dg2/ListResult_2_VO/ListResult_2_Row["+ row +"]/col12");
  365. model.setValue("/root/dg2/ListResult_2_VO/ListResult_2_Row["+ row +"]/col12",transObj.crPlantCd2);
  366. model.makeNode("/root/dg2/ListResult_2_VO/ListResult_2_Row["+ row +"]/col13");
  367. model.setValue("/root/dg2/ListResult_2_VO/ListResult_2_Row["+ row +"]/col13",transObj.curLoadLoc2);
  368. model.makeNode("/root/dg2/ListResult_2_VO/ListResult_2_Row["+ row +"]/col14");
  369. model.setValue("/root/dg2/ListResult_2_VO/ListResult_2_Row["+ row +"]/col14",transObj.crPlantTime2);
  370. model.makeNode("/root/dg2/ListResult_2_VO/ListResult_2_Row["+ row +"]/col15");
  371. model.setValue("/root/dg2/ListResult_2_VO/ListResult_2_Row["+ row +"]/col15",transObj.receiveReg2);
  372. model.makeNode("/root/dg2/ListResult_2_VO/ListResult_2_Row["+ row +"]/col16");
  373. model.setValue("/root/dg2/ListResult_2_VO/ListResult_2_Row["+ row +"]/col16",transObj.receiveTime2);
  374. model.makeNode("/root/dg2/ListResult_2_VO/ListResult_2_Row["+ row +"]/col17");
  375. model.setValue("/root/dg2/ListResult_2_VO/ListResult_2_Row["+ row +"]/col17",transObj.trnfReg2);
  376. model.makeNode("/root/dg2/ListResult_2_VO/ListResult_2_Row["+ row +"]/col18");
  377. model.setValue("/root/dg2/ListResult_2_VO/ListResult_2_Row["+ row +"]/col18",transObj.trnfTime2);
  378. //wgtCount += parseFloat(transObj.coilWgt2);
  379. }
  380. for(var k = 5;k < 8;k++){
  381. model.makeNode("/root/dg2/ListResult_2_VO/ListResult_2_Row["+ (transList.length+k) +"]/col1");
  382. model.makeNode("/root/dg2/ListResult_2_VO/ListResult_2_Row["+ (transList.length+k) +"]/col2");
  383. model.makeNode("/root/dg2/ListResult_2_VO/ListResult_2_Row["+ (transList.length+k)+"]/col3");
  384. model.makeNode("/root/dg2/ListResult_2_VO/ListResult_2_Row["+ (transList.length+k) +"]/col4");
  385. model.makeNode("/root/dg2/ListResult_2_VO/ListResult_2_Row["+ (transList.length+k) +"]/col5");
  386. model.makeNode("/root/dg2/ListResult_2_VO/ListResult_2_Row["+ (transList.length+k)+"]/col6");
  387. model.makeNode("/root/dg2/ListResult_2_VO/ListResult_2_Row["+ (transList.length+k) +"]/col7");
  388. model.makeNode("/root/dg2/ListResult_2_VO/ListResult_2_Row["+ (transList.length+k) +"]/col8");
  389. model.makeNode("/root/dg2/ListResult_2_VO/ListResult_2_Row["+ (transList.length+k) +"]/col9");
  390. model.makeNode("/root/dg2/ListResult_2_VO/ListResult_2_Row["+ (transList.length+k) +"]/col10");
  391. model.makeNode("/root/dg2/ListResult_2_VO/ListResult_2_Row["+ (transList.length+k) +"]/col11");
  392. model.makeNode("/root/dg2/ListResult_2_VO/ListResult_2_Row["+ (transList.length+k) +"]/col12");
  393. model.makeNode("/root/dg2/ListResult_2_VO/ListResult_2_Row["+ (transList.length+k) +"]/col13");
  394. model.makeNode("/root/dg2/ListResult_2_VO/ListResult_2_Row["+ (transList.length+k) +"]/col14");
  395. model.makeNode("/root/dg2/ListResult_2_VO/ListResult_2_Row["+ (transList.length+k) +"]/col15");
  396. model.makeNode("/root/dg2/ListResult_2_VO/ListResult_2_Row["+ (transList.length+k) +"]/col16");
  397. model.makeNode("/root/dg2/ListResult_2_VO/ListResult_2_Row["+ (transList.length+k) +"]/col17");
  398. model.makeNode("/root/dg2/ListResult_2_VO/ListResult_2_Row["+ (transList.length+k) +"]/col18");
  399. }
  400. model.setValue("/root/dg2/ListResult_2_VO/ListResult_2_Row["+2 +"]/col3",combo8.label + "班");
  401. model.setValue("/root/dg2/ListResult_2_VO/ListResult_2_Row["+2 +"]/col5",combo9.label + "班");
  402. model.setValue("/root/dg2/ListResult_2_VO/ListResult_2_Row["+3 +"]/col3",model.getValue("/root/WK/TRNF_REG"));
  403. model.setValue("/root/dg2/ListResult_2_VO/ListResult_2_Row["+3 +"]/col5",model.getValue("/root/WK/TRNF_DTIME") + " ");
  404. model.setValue("/root/dg2/ListResult_2_VO/ListResult_2_Row["+ (transList.length+7) +"]/col1","小计");
  405. model.setValue("/root/dg2/ListResult_2_VO/ListResult_2_Row["+ (transList.length+7) +"]/col2",transList.length + "卷");
  406. //model.setValue("/root/dg2/ListResult_2_VO/ListResult_2_Row["+ (transList.length+7) +"]/col9",(wgtCount/1000) + "吨");
  407. model.refresh();
  408. saveExcelScript2(dg2,"Sheet1");
  409. }
  410. }
  411. }
  412. /**
  413. 移送实绩导出功能
  414. */
  415. function saveExcelScript2(sDGridName, sExcelSheetName, saveType) {
  416. var sExcelName = window.fileDialog( "save", "", false, "冷轧钢卷移送实绩明细单", "xls", "Excel Files(*.xls)|*.xls" );
  417. if ( sExcelName == "" ) {
  418. return;
  419. }
  420. //var sCSVName = "C:\\TFSmartUpdater\\" + sExcelName.lastIndexOf(".") +".csv";
  421. var sCSVName = sExcelName + ".csv" ;
  422. //alert("sExcelName = ["+ sExcelName +"]\nsCSVName = ["+ sCSVName + "]");
  423. eval(sDGridName).saveText(sCSVName, "\n", ",", '\:', true); //DataGrid? ??? CSV??? ??
  424. ObjTFExcel.launchNewInstance(0); //Execute EXCEL
  425. ObjTFExcel.createWorkbook(); //Create new Workbook(for example:Sheet1,Sheet2,Sheet3) -- createWorkBook(Excel-TemplateFile)
  426. ObjTFExcel.loadCSV(sCSVName); //Loading Contents, from CSV to Excel
  427. //Setting up EXCEL Layout.
  428. var nRows = sDGridName.rows - sDGridName.fixedRows; //Keep Careful !!!
  429. //导出表的列数
  430. var nCols = sDGridName.cols;
  431. //All of the range
  432. ObjTFExcel.fontcolor( 01, 01, nRows, nCols ) = "#000000" ;
  433. ObjTFExcel.font ( 01, 01, nRows, nCols ) = "SimSun" ;
  434. //Header
  435. //Line 1 : Sheet Title
  436. //行高的设置
  437. ObjTFExcel.rowheight( 01 ) = 30 ;
  438. ObjTFExcel.bold ( 01, 01, 01, nCols ) = true ;
  439. //改变字体大小
  440. ObjTFExcel.fontsize ( 01, 01, 01, nCols ) = 14;
  441. ObjTFExcel.underline( 01, 01, 01, nCols ) = 3 ;
  442. ObjTFExcel.halign ( 01, 01, 01, nCols ) ="center" ;
  443. ObjTFExcel.valign ( 01, 01, 01, nCols ) ="top" ;
  444. ObjTFExcel.mergeCell( 01, 01, 01, nCols ) ;
  445. // ObjTFExcel.colwidth ( 01 ) = 200 ;
  446. for(var i = 2; i <= nRows; i++ ) {
  447. ObjTFExcel.rowHeight( i ) = 18;
  448. }
  449. //取消边框
  450. ObjTFExcel.setBorderColor( 01, 01, nRows, nCols, "#000000") ;
  451. //ObjTFExcel.bold ( 01, 01, nRows, nCols ) = false ;
  452. ObjTFExcel.bold ( 01, 01, 01, nCols) = true ;
  453. ObjTFExcel.bold ( 02, 02, 02, 02 ) = true ;
  454. ObjTFExcel.bold ( 02, 04, 02, 04) = true ;
  455. ObjTFExcel.bold ( 03, 02, 03, 02 ) = true ;
  456. ObjTFExcel.bold ( 03, 04, 03, 04 ) = true ;
  457. ObjTFExcel.bold ( 04, 01, 04, nCols) = true ;
  458. //改变字体大小
  459. ObjTFExcel.fontsize ( 02, 01, nRows, nCols ) = 12 ;
  460. ObjTFExcel.underline ( 01, 01, nRows, nCols ) = 0 ;
  461. ObjTFExcel.valign ( 01, 01, nRows, nCols ) ="middle" ;
  462. //字体居中
  463. ObjTFExcel.halign ( 04, 01, 04, nCols ) ="center" ;
  464. ObjTFExcel.halign ( 05, 02, nRows, nCols ) ="left" ;
  465. //字体左对齐的特殊定义
  466. ObjTFExcel.halign ( 01, 01, 02, nCols ) ="left" ;
  467. ObjTFExcel.halign ( 01, 01, 03, nCols ) ="left" ;
  468. //ObjTFExcel.halign ( 01, 01, 04, nCols ) ="left" ;
  469. //ObjTFExcel.halign ( 01, 01, 05, nCols ) ="left" ;
  470. //ObjTFExcel.halign ( 01, 01, 06, nCols ) ="left" ;
  471. ObjTFExcel.halign ( 01, 01, 01, nCols ) ="center" ;
  472. //合并单元格
  473. //ObjTFExcel.mergeCell(02,02,02,03);
  474. ObjTFExcel.mergeCell(02,05,02,18);
  475. //ObjTFExcel.mergeCell(03,02,03,03);
  476. ObjTFExcel.mergeCell(03,05,03,18);
  477. //设置列的宽度
  478. ObjTFExcel.colwidth ( 01 ) = 8 ;
  479. ObjTFExcel.colwidth ( 02 ) = 16 ;
  480. ObjTFExcel.colwidth ( 03 ) = 13 ;
  481. ObjTFExcel.colwidth ( 04 ) = 16 ;
  482. //设置表格文本常规格式
  483. ObjTFExcel.setFormat(05, 04, nRows, 04, "0;@");
  484. ObjTFExcel.colwidth ( 05 ) = 10 ;
  485. //设置表格文本格式
  486. ObjTFExcel.setFormat(05, 05, nRows, 05, "000;@");
  487. ObjTFExcel.colwidth ( 06 ) = 10 ;
  488. ObjTFExcel.colwidth ( 07 ) = 10 ;
  489. ObjTFExcel.colwidth ( 08 ) = 10 ;
  490. ObjTFExcel.colwidth ( 09 ) = 10 ;
  491. ObjTFExcel.colwidth ( 10 ) = 12 ;
  492. ObjTFExcel.colwidth ( 11 ) = 10 ;
  493. ObjTFExcel.colwidth ( 12 ) = 10 ;
  494. ObjTFExcel.colwidth ( 13 ) = 15 ;
  495. ObjTFExcel.colwidth ( 14 ) = 12 ;
  496. ObjTFExcel.halign (05,14, nRows, 14) ="right" ;
  497. ObjTFExcel.setFormat(05, 14, nRows, 14, "yyyy\"-\"mm\"-\"dd;@");
  498. ObjTFExcel.colwidth ( 15 ) = 12 ;
  499. ObjTFExcel.colwidth ( 16 ) = 21 ;
  500. ObjTFExcel.halign (05,16, nRows, 16) ="right" ;
  501. ObjTFExcel.setFormat(05, 16, nRows, 16, "yyyy\"-\"mm\"-\"dd\"\" hh\":\"mm\":\"ss\"\";@");
  502. ObjTFExcel.colwidth ( 17 ) = 12 ;
  503. ObjTFExcel.colwidth ( 18 ) = 21 ;
  504. ObjTFExcel.halign (05,18, nRows, 18) ="right" ;
  505. ObjTFExcel.setFormat(05, 18, nRows,18, "yyyy\"-\"mm\"-\"dd\"\" hh\":\"mm\":\"ss\"\";@");
  506. //ObjTFExcel.halign (05,16, nRows, 16) ="right" ; //接收日期
  507. //ObjTFExcel.setFormat(05, 18, nRows, 18, "yyyy\"-\"mm\"-\"dd\"\" hh\":\"mm\":\"ss\"\";@");
  508. ObjTFExcel.sheetName(1) = sExcelSheetName;
  509. ObjTFExcel.save(sExcelName); //Saving EXCEL
  510. ObjTFExcel.close(); //Closing EXCEL. (You must be closed EXCEL !!!)
  511. //window.exec("EXCEL.EXE", sExcelName); //Openning EXCEL
  512. }
  513. /**
  514. *移送实绩导出对象
  515. */
  516. function TransObject2(){
  517. this.id2 = null;
  518. this.coilNo2 = null;
  519. this.stlGrd2 = null;
  520. this.ordNo2 = null;
  521. this.ordSeq2 = null;
  522. this.coilWth2 = null;
  523. this.coilThk2 = null;
  524. this.coilLen2 = null;
  525. this.coilWgt2 = 0;
  526. this.crPlantClf2 = null;
  527. this.crPlantNo2 = null;
  528. this.crPlantCd2 = null;
  529. this.curLoadLoc2 = null;
  530. this.crPlantTime2 = null;
  531. this.receiveReg2 = null;
  532. this.receiveTime2 = null;
  533. this.trnfReg2 = null;
  534. this.trnfTime2 = null;
  535. }
  536. /*
  537. *查询操作
  538. */
  539. function find(){
  540. model.removenode("/root/reqData");
  541. model.makeNode("/root/reqData");
  542. model.refresh();
  543. model.duplicate("/root/reqData","/root/QDATA/ORD_NO");
  544. model.duplicate("/root/reqData","/root/QDATA/ORD_SEQ");
  545. model.duplicate("/root/reqData","/root/QDATA/COIL_NO");
  546. commSubmit("UIH052402-service", "find", "glueAction.do");
  547. commAppendData("/root/datagrid1/ColdCoilResult_VO","/root/resData/ColdCoilResult_VO");
  548. model.refresh();
  549. //计算总数目和总重量
  550. }
  551. function getNowFormatDate() {
  552. var currentdate = commCurDate();
  553. return currentdate;
  554. }
  555. /**
  556. *移送冷轧操作
  557. */
  558. function save(){
  559. model.removenode("/root/reqData");
  560. model.makeNode("/root/reqData");
  561. //这里判断不为空
  562. if(model.getValue("/root/WK/TRNF_SHIFT") == ""){
  563. alert(" 出库班次信息不能为空,请选择相应的出库班次! ");
  564. return;
  565. }
  566. if(model.getValue("/root/WK/TRNF_GROUP") == ""){
  567. alert(" 出库班组信息不能为空,请选择相应的出库班组信息!! ");
  568. return;
  569. }
  570. if(model.getValue("/root/WK/TRNF_REG") == ""){
  571. alert(" 出库人信息不能为空,请选择相应的出库人信息!! ");
  572. return;
  573. }
  574. if(model.getValue("/root/WK/TRNF_DTIME") == ""){
  575. alert(" 出库时间信息不能为空,请输入相应的出库时间信息!! ");
  576. return;
  577. }
  578. if(model.getValue("/root/WK/TRANSFER_TYPE") == ""){
  579. alert(" 移送区分不能为空,请选 择相应的移送方式!! ");
  580. return;
  581. }
  582. if(model.getValue("/root/WK/TRANSFER_NO") == ""){
  583. alert(" 步进梁号/车辆号不能为空,请输入相应的步进梁号/车辆号!! ");
  584. return;
  585. }
  586. var tmpdate = getNowFormatDate();
  587. var inputdate =model.getValue("/root/WK/TRNF_DTIME") ;
  588. if(inputdate!=tmpdate)
  589. {
  590. alert("所输移送日期"+"("+inputdate+")"+"不等于当前日期"+"("+tmpdate+")"+",禁止移送,请重新输入!");
  591. return;
  592. }
  593. var transList = new Array();
  594. var nRows = 0;
  595. var nCnt = datagrid1.rows - datagrid1.fixedRows + 1;
  596. var coilNos = "";
  597. var actWgts = "";
  598. var ordNos = "";
  599. var ordSeqs = "";
  600. var curProgCds = "";
  601. var lshs = "";
  602. var transSeqs = "";//移送顺序
  603. var transId = 1;
  604. for( var i = datagrid1.fixedRows ; i <= nCnt ; i++ ) {
  605. if( datagrid1.valueMatrix(i, datagrid1.colRef("CHK")) == "Y") {
  606. if(1.7>datagrid1.valueMatrix(i, datagrid1.colRef("COIL_THK")) >0){
  607. alert("厚度不符合要求!(0~2mm不允许移送)");
  608. return;
  609. }
  610. //移送顺序
  611. if(datagrid1.valueMatrix(i, datagrid1.colRef("CR_PLANT_TRS_SEQ")) == ""){
  612. alert("移送的钢卷必须输入移送顺序,请确认后重新操作!");
  613. return;
  614. }
  615. //钢卷号
  616. coilNos += datagrid1.valueMatrix(i, datagrid1.colRef("OLD_SAMPL_NO"))+"|";
  617. actWgts += datagrid1.valueMatrix(i, datagrid1.colRef("ACT_WGT"))+"|";
  618. ordNos += datagrid1.valueMatrix(i, datagrid1.colRef("ORD_NO"))+"|";
  619. ordSeqs += datagrid1.valueMatrix(i, datagrid1.colRef("ORD_SEQ"))+"|";
  620. curProgCds += datagrid1.valueMatrix(i, datagrid1.colRef("CUR_PROG_CD"))+"|";
  621. lshs += datagrid1.valueMatrix(i, datagrid1.colRef("COIL_NO"))+"|";//流水号
  622. transSeqs += datagrid1.valueMatrix(i, datagrid1.colRef("CR_PLANT_TRS_SEQ")) + "|";
  623. var transObj = new TransObject();
  624. transObj.id = transId;
  625. transObj.coilNo = datagrid1.valueMatrix(i, datagrid1.colRef("OLD_SAMPL_NO"));
  626. transObj.chargeNo = datagrid1.valueMatrix(i, datagrid1.colRef("CHARGE_NO"));
  627. transObj.stlGrd = datagrid1.valueMatrix(i, datagrid1.colRef("STL_GRD"));
  628. transObj.coilThk = datagrid1.valueMatrix(i, datagrid1.colRef("COIL_THK"));
  629. transObj.coilWth = datagrid1.valueMatrix(i, datagrid1.colRef("COIL_WTH"));
  630. transObj.instrCoilThk = datagrid1.valueMatrix(i, datagrid1.colRef("INSTR_COIL_THK"));
  631. transObj.instrCoilWth = datagrid1.valueMatrix(i, datagrid1.colRef("INSTR_COIL_WTH"));
  632. transObj.coilWgt = datagrid1.valueMatrix(i, datagrid1.colRef("ACT_WGT"));
  633. transObj.india = datagrid1.valueMatrix(i, datagrid1.colRef("COIL_INDIA"));
  634. transObj.outdia = datagrid1.valueMatrix(i, datagrid1.colRef("COIL_OUTDIA"));
  635. transObj.yardAddr = datagrid1.valueMatrix(i, datagrid1.colRef("CUR_LOAD_LOC"));
  636. transObj.extShape = datagrid1.valueMatrix(i, datagrid1.colRef("EXTSHAPE_DEC_GRD"));
  637. transId++;
  638. transList.push(transObj);
  639. }
  640. nRows++;
  641. }
  642. if(nRows > 0){
  643. model.makeValue("/root/WK/COIL_NOS",coilNos);
  644. model.duplicate("/root/reqData","/root/WK/COIL_NOS");
  645. model.makeValue("/root/WK/ACT_WGTS",actWgts);
  646. model.duplicate("/root/reqData","/root/WK/ACT_WGTS");
  647. model.makeValue("/root/WK/ORD_NOS",ordNos);
  648. model.duplicate("/root/reqData","/root/WK/ORD_NOS");
  649. model.makeValue("/root/WK/ORD_SEQS",ordSeqs);
  650. model.duplicate("/root/reqData","/root/WK/ORD_SEQS");
  651. model.makeValue("/root/WK/CUR_PROG_CDS",curProgCds);
  652. model.duplicate("/root/reqData","/root/WK/CUR_PROG_CDS");
  653. model.makeValue("/root/WK/LSHS",lshs);
  654. model.duplicate("/root/reqData","/root/WK/LSHS");
  655. model.makeValue("/root/WK/TRANSSEQS",transSeqs);
  656. model.duplicate("/root/reqData","/root/WK/TRANSSEQS");
  657. //这里加入班次、班组、出库人、时间
  658. model.duplicate("/root/reqData","/root/WK/TRNF_SHIFT");
  659. model.duplicate("/root/reqData","/root/WK/TRNF_GROUP");
  660. model.duplicate("/root/reqData","/root/WK/TRNF_REG");
  661. model.duplicate("/root/reqData","/root/WK/TRNF_DTIME");
  662. model.duplicate("/root/reqData","/root/WK/TRANSFER_TYPE");
  663. model.duplicate("/root/reqData","/root/WK/TRANSFER_NO");
  664. commSubmit("UIH052402-service" ,"save","glueAction.do");
  665. if(transList.length > 0)
  666. {
  667. commAppendData ("/root/dg1/ListResult_1_VO" ,"/root/EXCELHead/ListResult_1_VO" );
  668. var wgtCount = 0;
  669. for(var k = 0;k < transList.length;k++){
  670. var transObj = transList[k];
  671. var row = k+5;
  672. model.makeNode("/root/dg1/ListResult_1_VO/ListResult_1_Row["+ row +"]/col1");
  673. model.setValue("/root/dg1/ListResult_1_VO/ListResult_1_Row["+ row +"]/col1",transObj.id);
  674. model.makeNode("/root/dg1/ListResult_1_VO/ListResult_1_Row["+ row +"]/col2");
  675. model.setValue("/root/dg1/ListResult_1_VO/ListResult_1_Row["+ row +"]/col2",transObj.coilNo);
  676. model.makeNode("/root/dg1/ListResult_1_VO/ListResult_1_Row["+ row +"]/col3");
  677. model.setValue("/root/dg1/ListResult_1_VO/ListResult_1_Row["+ row +"]/col3",transObj.chargeNo);
  678. model.makeNode("/root/dg1/ListResult_1_VO/ListResult_1_Row["+ row +"]/col4");
  679. model.setValue("/root/dg1/ListResult_1_VO/ListResult_1_Row["+ row +"]/col4",transObj.stlGrd);
  680. model.makeNode("/root/dg1/ListResult_1_VO/ListResult_1_Row["+ row +"]/col5");
  681. model.setValue("/root/dg1/ListResult_1_VO/ListResult_1_Row["+ row +"]/col5",transObj.coilThk);
  682. model.makeNode("/root/dg1/ListResult_1_VO/ListResult_1_Row["+ row +"]/col6");
  683. model.setValue("/root/dg1/ListResult_1_VO/ListResult_1_Row["+ row +"]/col6",transObj.coilWth);
  684. model.makeNode("/root/dg1/ListResult_1_VO/ListResult_1_Row["+ row +"]/col7");
  685. model.setValue("/root/dg1/ListResult_1_VO/ListResult_1_Row["+ row +"]/col7",transObj.instrCoilThk);
  686. model.makeNode("/root/dg1/ListResult_1_VO/ListResult_1_Row["+ row +"]/col8");
  687. model.setValue("/root/dg1/ListResult_1_VO/ListResult_1_Row["+ row +"]/col8",transObj.instrCoilWth);
  688. model.makeNode("/root/dg1/ListResult_1_VO/ListResult_1_Row["+ row +"]/col9");
  689. model.setValue("/root/dg1/ListResult_1_VO/ListResult_1_Row["+ row +"]/col9",transObj.coilWgt);
  690. model.makeNode("/root/dg1/ListResult_1_VO/ListResult_1_Row["+ row +"]/col10");
  691. model.setValue("/root/dg1/ListResult_1_VO/ListResult_1_Row["+ row +"]/col10",transObj.outdia);
  692. model.makeNode("/root/dg1/ListResult_1_VO/ListResult_1_Row["+ row +"]/col11");
  693. model.setValue("/root/dg1/ListResult_1_VO/ListResult_1_Row["+ row +"]/col11",transObj.india);
  694. model.makeNode("/root/dg1/ListResult_1_VO/ListResult_1_Row["+ row +"]/col12");
  695. model.setValue("/root/dg1/ListResult_1_VO/ListResult_1_Row["+ row +"]/col12",transObj.yardAddr);
  696. model.makeNode("/root/dg1/ListResult_1_VO/ListResult_1_Row["+ row +"]/col13");
  697. model.setValue("/root/dg1/ListResult_1_VO/ListResult_1_Row["+ row +"]/col13",transObj.extShape);
  698. wgtCount += parseFloat(transObj.coilWgt);
  699. }
  700. for(var k = 5;k < 8;k++){
  701. model.makeNode("/root/dg1/ListResult_1_VO/ListResult_1_Row["+ (transList.length+k) +"]/col1");
  702. model.makeNode("/root/dg1/ListResult_1_VO/ListResult_1_Row["+ (transList.length+k) +"]/col2");
  703. model.makeNode("/root/dg1/ListResult_1_VO/ListResult_1_Row["+ (transList.length+k) +"]/col3");
  704. model.makeNode("/root/dg1/ListResult_1_VO/ListResult_1_Row["+ (transList.length+k) +"]/col4");
  705. model.makeNode("/root/dg1/ListResult_1_VO/ListResult_1_Row["+ (transList.length+k) +"]/col5");
  706. model.makeNode("/root/dg1/ListResult_1_VO/ListResult_1_Row["+ (transList.length+k) +"]/col6");
  707. model.makeNode("/root/dg1/ListResult_1_VO/ListResult_1_Row["+ (transList.length+k) +"]/col7");
  708. model.makeNode("/root/dg1/ListResult_1_VO/ListResult_1_Row["+ (transList.length+k) +"]/col8");
  709. model.makeNode("/root/dg1/ListResult_1_VO/ListResult_1_Row["+ (transList.length+k) +"]/col9");
  710. model.makeNode("/root/dg1/ListResult_1_VO/ListResult_1_Row["+ (transList.length+k) +"]/col10");
  711. model.makeNode("/root/dg1/ListResult_1_VO/ListResult_1_Row["+ (transList.length+k) +"]/col11");
  712. model.makeNode("/root/dg1/ListResult_1_VO/ListResult_1_Row["+ (transList.length+k) +"]/col12");
  713. model.makeNode("/root/dg1/ListResult_1_VO/ListResult_1_Row["+ (transList.length+k) +"]/col13");
  714. }
  715. model.setValue("/root/dg1/ListResult_1_VO/ListResult_1_Row["+2 +"]/col2",combo8.label + "班");
  716. model.setValue("/root/dg1/ListResult_1_VO/ListResult_1_Row["+2 +"]/col5",combo9.label + "班");
  717. model.setValue("/root/dg1/ListResult_1_VO/ListResult_1_Row["+3 +"]/col2",model.getValue("/root/WK/TRNF_REG"));
  718. model.setValue("/root/dg1/ListResult_1_VO/ListResult_1_Row["+3 +"]/col5",model.getValue("/root/WK/TRNF_DTIME") + " ");
  719. model.setValue("/root/dg1/ListResult_1_VO/ListResult_1_Row["+ (transList.length+7) +"]/col1","小计");
  720. model.setValue("/root/dg1/ListResult_1_VO/ListResult_1_Row["+ (transList.length+7) +"]/col2",transList.length + "卷");
  721. model.setValue("/root/dg1/ListResult_1_VO/ListResult_1_Row["+ (transList.length+7) +"]/col9",(wgtCount/1000) + "吨");
  722. model.refresh();
  723. saveExcelScript(dg1,"Sheet1");
  724. }
  725. }
  726. model.refresh();
  727. find();
  728. }
  729. function TransObject(){
  730. this.id = null;
  731. this.coilNo = null;
  732. this.chargeNo = null;
  733. this.stlGrd = null;
  734. this.coilThk = null;
  735. this.coilWth = null;
  736. this.instrCoilThk = null;
  737. this.instrCoilWth = null;
  738. this.coilWgt = null;
  739. this.india = null;
  740. this.outdia = null;
  741. this.yardAddr = null;
  742. this.extShape = null;
  743. }
  744. function saveExcelScript(sDGridName, sExcelSheetName, saveType) {
  745. var sExcelName = window.fileDialog( "save", "", false, "SaveFileName", "xls", "Excel Files(*.xls)|*.xls" );
  746. if ( sExcelName == "" ) {
  747. return;
  748. }
  749. //var sCSVName = "C:\\TFSmartUpdater\\" + sExcelName.lastIndexOf(".") +".csv";
  750. var sCSVName = sExcelName + ".csv" ;
  751. //alert("sExcelName = ["+ sExcelName +"]\nsCSVName = ["+ sCSVName + "]");
  752. eval(sDGridName).saveText(sCSVName, "\n", ",", '\:', true); //DataGrid? ??? CSV??? ??
  753. ObjTFExcel.launchNewInstance(0); //Execute EXCEL
  754. ObjTFExcel.createWorkbook(); //Create new Workbook(for example:Sheet1,Sheet2,Sheet3) -- createWorkBook(Excel-TemplateFile)
  755. ObjTFExcel.loadCSV(sCSVName); //Loading Contents, from CSV to Excel
  756. //Setting up EXCEL Layout.
  757. var nRows = sDGridName.rows - sDGridName.fixedRows; //Keep Careful !!!
  758. var nCols = sDGridName.cols;
  759. //Header
  760. //Line 1 : Sheet Title
  761. //行高的设置
  762. ObjTFExcel.rowheight( 01 ) = 50 ;
  763. ObjTFExcel.bold ( 01, 01, 01, nCols ) = true ;
  764. //改变字体大小
  765. ObjTFExcel.fontsize ( 01, 01, 01, nCols ) = 18;
  766. ObjTFExcel.underline( 01, 01, 01, nCols ) = 3 ;
  767. ObjTFExcel.halign ( 01, 01, 01, nCols ) ="center" ;
  768. ObjTFExcel.valign ( 01, 01, 01, nCols ) ="top" ;
  769. ObjTFExcel.mergeCell( 01, 01, 01, nCols ) ;
  770. ObjTFExcel.colwidth ( 01 ) = 200 ;
  771. //All of the range
  772. ObjTFExcel.fontcolor ( 01, 01, nRows, nCols ) = "#000000" ;
  773. ObjTFExcel.font ( 01, 01, nRows, nCols ) = "SimSun" ;
  774. //取消边框
  775. ObjTFExcel.setBorderColor( 04, 01, nRows, nCols, "#000000") ;
  776. ObjTFExcel.bold ( 01, 01, nRows, nCols ) = true ;
  777. //改变字体大小
  778. ObjTFExcel.fontsize ( 02, 01, nRows, nCols ) = 12 ;
  779. ObjTFExcel.underline ( 01, 01, nRows, nCols ) = 0 ;
  780. ObjTFExcel.valign ( 01, 01, nRows, nCols ) ="middle" ;
  781. //字体居中
  782. ObjTFExcel.halign ( 01, 01, nRows, nCols ) ="center" ;
  783. //字体左对齐的特殊定义
  784. ObjTFExcel.halign ( 01, 01, 02, nCols ) ="left" ;
  785. ObjTFExcel.halign ( 01, 01, 03, nCols ) ="left" ;
  786. //ObjTFExcel.halign ( 01, 01, 04, nCols ) ="left" ;
  787. //ObjTFExcel.halign ( 01, 01, 05, nCols ) ="left" ;
  788. //ObjTFExcel.halign ( 01, 01, 06, nCols ) ="left" ;
  789. ObjTFExcel.halign ( 01, 01, 01, nCols ) ="center" ;
  790. //合并单元格
  791. ObjTFExcel.mergeCell(02,02,02,03);
  792. ObjTFExcel.mergeCell(02,05,02,13);
  793. ObjTFExcel.mergeCell(03,02,03,03);
  794. ObjTFExcel.mergeCell(03,05,03,13);
  795. //设置列的宽度
  796. ObjTFExcel.colwidth ( 01 ) = 10 ;
  797. ObjTFExcel.colwidth ( 02 ) = 15 ;
  798. ObjTFExcel.colwidth ( 03 ) = 12 ;
  799. ObjTFExcel.colwidth ( 04 ) = 15 ;
  800. ObjTFExcel.colwidth ( 05 ) = 10 ;
  801. ObjTFExcel.colwidth ( 06 ) = 10 ;
  802. ObjTFExcel.colwidth ( 07 ) = 10 ;
  803. ObjTFExcel.colwidth ( 08 ) = 10 ;
  804. ObjTFExcel.colwidth ( 09 ) = 10 ;
  805. ObjTFExcel.colwidth ( 10 ) = 10 ;
  806. ObjTFExcel.colwidth ( 11 ) = 10 ;
  807. ObjTFExcel.colwidth ( 12 ) = 15 ;
  808. ObjTFExcel.colwidth ( 13 ) = 10 ;
  809. // ObjTFExcel.setFormat(iRow, 14, nRows, 14, "yyyy\"-\"mm\"-\"dd\"\" hh\":\"mm\":\"ss\"\";@");
  810. ObjTFExcel.sheetName(1) = sExcelSheetName;
  811. ObjTFExcel.save(sExcelName); //Saving EXCEL
  812. ObjTFExcel.close(); //Closing EXCEL. (You must be closed EXCEL !!!)
  813. window.exec("EXCEL.EXE", sExcelName); //Openning EXCEL
  814. }
  815. /*
  816. *查询称送实绩
  817. */
  818. function findTrans(){
  819. model.removenode("/root/reqData");
  820. model.makeNode("/root/reqData");
  821. model.refresh();
  822. model.duplicate("/root/reqData","/root/TR/TRANSFER_TIME");
  823. model.duplicate("/root/reqData","/root/TR/TRANSFER_NO");
  824. commSubmit("UIH052402-service", "findTrans", "glueAction.do");
  825. commAppendData("/root/datagrid2/CoilTransResult_VO","/root/resData/CoilTransResult_VO");
  826. model.refresh();
  827. //计算总数目和总重量
  828. }
  829. //移送退回
  830. function returnTrans(){
  831. model.removenode("/root/reqData");
  832. model.makeNode("/root/reqData");
  833. model.refresh();
  834. //这里判断不为空
  835. if(model.getValue("/root/WK/TRNF_SHIFT") == ""){
  836. alert(" 入库班次信息不能为空,请选择相应的入库班次! ");
  837. return;
  838. }
  839. if(model.getValue("/root/WK/TRNF_GROUP") == ""){
  840. alert(" 入库班组信息不能为空,请选择相应的入库班组信息!! ");
  841. return;
  842. }
  843. if(model.getValue("/root/WK/TRNF_REG") == ""){
  844. alert(" 入库人信息不能为空,请选择相应的入库人信息!! ");
  845. return;
  846. }
  847. if(model.getValue("/root/WK/TRNF_DTIME") == ""){
  848. alert(" 入库时间信息不能为空,请输入相应的入库时间信息!! ");
  849. return;
  850. }
  851. var nodeSet = datagrid2.nodeset;
  852. for(var i=1;i<datagrid2.rows;i++){
  853. var CHK = model.getValue(nodeSet+"["+i+"]/CHK");
  854. var CURLOADLOC = model.getValue(nodeSet+"["+i+"]/CUR_LOAD_LOC");
  855. if(CHK =="Y" && CURLOADLOC == ""){
  856. alert(" 第"+i+"行的堆放位置为空,请输入相应的堆放位置! ");
  857. return;
  858. }
  859. }
  860. //这里加入班次、班组、入库人、时间
  861. model.duplicate("/root/reqData","/root/WK/TRNF_SHIFT");
  862. model.duplicate("/root/reqData","/root/WK/TRNF_GROUP");
  863. model.duplicate("/root/reqData","/root/WK/TRNF_REG");
  864. model.duplicate("/root/reqData","/root/WK/TRNF_DTIME");
  865. //这里加入登录用户名,会不会与已有的initData冲突
  866. model.makeValue("/root/reqData/LOGIN_ID",model.getValue("/root/initData/rcvInfo/REG_ID"));
  867. commMultiUpdate(datagrid2,"/root/reqData","A",true,"rowStuts");
  868. commSubmit("UIH052400-service", "returnTrans", "glueAction.do");
  869. if(model.getValue("/root/resData/rs_VO/rs_Row") == "COILIN"){
  870. alert(" 冷轧原料已接收入库,无法直接退回!");
  871. return;
  872. }
  873. findTrans();
  874. }
  875. ]]>
  876. </script>
  877. </xhtml:head>
  878. <xhtml:body>
  879. <caption id="caption4" class="cell" style="left:910px; top:45px; width:70px; height:20px; font-weight:bold; border-color:#000000; "/>
  880. <!--<caption id="caption3" class="cell" style="left:750px; top:0px; width:70px; height:20px; font-weight:bold; border-color:#000000; "/>
  881. <button id="button3" style="left:750px; top:0px; width:70px; height:20px; border-color:#000000; ">
  882. <caption>步进梁锁定</caption>
  883. <script type="javascript" ev:event="DOMActivate">
  884. <![CDATA[
  885. ]]>
  886. </script>
  887. </button>-->
  888. <caption id="caption9" class="cell" style="left:900px; top:320px; width:80px; height:20px; font-weight:bold; border-color:#000000; "/>
  889. <object id="ObjTFExcel" clsid="{fe8d1001-6a9d-424d-ae2a-301493bb12da}" style="left:710px; top:40px; width:1px; height:1px; "/>
  890. <button id="button6" visibility="hidden" style="left:900px; top:320px; width:80px; height:20px; border-color:#000000; ">
  891. <caption>冷轧移送退回</caption>
  892. <script type="javascript" ev:event="DOMActivate">
  893. <![CDATA[
  894. returnTrans();
  895. ]]>
  896. </script>
  897. </button>
  898. <datagrid id="datagrid1" nodeset="/root/datagrid1/ColdCoilResult_VO/ColdCoilResult_Row" caption="选择^钢卷号^进程状态^牌号^合同号^订单号^实际规格^实际规格^实际规格^实际规格^堆放位置^进程状态^移送顺序^移送区分^步进梁号/车辆号^移送日期|选择^钢卷号^进程状态^牌号^合同号^订单号^宽度^厚度^长度^重量^堆放位置^进程状态^移送顺序^移送区分^步进梁号/车辆号^移送日期" colsep="^" colwidth="30, 100, 100, 66, 100, 50, 40, 40, 40, 40, 100, 100, 60, 76, 107, 118, 119, 100, 100, 100, 100, 100, 100" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:65px; width:980px; height:230px; ">
  899. <col checkvalue="Y,N" ref="CHK" type="checkbox"/>
  900. <col ref="OLD_SAMPL_NO"/>
  901. <col ref="CUR_PROG_CD_NM"/>
  902. <col ref="STL_GRD"/>
  903. <col ref="ORD_NO"/>
  904. <col ref="ORD_SEQ"/>
  905. <col ref="COIL_WTH"/>
  906. <col ref="COIL_THK"/>
  907. <col ref="COIL_LEN"/>
  908. <col ref="ACT_WGT"/>
  909. <col ref="CUR_LOAD_LOC"/>
  910. <col ref="CUR_PROG_CD" visibility="hidden"/>
  911. <col ref="CR_PLANT_TRS_SEQ" type="input" style="background-color:#ffff99; "/>
  912. <col ref="TRANSFER_TYPE" type="combo">
  913. <choices>
  914. <item>
  915. <label>冷轧厂</label>
  916. <value>B</value>
  917. </item>
  918. <item>
  919. <label>其它转运</label>
  920. <value>C</value>
  921. </item>
  922. </choices>
  923. </col>
  924. <col ref="TRANSFER_NO" type="input"/>
  925. <col ref="TRANSFER_DATE" type="date"/>
  926. <col ref="COIL_NO" visibility="hidden"/>
  927. <col ref="CHARGE_NO" visibility="hidden"/>
  928. <col ref="INSTR_COIL_THK" visibility="hidden"/>
  929. <col ref="INSTR_COIL_WTH" visibility="hidden"/>
  930. <col ref="COIL_INDIA" visibility="hidden"/>
  931. <col ref="COIL_OUTDIA" visibility="hidden"/>
  932. <col ref="EXTSHAPE_DEC_GRD" visibility="hidden"/>
  933. </datagrid>
  934. <!--<output id="output1" style="left:820px; top:0px; width:90px; height:20px; background-color:#00ccff; "/>-->
  935. <datagrid id="datagrid2" nodeset="/root/datagrid2/CoilTransResult_VO/CoilTransResult_Row" caption="选择^钢卷号^牌号^合同号^订单号^实际规格^实际规格^实际规格^实际规格^移送区分^步进梁号/车辆号^移送顺序^钢卷退回放置位置^移送日期^接收人^接收时间^退回人^退回时间|选择^钢卷号^牌号^合同号^订单号^宽度^厚度^长度^重量^移送区分^步进梁号/车辆号^移送顺序^钢卷退回放置位置^移送日期^接收人^接收时间^退回人^退回时间" colsep="^" colwidth="30, 90, 55, 90, 45, 40, 40, 40, 40, 83, 80, 63, 90, 90, 100, 100, 100, 100" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:340px; width:980px; height:265px; ">
  936. <col checkvalue="Y,N" ref="CHK" type="checkbox"/>
  937. <col ref="OLD_SAMPL_NO"/>
  938. <col ref="STL_GRD"/>
  939. <col ref="ORD_NO"/>
  940. <col ref="ORD_SEQ"/>
  941. <col ref="COIL_WTH"/>
  942. <col ref="COIL_THK"/>
  943. <col ref="COIL_LEN"/>
  944. <col ref="ACT_WGT"/>
  945. <col ref="CR_PLANT_TRS_CLF"/>
  946. <col ref="CR_PLANT_TRS_NO"/>
  947. <col ref="CR_PLANT_TRS_CD"/>
  948. <col ref="CUR_LOAD_LOC" type="input" style="background-color:#ffff99; "/>
  949. <col ref="CR_PLANT_TRS_DTIME"/>
  950. <col ref="RECEIVE_REG"/>
  951. <col ref="RECEIBE_TIME"/>
  952. <col ref="TRNF_REG"/>
  953. <col ref="TRNF_DTIME"/>
  954. </datagrid>
  955. <caption id="caption5" class="cell" style="left:115px; top:320px; width:85px; height:20px; font-weight:bold; border-color:#000000; ">移送日期</caption>
  956. <input id="input1" ref="/root/TR/TRANSFER_NO" style="left:415px; top:320px; width:105px; height:20px; background-color:#ffff99; "/>
  957. <caption id="caption6" class="cell" style="left:300px; top:320px; width:115px; height:20px; font-weight:bold; border-color:#000000; ">步进梁号/车辆号</caption>
  958. <input id="input2" ref="/root/TR/TRANSFER_TIME" inputtype="date" format="yyyy-mm-dd" style="left:180px; top:320px; width:110px; height:20px; background-color:#ffff99; "/>
  959. <caption id="caption1" class="cell" style="left:0px; top:320px; width:95px; height:20px; font-weight:bold; border-color:#000000; ">常化移送实绩</caption>
  960. <caption id="caption2" class="cell" style="left:0px; top:45px; width:90px; height:20px; font-weight:bold; border-color:#000000; ">常化移送对象</caption>
  961. <button id="button1" style="left:910px; top:45px; width:70px; height:20px; border-color:#000000; ">
  962. <caption>移送</caption>
  963. <script type="javascript" ev:event="DOMActivate">
  964. <![CDATA[
  965. save();
  966. ]]>
  967. </script>
  968. </button>
  969. <caption id="caption3" class="cell" style="left:835px; top:45px; width:70px; height:20px; font-weight:bold; border-color:#000000; "/>
  970. <button id="button2" style="left:835px; top:45px; width:70px; height:20px; border-color:#000000; ">
  971. <caption>查询</caption>
  972. <script type="javascript" ev:event="DOMActivate">
  973. <![CDATA[
  974. find();
  975. ]]>
  976. </script>
  977. </button>
  978. <caption id="caption21" class="cell" style="left:0px; top:10px; width:60px; height:20px; vertical-align:middle; border-color:#000000; ">班次</caption>
  979. <caption id="caption23" class="cell" style="left:130px; top:10px; width:60px; height:20px; vertical-align:middle; border-color:#000000; ">班组</caption>
  980. <caption id="caption10" class="cell" style="left:405px; top:10px; width:60px; height:20px; border-color:#000000; ">操作时间</caption>
  981. <caption id="caption14" class="cell" style="left:260px; top:10px; width:60px; height:20px; vertical-align:middle; border-color:#000000; ">操作人</caption>
  982. <select1 id="combo8" ref="/root/WK/TRNF_SHIFT" appearance="minimal" style="left:60px; top:10px; width:65px; height:20px; background-color:#ffff99; ">
  983. <choices>
  984. <item>
  985. <label>早</label>
  986. <value>1</value>
  987. </item>
  988. <item>
  989. <label>中</label>
  990. <value>2</value>
  991. </item>
  992. <item>
  993. <label>晚</label>
  994. <value>3</value>
  995. </item>
  996. </choices>
  997. </select1>
  998. <select1 id="combo9" ref="/root/WK/TRNF_GROUP" appearance="minimal" style="left:190px; top:10px; width:65px; height:20px; background-color:#ffff99; ">
  999. <choices>
  1000. <item>
  1001. <label>甲</label>
  1002. <value>A</value>
  1003. </item>
  1004. <item>
  1005. <label>乙</label>
  1006. <value>B</value>
  1007. </item>
  1008. <item>
  1009. <label>丙</label>
  1010. <value>C</value>
  1011. </item>
  1012. <item>
  1013. <label>丁</label>
  1014. <value>D</value>
  1015. </item>
  1016. </choices>
  1017. </select1>
  1018. <input id="input6" ref="/root/WK/TRNF_DTIME" inputtype="date" format="yyyy-mm-dd" style="left:465px; top:10px; width:100px; height:20px; background-color:#ffff99; "/>
  1019. <caption id="caption11" class="cell" style="left:570px; top:10px; width:60px; height:20px; vertical-align:middle; border-color:#000000; ">移送区分</caption>
  1020. <select1 id="combo1" ref="/root/WK/TRANSFER_TYPE" appearance="minimal" style="left:630px; top:10px; width:90px; height:20px; background-color:#ffff99; ">
  1021. <choices>
  1022. <item>
  1023. <label>冷轧厂</label>
  1024. <value>B</value>
  1025. </item>
  1026. <item>
  1027. <label>其它转运</label>
  1028. <value>C</value>
  1029. </item>
  1030. </choices>
  1031. </select1>
  1032. <caption id="caption12" class="cell" style="left:725px; top:10px; width:100px; height:20px; vertical-align:middle; border-color:#000000; ">步进梁号/车辆号</caption>
  1033. <input id="input4" ref="/root/WK/TRANSFER_NO" style="left:825px; top:10px; width:100px; height:20px; background-color:#ffff99; "/>
  1034. <button id="button3" style="left:815px; top:320px; width:80px; height:20px; border-color:#000000; ">
  1035. <caption>移送选择退回</caption>
  1036. <script type="javascript" ev:event="DOMActivate">
  1037. <![CDATA[
  1038. ]]>
  1039. </script>
  1040. </button>
  1041. <caption id="caption13" class="cell" style="left:815px; top:320px; width:80px; height:20px; font-weight:bold; border-color:#000000; "/>
  1042. <button id="button4" style="left:815px; top:320px; width:80px; height:20px; border-color:#000000; ">
  1043. <caption>查询移送实绩</caption>
  1044. <script type="javascript" ev:event="DOMActivate">
  1045. <![CDATA[
  1046. findTrans();
  1047. ]]>
  1048. </script>
  1049. </button>
  1050. <caption id="caption15" class="cell" style="left:255px; top:45px; width:85px; height:20px; vertical-align:middle; border-color:#000000; ">合同-订单号</caption>
  1051. <input id="input5" ref="/root/QDATA/ORD_NO" style="left:340px; top:45px; width:100px; height:20px; background-color:#ffff99; "/>
  1052. <input id="input7" ref="/root/QDATA/ORD_SEQ" style="left:445px; top:45px; width:50px; height:20px; background-color:#ffff99; "/>
  1053. <select id="checkbox1" ref="/root/QDATA/ORD_YN" visibility="hidden" overflow="visible" appearance="full" style="left:125px; top:45px; width:100px; height:20px; border-style:none; ">
  1054. <choices>
  1055. <item>
  1056. <label>是否余材</label>
  1057. <value>1</value>
  1058. </item>
  1059. </choices>
  1060. </select>
  1061. <caption id="caption16" class="cell" style="left:515px; top:45px; width:50px; height:20px; vertical-align:middle; border-color:#000000; ">钢卷号</caption>
  1062. <input id="input8" ref="/root/QDATA/COIL_NO" style="left:565px; top:45px; width:120px; height:20px; background-color:#ffff99; ">
  1063. <script type="javascript" ev:event="onkeypress">
  1064. <![CDATA[
  1065. if(event.keyCode==13){
  1066. model.setFocus("datagrid1" , true);//设置焦点
  1067. find();
  1068. }
  1069. ]]>
  1070. </script>
  1071. </input>
  1072. <!--visibility="hidden" -->
  1073. <datagrid id="dg1" nodeset="/root/dg1/ListResult_1_VO/ListResult_1_Row" visibility="hidden" caption="caption1^caption2^caption3^caption4^caption5^caption6^caption7^caption8^caption9^caption10^caption11^caption12^caption13" colsep="^" colwidth="70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 100, 100" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:605px; width:0px; height:0px; ">
  1074. <col ref="col1"/>
  1075. <col ref="col2"/>
  1076. <col ref="col3"/>
  1077. <col ref="col4"/>
  1078. <col ref="col5"/>
  1079. <col ref="col6"/>
  1080. <col ref="col7"/>
  1081. <col ref="col8"/>
  1082. <col ref="col9"/>
  1083. <col ref="col10"/>
  1084. <col ref="col11"/>
  1085. <col ref="col12"/>
  1086. <col ref="col13"/>
  1087. </datagrid>
  1088. <!--visibility="hidden" -->
  1089. <datagrid id="dg2" nodeset="/root/dg2/ListResult_2_VO/ListResult_2_Row" visibility="hidden" caption="caption1^caption2^caption3^caption4^caption5^caption6^caption7^caption8^caption9^caption10^caption11^caption12^caption13^caption14^caption15^caption16^caption17^caption18" colsep="^" colwidth="70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 100, 100, 100, 100, 100, 100, 100" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:605px; width:0px; height:0px; ">
  1090. <col ref="col1"/>
  1091. <col ref="col2"/>
  1092. <col ref="col3"/>
  1093. <col ref="col4"/>
  1094. <col ref="col5"/>
  1095. <col ref="col6"/>
  1096. <col ref="col7"/>
  1097. <col ref="col8"/>
  1098. <col ref="col9"/>
  1099. <col ref="col10"/>
  1100. <col ref="col11"/>
  1101. <col ref="col12"/>
  1102. <col ref="col13"/>
  1103. <col ref="col14"/>
  1104. <col ref="col15"/>
  1105. <col ref="col16"/>
  1106. <col ref="col17"/>
  1107. <col ref="col18"/>
  1108. </datagrid>
  1109. <button id="button5" style="left:730px; top:320px; width:80px; height:20px; border-color:#000000; ">
  1110. <caption>移送选择退回</caption>
  1111. <script type="javascript" ev:event="DOMActivate">
  1112. <![CDATA[
  1113. ]]>
  1114. </script>
  1115. </button>
  1116. <button id="button7" style="left:730px; top:320px; width:80px; height:20px; border-color:#000000; ">
  1117. <caption>查询移送实绩</caption>
  1118. <script type="javascript" ev:event="DOMActivate">
  1119. <![CDATA[
  1120. findTrans();
  1121. ]]>
  1122. </script>
  1123. </button>
  1124. <caption id="caption8" class="cell" style="left:730px; top:320px; width:80px; height:20px; font-weight:bold; border-color:#000000; "/>
  1125. <button id="button8" visibility="hidden" style="left:730px; top:320px; width:80px; height:20px; border-color:#000000; ">
  1126. <caption>移送确认</caption>
  1127. <script type="javascript" ev:event="DOMActivate">
  1128. <![CDATA[
  1129. window.load("UIH052401.xrw","modal","", "left:0; top:0; width:980; height:650; sysmenu:visible; min:visible; max:true; resize:true; caption:visible;");
  1130. ]]>
  1131. </script>
  1132. </button>
  1133. <button id="button11" style="left:645px; top:320px; width:80px; height:20px; border-color:#000000; ">
  1134. <caption>导出</caption>
  1135. <script type="javascript" ev:event="DOMActivate">
  1136. <![CDATA[
  1137. setExcelData();
  1138. ]]>
  1139. </script>
  1140. </button>
  1141. <select1 id="combo7" ref="/root/WK/TRNF_REG" appearance="minimal" editmode="input" style="left:320px; top:10px; width:80px; height:20px; background-color:#ffff99; ">
  1142. <choices>
  1143. <itemset nodeset="/root/RegResultc/InitRegResultc_Row">
  1144. <label ref="LABEL"/>
  1145. <value ref="VALUE"/>
  1146. </itemset>
  1147. </choices>
  1148. </select1>
  1149. </xhtml:body>
  1150. </xhtml:html>