fcfe21331ec3820c34e43b2a9fa81d6b09ae6044.svn-base 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538
  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[炼钢作业 >> 板坯库管理 >> 台车行车命令制定(UIG040045)]]>
  7. </xhtml:title>
  8. <model id="model1">
  9. <instance id="instance1">
  10. <root xmlns="">
  11. <menu>
  12. <item>
  13. <label> FstSlab</label>
  14. <func>firstSlab</func>
  15. </item>
  16. <item>
  17. <label> ScdSlab</label>
  18. <func>secondSlab</func>
  19. </item>
  20. <item>
  21. <label> ThdSlab</label>
  22. <func>thirdSlab</func>
  23. </item>
  24. <item>
  25. <label>GoBack</label>
  26. <func>goBack</func>
  27. </item>
  28. <item>
  29. <label>CANCEL</label>
  30. <func>slabCancel</func>
  31. </item>
  32. </menu>
  33. <formData>
  34. <FST_YARD_ADDR/>
  35. <SCD_YARD_ADDR/>
  36. <TRANS_CAR>TO1</TRANS_CAR>
  37. <SLAB_NO/>
  38. <SLAB_SIZE/>
  39. <STL_GRD/>
  40. <SLAB_WGT/>
  41. <QLFD_YN/>
  42. </formData>
  43. <crainOrder>
  44. <fromAddr>T01</fromAddr>
  45. <toAddr/>
  46. <crainNo>1-1</crainNo>
  47. <fstSlab/>
  48. <scdSlab/>
  49. <thdSlab/>
  50. <slabCnt>0</slabCnt>
  51. </crainOrder>
  52. <grid/>
  53. <reqData/>
  54. <resData/>
  55. <fstYardAddr/>
  56. <scdYardAddr/>
  57. <thdYardAddr/>
  58. <leftTransCar/>
  59. <rightTransCar/>
  60. <tempData/>
  61. <MESSAGES/>
  62. </root>
  63. </instance>
  64. </model>
  65. <script type="javascript">
  66. <![CDATA[
  67. var SELECTED_SLAB = null;
  68. var SELECTED_SLAB_TAG = null;
  69. var MOVE_SLAB = null;
  70. var MOVE_SLAB_TAG = null;
  71. var MENU_VALUE = null;
  72. var SLAB_ARRAY = new Array();
  73. function call_addr_UIG040044()
  74. {
  75. // 设置跺位查询的默认跺位为 L 开头的炼钢板坯库
  76. model.setValue("/root/tempData","Z");
  77. window.load("UIG040026.xrw","modal","", "left:228; top:78; width:980; height:660; sysmenu:visible; min:visible; max:true; resize:true; caption:visible;");
  78. model1.setValue("/root/crainOrder/toAddr",model1.getValue("/root/tempData"));
  79. model1.removenode("/root/tempData");
  80. model1.makeNode("/root/tempData");
  81. // input1.refresh();
  82. find();
  83. }
  84. function call_left_UIG040044()
  85. {
  86. // 设置跺位查询的默认跺位为 L 开头的炼钢板坯库
  87. model.setValue("/root/tempData","L");
  88. window.load("UIG040044.xrw","modal","", "left:228; top:78; width:320; height:480; sysmenu:visible; min:visible; max:true; resize:true; caption:visible;");
  89. if(model.getValue("/root/tempData") == model.getValue("/root/formData/SCD_YARD_ADDR"))return;
  90. model1.setValue("/root/formData/FST_YARD_ADDR",model1.getValue("/root/tempData"));
  91. model1.removenode("/root/tempData");
  92. model1.makeNode("/root/tempData");
  93. // input1.refresh();
  94. find();
  95. }
  96. function call_righ_UIG040044()
  97. {
  98. // 设置跺位查询的默认跺位为 L 开头的炼钢板坯库
  99. model.setValue("/root/tempData","L");
  100. window.load("UIG040044.xrw","modal","", "left:600; top:78; width:320; height:480; sysmenu:visible; min:visible; max:true; resize:true; caption:visible;");
  101. if(model.getValue("/root/tempData") == model.getValue("/root/formData/FST_YARD_ADDR"))return;
  102. model1.setValue("/root/formData/SCD_YARD_ADDR",model1.getValue("/root/tempData"));
  103. model1.removenode("/root/tempData");
  104. model1.makeNode("/root/tempData");
  105. find();
  106. }
  107. function createOrder(){
  108. if(input4.value == ""|| input5.value == "" || (input7.value == "" && input8.value == "" && input9.value == "")){
  109. alert(" 错误 行车命令选项有空 ");
  110. return;
  111. }
  112. var slabCnt = 0;
  113. if(input7.value != "")slabCnt = slabCnt + 1;
  114. if(input8.value != "")slabCnt = slabCnt + 1;
  115. if(input9.value != "")slabCnt = slabCnt + 1;
  116. model.setValue("/root/crainOrder/slabCnt",slabCnt);
  117. commSendReq("/root/crainOrder");
  118. commSubmit("UIG040045-service","save","glueAction.do");
  119. commAppendData("/root/grid/SearchCrOrderResult_VO","/root/resData/SearchCrOrderResult_VO");
  120. input5.value = "";input7.value = "";input8.value = "";input9.value = "";
  121. model.refresh();
  122. }
  123. function find(){
  124. model.removenode("/root/fstYardAddr");
  125. model.makeNode("/root/fstYardAddr");
  126. model.removenode("/root/scdYardAddr");
  127. model.makeNode("/root/scdYardAddr");
  128. model.removenode("/root/thdYardAddr");
  129. model.makeNode("/root/thdYardAddr");
  130. var slabNoNode = null;
  131. var yardAddrNode = null;
  132. var storeLayNode = null;
  133. var slabYardAreaNodeset = null;
  134. commSendReq("/root/formData");
  135. commSubmit("UIG040045-service","find","glueAction.do");
  136. if(instance1.selectSingleNode("/root/resData/SearchYardAddrResultFst_VO") != null){
  137. slabYardAreaNodeset = instance1.selectSingleNode("/root/resData/SearchYardAddrResultFst_VO").childNodes;
  138. var i = 1;
  139. while(childNode = slabYardAreaNodeset.nextNode()){
  140. slabNoNode = instance1.selectSingleNode("/root/resData/SearchYardAddrResultFst_VO/SearchYardAddrResultFst_Row[" + i + "]/SLAB_NO");
  141. yardAddrNode = instance1.selectSingleNode("/root/resData/SearchYardAddrResultFst_VO/SearchYardAddrResultFst_Row[" + i + "]/YARD_ADDR");
  142. storeLayNode = instance1.selectSingleNode("/root/resData/SearchYardAddrResultFst_VO/SearchYardAddrResultFst_Row[" + i + "]/STORELAY");
  143. SLAB_ARRAY[i] = yardAddrNode.value + storeLayNode.value + slabNoNode.value;
  144. model.makeValue("/root/fstYardAddr/outputL" + storeLayNode.value,slabNoNode.value);
  145. i = i + 1;
  146. }
  147. }
  148. if(instance1.selectSingleNode("/root/resData/SearchYardAddrResultScd_VO") != null){
  149. slabYardAreaNodeset = instance1.selectSingleNode("/root/resData/SearchYardAddrResultScd_VO").childNodes;
  150. var i = 1;
  151. while(childNode = slabYardAreaNodeset.nextNode())
  152. {
  153. slabNoNode = instance1.selectSingleNode("/root/resData/SearchYardAddrResultScd_VO/SearchYardAddrResultScd_Row[" + i + "]/SLAB_NO");
  154. yardAddrNode = instance1.selectSingleNode("/root/resData/SearchYardAddrResultScd_VO/SearchYardAddrResultScd_Row[" + i + "]/YARD_ADDR");
  155. storeLayNode = instance1.selectSingleNode("/root/resData/SearchYardAddrResultScd_VO/SearchYardAddrResultScd_Row[" + i + "]/STORELAY");
  156. SLAB_ARRAY[i + 16] = yardAddrNode.value + storeLayNode.value + slabNoNode.value;
  157. model.makeValue("/root/scdYardAddr/outputR" + storeLayNode.value,slabNoNode.value);
  158. i = i+ 1;
  159. }
  160. }
  161. if(instance1.selectSingleNode("/root/resData/SearchCarYardResult_VO").hasChildNodes()){
  162. slabYardAreaNodeset = instance1.selectSingleNode("/root/resData/SearchCarYardResult_VO").childNodes;
  163. for(var i = 1;i<=slabYardAreaNodeset.length;i++)
  164. {
  165. slabNoNode = instance1.selectSingleNode("/root/resData/SearchCarYardResult_VO/SearchCarYardResult_Row[" + i + "]/SLAB_NO");
  166. storeLayNode = instance1.selectSingleNode("/root/resData/SearchCarYardResult_VO/SearchCarYardResult_Row[" + i + "]/STORELAY");
  167. ordFlagNode = instance1.selectSingleNode("/root/resData/SearchCarYardResult_VO/SearchCarYardResult_Row[" + i + "]/ORD_FLAG");
  168. var storelay = parseInt(storeLayNode.value,10);
  169. if(storelay <= 16){
  170. if(ordFlagNode.value == "1"){
  171. document.all("outputCL" + storelay).attribute("background-color") = "#99cc00";
  172. }else{
  173. document.all("outputCL" + storelay).attribute("background-color") = "#ffffff";
  174. }
  175. model.makeValue("/root/thdYardAddr/outputCL" + storelay,slabNoNode.value);
  176. }
  177. else{
  178. if(ordFlagNode.value == "1"){
  179. document.all("outputCR" + (storelay - 16)).attribute("background-color") = "#99cc00";
  180. }else {
  181. document.all("outputCR" + (storelay - 16)).attribute("background-color") = "#ffffff";
  182. }
  183. model.makeValue("/root/thdYardAddr/outputCR" + (storelay - 16),slabNoNode.value);
  184. }
  185. }
  186. }
  187. commAppendData("/root/grid/SearchCrOrderResult_VO","/root/resData/SearchCrOrderResult_VO");
  188. model1.refresh();
  189. }
  190. function save(){
  191. var slabValue = null;
  192. var fromStorelay = null;
  193. var fromYardAddr = null;
  194. var slabNo = null;
  195. var toStorelay = null;
  196. var toYardAddr = "T01";
  197. var rowTag = 0;
  198. model.removenode("/root/reqData");
  199. model.makeNode("/root/reqData");
  200. for(var i = 1 ; i <= 32 ; i++){
  201. if(i > 16){
  202. slabValue = model.getValue("/root/thdYardAddr/outputCR" + (i-16));
  203. }
  204. else{
  205. slabValue = model.getValue("/root/thdYardAddr/outputCL" + i);
  206. }
  207. if(slabValue == ""){
  208. continue;
  209. }
  210. var tempSr = "";
  211. var boolTag = false;
  212. for(var j = 1 ; j <= 32 ; j++){
  213. tempSr = SLAB_ARRAY[j] + "";
  214. var tempSrValue ;
  215. if(tempSr.substr(0,1) == "L"){
  216. tempSrValue = tempSr.substr(7,13);
  217. fromStorelay = tempSr.substr(5,2);
  218. fromYardAddr = tempSr.substr(0,5);
  219. }
  220. else if(tempSr.substr(0,1) == "Z"){
  221. tempSrValue = tempSr.substr(8,13);
  222. fromStorelay = tempSr.substr(6,2);
  223. fromYardAddr = tempSr.substr(0,6);
  224. }
  225. if(tempSrValue == (slabValue + "")){
  226. boolTag = true;
  227. break;
  228. }
  229. }
  230. if(boolTag == false) continue;
  231. slabNo = slabValue;
  232. toStorelay = i;
  233. rowTag = rowTag +1;
  234. model.makeValue("/root/reqData/ToYard/ITEM[" + rowTag + "]/TO_BEF_STORE_LOC",fromYardAddr);
  235. model.makeValue("/root/reqData/ToYard/ITEM[" + rowTag + "]/TO_SLAB_NO",slabNo);
  236. model.makeValue("/root/reqData/ToYard/ITEM[" + rowTag + "]/TO_YARD_ADDR",toYardAddr);
  237. model.makeValue("/root/reqData/ToYard/ITEM[" + rowTag + "]/TO_STORELAY",toStorelay);
  238. model.makeValue("/root/reqData/FromYard/ITEM[" + rowTag + "]/FROM_YARD_ADDR",fromYardAddr);
  239. model.makeValue("/root/reqData/FromYard/ITEM[" + rowTag + "]/FROM_STORELAY",fromStorelay);
  240. }
  241. model.refresh();
  242. //var node = instance1.selectSingleNode("/root/example");
  243. commSubmit("UIG040045-service","save2","glueAction.do");
  244. model.setValue("/root/MESSAGES",model.getValue("/root/resData/MESSAGES_VO/MESSAGES_Row"));
  245. model.refresh();
  246. alert(model.getValue("/root/MESSAGES"));
  247. }
  248. function move(){
  249. commSendReq("/root/crainOrder");
  250. commSubmit("UIG040045-service","move","glueAction.do");
  251. model.setValue("/root/MESSAGES",model.getValue("/root/resData/MESSAGES_VO/MESSAGES_Row"));
  252. find();
  253. model.refresh();
  254. input7.value = "";
  255. input5.value = "";
  256. alert(model.getValue("/root/MESSAGES"));
  257. MOVE_SLAB_TAG = null;
  258. }
  259. ]]>
  260. </script>
  261. <script type="javascript" src="../../js/boaCommon.js"/>
  262. </xhtml:head>
  263. <xhtml:body guideline="1,980;2,615;">
  264. <output id="outputL16" ref="/root/fstYardAddr/outputL16" style="left:50px; top:144px; width:150px; height:25px; text-align:center; background-color:#ff6600; border-color:#000000; border-style:solid; "/>
  265. <output id="outputL15" ref="/root/fstYardAddr/outputL15" style="left:50px; top:170px; width:150px; height:25px; text-align:center; background-color:#ff6600; border-color:#000000; border-style:solid; "/>
  266. <output id="outputL14" ref="/root/fstYardAddr/outputL14" style="left:50px; top:196px; width:150px; height:25px; text-align:center; background-color:#ff6600; border-color:#000000; border-style:solid; "/>
  267. <output id="outputL13" ref="/root/fstYardAddr/outputL13" style="left:50px; top:222px; width:150px; height:25px; text-align:center; background-color:#ff6600; border-color:#000000; border-style:solid; "/>
  268. <output id="outputL09" ref="/root/fstYardAddr/outputL09" style="left:50px; top:326px; width:150px; height:25px; text-align:center; background-color:#ff6600; border-color:#000000; border-style:solid; "/>
  269. <output id="outputL12" ref="/root/fstYardAddr/outputL12" style="left:50px; top:248px; width:150px; height:25px; text-align:center; background-color:#ff6600; border-color:#000000; border-style:solid; "/>
  270. <output id="outputL11" ref="/root/fstYardAddr/outputL11" style="left:50px; top:274px; width:150px; height:25px; text-align:center; background-color:#ff6600; border-color:#000000; border-style:solid; "/>
  271. <output id="outputL10" ref="/root/fstYardAddr/outputL10" style="left:50px; top:300px; width:150px; height:25px; text-align:center; background-color:#ff6600; border-color:#000000; border-style:solid; "/>
  272. <output id="outputL05" ref="/root/fstYardAddr/outputL05" style="left:50px; top:430px; width:150px; height:25px; text-align:center; background-color:#ff6600; border-color:#000000; border-style:solid; "/>
  273. <output id="outputL01" ref="/root/fstYardAddr/outputL01" style="left:50px; top:534px; width:150px; height:25px; text-align:center; background-color:#ff6600; border-color:#000000; border-style:solid; "/>
  274. <output id="outputL04" ref="/root/fstYardAddr/outputL04" style="left:50px; top:456px; width:150px; height:25px; text-align:center; background-color:#ff6600; border-color:#000000; border-style:solid; "/>
  275. <output id="outputL03" ref="/root/fstYardAddr/outputL03" style="left:50px; top:482px; width:150px; height:25px; text-align:center; background-color:#ff6600; border-color:#000000; border-style:solid; "/>
  276. <output id="outputL02" ref="/root/fstYardAddr/outputL02" style="left:50px; top:508px; width:150px; height:25px; text-align:center; background-color:#ff6600; border-color:#000000; border-style:solid; "/>
  277. <output id="outputL08" ref="/root/fstYardAddr/outputL08" style="left:50px; top:352px; width:150px; height:25px; text-align:center; background-color:#ff6600; border-color:#000000; border-style:solid; "/>
  278. <output id="outputL07" ref="/root/fstYardAddr/outputL07" style="left:50px; top:378px; width:150px; height:25px; text-align:center; background-color:#ff6600; border-color:#000000; border-style:solid; "/>
  279. <output id="outputL06" ref="/root/fstYardAddr/outputL06" style="left:50px; top:404px; width:150px; height:25px; text-align:center; background-color:#ff6600; border-color:#000000; border-style:solid; "/>
  280. <output id="outputR13" ref="/root/scdYardAddr/outputR13" style="left:265px; top:222px; width:150px; height:25px; text-align:center; background-color:#ff6600; border-color:#000000; border-style:solid; "/>
  281. <output id="outputR09" ref="/root/scdYardAddr/outputR09" style="left:265px; top:326px; width:150px; height:25px; text-align:center; background-color:#ff6600; border-color:#000000; border-style:solid; "/>
  282. <output id="outputR01" ref="/root/scdYardAddr/outputR01" style="left:265px; top:534px; width:150px; height:25px; text-align:center; background-color:#ff6600; border-color:#000000; border-style:solid; "/>
  283. <output id="outputR12" ref="/root/scdYardAddr/outputR12" style="left:265px; top:248px; width:150px; height:25px; text-align:center; background-color:#ff6600; border-color:#000000; border-style:solid; "/>
  284. <output id="outputR04" ref="/root/scdYardAddr/outputR04" style="left:265px; top:456px; width:150px; height:25px; text-align:center; background-color:#ff6600; border-color:#000000; border-style:solid; "/>
  285. <output id="outputR11" ref="/root/scdYardAddr/outputR11" style="left:265px; top:274px; width:150px; height:25px; text-align:center; background-color:#ff6600; border-color:#000000; border-style:solid; "/>
  286. <output id="outputR03" ref="/root/scdYardAddr/outputR03" style="left:265px; top:482px; width:150px; height:25px; text-align:center; background-color:#ff6600; border-color:#000000; border-style:solid; "/>
  287. <output id="outputR10" ref="/root/scdYardAddr/outputR10" style="left:265px; top:300px; width:150px; height:25px; text-align:center; background-color:#ff6600; border-color:#000000; border-style:solid; "/>
  288. <output id="outputR02" ref="/root/scdYardAddr/outputR02" style="left:265px; top:508px; width:150px; height:25px; text-align:center; background-color:#ff6600; border-color:#000000; border-style:solid; "/>
  289. <output id="outputR05" ref="/root/scdYardAddr/outputR05" style="left:265px; top:430px; width:150px; height:25px; text-align:center; background-color:#ff6600; border-color:#000000; border-style:solid; "/>
  290. <output id="outputR08" ref="/root/scdYardAddr/outputR08" style="left:265px; top:352px; width:150px; height:25px; text-align:center; background-color:#ff6600; border-color:#000000; border-style:solid; "/>
  291. <output id="outputR07" ref="/root/scdYardAddr/outputR07" style="left:265px; top:378px; width:150px; height:25px; text-align:center; background-color:#ff6600; border-color:#000000; border-style:solid; "/>
  292. <output id="outputR06" ref="/root/scdYardAddr/outputR06" style="left:265px; top:404px; width:150px; height:25px; text-align:center; background-color:#ff6600; border-color:#000000; border-style:solid; "/>
  293. <output id="outputR16" ref="/root/scdYardAddr/outputR16" style="left:265px; top:144px; width:150px; height:25px; text-align:center; background-color:#ff6600; border-color:#000000; border-style:solid; "/>
  294. <output id="outputR15" ref="/root/scdYardAddr/outputR15" style="left:265px; top:170px; width:150px; height:25px; text-align:center; background-color:#ff6600; border-color:#000000; border-style:solid; "/>
  295. <output id="outputR14" ref="/root/scdYardAddr/outputR14" style="left:265px; top:196px; width:150px; height:25px; text-align:center; background-color:#ff6600; border-color:#000000; border-style:solid; "/>
  296. <shape id="rectangle1" appearance="rectangle" style="left:510px; top:600px; width:460px; height:10px; background-color:#333333; "/>
  297. <output id="outputCL4" ref="/root/thdYardAddr/outputCL4" style="left:530px; top:496px; width:170px; height:25px; text-align:center; background-color:#ff6600; border-color:#000000; border-style:solid; "/>
  298. <output id="outputCL3" ref="/root/thdYardAddr/outputCL3" style="left:530px; top:522px; width:170px; height:25px; text-align:center; background-color:#ff6600; border-color:#000000; border-style:solid; "/>
  299. <output id="outputCL2" ref="/root/thdYardAddr/outputCL2" style="left:530px; top:548px; width:170px; height:25px; text-align:center; background-color:#ff6600; border-color:#000000; border-style:solid; "/>
  300. <output id="outputCL5" ref="/root/thdYardAddr/outputCL5" style="left:530px; top:470px; width:170px; height:25px; text-align:center; background-color:#ff6600; border-color:#000000; border-style:solid; "/>
  301. <output id="outputCL1" ref="/root/thdYardAddr/outputCL1" style="left:530px; top:574px; width:170px; height:25px; text-align:center; background-color:#ff6600; border-color:#000000; border-style:solid; "/>
  302. <output id="outputCR4" ref="/root/thdYardAddr/outputCR4" style="left:775px; top:496px; width:170px; height:25px; text-align:center; background-color:#ff6600; border-color:#000000; border-style:solid; "/>
  303. <output id="outputCR3" ref="/root/thdYardAddr/outputCR3" style="left:775px; top:522px; width:170px; height:25px; text-align:center; background-color:#ff6600; border-color:#000000; border-style:solid; "/>
  304. <output id="outputCR2" ref="/root/thdYardAddr/outputCR2" style="left:775px; top:548px; width:170px; height:25px; text-align:center; background-color:#ff6600; border-color:#000000; border-style:solid; "/>
  305. <output id="outputCR5" ref="/root/thdYardAddr/outputCR5" style="left:775px; top:470px; width:170px; height:25px; text-align:center; background-color:#ff6600; border-color:#000000; border-style:solid; "/>
  306. <output id="outputCR1" ref="/root/thdYardAddr/outputCR1" style="left:775px; top:574px; width:170px; height:25px; text-align:center; background-color:#ff6600; border-color:#000000; border-style:solid; "/>
  307. <shape id="rectangle2" appearance="rectangle" style="left:18px; top:560px; width:215px; height:10px; background-color:#333333; "/>
  308. <shape id="rectangle3" appearance="rectangle" style="left:235px; top:560px; width:215px; height:10px; background-color:#333333; "/>
  309. <input id="input1" ref="/root/formData/FST_YARD_ADDR" style="left:65px; top:585px; width:120px; height:25px; text-align:center; ">
  310. <script type="javascript" ev:event="ondblclick">
  311. <![CDATA[
  312. call_left_UIG040044();
  313. ]]>
  314. </script>
  315. </input>
  316. <input id="input2" ref="/root/formData/SCD_YARD_ADDR" style="left:280px; top:585px; width:120px; height:25px; text-align:center; ">
  317. <script type="javascript" ev:event="ondblclick">
  318. <![CDATA[
  319. call_righ_UIG040044();
  320. ]]>
  321. </script>
  322. </input>
  323. <input id="input3" ref="/root/formData/TRANS_CAR" style="left:705px; top:570px; width:65px; height:25px; text-align:center; "/>
  324. <caption id="caption1" class="cell" style="left:0px; top:5px; width:100px; height:20px; ">自动命令制定</caption>
  325. <input id="input4" ref="/root/crainOrder/fromAddr" disabled="true" style="left:0px; top:61px; width:50px; height:20px; text-align:center; background-color:#ffffff; "/>
  326. <line id="line3" style="x1:0px; y1:0px; x2:979px; y2:0px; "/>
  327. <input id="input5" ref="/root/crainOrder/toAddr" style="left:50px; top:61px; width:53px; height:20px; text-align:center; ">
  328. <script type="javascript" ev:event="ondblclick">
  329. <![CDATA[
  330. call_addr_UIG040044();
  331. ]]>
  332. </script>
  333. </input>
  334. <script type="javascript" ev:event="ondblclick">
  335. <![CDATA[
  336. var nodeName = document.all(event.target);
  337. var nodeName2 = event.target.toString();
  338. if((nodeName2.substr(0,7) == "outputL" || nodeName2.substr(0,7) == "outputR") && nodeName != SELECTED_SLAB){
  339. SELECTED_SLAB_TAG = null;
  340. if(nodeName.value == "")
  341. return;
  342. nodeName.attribute("background-color") = "#ffffff";
  343. if(SELECTED_SLAB != null) SELECTED_SLAB.attribute("background-color") = "#ff6600";
  344. SELECTED_SLAB = nodeName;
  345. }
  346. else if(nodeName2.substr(0,7) == "outputC" && nodeName != SELECTED_SLAB_TAG ){
  347. if(document.all(nodeName2).value == ""){
  348. if(SELECTED_SLAB_TAG == null && SELECTED_SLAB != null){
  349. var tg = parseInt(nodeName2.substr(8,1)) - 1;
  350. if( tg != 0){
  351. if(document.all(nodeName2.substr(0,8) + tg).value == "" ){
  352. alert(" 错误,下层没有板坯!");
  353. return;
  354. }
  355. }
  356. var slabvalue = (SELECTED_SLAB.value).toString();
  357. model.makeValue("/root/thdYardAddr/outputC" + nodeName2.substr(7,3),slabvalue);
  358. nodeName.attribute("background-color") = "#ffffff";
  359. SELECTED_SLAB_TAG = nodeName;
  360. SELECTED_SLAB.value = "";
  361. SELECTED_SLAB.attribute("background-color") = "#ff6600";
  362. SELECTED_SLAB = null;
  363. }
  364. }else{
  365. if(MOVE_SLAB_TAG != null){
  366. //MOVE_SLAB_TAG.value = MOVE_SLAB;
  367. model.setValue("/root/thdYardAddr/" + MOVE_SLAB_TAG,MOVE_SLAB,true);
  368. }
  369. MOVE_SLAB_TAG = nodeName2;
  370. MOVE_SLAB = nodeName.value;
  371. model.setValue("/root/thdYardAddr/" + MOVE_SLAB_TAG,"",true);
  372. input7.value = MOVE_SLAB;
  373. model.setValue("/root/formData/SLAB_NO",MOVE_SLAB);
  374. commSendReq("/root/formData");
  375. commSubmit("UIG040045-service","slabInfo","glueAction.do");
  376. model.setValue("/root/formData/SLAB_SIZE",model.getValue("root/resData/SLAB_INFO_RES_VO/SLAB_INFO_RES_Row/SLAB_SIZE"));
  377. model.setValue("/root/formData/SLAB_WGT",model.getValue("root/resData/SLAB_INFO_RES_VO/SLAB_INFO_RES_Row/SLAB_WGT"));
  378. model.setValue("/root/formData/STL_GRD",model.getValue("root/resData/SLAB_INFO_RES_VO/SLAB_INFO_RES_Row/STL_GRD"));
  379. model.setValue("/root/formData/QLFD_YN",model.getValue("root/resData/SLAB_INFO_RES_VO/SLAB_INFO_RES_Row/QLFD_YN"));
  380. input6.refresh();input7.refresh();input8.refresh();input9.refresh();input10.refresh();
  381. if(input10.value == "QQ")
  382. {
  383. //input7.currentStyle("background-color" , i ,datagrid1.colRef("SLAB_NO")) = "#ff0000";
  384. input7.attribute("background-color") = "#ff0000";
  385. //成份不合格的情况在图型栏中给出红色提示
  386. }else{
  387. input7.attribute("background-color") = "#ffffff";
  388. }
  389. }
  390. }
  391. ]]>
  392. </script>
  393. <datagrid id="datagrid1" nodeset="/root/grid/SearchCrOrderResult_VO/SearchCrOrderResult_Row" caption="原位置^目的位置^行车命令^板坯号1" colwidth="50, 100, 56, 100" defaultrows="5" mergecellsfixedrows="bycolrec" rowsep="|" colsep="^" style="left:525px; top:5px; width:445px; height:150px; ">
  394. <col ref="FROM_ADDR"/>
  395. <col ref="TO_ADDR"/>
  396. <col ref="CR_NO"/>
  397. <col ref="ORD_SLAB_NO1"/>
  398. </datagrid>
  399. <input id="input7" ref="/root/crainOrder/fstSlab" style="left:160px; top:61px; width:98px; height:20px; text-align:center; "/>
  400. <script type="javascript" ev:event="onmousedown">
  401. <![CDATA[
  402. /*
  403. var nodeName = document.all(event.target);
  404. if(event.focus.substr(0,7) == "outputC" && event.target.substr(0,7) == "outputC" && nodeName.value != ""){
  405. MENU_VALUE = nodeName;
  406. window.setPopupMenu(true, "/root/menu/item", "label", "func", false);
  407. }*/
  408. ]]>
  409. </script>
  410. <select1 id="combo1" ref="/root/crainOrder/crainNo" appearance="minimal" style="left:104px; top:61px; width:55px; height:20px; ">
  411. <choices>
  412. <item>
  413. <label>1-1</label>
  414. <value>1-1</value>
  415. </item>
  416. <item>
  417. <label>1-2</label>
  418. <value>1-2</value>
  419. </item>
  420. </choices>
  421. </select1>
  422. <button id="button4" class="butt_3" style="left:105px; top:5px; width:52px; height:19px; background-color:#9999ff; ">
  423. <caption>强制移位</caption>
  424. <script type="javascript" ev:event="DOMActivate">
  425. <![CDATA[
  426. move();
  427. ]]>
  428. </script>
  429. </button>
  430. <script type="javascript" ev:event="onkeypress">
  431. <![CDATA[
  432. if(event.keyCode == 13){
  433. find();
  434. }
  435. ]]>
  436. </script>
  437. <input id="input6" ref="/root/formData/SLAB_SIZE" style="left:334px; top:61px; width:98px; height:20px; text-align:center; "/>
  438. <input id="input8" ref="/root/formData/STL_GRD" style="left:259px; top:61px; width:73px; height:20px; text-align:center; "/>
  439. <input id="input9" ref="/root/formData/SLAB_WGT" style="left:433px; top:61px; width:78px; height:20px; text-align:center; "/>
  440. <output id="outputCL9" ref="/root/thdYardAddr/outputCL9" style="left:530px; top:366px; width:170px; height:25px; text-align:center; background-color:#ff6600; border-color:#000000; border-style:solid; "/>
  441. <output id="outputCL10" ref="/root/thdYardAddr/outputCL10" style="left:530px; top:340px; width:170px; height:25px; text-align:center; background-color:#ff6600; border-color:#000000; border-style:solid; "/>
  442. <output id="outputCL6" ref="/root/thdYardAddr/outputCL6" style="left:530px; top:444px; width:170px; height:25px; text-align:center; background-color:#ff6600; border-color:#000000; border-style:solid; "/>
  443. <output id="outputCL7" ref="/root/thdYardAddr/outputCL7" style="left:530px; top:418px; width:170px; height:25px; text-align:center; background-color:#ff6600; border-color:#000000; border-style:solid; "/>
  444. <output id="outputCL8" ref="/root/thdYardAddr/outputCL8" style="left:530px; top:392px; width:170px; height:25px; text-align:center; background-color:#ff6600; border-color:#000000; border-style:solid; "/>
  445. <output id="outputCL12" ref="/root/thdYardAddr/outputCL12" style="left:530px; top:288px; width:170px; height:25px; text-align:center; background-color:#ff6600; border-color:#000000; border-style:solid; "/>
  446. <output id="outputCL13" ref="/root/thdYardAddr/outputCL13" style="left:530px; top:262px; width:170px; height:25px; text-align:center; background-color:#ff6600; border-color:#000000; border-style:solid; "/>
  447. <output id="outputCL14" ref="/root/thdYardAddr/outputCL14" style="left:530px; top:236px; width:170px; height:25px; text-align:center; background-color:#ff6600; border-color:#000000; border-style:solid; "/>
  448. <output id="outputCL15" ref="/root/thdYardAddr/outputCL15" style="left:530px; top:210px; width:170px; height:25px; text-align:center; background-color:#ff6600; border-color:#000000; border-style:solid; "/>
  449. <output id="outputCL11" ref="/root/thdYardAddr/outputCL11" style="left:530px; top:314px; width:170px; height:25px; text-align:center; background-color:#ff6600; border-color:#000000; border-style:solid; "/>
  450. <output id="outputCL16" ref="/root/thdYardAddr/outputCL16" style="left:530px; top:184px; width:170px; height:25px; text-align:center; background-color:#ff6600; border-color:#000000; border-style:solid; "/>
  451. <output id="outputCR7" ref="/root/thdYardAddr/outputCR7" style="left:775px; top:418px; width:170px; height:25px; text-align:center; background-color:#ff6600; border-color:#000000; border-style:solid; "/>
  452. <output id="outputCR8" ref="/root/thdYardAddr/outputCR8" style="left:775px; top:392px; width:170px; height:25px; text-align:center; background-color:#ff6600; border-color:#000000; border-style:solid; "/>
  453. <output id="outputCR11" ref="/root/thdYardAddr/outputCR11" style="left:775px; top:314px; width:170px; height:25px; text-align:center; background-color:#ff6600; border-color:#000000; border-style:solid; "/>
  454. <output id="outputCR12" ref="/root/thdYardAddr/outputCR12" style="left:775px; top:288px; width:170px; height:25px; text-align:center; background-color:#ff6600; border-color:#000000; border-style:solid; "/>
  455. <output id="outputCR16" ref="/root/thdYardAddr/outputCR16" style="left:775px; top:184px; width:170px; height:25px; text-align:center; background-color:#ff6600; border-color:#000000; border-style:solid; "/>
  456. <output id="outputCR13" ref="/root/thdYardAddr/outputCR13" style="left:775px; top:262px; width:170px; height:25px; text-align:center; background-color:#ff6600; border-color:#000000; border-style:solid; "/>
  457. <output id="outputCR14" ref="/root/thdYardAddr/outputCR14" style="left:775px; top:236px; width:170px; height:25px; text-align:center; background-color:#ff6600; border-color:#000000; border-style:solid; "/>
  458. <output id="outputCR15" ref="/root/thdYardAddr/outputCR15" style="left:775px; top:210px; width:170px; height:25px; text-align:center; background-color:#ff6600; border-color:#000000; border-style:solid; "/>
  459. <output id="outputCR9" ref="/root/thdYardAddr/outputCR9" style="left:775px; top:366px; width:170px; height:25px; text-align:center; background-color:#ff6600; border-color:#000000; border-style:solid; "/>
  460. <output id="outputCR10" ref="/root/thdYardAddr/outputCR10" style="left:775px; top:340px; width:170px; height:25px; text-align:center; background-color:#ff6600; border-color:#000000; border-style:solid; "/>
  461. <output id="outputCR6" ref="/root/thdYardAddr/outputCR6" style="left:775px; top:444px; width:170px; height:25px; text-align:center; background-color:#ff6600; border-color:#000000; border-style:solid; "/>
  462. <caption id="caption2" class="cell" style="left:0px; top:40px; width:50px; height:20px; ">原位置</caption>
  463. <caption id="caption3" class="cell" style="left:50px; top:40px; width:53px; height:20px; ">到位置</caption>
  464. <caption id="caption4" class="cell" style="left:104px; top:40px; width:55px; height:20px; ">到位置</caption>
  465. <caption id="caption5" class="cell" style="left:160px; top:40px; width:98px; height:20px; ">板坯号</caption>
  466. <caption id="caption6" class="cell" style="left:259px; top:40px; width:73px; height:20px; ">钢种</caption>
  467. <caption id="caption7" class="cell" style="left:334px; top:40px; width:98px; height:20px; ">板坯尺寸</caption>
  468. <caption id="caption8" class="cell" style="left:433px; top:40px; width:78px; height:20px; ">板坯重量</caption>
  469. <input id="input10" ref="/root/formData/QLFD_YN" style="left:430px; top:106px; width:78px; height:20px; text-align:center; "/>
  470. <caption id="caption9" class="cell" style="left:430px; top:85px; width:78px; height:20px; ">成分检查</caption>
  471. </xhtml:body>
  472. </xhtml:html>