6bc779b95b155060a33d613f6cc26cd3880891d6.svn-base 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <?xml-stylesheet " type="text/css" href="../../css/body.css" ?>
  3. <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
  4. <xhtml:head>
  5. <xhtml:title>Untitle</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <reqData/>
  10. <resData/>
  11. <formData>
  12. <roll_no/>
  13. <p_st_date/>
  14. <p_end_date/>
  15. <millst_date/>
  16. <millend_date/>
  17. <ord_no/>
  18. <ord_seq/>
  19. <PRD_TY/>
  20. <fahuo_fangshi/>
  21. <ordthk/>
  22. </formData>
  23. <gridData>
  24. <EmpListResult_VO/>
  25. </gridData>
  26. <initResult/>
  27. <g1Data>
  28. <SEQ/>
  29. <PIHAO/>
  30. <PIHAO_SEQ/>
  31. <STL_GRD/>
  32. <SLAB_THK/>
  33. <SLAB_WTH/>
  34. <SLAB_LEN/>
  35. <SLAB_WGT/>
  36. <HOT_THK_AIM/>
  37. <WTH_AIM/>
  38. <SLAB_NO/>
  39. <GJH/>
  40. <QY/>
  41. <CHARGE_NO/>
  42. <BZ/>
  43. <SM_CFNM/>
  44. <COIL_NO/>
  45. </g1Data>
  46. <gridDate2>
  47. <EmpListResult2_VO/>
  48. </gridDate2>
  49. <initData>
  50. <LG_CD>A01004</LG_CD>
  51. </initData>
  52. <codeData/>
  53. </root>
  54. </instance>
  55. <script type="javascript" ev:event="xforms-ready">
  56. <![CDATA[
  57. pageInit();
  58. // input1.value = commCurDate();
  59. // input2.value = commCurDate()-1;
  60. ]]>
  61. </script>
  62. <script type="javascript" src="../../js/boaMsg.js"/>
  63. <script type="javascript" src="../../js/boaCommon.js"/>
  64. <script type="javascript" src="../../js/dCommon.js"/>
  65. <script type="javascript" src="../../js/bCommon.js"/>
  66. <script type="javascript">
  67. <![CDATA[
  68. //1、获取用户登录信息,只能在页面初始化函数中调用
  69. function InitParams(node)
  70. {
  71. if (typeof node == "undefined" && typeof node != "object") return;
  72. model.removenode("/root/initData/rcvInfo");
  73. model.makeNode("/root/initData/rcvInfo");
  74. var nodeList = node.childNodes;
  75. for (var i = 0; i < nodeList.length; i++)
  76. model.instances(0).selectSingleNode("/root/initData/rcvInfo").appendChild(nodeList.item(i));
  77. }
  78. function pageInit()
  79. {
  80. commSubmit("UIF025020-service","findRollManaNo","glueAction.do");
  81. model.copyNode("/root/gridDate2/EmpListResult2_VO","/root/resData/EmpListResult2_VO");
  82. model.refresh();
  83. model.removenode("/root/resData/EmpListResult2_VO");
  84. rollnumber.select(0);
  85. //model.removenode("/root/reqData");
  86. commSendReq("/root/initData");
  87. commSubmit("UIGCOMMCODE-service","find","glueAction.do");
  88. model.copyNode("/root/codeData","/root/resData");
  89. model.refresh();
  90. }
  91. //2. 页面初始化函数(必须)
  92. function Init(node)
  93. {
  94. InitParams(node); // 用于设置节点:/root/initData/rcvInfo,获取用户登录信息
  95. // 在程序中会重建该节点,最好不要重名
  96. // 函数 InitParams 在 mesCommon.js 中,仅在需要使用登录用户信息时调用
  97. //...
  98. }
  99. //3、页面标题
  100. function setTitle()
  101. {
  102. return "生产管制 >> 作业进程现状 >> 轧制计划查询"; // 如:return "进程管理 >> 订单进程现况查询";
  103. }
  104. //4. 页面按键动作
  105. // 查询按键
  106. function find()
  107. {
  108. model.removenode("/root/reqData");
  109. //model.makeNode("/root/reqData");
  110. model.makeValue("/root/reqData/ROLLMANANO",model.getValue("/root/formData/roll_no"));
  111. model.makeValue("/root/reqData/p_st_date",input2.value);
  112. model.makeValue("/root/reqData/p_end_date",input1.value);
  113. model.makeValue("/root/reqData/millst_date" , input3.value);
  114. model.makeValue("/root/reqData/millend_date", input4.value);
  115. model.makeValue("/root/reqData/ord_no" , input5.value);
  116. model.makeValue("/root/reqData/ord_seq", input6.value);
  117. model.makeValue("/root/reqData/fahuo_fangshi",combo1.value);
  118. model.makeValue("/root/reqData/PRD_TY",combo105.value);
  119. model.makeValue("/root/reqData/ordthk", input7.value);
  120. // if(rollnumber.value == "" || rollnumber.value == null)
  121. // {
  122. // alert("查询单元为空时,请选择开始时间!");
  123. // return;
  124. //
  125. // }
  126. commSubmit("UIF025020-service","findRollWork","glueAction.do");
  127. model.copyNode("/root/gridData/EmpListResult_VO","/root/resData/EmpListResult_VO");
  128. model.removenode("/root/resData/EmpListResult_VO");
  129. model.refresh();
  130. color_status();
  131. model.refresh();
  132. // differentiateRollManaNo();
  133. }
  134. // function initColor() {
  135. // var firstbiaojiwei = datagrid1.valueMatrix(2,0);
  136. // for(var i = 2;i<=datagrid1.rows-datagrid1.fixedRows+1;i++) {
  137. // var bjcolor = datagrid1.rowstyle(i, "data", "color");
  138. // if(bjcolor == "#ff00ff") {
  139. // datagrid1.rowstyle(i, "data", "color") = "";
  140. // }
  141. // }
  142. // }
  143. // function differentiateRollManaNo() {
  144. // initColor();
  145. // var firstbiaojiwei = datagrid1.valueMatrix(2,0);
  146. // for(var i = 2;i<=datagrid1.rows-datagrid1.fixedRows+1;i++) {
  147. // biaojiwei = datagrid1.valueMatrix(i,0);
  148. // while(biaojiwei != firstbiaojiwei) {
  149. // datagrid1.rowstyle(i, "data", "color") = "#ff00ff";
  150. // firstbiaojiwei = biaojiwei;
  151. // }
  152. // }
  153. // }
  154. function saveExcelScript(sDGridName, sExcelSheetName, saveType) {
  155. var sExcelName = window.fileDialog("save", ",", false, "", "xls", "Excel File(*.xls)|*.xls");
  156. if ( sExcelName == "" ) {
  157. return;
  158. }
  159. //var sCSVName = "C:\\TFSmartUpdater\\" + sExcelName.lastIndexOf(".") +".csv";
  160. var sCSVName = sExcelName +".csv";
  161. //alert("sExcelName = ["+ sExcelName +"]\nsCSVName = ["+ sCSVName + "]");
  162. eval(sDGridName).saveText(sCSVName, "\n", ",", '\:', true); //DataGrid? ??? CSV??? ??
  163. ObjTFExcel.launchNewInstance(0); //Execute EXCEL
  164. ObjTFExcel.createWorkbook(); //Create new Workbook(for example:Sheet1,Sheet2,Sheet3) -- createWorkBook(Excel-TemplateFile)
  165. ObjTFExcel.loadCSV(sCSVName); //Loading Contents, from CSV to Excel
  166. //Setting up EXCEL Layout.
  167. //var nRows = sDGridName.rows - sDGridName.fixedRows + 1; //Keep Careful !!!
  168. var nRows = sDGridName.rows ; //Keep Careful !!!
  169. var nCols = sDGridName.cols;
  170. //Header
  171. //Line 1 : Sheet Title
  172. //行高的设置
  173. //All of the range
  174. ObjTFExcel.fontcolor ( 01, 01, nRows, nCols ) = "#000000" ;
  175. ObjTFExcel.font ( 01, 01, nRows, nCols ) = "SimSun" ;
  176. //取消边框
  177. ObjTFExcel.setBorderColor( 01, 01, nRows, nCols, "#000000") ;
  178. ObjTFExcel.bold ( 01, 01, nRows, nCols ) = true ;
  179. //改变字体大小
  180. ObjTFExcel.fontsize ( 01, 01, nRows, nCols ) = 12 ;
  181. ObjTFExcel.underline ( 01, 01, nRows, nCols ) = 0 ;
  182. ObjTFExcel.valign ( 01, 01, nRows, nCols ) ="middle" ;
  183. //字体居中
  184. ObjTFExcel.halign ( 01, 01, nRows, nCols ) ="center" ;
  185. //Query-Results Data
  186. var iRow = 1; // iRow = HeaderLine + 1;
  187. //这里设置字体的行宽
  188. // for(var i = iRow; i <= nRows; i++ ) {
  189. // if( (i%5) == 1 ) {
  190. // ObjTFExcel.rowHeight( i ) = 60;
  191. // ObjTFExcel.mergeCell( i, 01, i, nCols );
  192. // } else if( (i%5) == 0 ) {
  193. // ObjTFExcel.rowHeight( i ) = 45;
  194. // ObjTFExcel.mergeCell( i, 01, i, nCols );
  195. // } else {
  196. // ObjTFExcel.rowHeight( i ) = 40;
  197. // }
  198. // }
  199. //改变文本格式的方法,未知
  200. //ObjTFExcel.setformat(02,02,02,03,'@');
  201. //设置列的宽度
  202. ObjTFExcel.colwidth ( 01 ) = 5 ;
  203. ObjTFExcel.colwidth ( 02 ) = 10 ;
  204. ObjTFExcel.colwidth ( 03 ) = 50 ;
  205. ObjTFExcel.colwidth ( 04 ) = 10 ;
  206. ObjTFExcel.colwidth ( 05 ) = 15 ;
  207. ObjTFExcel.colwidth ( 06 ) = 10 ;
  208. ObjTFExcel.colwidth ( 07 ) = 10 ;
  209. ObjTFExcel.colwidth ( 08 ) = 5 ;
  210. ObjTFExcel.colwidth ( 09 ) = 5 ;
  211. ObjTFExcel.colwidth ( 10 ) = 10 ;
  212. // ObjTFExcel.setFormat(iRow, 14, nRows, 14, "yyyy\"-\"mm\"-\"dd\"\" hh\":\"mm\":\"ss\"\";@");
  213. ObjTFExcel.sheetName(1) = sExcelSheetName;
  214. ObjTFExcel.save(sExcelName); //Saving EXCEL
  215. ObjTFExcel.close(); //Closing EXCEL. (You must be closed EXCEL !!!)
  216. window.exec("EXCEL.EXE", sExcelName); //Openning EXCEL
  217. }
  218. function excelExport() {
  219. return datagrid1;
  220. }
  221. function color_status()
  222. {
  223. for(var i = 2;i<=datagrid1.rows-1;i++){
  224. var SLAB_WTH = parseFloat(datagrid1.valueMatrix(i,datagrid1.colRef("SLAB_WTH")));
  225. var WTH_AIM = parseFloat(datagrid1.valueMatrix(i,datagrid1.colRef("WTH_AIM")));
  226. var SLAB_INGR_DEC_GRD = datagrid1.valueMatrix(i,datagrid1.colRef("SLAB_INGR_DEC_GRD"));
  227. var SLAB_WGT= parseFloat(datagrid1.valueMatrix(i,datagrid1.colRef("WEIGHT_WGT")));
  228. var COIL_WGT = parseFloat(datagrid1.valueMatrix(i,datagrid1.colRef("ACT_WGT"))/1000);
  229. var strtime = datagrid1.valueMatrix(i,datagrid1.colRef("TIMES"));
  230. var v_status = datagrid1.valueMatrix(i,datagrid1.colRef("STATUS_CD"));
  231. var v_cfnm= datagrid1.valueMatrix(i,datagrid1.colRef("SM_CFNM"));
  232. var bgcolor = "#ffffff";
  233. if(v_status == "轧制吊销" ) {
  234. bgcolor = "red";
  235. }else if(v_status == "轧制进行") {
  236. bgcolor = "#ffffcc";
  237. if(SLAB_WTH < WTH_AIM){
  238. bgcolor = "#00ff00";
  239. }
  240. }else if(v_status == "轧制完成") {
  241. bgcolor = "#00ffff";
  242. }else if(v_status == "上料进行") {
  243. bgcolor = "#ff99ff";
  244. }else if(v_status == "轧废或中板") {
  245. bgcolor = "#c0c0c0";
  246. }else{
  247. if(SLAB_INGR_DEC_GRD != "合格"){
  248. bgcolor = "#ffcc00";
  249. }else if(SLAB_WTH < WTH_AIM){
  250. bgcolor = "#0000ff";
  251. }else{
  252. bgcolor = "#ffffff";
  253. }
  254. }
  255. if(SLAB_WGT <= COIL_WGT ) {
  256. bgcolor = "#ffff00";
  257. }
  258. datagrid1.rowstyle(i, "data", "background-color") = bgcolor;
  259. if(28<=strtime && v_status != "轧制完成") {
  260. datagrid1.cellstyle("background-color", i, datagrid1.colRef("TIMES") ) = "#a50021";
  261. }
  262. if(v_cfnm == "安徽鸿翔建材有限公司" ) {
  263. datagrid1.rowStyle(i , "data" , "color") = "#ff0000";//
  264. }
  265. }
  266. }
  267. function fowardUID010031(gridID,colName) {
  268. if(gridID.col == gridID.colRef(colName)) {
  269. model.makeValue("/root/fwdData/UID010031/ORD_NO", gridID.valueMatrix(gridID.row, gridID.colRef("ORD_NO")));
  270. model.makeValue("/root/fwdData/UID010031/ORD_SEQ", gridID.valueMatrix(gridID.row, gridID.colRef("ORD_SEQ")));
  271. model.makeValue("/root/fwdData/UID010031/URL", "../../B/B01/UIB015020.xrw");
  272. var java = window.parent.javaScript;
  273. java.open(model.instances(0).selectSingleNode("/root/fwdData/UID010031"));
  274. }
  275. }
  276. ]]>
  277. </script>
  278. </model>
  279. </xhtml:head>
  280. <xhtml:body pageheight="620" guideline="1,980;" style="font-family:宋体; ">
  281. <datagrid id="datagrid1" nodeset="/root/gridData/EmpListResult_VO/EmpListResult_Row" scroll="auto" backcoloralternate="#f7f9f9" caption="轧辊单元^轧辊内顺序^流水号^板坯号^入炉在库^在库时间^钢卷号^批号^序号^取样^炼钢计划牌号^钢种^板坯^板坯^板坯^板坯^坯料类型^板坯位置^板坯理论重量kg^板坯磅重^判定规格^判定规格^成品规格mm^成品规格mm^进行状态^炉号^发货方式^发货单位^订货单位^合同号^订单号^交货期^日计划编制人^编制时间^客户订单用途^产品类型^钢卷位置^在炉时间^钢卷重量^过磅时间^成材率^轧制时间^客户成分特殊要求^材质特殊要求^公差特殊要求^成分等级|轧辊单元^轧辊内顺序^流水号^板坯号^入炉在库^在库时间^钢卷号^批号^序号^取样^炼钢计划牌号^钢种^厚度^宽度^平均宽度^长度^坯料类型^板坯位置^板坯理论重量kg^板坯磅重^厚度^宽度^厚度^宽度^进行状态^炉号^发货方式^发货单位^订货单位^合同号^订单号^交货期^日计划编制人^编制时间^客户订单用途^产品类型^钢卷位置^在炉时间^钢卷重量^过磅时间^成材率^轧制时间^客户成分特殊要求^材质特殊要求^公差特殊要求^成分等级" colsep="^" colwidth="63, 65, 60, 112, 86, 88, 105, 100, 100, 52, 71, 60, 52, 55, 61, 55, 100, 100, 71, 66, 49, 52, 58, 55, 70, 76, 55, 68, 63, 100, 100, 100, 47, 69, 100, 100, 100, 73, 100, 74, 57, 60, 60, 60, 100, 100" explorerbar="sortshow" extendlastcol="false" frozencols="3" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:75px; width:980px; height:540px; ">
  282. <col editable="false" ref="ROLLMANANUMBER" type="input"/>
  283. <col editable="false" ref="SEQ" type="input"/>
  284. <col editable="false" ref="COIL_NO" type="input"/>
  285. <col editable="false" ref="SLAB_NO" type="input"/>
  286. <col editable="false" ref="TIMES" type="input"/>
  287. <col editable="false" ref="TIMES1" type="input"/>
  288. <col editable="false" ref="GJH" type="input"/>
  289. <col ref="PIHAO"/>
  290. <col ref="PIHAO_SEQ"/>
  291. <col ref="QY"/>
  292. <col ref="LG_STL_GRD"/>
  293. <col editable="false" ref="STL_GRD" type="input" style="text-align:left; "/>
  294. <col ref="SLAB_THK" format="#,##0" style="text-align:right; "/>
  295. <col ref="SLAB_WTH" format="#,##0" style="text-align:right; "/>
  296. <col ref="AVG_WIDTH" style="text-align:right; "/>
  297. <col ref="SLAB_LEN" format="#,##0" style="text-align:right; "/>
  298. <col key="false" ref="PLLX" type="input"/>
  299. <col ref="SLAB_LOAD_LOC"/>
  300. <col ref="SLAB_WGT" format="#,##0" style="text-align:right; "/>
  301. <col ref="WEIGHT_WGT" style="text-align:right; "/>
  302. <col ref="DCS_THK" style="text-align:right; "/>
  303. <col ref="DCS_WTH" style="text-align:right; "/>
  304. <col ref="HOT_THK_AIM" format="#.##0" style="text-align:right; "/>
  305. <col ref="WTH_AIM" format="#.##0" style="text-align:right; "/>
  306. <col ref="STATUS_CD" style="text-align:left; "/>
  307. <col ref="CHARGE_NO"/>
  308. <col ref="BZ" style="text-align:left; "/>
  309. <col ref="ORDCUST_CD" style="text-align:left; "/>
  310. <col ref="SM_CFNM" style="text-align:left; "/>
  311. <col ref="ORD_NO"/>
  312. <col ref="ORD_SEQ"/>
  313. <col ref="DEL_TO_DATE"/>
  314. <col ref="USER_NM"/>
  315. <col ref="MOD_DTIME"/>
  316. <col ref="APPLICATION"/>
  317. <col ref="PRD_TY" type="combo">
  318. <choices>
  319. <itemset nodeset="/root/codeData/COMM_CODE_RESULT_VO/COMM_CODE_RESULT_Row[LG_CD = 'A01004']">
  320. <label ref="SM_CFNM"/>
  321. <value ref="SM_CD"/>
  322. </itemset>
  323. </choices>
  324. </col>
  325. <col ref="CUR_LOAD_LOC"/>
  326. <col ref="INFUR_HOUR" format="#.##0" style="text-align:right; "/>
  327. <col ref="ACT_WGT" format="#.##0" style="text-align:right; "/>
  328. <col ref="WGT_TIME"/>
  329. <col ref="CCL" format="#.##0" style="text-align:right; "/>
  330. <col ref="MILL_DTIME" style="text-align:left; "/>
  331. <col ref="INGR_YN" style="text-decoration:underline; color:#0000ff; cursor:hand; ">
  332. <script type="javascript" ev:event="onclick">
  333. <![CDATA[
  334. fowardUID010031(datagrid1,"INGR_YN");
  335. ]]>
  336. </script>
  337. </col>
  338. <col ref="QLTY_YN" style="text-decoration:underline; color:#0000ff; cursor:hand; ">
  339. <script type="javascript" ev:event="onclick">
  340. <![CDATA[
  341. fowardUID010031(datagrid1,"QLTY_YN");
  342. ]]>
  343. </script>
  344. </col>
  345. <col ref="DEL_YN" style="text-decoration:underline; color:#0000ff; cursor:hand; ">
  346. <script type="javascript" ev:event="onclick">
  347. <![CDATA[
  348. fowardUID010031(datagrid1,"DEL_YN");
  349. ]]>
  350. </script>
  351. </col>
  352. <col ref="SLAB_INGR_DEC_GRD"/>
  353. </datagrid>
  354. <caption id="caption1" class="cell" style="left:0px; top:5px; width:60px; height:20px; text-align:center; border-style:solid; ">轧辊单元</caption>
  355. <select1 id="rollnumber" ref="/root/formData/roll_no" appearance="minimal" editmode="inputsearch" style="left:61px; top:5px; width:90px; height:20px; ">
  356. <choices>
  357. <itemset nodeset="/root/gridDate2/EmpListResult2_VO/EmpListResult2_Row">
  358. <label ref="ROLL_MANA_NO_2"/>
  359. <value ref="ROLL_MANA_NO"/>
  360. </itemset>
  361. </choices>
  362. <script type="javascript" ev:event="xforms-value-changed">
  363. <![CDATA[
  364. //find();
  365. ]]>
  366. </script>
  367. <script type="javascript" ev:event="xforms-select">
  368. <![CDATA[
  369. input1.value = commCurDate();
  370. if(rollnumber.value == "%" || rollnumber.value == null) {
  371. input2.value = commCurDate()-1;
  372. }
  373. // else {
  374. // input2.value = "00000000";
  375. // }
  376. ]]>
  377. </script>
  378. </select1>
  379. <shape id="rectangle4" appearance="rectangle" style="left:584px; top:5px; width:10px; height:20px; background-color:#ff99ff; "/>
  380. <caption id="caption7" style="left:501px; top:5px; width:74px; height:20px; vertical-align:middle; ">轧制作业待机</caption>
  381. <shape id="rectangle2" appearance="rectangle" style="left:665px; top:5px; width:10px; height:20px; background-color:#ffffcc; "/>
  382. <caption id="caption3" style="left:680px; top:5px; width:35px; height:20px; vertical-align:middle; "/>
  383. <shape id="rectangle3" appearance="rectangle" style="left:740px; top:5px; width:10px; height:20px; background-color:#00ffff; "/>
  384. <caption id="caption4" style="left:677px; top:5px; width:54px; height:20px; vertical-align:middle; ">轧制进行</caption>
  385. <shape id="rectangle5" appearance="rectangle" style="left:816px; top:5px; width:10px; height:20px; background-color:red; "/>
  386. <caption id="caption5" style="left:829px; top:5px; width:54px; height:20px; vertical-align:middle; ">轧制吊销</caption>
  387. <shape id="rectangle6" appearance="rectangle" style="left:491px; top:5px; width:10px; height:20px; background-color:#ffffff; "/>
  388. <caption id="caption6" style="left:597px; top:5px; width:59px; height:20px; vertical-align:middle; ">上料进行</caption>
  389. <caption id="caption2" style="left:753px; top:5px; width:54px; height:20px; vertical-align:middle; ">轧制完成</caption>
  390. <shape id="rectangle1" appearance="rectangle" style="left:888px; top:5px; width:10px; height:20px; background-color:#c0c0c0; "/>
  391. <caption id="caption9" style="left:900px; top:5px; width:67px; height:20px; vertical-align:middle; ">轧废或中板</caption>
  392. <caption id="caption8" class="cell" style="left:0px; top:30px; width:60px; height:20px; ">编制时间</caption>
  393. <input id="input2" ref="/root/formData/p_st_date" editable="false" inputtype="date" required="true" style="left:60px; top:30px; width:102px; height:20px; "/>
  394. <input id="input1" ref="/root/formData/p_end_date" editable="false" inputtype="date" required="true" style="left:175px; top:30px; width:102px; height:20px; "/>
  395. <caption id="caption10" style="left:160px; top:40px; width:20px; height:9px; font-weight:bold; text-align:center; ">~</caption>
  396. <caption id="caption11" class="cell" style="left:300px; top:30px; width:60px; height:20px; ">轧制日期</caption>
  397. <input id="input3" ref="/root/formData/millst_date" inputtype="date" style="left:360px; top:30px; width:100px; height:20px; "/>
  398. <input id="input4" ref="/root/formData/millend_date" inputtype="date" style="left:475px; top:30px; width:100px; height:20px; "/>
  399. <caption id="caption12" style="left:460px; top:40px; width:20px; height:9px; font-weight:bold; text-align:center; ">~</caption>
  400. <shape id="rectangle7" appearance="rectangle" style="left:355px; top:5px; width:10px; height:20px; background-color:#ffcc00; "/>
  401. <caption id="caption13" style="left:370px; top:5px; width:110px; height:20px; vertical-align:middle; ">板坯成份等级不合格</caption>
  402. <shape id="rectangle8" appearance="rectangle" style="left:190px; top:5px; width:10px; height:20px; background-color:#0000ff; "/>
  403. <caption id="caption14" style="left:205px; top:5px; width:150px; height:20px; vertical-align:middle; ">板坯实际宽度小于订单宽度</caption>
  404. <shape id="rectangle9" appearance="rectangle" style="left:584px; top:30px; width:10px; height:20px; background-color:#00ff00; "/>
  405. <caption id="caption15" style="left:596px; top:30px; width:182px; height:20px; vertical-align:middle; ">入炉后板坯实际宽度小于订单宽度</caption>
  406. <caption id="caption16" class="cell" style="left:0px; top:53px; width:60px; height:20px; text-align:center; border-style:solid; ">合同号</caption>
  407. <input id="input5" ref="/root/formData/ord_no" style="left:60px; top:53px; width:100px; height:20px; "/>
  408. <caption id="caption17" class="cell" style="left:175px; top:53px; width:60px; height:20px; text-align:center; border-style:solid; ">订单号</caption>
  409. <input id="input6" ref="/root/formData/ord_seq" style="left:235px; top:53px; width:100px; height:20px; "/>
  410. <select1 id="combo22" ref="/root/formData/PRD_TY" visibility="hidden" appearance="minimal" style="left:920px; top:30px; width:50px; height:20px; ">
  411. <choices>
  412. <itemset nodeset="/root/codeData/COMM_CODE_RESULT_VO/COMM_CODE_RESULT_Row[LG_CD = 'A01004' or LG_CD ='A']">
  413. <label ref="SM_CFNM"/>
  414. <value ref="SM_CD"/>
  415. </itemset>
  416. </choices>
  417. </select1>
  418. <caption id="caption29" class="cell" style="left:350px; top:53px; width:58px; height:20px; font-weight:bold; border-color:#000000; ">产品类型</caption>
  419. <caption id="caption18" class="cell" style="left:520px; top:55px; width:58px; height:20px; font-weight:bold; border-color:#000000; ">发货方式</caption>
  420. <select1 id="combo1" ref="/root/formData/fahuo_fangshi" appearance="minimal" style="left:580px; top:55px; width:100px; height:20px; ">
  421. <choices>
  422. <item>
  423. <label/>
  424. <value/>
  425. </item>
  426. <item>
  427. <label>火</label>
  428. <value>铁路</value>
  429. </item>
  430. <item>
  431. <label>汽运</label>
  432. <value>公路</value>
  433. </item>
  434. </choices>
  435. </select1>
  436. <caption id="caption19" class="cell" style="left:715px; top:55px; width:58px; height:20px; font-weight:bold; border-color:#000000; ">订单厚度</caption>
  437. <input id="input7" ref="/root/formData/ordthk" style="left:775px; top:55px; width:100px; height:20px; "/>
  438. <input id="input8" style="left:880px; top:55px; width:100px; height:20px; "/>
  439. <input id="combo105" ref="/root/formData/PRD_TY" inputtype="button" appearance="minimal" style="left:410px; top:53px; width:100px; height:20px; ">
  440. <script type="javascript" ev:event="onclick">
  441. <![CDATA[
  442. //修改订单类型,可以多选。TL 091125
  443. checkbox1.visible = (checkbox1.visible == false);
  444. ]]>
  445. </script>
  446. </input>
  447. <select id="checkbox1" ref="/root/formData/PRD_TY" visibility="hidden" overflow="visible" appearance="full" style="left:410px; top:70px; width:100px; height:20px; background-color:#ffff99; border-width:1px; border-style:none; ">
  448. <choices>
  449. <itemset nodeset="/root/codeData/COMM_CODE_RESULT_VO/COMM_CODE_RESULT_Row[LG_CD = 'A01004' or LG_CD ='A']">
  450. <label ref="SM_CFNM"/>
  451. <value ref="SM_CD"/>
  452. </itemset>
  453. </choices>
  454. </select>
  455. <object id="ObjTFExcel" clsid="{fe8d1001-6a9d-424d-ae2a-301493bb12da}" style="left:810px; top:10px; width:155px; height:19px; "/>
  456. <button id="button1" visibility="hidden" style="left:640px; top:10px; width:60px; height:20px; ">
  457. <caption>button1</caption>
  458. <script type="javascript" ev:event="DOMActivate">
  459. <![CDATA[
  460. //导出EXCEL方法
  461. //saveExcelScript(datagrid1,"Sheet1");
  462. find();
  463. ]]>
  464. </script>
  465. </button>
  466. <button id="button2" visibility="hidden" style="left:710px; top:10px; width:60px; height:20px; ">
  467. <caption>button1</caption>
  468. <script type="javascript" ev:event="DOMActivate">
  469. <![CDATA[
  470. //导出EXCEL方法
  471. saveExcelScript(datagrid1,"Sheet1");
  472. //excelExport();
  473. ]]>
  474. </script>
  475. <script type="javascript" ev:event="onclick">
  476. <![CDATA[
  477. find();
  478. ]]>
  479. </script>
  480. </button>
  481. <shape id="rectangle10" appearance="rectangle" style="left:786px; top:30px; width:10px; height:20px; background-color:#ffff00; "/>
  482. <caption id="caption20" style="left:798px; top:30px; width:92px; height:20px; vertical-align:middle; ">卷重大于板坯重</caption>
  483. <button id="button3" style="left:870px; top:30px; width:75px; height:20px; font-family:黑体; color:#3366ff; background-color:#ffffff; ">
  484. <caption>导出</caption>
  485. <script type="javascript" ev:event="DOMActivate">
  486. <![CDATA[
  487. //saveExcelScript(datagrid1, "Sheet1");
  488. if(datagrid1.rows<=2){
  489. window.alert("无数据源,请先查询.", "提示");
  490. return;
  491. }
  492. var jsonMerges="[{'name':'y','x':0,'y':0,'cnt':1}]";
  493. var _cnt = datagrid1.selectedRows;
  494. commonOutExcel('ZZJHCX',datagrid1.caption,'/root/gridData/EmpListResult_VO','UIH090060-service',jsonMerges,'xls');
  495. ]]>
  496. </script>
  497. </button>
  498. </xhtml:body>
  499. </xhtml:html>