UIF024030.xrw 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <?xml-stylesheet href="../../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[生产管制 >> 热轧管理 >> 轧制参数指示与顺序调整]]>
  7. </xhtml:title>
  8. <model id="model1">
  9. <instance id="instance1">
  10. <root xmlns="">
  11. <reqData/>
  12. <resData/>
  13. <initResult/>
  14. <tempreqData>
  15. <ROLL_MANA_NO/>
  16. <ROLL_SLAB_SEQ/>
  17. </tempreqData>
  18. <formData>
  19. <gridParams>
  20. <ROLL_MANA_NO/>
  21. <ROLL_SLAB_SEQ/>
  22. <SLAB_NO/>
  23. <SLAB_WTH/>
  24. <SLAB_LEN/>
  25. <ORD_THK/>
  26. <ORD_WTH/>
  27. <ORD_WGT/>
  28. <STL_GRD/>
  29. <STATUS_CD/>
  30. <CUR_STORE_LOC/>
  31. <HCR_CLF/>
  32. <ORD_NO/>
  33. <ORD_SEQ/>
  34. <SPEC_ABBSYM/>
  35. <ORD_USEAGE_CD/>
  36. <DELV_REQ_DATE/>
  37. <ROUTE/>
  38. <FUR_IN_PRE_DTIME/>
  39. </gridParams>
  40. </formData>
  41. <searchForm>
  42. <TYPE/>
  43. <MODE/>
  44. <FROM/>
  45. <TO/>
  46. <TARGET/>
  47. <POS/>
  48. <REG_ID/>
  49. <MSG_ID/>
  50. </searchForm>
  51. <newElement/>
  52. <CHEN_NOT_G>成份不合格,显示红色</CHEN_NOT_G>
  53. <respDate>
  54. <startTime/>
  55. <endTime/>
  56. </respDate>
  57. </root>
  58. </instance>
  59. <script type="javascript" ev:event="xforms-ready">
  60. <![CDATA[
  61. commSubmit("UIF024010-service","success","glueAction.do");//提交服务
  62. model.duplicate("/root/initResult","/root/resData");
  63. model.refresh();
  64. if (window.parent == null) Init();
  65. ]]>
  66. </script>
  67. </model>
  68. <script type="javascript" src="../../js/boaCommon.js"/>
  69. <script type="javascript" src="../../js/boaMsg.js"/>
  70. <script type="javascript">
  71. <![CDATA[
  72. var cur_coil = "";
  73. var cur_roll = "";
  74. var FROM = "";
  75. var TO = "";
  76. var TARGET = "";
  77. var rollCnt = 0;
  78. var coilCnt = 0;
  79. var wth_len = 0;
  80. var thk_len = 0;
  81. var roll_row_path = "/root/initResult/resData/resultkey0_VO/resultkey0_Row";
  82. var coil_path = "/root/initResult/resData/resultkey1_VO/resultkey1_Row";
  83. var rollList = null;
  84. var input_wdt_arr = null;
  85. var coil_wth_List = null;
  86. var V_COIL_STAT_LIST = null;
  87. var coil_thk_List = null;
  88. var coil_no_list= null;
  89. var hcr_clf_list = null;
  90. var status_list = null;
  91. var coordinateY = 40;
  92. var coordinateX = 228;
  93. var groupTop1 = 136;
  94. var input_hight = 20;
  95. var rectangle_left = 0;
  96. var wthHighRate = 1/18;
  97. var thkHighRate = 5;
  98. var lineBorder = 2;
  99. var coilUnitHigh = 100;
  100. var coilUnitWidth = 8;//控制板坯的显示宽度比率
  101. var rollUnitHigh = 20;//控制板坯的显示高度的比率
  102. var rollUnitTop = 300;//控制板坯的显示TOP的位置
  103. var rollUnitLeftInit = 20;//控制板坯的LEFT开始位置
  104. var RollManaNo = "";
  105. var RollSlabSeq = "";
  106. var slab_no = "";
  107. function InitParams(node) {
  108. if (typeof node == "undefined" && typeof node != "object") return;
  109. model.removenode("/root/initData/rcvInfo");
  110. model.makeNode("/root/initData/rcvInfo");
  111. var nodeList = node.childNodes;
  112. node = model.instances(0).selectSingleNode("/root/initData/rcvInfo");
  113. for (var i = 0; i < nodeList.length; i++) {
  114. node.appendChild(nodeList.item(i));
  115. }
  116. model.makeValue("/root/formData/searchForm/USER_NAME",model.getValue("/root/initData/rcvInfo/REG_ID"));
  117. }
  118. //2. 页面初始化函数(必须)
  119. function Init(node)
  120. {
  121. InitParams(node);
  122. //这里取出系统时间,把从年头到年尾的情况依次添入
  123. var sysDtimeF = commCurDate();
  124. var sysDtimeT = commCurDate();
  125. model.setValue("/root/respDate/startTime",sysDtimeF);
  126. model.setValue("/root/respDate/endTime",sysDtimeT);
  127. model.refresh();
  128. }
  129. function setTitle()
  130. {
  131. return "热轧管制 >> 热轧管制指示 >> 轧制参数指示与顺序调整"; // 如:return "进程管理 >> 订单进程现况查询";
  132. }
  133. function initCoordinate()
  134. {
  135. var coordinateY = 40;
  136. var coordinateX = 228;
  137. var groupTop1 = 136;
  138. var input_hight = 20;
  139. var wthHighRate = 1/18;
  140. var thkHighRate = 5;
  141. var lineBorder = 2;
  142. var coilUnitHigh = 100;
  143. var coilUnitWidth = 8;//控制板坯的显示宽度比率
  144. var rollUnitHigh = 20;//控制板坯的显示高度的比率
  145. var rollUnitTop = 300;//控制板坯的显示TOP的位置
  146. var rollUnitLeftInit = 20;//控制板坯的LEFT开始位置
  147. }
  148. function initChartParams()
  149. {
  150. var roll_nodeList = root.selectNodes(roll_row_path);
  151. var coil_nodeList = root.selectNodes(coil_path);
  152. // var coil_wthList = root.selectNodes(coilWth_row_path);
  153. // var coil_thkList = root.selectNodes(coilThk_row_path);
  154. rollCnt = roll_nodeList.length;
  155. coilCnt = coil_nodeList.length;
  156. // wth_len = coil_wthList.length;
  157. // thk_len = coil_thkList.length;
  158. // var roll_coil_cnt = model.getValue("/root/initResult/resData/resultkey0_VO/resultkey0_Row[1]/ROLL_coil_CNT");
  159. rollList = new Array(rollCnt);
  160. input_wdt_arr = new Array(rollCnt);
  161. coil_wth_List = new Array(coilCnt);
  162. coil_thk_List = new Array(coilCnt);
  163. coil_no_list = new Array(coilCnt);
  164. hcr_clf_list = new Array(coilCnt);
  165. status_list = new Array(coilCnt);
  166. V_COIL_STAT_LIST = new Array(coilCnt);
  167. }
  168. function display()
  169. {
  170. rollDisplay();
  171. displayTwoLine();
  172. coilDisplay();
  173. coilMeasurement();
  174. }
  175. function rollDisplay()
  176. {
  177. var input_wdt = 0;
  178. for(var i=1;i<= rollCnt;i++ )
  179. {
  180. rollList[i] = model.getValue(roll_row_path +"["+i+"]/ROLL_MANA_NO");
  181. var wth = coilUnitWidth * model.getValue(roll_row_path+"["+(i)+"]/COILCNT");
  182. if(i == 1)
  183. {
  184. input_wdt +=( coordinateY + lineBorder);
  185. }
  186. else
  187. {
  188. input_wdt += (coilUnitWidth * model.getValue(roll_row_path+"["+(i-1)+"]/COILCNT"));
  189. }
  190. group1.createChild("xforms:input","id:input"+(i)+";left:"+input_wdt + "px;text-align:center;top:" + (82) + "px;width:"+wth+"px; height:" +input_hight+ "px;border-width:1px;ref :"+roll_row_path +"["+i+"]/ROLL_MANA_NO");
  191. var oInput = document.controls("input"+(i));
  192. }
  193. }
  194. function displayTwoLine()
  195. {
  196. group1.createChild("xforms:line","id:line1;x1:"+(coordinateY+lineBorder)+"px; y1:"+ (coordinateX- groupTop1-lineBorder-input_hight/2) +"px; x2:"+(coilCnt*coilUnitWidth + 100)+"px; y2:"+ (coordinateX- groupTop1-lineBorder-input_hight/2) +"px; border-color:#0000ff; border-width:2px; ");
  197. group1.createChild("xforms:line","id:line2;x1:"+(coordinateY+lineBorder)+"px; y1:"+ (coordinateX- groupTop1+input_hight/2) +"px; x2:"+(coilCnt*coilUnitWidth + 100)+"px; y2:"+ (coordinateX- groupTop1+input_hight/2) +"px; border-color:#0000ff; border-width:2px; ");
  198. }
  199. function coilDisplay()
  200. {
  201. for(var i = 1;i<=coilCnt;i++)
  202. {
  203. coil_wth_List[i] = model.getValue(coil_path +"["+i+"]/WTH_AIM");
  204. coil_thk_List[i] = model.getValue(coil_path +"["+i+"]/HOT_THK_AIM");
  205. hcr_clf_list[i] = model.getValue(coil_path +"["+i+"]/HCR_CLF");
  206. status_list[i] = model.getValue(coil_path +"["+i+"]/STATUS_CD");
  207. V_COIL_STAT_LIST[i] = model.getValue(coil_path +"["+i+"]/COIL_STAT");
  208. var bgcolor = "#c0c0c0";
  209. if(status_list[i] == "A" && V_COIL_STAT_LIST[i] == "0") {
  210. bgcolor = "pink";
  211. }
  212. if(status_list[i] == "B") {
  213. bgcolor = "#ffff99";
  214. }else if(hcr_clf_list[i] == "H") {
  215. bgcolor = "#ff5050";
  216. }
  217. if(i == 1)
  218. {
  219. rectangle_left = coordinateY + lineBorder;
  220. }else {
  221. rectangle_left += coilUnitWidth ;
  222. }
  223. group1.createChild("xforms:output","id:optwth"+ i + ";left:"+ (rectangle_left) + "px;top:" + (coordinateX- groupTop1-input_hight/2 -coil_wth_List[i] * wthHighRate)+ "px;width:" +coilUnitWidth+ "px; height:" + coil_wth_List[i] * wthHighRate+ "px;border-style:solid;ref:"+coil_path +"["+i+"]; background-color:"+bgcolor);
  224. group1.createChild("xforms:output","id:optthk"+ i + ";left:"+ (rectangle_left) + "px;top:" + (coordinateX- groupTop1+input_hight/2)+ "px;width: "+coilUnitWidth+ "px; height:" + coil_thk_List[i] * thkHighRate + "px;border-style:solid;ref:"+coil_path +"["+i+"];background-color:"+bgcolor);
  225. }
  226. }
  227. function coilMeasurement()
  228. {
  229. group1.createChild("xforms:line","id:lineWth+"+(1)+";x1:39px; y1:" + (coordinateX- groupTop1-lineBorder-1000 * wthHighRate)+"px; x2:30px; y2:" + (coordinateX- groupTop1-lineBorder-1000 * wthHighRate)+ "px;");
  230. group1.createChild("xforms:line","id:lineWth+"+(2)+";x1:39px; y1:" + (coordinateX- groupTop1-lineBorder-1500 * wthHighRate)+"px; x2:30px; y2:" + (coordinateX- groupTop1-lineBorder-1500 * wthHighRate)+ "px;");
  231. group1.createChild("xforms:caption","id:capintionWth+"+(1)+";left:"+5+"px; top:"+(coordinateX- groupTop1-lineBorder-1000 * wthHighRate-5)+"px; width:35px; height:15px; vertical-align:middle;value:"+1000+"");
  232. group1.createChild("xforms:caption","id:capintionWth+"+(2)+";left:"+5+"px; top:"+(coordinateX- groupTop1-lineBorder-1500 * wthHighRate-5)+"px; width:35px; height:15px; vertical-align:middle;value:"+1500+"");
  233. group1.createChild("xforms:line","id:lineThk+"+(1)+";x1:39px; y1:"+(coordinateX- groupTop1+input_hight/2+ 5*thkHighRate)+"px; x2:30px; y2:"+ (coordinateX- groupTop1+input_hight/2+ 5*thkHighRate)+ "px;");
  234. group1.createChild("xforms:caption","id:capintionThk+"+(1)+";left:5px; top:"+(coordinateX- groupTop1+input_hight/2+ 4*thkHighRate)+"px; width:35px; height:15px; vertical-align:middle;value:"+5+"");
  235. group1.createChild("xforms:line","id:lineThk+"+(2)+";x1:39px; y1:"+(coordinateX- groupTop1+input_hight/2+ 10*thkHighRate)+"px; x2:30px; y2:"+ (coordinateX- groupTop1+input_hight/2+ 10*thkHighRate)+ "px;");
  236. group1.createChild("xforms:caption","id:capintionThk+"+(2)+";left:5px; top:"+(coordinateX- groupTop1+input_hight/2+ 9*thkHighRate)+"px; width:35px; height:15px; vertical-align:middle;value:"+10+"");
  237. group1.createChild("xforms:line","id:lineThk+"+(3)+";x1:39px; y1:"+(coordinateX- groupTop1+input_hight/2+ 16*thkHighRate)+"px; x2:30px; y2:"+ (coordinateX- groupTop1+input_hight/2+ 16*thkHighRate)+ "px;");
  238. group1.createChild("xforms:caption","id:capintionThk+"+(3)+";left:5px; top:"+(coordinateX- groupTop1+input_hight/2+ 14*thkHighRate)+"px; width:35px; height:15px; vertical-align:middle;value:"+16.0+"");
  239. }
  240. function initoption(c)
  241. {
  242. var value = "";
  243. switch (c)
  244. {
  245. case 'R': value = RollManaNo;break;
  246. case 'S': value = slab_no;break;
  247. default:alert("error,请先选择是按轧辊单元调整,还是按板坯单元调整");break;
  248. }
  249. return value;
  250. }
  251. function initlayout(){
  252. model.setValue("/root/searchForm/TYPE",radio2.value);
  253. model.setValue("/root/searchForm/MODE",radio1.value);
  254. model.setValue("/root/searchForm/FROM",output3.value);
  255. model.setValue("/root/searchForm/TO",output4.value);
  256. model.setValue("/root/searchForm/TARGET",output5.value);
  257. model.setValue("/root/searchForm/POS",radio4.value);
  258. model.setValue("/root/searchForm/MSG_ID","NIF024020");
  259. model.setValue("/root/searchForm/REG_ID",model.getValue("/root/initData/rcvInfo/REG_ID"));
  260. commSendReq("/root/searchForm");
  261. }
  262. function save()
  263. {
  264. model.removenode("/root/reqData");
  265. model.makeNode("/root/reqData");
  266. initlayout();
  267. commSubmit("UIF024010-service","save","glueAction.do");
  268. if (model.getValue("/root/resData/errorData") != "") {
  269. alert(model.getValue("/root/resData/errorData"));
  270. return;
  271. }
  272. model.removenode("/root/initResult");
  273. model.makeNode("/root/initResult");
  274. model.duplicate("/root/initResult","/root/resData");
  275. removeChild();
  276. initChartParams();
  277. display();
  278. model.refresh();
  279. group1.refresh()
  280. init();
  281. }
  282. function find()
  283. {
  284. model.removenode("/root/reqData");
  285. model.makeNode("/root/reqData");
  286. initlayout();
  287. model.setValue("/root/respDate/startTime",model.getValue("/root/respDate/startTime"));
  288. model.setValue("/root/respDate/endTime",model.getValue("/root/respDate/endTime"));
  289. //时间必须输入
  290. if(model.getValue("/root/respDate/startTime") == "" || model.getValue("/root/respDate/endTime") == ""){
  291. alert(" 轧钢时间必须输入,请输入相应的轧钢时间再点击查询按钮! ");
  292. return;
  293. }
  294. commSendReq("/root/respDate");
  295. commSubmit("UIF024030-service","success","glueAction.do");
  296. if (model.getValue("/root/resData/errorData") != "") {
  297. alert(model.getValue("/root/resData/errorData"));
  298. return;
  299. }
  300. model.removenode("/root/initResult");
  301. model.makeNode("/root/initResult");
  302. model.duplicate("/root/initResult","/root/resData");
  303. removeChild();
  304. initChartParams();
  305. display();
  306. model.refresh();
  307. group1.refresh();
  308. }
  309. function removeChild()
  310. {
  311. coilRemove();
  312. rollRemove();
  313. twoLineRemove();
  314. }
  315. function coilRemove()
  316. {
  317. for(var i = coilCnt;i>0;i--)
  318. {
  319. group1.removeChild("optwth"+i)
  320. group1.removeChild("optthk"+i);
  321. }
  322. }
  323. function rollRemove()
  324. {
  325. for(var i = rollCnt;i>0;i--)
  326. {
  327. group1.removeChild("input"+i)
  328. }
  329. }
  330. function twoLineRemove()
  331. {
  332. group1.removeChild("line1");
  333. group1.removeChild("line2");
  334. }
  335. function setEditableOption (v_radio)
  336. {
  337. switch (v_radio)
  338. {
  339. case 'M': output5.disabled = false;radio4.disabled = false;break;
  340. case 'D': output5.disabled = true; radio4.disabled = true;break;
  341. case 'U': output5.disabled = true; radio4.disabled = true;break;
  342. case 'S': output5.disabled = false; radio4.disabled = true;break;
  343. }
  344. }
  345. function init() {
  346. radio1.value = "";
  347. radio2.value = "";
  348. radio4.value= "";
  349. output3.value= "";
  350. output4.value= "";
  351. output5.value= "";
  352. }
  353. function initColor() {
  354. var firstbiaojiwei = datagrid1.valueMatrix(2,0);
  355. for(var i = 2;i<=datagrid1.rows-datagrid1.fixedRows+1;i++) {
  356. var bjcolor = datagrid1.rowstyle(i, "data", "color");
  357. if(bjcolor == "#ff00ff") {
  358. datagrid1.rowstyle(i, "data", "color") = "";
  359. }
  360. }
  361. }
  362. function differentiateRollManaNo() {
  363. initColor();
  364. var firstbiaojiwei = datagrid1.valueMatrix(2,0);
  365. for(var i = 2;i<=datagrid1.rows-datagrid1.fixedRows+1;i++) {
  366. biaojiwei = datagrid1.valueMatrix(i,0);
  367. while(biaojiwei != firstbiaojiwei) {
  368. datagrid1.rowstyle(i, "data", "color") = "#ff00ff";
  369. firstbiaojiwei = biaojiwei;
  370. }
  371. }
  372. }
  373. function excelExport() {
  374. return datagrid1;
  375. }
  376. function resend() {
  377. model.removenode("/root/reqData");
  378. model.makeNode("/root/reqData");
  379. model.setValue("/root/searchForm/TYPE",radio2.value);
  380. model.setValue("/root/searchForm/MODE",radio1.value);
  381. model.setValue("/root/searchForm/FROM",output3.value);
  382. model.setValue("/root/searchForm/TO",output4.value);
  383. commSendReq("/root/searchForm");
  384. commSubmit("UIF024010-service","rhtResend","glueAction.do");
  385. if (model.getValue("/root/resData/errorData") != "") {
  386. alert(model.getValue("/root/resData/errorData"));
  387. return;
  388. }
  389. alert("加热炉二级指示重发成功!");
  390. }
  391. function mill_resend() {
  392. model.removenode("/root/reqData");
  393. model.makeNode("/root/reqData");
  394. model.setValue("/root/searchForm/TYPE",radio2.value);
  395. model.setValue("/root/searchForm/MODE",radio1.value);
  396. model.setValue("/root/searchForm/FROM",output3.value);
  397. model.setValue("/root/searchForm/TO",output4.value);
  398. commSendReq("/root/searchForm");
  399. commSubmit("UIF024010-service","millResend","glueAction.do");
  400. if (model.getValue("/root/resData/errorData") != "") {
  401. alert(model.getValue("/root/resData/errorData"));
  402. return;
  403. }
  404. alert("轧线二级指示重发成功!");
  405. }
  406. function fowardUID010031(gridID,colName) {
  407. if(gridID.col == gridID.colRef(colName)) {
  408. model.makeValue("/root/fwdData/UID010031/ORD_NO", gridID.valueMatrix(gridID.row, gridID.colRef("ORD_NO")));
  409. model.makeValue("/root/fwdData/UID010031/ORD_SEQ", gridID.valueMatrix(gridID.row, gridID.colRef("ORD_SEQ")));
  410. model.makeValue("/root/fwdData/UID010031/URL", "../../B/B01/UIB015020.xrw");
  411. var java = window.parent.javaScript;
  412. java.open(model.instances(0).selectSingleNode("/root/fwdData/UID010031"));
  413. }
  414. }
  415. function setGridColor()//成分不合格流水号显示红色
  416. {
  417. datagrid1.rebuildStyle();
  418. var colYN = datagrid1.colRef("QLFD_YN");
  419. var coilNoCol = datagrid1.colRef("COIL_NO");
  420. var SLAB_NO = datagrid1.colRef("SLAB_NO");
  421. var wgtProlCol = datagrid1.colRef("SLAB_PROBLEM");
  422. //默认提示框不显示
  423. output1.visible = false;
  424. for(var i = datagrid1.fixedRows; i < datagrid1.rows; i++)
  425. {
  426. //成份不合格为QQ
  427. if(datagrid1.valueMatrix(i , colYN) == "QQ"
  428. ||datagrid1.valueMatrix(i , wgtProlCol) == "XX")
  429. {
  430. datagrid1.cellStyle("background-color" , i , coilNoCol) = "#ff0000";
  431. //成份不合格的情况在图型栏中给出红色提示
  432. output1.visible = true;
  433. }
  434. //XX为程序出错,这里给出提示框,提示业务人员联系管理员
  435. if(datagrid1.valueMatrix(i , colYN) == "XX" )
  436. {
  437. window.alert("板坯"+datagrid1.valueMatrix(i , SLAB_NO)+"出现异常,请联系管理员! " , "提示");
  438. }
  439. }
  440. }
  441. ]]>
  442. </script>
  443. </xhtml:head>
  444. <xhtml:body overflow="scroll" pagewidth="980" pageheight="620" guideline="2,136;2,228;2,34;1,39;1,980;1,285;" style="font-family:宋体; font-size:6pt; ">
  445. <group id="group1" overflow="scroll" scroll="horizontal" style="left:0px; top:33px; width:980px; height:201px; text-align:left; ">
  446. <line id="lineY" style="x1:40px; y1:0px; x2:40px; y2:184px; background-color:#0000ff; border-color:#0000ff; border-width:2px; "/>
  447. <script type="javascript" ev:event="onclick">
  448. <![CDATA[
  449. var currentTarget = event.target;//当前的点击控件事件
  450. var oc = document.controls(currentTarget);//获取控件
  451. if(oc.elementName == "xforms:output") {
  452. var valuePath = oc.attribute("ref");
  453. RollManaNo = model.getValue(valuePath+"/ROLL_MANA_NO");
  454. RollSlabSeq = model.getValue(valuePath+"/ROLL_SLAB_SEQ");
  455. slab_no = model.getValue(valuePath+"/SLAB_NO");
  456. model.setValue("/root/tempreqData/ROLL_MANA_NO",RollManaNo);
  457. model.setValue("/root/tempreqData/ROLL_SLAB_SEQ",RollSlabSeq);
  458. model.removenode("/root/reqData");
  459. model.makeNode("/root/reqData");
  460. commSendReq("/root/tempreqData");
  461. commSubmit("UIF024030-service","onclick","glueAction.do");
  462. setGridColor();
  463. differentiateRollManaNo();
  464. model.refresh();
  465. }
  466. ]]>
  467. </script>
  468. <script type="javascript" ev:event="onmouseover">
  469. <![CDATA[
  470. var currentTarget = event.target;//当前的点击控件事件
  471. var oc = document.controls(currentTarget);//获取控件
  472. if(oc.elementName == "xforms:output") {
  473. var valuePath = oc.attribute("ref");
  474. // RollManaNo = model.getValue(valuePath+"/ROLL_MANA_NO");
  475. WTH_AIM = model.getValue(valuePath+"/WTH_AIM");
  476. HOT_THK_AIM = model.getValue(valuePath+"/HOT_THK_AIM");
  477. var slab_no_hint = model.getValue(valuePath+"/SLAB_NO");
  478. var coil_no_hint = model.getValue(valuePath+"/SLAB_NO");
  479. var roll_slab_seq_hint = model.getValue(valuePath+"/ROLL_SLAB_SEQ");
  480. group1.hint = "板坯号:" +slab_no_hint + "\n轧制宽度:" +WTH_AIM + "\n轧制厚度:" + HOT_THK_AIM +"\n流水号:" + coil_no_hint + "\n轧辊内顺序:" + roll_slab_seq_hint ;
  481. }else {
  482. group1.hint = "";
  483. }
  484. ]]>
  485. </script>
  486. </group>
  487. <line id="line3" style="x1:0px; y1:238px; x2:980px; y2:238px; border-color:#ff00ff; "/>
  488. <datagrid id="datagrid1" nodeset="/root/resData/rs_VO/rs_Row" scroll="auto" backcoloralternate="#f7f9f9" caption="轧辊管理号^顺序^板坯号^生产流水号^板坯^板坯^板坯^板坯^轧制^轧制^轧制^轧制^轧制^轧制^轧制^轧制^进程^状态区分^堆置位置^热送代号^合同号^订单号^钢号^标准号^订单用途^交货期^紧急材^去向^计划加热炉装炉日期^发货方式^客户成分特殊要求^材质特殊要求^公差特殊要求^成分是否合格^宽度是否合格^去向|轧辊管理号^顺序^板坯号^生产流水号^厚度^宽度^长度^重量^缺陷1^缺陷2^缺陷3^缺陷4^缺陷5^平整说明^长度^重量^进程^状态区分^堆置位置^热送代号^合同号^订单号^钢号^标准号^订单用途^交货期^紧急材^去向^计划加热炉装炉日期^发货方式^客户成分特殊要求^材质特殊要求^公差特殊要求^成分是否合格^宽度是否合格^去向" colsep="^" colwidth="67, 42, 52, 100, 50, 50, 50, 50, 55, 55, 55, 55, 55, 55, 55, 55, 55, 32, 37, 35, 67, 44, 54, 43, 51, 72, 100, 55, 100, 60,60,60, 45, 45, 44" defaultrows="0" extendlastcol="false" frozencols="3" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:240px; width:980px; height:378px; ">
  489. <col editable="false" ref="ROLL_MANA_NO" type="input" style="left:80px; top:40px; width:285px; height:20px; text-align:center; background-color:#ffffff; "/>
  490. <col editable="false" ref="ROLL_SLAB_SEQ" style="left:208px; top:40px; width:285px; height:20px; text-align:right; background-color:#ffffff; "/>
  491. <col editable="false" ref="SLAB_NO" type="input" style="left:336px; top:40px; width:285px; height:20px; text-align:center; "/>
  492. <col editable="false" ref="COIL_NO" type="input" style="text-align:center; "/>
  493. <col ref="SLAB_THK" format="#,##0" style="text-align:right; "/>
  494. <col ref="SLAB_WTH" format="#,##0" style="text-align:right; "/>
  495. <col ref="SLAB_LEN" format="#,##0" style="text-align:right; "/>
  496. <col ref="SLAB_WGT" format="#,##0" style="text-align:right; "/>
  497. <col ref="SPM_CRK_CD1" type="input" style="text-align:right; "/>
  498. <col ref="SPM_CRK_CD2" type="input" style="text-align:right; "/>
  499. <col ref="SPM_CRK_CD3" type="input" style="text-align:right; "/>
  500. <col ref="SPM_CRK_CD4" type="input" style="text-align:right; "/>
  501. <col ref="SPM_CRK_CD5" type="input" style="text-align:right; "/>
  502. <col ref="SPM_REMARK" style="text-align:right; "/>
  503. <col ref="MILL_LEN" format="#,##0" style="text-align:right; "/>
  504. <col ref="MILL_WGT" format="#,##0" style="text-align:right; "/>
  505. <col ref="CUR_PROG_CD" style="text-align:left; "/>
  506. <col disabled="true" editmode="search" ref="STATUS_CD" style="text-align:center; "/>
  507. <col ref="CUR_LOAD_LOC" style="text-align:center; "/>
  508. <col disabled="true" editmode="search" ref="HCR_CLF" style="text-align:center; "/>
  509. <col editable="false" ref="ORD_NO" type="input" style="text-align:center; "/>
  510. <col editable="false" ref="ORD_SEQ" type="input" style="text-align:center; "/>
  511. <col editable="false" ref="STL_GRD" type="input" style="text-align:left; "/>
  512. <col editable="false" ref="SPEC_ABBSYM" type="input" style="text-align:left; "/>
  513. <col disabled="true" editmode="search" ref="ORD_USEAGE_CD" style="left:1268px; top:41px; width:51px; height:21px; text-align:left; "/>
  514. <col editable="false" ref="DELV_REQ_DATE" type="input" format="yyyy-mm-dd" style="text-align:left; "/>
  515. <col ref="EMGMTR_NMG_CLF" style="text-align:left; "/>
  516. <col disabled="true" editmode="search" ref="ROUTE" style="text-align:left; "/>
  517. <col ref="FUR_IN_PRE_DTIME" visibility="hidden" format="yyyy-mm-dd" style="text-align:left; "/>
  518. <col ref="DLIV_TP" style="text-align:left; "/>
  519. <col ref="INGR_YN" style="text-decoration:underline; color:#0000ff; cursor:hand; ">
  520. <script type="javascript" ev:event="onclick">
  521. <![CDATA[
  522. fowardUID010031(datagrid1,"INGR_YN");
  523. ]]>
  524. </script>
  525. </col>
  526. <col ref="QLTY_YN" style="text-decoration:underline; color:#0000ff; cursor:hand; ">
  527. <script type="javascript" ev:event="onclick">
  528. <![CDATA[
  529. fowardUID010031(datagrid1,"QLTY_YN");
  530. ]]>
  531. </script>
  532. </col>
  533. <col ref="DEL_YN" style="text-decoration:underline; color:#0000ff; cursor:hand; ">
  534. <script type="javascript" ev:event="onclick">
  535. <![CDATA[
  536. fowardUID010031(datagrid1,"DEL_YN");
  537. ]]>
  538. </script>
  539. </col>
  540. <col ref="QLFD_YN" style="text-align:left; "/>
  541. <col ref="SLAB_PROBLEM" style="text-align:left; "/>
  542. <script type="javascript" ev:event="onclick">
  543. <![CDATA[
  544. RollManaNo = datagrid1.valueMatrix(datagrid1.row,datagrid1.colRef("ROLL_MANA_NO"));
  545. slab_no = datagrid1.valueMatrix(datagrid1.row,datagrid1.colRef("SLAB_NO"));
  546. ]]>
  547. </script>
  548. </datagrid>
  549. <select1 id="radio2" ref="/root/searchForm/TYPE" visibility="hidden" appearance="full" cols="2" overflow="hidden" style="left:6px; top:5px; width:90px; height:20px; border-color:#ffffff; border-style:solid; ">
  550. <choices>
  551. <item>
  552. <label>轧辊</label>
  553. <value>R</value>
  554. </item>
  555. <item>
  556. <label>板坯</label>
  557. <value>S</value>
  558. </item>
  559. </choices>
  560. <script type="javascript" ev:event="onclick">
  561. <![CDATA[
  562. ]]>
  563. </script>
  564. </select1>
  565. <select1 id="radio1" ref="/root/searchForm/MODE" visibility="hidden" appearance="full" cols="4" overflow="visible" style="left:10px; top:0px; width:178px; height:20px; border-color:#ffffff; border-style:solid; ">
  566. <choices>
  567. <item>
  568. <label>移动</label>
  569. <value>M</value>
  570. </item>
  571. <item>
  572. <label>删除</label>
  573. <value>D</value>
  574. </item>
  575. <item>
  576. <label>合并</label>
  577. <value>U</value>
  578. </item>
  579. <item>
  580. <label>分离</label>
  581. <value>S</value>
  582. </item>
  583. </choices>
  584. <script type="javascript" ev:event="xforms-value-changed">
  585. <![CDATA[
  586. output3.value= "";
  587. output4.value= "";
  588. output5.value= "";
  589. setEditableOption(radio1.value);
  590. ]]>
  591. </script>
  592. </select1>
  593. <button id="button1" visibility="hidden" style="left:907px; top:5px; width:70px; height:20px; text-align:right; background-image:../../images/save.gif; ">
  594. <caption>顺序调整</caption>
  595. <script type="javascript" ev:event="onclick">
  596. <![CDATA[
  597. save();
  598. ]]>
  599. </script>
  600. </button>
  601. <caption id="caption2" class="cell" visibility="hidden" style="left:295px; top:34px; width:63px; height:20px; text-align:center; border-style:solid; ">调整对象</caption>
  602. <caption id="caption4" visibility="hidden" style="left:450px; top:34px; width:10px; height:20px; vertical-align:middle; ">~</caption>
  603. <caption id="caption5" class="cell" visibility="hidden" style="left:550px; top:5px; width:63px; height:20px; text-align:center; border-style:solid; ">移动位置</caption>
  604. <select1 id="radio4" ref="/root/searchForm/POS" visibility="hidden" appearance="full" cols="2" overflow="visible" style="left:713px; top:5px; width:67px; height:20px; border-style:none; ">
  605. <choices>
  606. <item>
  607. <label>前</label>
  608. <value>B</value>
  609. </item>
  610. <item>
  611. <label>后</label>
  612. <value>A</value>
  613. </item>
  614. </choices>
  615. <script type="javascript" ev:event="onclick">
  616. <![CDATA[
  617. if(radio1.value== "D")
  618. {
  619. alert("当进行删除操作时候,无需指定移动位置");
  620. radio2.value = "";
  621. }
  622. ]]>
  623. </script>
  624. </select1>
  625. <output id="output3" ref="/root/searchForm/FROM" visibility="hidden" style="left:360px; top:34px; width:90px; height:20px; border-color:#c0c0c0; border-style:solid; ">
  626. <script type="javascript" ev:event="onclick">
  627. <![CDATA[
  628. output3.value = initoption(radio2.value);
  629. ]]>
  630. </script>
  631. </output>
  632. <output id="output4" ref="/root/searchForm/TO" visibility="hidden" style="left:455px; top:34px; width:90px; height:20px; border-color:#c0c0c0; border-style:solid; ">
  633. <script type="javascript" ev:event="onclick">
  634. <![CDATA[
  635. output4.value = initoption(radio2.value);
  636. ]]>
  637. </script>
  638. </output>
  639. <output id="output5" ref="/root/searchForm/TARGET" visibility="hidden" style="left:618px; top:5px; width:90px; height:20px; border-color:#c0c0c0; border-style:solid; ">
  640. <script type="javascript" ev:event="onclick">
  641. <![CDATA[
  642. if(radio2.value == 'R') {
  643. if(radio1.value == 'S') {
  644. output5.value = slab_no
  645. } else {
  646. output5.value = RollManaNo
  647. }
  648. } else {
  649. output5.value = slab_no;
  650. }
  651. ]]>
  652. </script>
  653. </output>
  654. <shape id="rectangle4" appearance="rectangle" style="left:788px; top:7px; width:10px; height:15px; background-color:#c0c0c0; "/>
  655. <shape id="rectangle1" appearance="rectangle" style="left:822px; top:7px; width:10px; height:15px; background-color:#ff0000; "/>
  656. <caption id="caption6" visibility="hidden" style="left:832px; top:4px; width:21px; height:20px; vertical-align:middle; ">HCR</caption>
  657. <caption id="caption7" visibility="hidden" style="left:799px; top:4px; width:28px; height:20px; vertical-align:middle; ">CCR</caption>
  658. <shape id="rectangle2" appearance="rectangle" style="left:855px; top:7px; width:10px; height:15px; background-color:#ffff99; "/>
  659. <caption id="caption1" visibility="hidden" style="left:867px; top:6px; width:43px; height:20px; vertical-align:middle; ">生产中</caption>
  660. <button id="button2" visibility="hidden" style="left:786px; top:25px; width:90px; height:20px; text-align:right; background-image:../../images/save.gif; ">
  661. <caption>RHT指示重发</caption>
  662. <script type="javascript" ev:event="onclick">
  663. <![CDATA[
  664. resend();
  665. ]]>
  666. </script>
  667. </button>
  668. <button id="button3" visibility="hidden" style="left:890px; top:25px; width:90px; height:20px; text-align:right; background-image:../../images/save.gif; ">
  669. <caption>MILL指示重发</caption>
  670. <script type="javascript" ev:event="onclick">
  671. <![CDATA[
  672. mill_resend();
  673. ]]>
  674. </script>
  675. </button>
  676. <output id="output1" ref="/root/CHEN_NOT_G" visibility="hidden" style="left:660px; top:25px; width:125px; height:25px; "/>
  677. <button id="button4" visibility="hidden" style="left:660px; top:55px; width:100px; height:20px; ">
  678. <caption>button4</caption>
  679. <script type="javascript" ev:event="onclick">
  680. <![CDATA[
  681. find();
  682. ]]>
  683. </script>
  684. </button>
  685. <caption id="caption3" class="cell" visibility="visible" style="left:270px; top:5px; width:63px; height:20px; text-align:center; border-style:solid; ">编制时间</caption>
  686. <caption id="caption8" visibility="visible" style="left:425px; top:14px; width:10px; height:20px; vertical-align:middle; ">~</caption>
  687. <input id="input5" ref="/root/respDate/startTime" class="input" inputtype="date" style="left:335px; top:4px; width:85px; height:20px; "/>
  688. <input id="input1" ref="/root/respDate/endTime" class="input" inputtype="date" style="left:435px; top:5px; width:85px; height:20px; "/>
  689. </xhtml:body>
  690. </xhtml:html>