8995220d95308a91ed4698c07c3c49352e347bd5.svn-base 36 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964
  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>
  6. <![CDATA[炼钢作业 >> 炼钢作业实绩 >> 板坯切割实绩查询与录入(UIG020006)]]>
  7. </xhtml:title>
  8. <model id="model1">
  9. <instance id="instance1">
  10. <root xmlns="">
  11. <INTI_DATA/>
  12. <formData>
  13. <PLAN_CHARGE_NO/>
  14. <STL_GRD/>
  15. <CAST_SEQ/>
  16. <CC_DEVNO>J1</CC_DEVNO>
  17. <LD_NO/>
  18. <LD_IN_DTIME/>
  19. <RCPT_TAP_QTY/>
  20. <CUT_WKSHIFT/>
  21. <CUT_WKGROUP/>
  22. <CUT_EMP_ID/>
  23. <SLAB_CNT/>
  24. </formData>
  25. <gridData/>
  26. <searchData>
  27. <CHARGE_NO/>
  28. <PLAN_CHARGE_NO/>
  29. </searchData>
  30. <shiftData>
  31. <FAC_CD>J</FAC_CD>
  32. <PROC_CD>S</PROC_CD>
  33. <GROUP_CD/>
  34. </shiftData>
  35. <resData/>
  36. <reqData/>
  37. <initData>
  38. <INIT_CHARGE_NO/>
  39. <LG_CD>Z05002,Z05001,G02003</LG_CD>
  40. </initData>
  41. <wkResult>
  42. <WkShiftResult/>
  43. <WkGroupResult/>
  44. <WkEmpResult/>
  45. </wkResult>
  46. <SearchEmp>
  47. <WK_GROUP/>
  48. </SearchEmp>
  49. <tempData/>
  50. <comboData>
  51. <reg_id/>
  52. </comboData>
  53. <codeData/>
  54. </root>
  55. </instance>
  56. <script type="javascript" ev:event="xforms-ready">
  57. <![CDATA[
  58. //InitParamsEE();
  59. ]]>
  60. </script>
  61. </model>
  62. <script type="javascript" src="../../js/boaCommon.js"/>
  63. <script type="javascript" src="../../js/boaMsg.js"/>
  64. <script type="javascript" src="../../js/Common.js"/>
  65. <script type="javascript" src="../../js/mesCommon.js"/>
  66. <script type="javascript">
  67. <![CDATA[
  68. /*
  69. *全局变量,函数
  70. */
  71. // 记录表格选中行数
  72. var SELECTED_SLAB_COUNT1 = 0;
  73. var SELECTED_SLAB_COUNT2 = 0;
  74. function InitParams(node) {
  75. if (typeof node == "undefined" && typeof node != "object") return;
  76. model.removenode("/root/initData/rcvInfo");
  77. model.makeNode("/root/initData/rcvInfo");
  78. var nodeList = node.childNodes;
  79. for (var i = 0; i < nodeList.length; i++)
  80. model.instances(0).selectSingleNode("/root/initData/rcvInfo").appendChild(nodeList.item(i));
  81. }
  82. function InitParamsEE()
  83. {
  84. model1.makeValue("/root/formData/SUBPROC","");
  85. commSubmit("UIG020020-service","success","glueAction.do");
  86. commAppendData("/root/initData/INIT_CHARGE_NO/InitDataResult_VO","/root/resData/InitDataResult_VO");
  87. commSendReq("/root/initData");
  88. commSubmit("UIGCOMMCODE-service","find","glueAction.do");
  89. model.copyNode("/root/codeData","/root/resData");
  90. model.refresh();
  91. }
  92. function Init(node) {
  93. InitParams(node);
  94. InitParamsEE();
  95. //shiftSearch();
  96. }
  97. /*
  98. *查询操作
  99. */
  100. function shiftSearch(){
  101. commSendReq("/root/shiftData");
  102. commSubmit("UIG020SHIFT-service","findshift","glueAction.do");
  103. model.setValue("/root/formData/CUT_WKSHIFT",model.getValue("/root/resData/SHIFT_RESULT_VO/SHIFT_RESULT_Row/GR_SHIFT"));
  104. model.setValue("/root/formData/CUT_WKGROUP",model.getValue("/root/resData/SHIFT_RESULT_VO/SHIFT_RESULT_Row/GROUP_CD"));
  105. model.copyNode("/root/comboData/reg_id","/root/resData/EMP_NM_RESUTL_VO");
  106. combo2.refresh();combo3.refresh();
  107. }
  108. function find()
  109. {
  110. //shiftSearch(); model.getValue("/root/searchData/CHARGE_NO") == null ||
  111. // 检查查询修改条件是否为空
  112. //
  113. //
  114. if(model.getValue("/root/searchData/CHARGE_NO") == "" )
  115. {
  116. alert("炉次号不能为空!");
  117. return;
  118. }
  119. if(model.getValue("/root/searchData/CHARGE_NO").length < 9 || model.getValue("/root/searchData/CHARGE_NO").length >10 )
  120. {
  121. alert("炉次号只能为9或者10位!");
  122. return;
  123. }
  124. else
  125. {
  126. model.removenode("/root/reqData");
  127. commSendReq("/root/searchData");
  128. commSubmit("UIG020060-service","find","glueAction.do");
  129. // 将查询结果Apped到datagrid上
  130. commAppendData("/root/gridData/CHARGE_INFO_VO","/root/resData/CHARGE_INFO_VO");
  131. commAppendData("/root/gridData/SlabCutting0_VO","/root/resData/SlabCutting0_VO");
  132. commAppendData("/root/gridData/SlabCutting1_VO","/root/resData/SlabCutting1_VO");
  133. commAppendData("/root/gridData/SlabCutting2_VO","/root/resData/SlabCutting2_VO");
  134. model.refresh();
  135. // 查询操作执行完成以后取消选中行状,选中行背景色,datagridL中选中行数清零
  136. var nodeset = datagrid1.nodeset;
  137. var nodeCnt2 = parseInt(model.getXPathValue("count(" + nodeset + ")"));
  138. datagrid1.rebuildStyle();
  139. for(var j = 2;j<=nodeCnt2+1;j++)
  140. {
  141. datagrid1.valueMatrix(j, datagrid1.colRef("CHK"))="N";
  142. datagrid1.cellAttribute("editable", j,datagrid1.colRef("SLAB_NO")) = "false";
  143. datagrid1.cellAttribute("editable", j,datagrid1.colRef("SLAB_THK")) = "false";
  144. datagrid1.cellAttribute("editable", j,datagrid1.colRef("SLAB_WTH")) = "false";
  145. datagrid1.cellAttribute("editable", j,datagrid1.colRef("SLAB_LEN")) = "false";
  146. datagrid1.cellAttribute("editable", j,datagrid1.colRef("SLAB_TEMP")) = "false";
  147. }
  148. var jj = 0;
  149. for(var ii = 2;ii<=nodeCnt2+1;ii++)
  150. {
  151. jj = ii - 1;
  152. var sSlabStat = model.getValue("/root/gridData/SlabCutting1_VO/SlabCutting1_Row["+jj+"]/SLAB_STAT");
  153. if ( sSlabStat == "1" ) {
  154. datagrid1.cellstyle("background-color", ii, 2, ii, 2) = "#FEFF56";
  155. } else {
  156. datagrid1.cellstyle("background-color", ii, 2, ii, 2) = "#ff00ff";
  157. }
  158. }
  159. jj = 0;
  160. var nodeset2 = datagrid2.nodeset;
  161. var nodeCnt4 = parseInt(model.getXPathValue("count(" + nodeset2 + ")"));
  162. for(var j = 2;j<=nodeCnt4+1;j++)
  163. {
  164. datagrid2.valueMatrix(j, datagrid1.colRef("CHK"))="N";
  165. datagrid2.cellAttribute("editable", j,datagrid2.colRef("SLAB_NO")) = "false";
  166. datagrid2.cellAttribute("editable", j,datagrid2.colRef("SLAB_THK")) = "false";
  167. datagrid2.cellAttribute("editable", j,datagrid2.colRef("SLAB_WTH")) = "false";
  168. datagrid2.cellAttribute("editable", j,datagrid2.colRef("SLAB_LEN")) = "false";
  169. datagrid2.cellAttribute("editable", j,datagrid2.colRef("SLAB_TEMP")) = "false";
  170. }
  171. for(var ii = 2;ii<=nodeCnt4+1;ii++)
  172. {
  173. jj = ii - 1;
  174. var sSlabStat = model.getValue("/root/gridData/SlabCutting2_VO/SlabCutting2_Row["+jj+"]/SLAB_STAT");
  175. if ( sSlabStat == "1" ) {
  176. datagrid2.cellstyle("background-color", ii, 2, ii, 2) = "#FEFF56";
  177. } else {
  178. datagrid2.cellstyle("background-color", ii, 2, ii, 2) = "#ff00ff";
  179. }
  180. }
  181. }
  182. input1.value = model.getValue("/root/initData/rcvInfo/REG_ID");
  183. combo2.value = document.readIniFile("session1" , "UIG0200601" , "" , "c:\\WINDOWS\\xgmes3.ini");
  184. combo3.value = document.readIniFile("session1" , "UIG0200602" , "" , "c:\\WINDOWS\\xgmes3.ini");
  185. combo5.value = document.readIniFile("session1" , "UIG0200603" , "" , "c:\\WINDOWS\\xgmes3.ini");
  186. }
  187. function compulsoryEndCharge(){
  188. var msgStr = " 确认强制结束?操作完成不可回退!";
  189. var answer = window.alert(msgStr,"坯料确认", 1 | 32);
  190. if (answer == "2"){ return; }
  191. model.setValue("/root/searchData/PLAN_CHARGE_NO",input2.value/*model.getValue("/root/formData/PLAN_CHARGE_NO")*/);
  192. commSendReq("/root/searchData");
  193. commSubmit("UIG020060-service","compulsory","glueAction.do");
  194. //find();
  195. }
  196. /*
  197. * 录入
  198. */
  199. function save()
  200. {
  201. // 检查查询修改条件是否为空
  202. if(model.getValue("/root/searchData/CHARGE_NO") == "" )
  203. {
  204. alert("炉次号不能为空!");
  205. return;
  206. }
  207. else
  208. {
  209. if(combo2.value == "" )
  210. {
  211. alert(" @@@ 请 输入班次 @@@ ");
  212. return;
  213. }
  214. if(combo3.value == "" )
  215. {
  216. alert(" @@@ 请 输入班组 @@@ ");
  217. return;
  218. }
  219. if(input1.value == "" )
  220. {
  221. alert(" @@@ 请 输入作业人 @@@ ");
  222. return;
  223. }
  224. SELECTED_SLAB_COUNT1=0;
  225. // 提交修改
  226. model.removenode("/root/reqData");
  227. //commMultiUpdate(datagrid1,"/root/reqData","A",true,"rowStuts");
  228. commMultiUpdate(datagrid3,"/root/reqData","A",true,"rowStuts");
  229. model.duplicate("/root/reqData","/root/searchData/CHARGE_NO");
  230. model.duplicate("/root/reqData","/root/gridData/CHARGE_INFO_VO/CHARGE_INFO_Row/CC_DEVNO");
  231. model.duplicate("/root/reqData","/root/gridData/CHARGE_INFO_VO/CHARGE_INFO_Row/CAST_SEQ");
  232. model.duplicate("/root/reqData","/root/gridData/CHARGE_INFO_VO/CHARGE_INFO_Row/CUT_WKSHIFT");
  233. model.duplicate("/root/reqData","/root/gridData/CHARGE_INFO_VO/CHARGE_INFO_Row/CUT_WKGROUP");
  234. model.duplicate("/root/reqData","/root/formData/CUT_EMP_ID");
  235. // 当CHK状态被选,则全局变加一
  236. var targetNode = datagrid3.nodeset;
  237. var dataCnt = parseInt(model.getXPathValue("count("+targetNode+")"));
  238. var msgStr = "以下板坯已经编入轧制计划,请确认无误\n\n板坯序号 宽度 长度\n";
  239. var millFl = false;
  240. for(var i=2;i<=dataCnt+1;i++)
  241. {
  242. var chk = datagrid3.valueMatrix(i,datagrid3.colRef("CHK"));
  243. if(chk == "Y")
  244. {
  245. if(datagrid3.valueMatrix(i,datagrid3.colRef("MILL_FL")) == "Y"){
  246. millFl = true;
  247. msgStr = msgStr + datagrid3.valueMatrix(i,datagrid3.colRef("SLAB_NO"));
  248. msgStr = msgStr + " " + datagrid3.valueMatrix(i,datagrid3.colRef("SLAB_WTH"));
  249. msgStr = msgStr + " " + datagrid3.valueMatrix(i,datagrid3.colRef("SLAB_LEN"));
  250. msgStr = msgStr + "\n";
  251. }
  252. SELECTED_SLAB_COUNT1 = SELECTED_SLAB_COUNT1 + 1;
  253. }
  254. }
  255. /*if(millFl == true){
  256. var answer = window.alert(msgStr,"坯料确认", 1 | 32);
  257. if (answer == "2"){
  258. return;
  259. }
  260. }*/
  261. if(SELECTED_SLAB_COUNT1 == 0)
  262. {
  263. alert("@@@@ 请先选定操作记录! @@@@");
  264. return;
  265. }
  266. commSubmit("UIG020060-service","save","glueAction.do");
  267. // 选中行数重设为0
  268. SELECTED_SLAB_COUNT = 0; //20160222不重载的情况下会导致空保存卡死系统
  269. // 录入操作完成,恢复表格各种状态到原始状态
  270. var nodeset = datagrid3.nodeset;
  271. var nodeCnt2 = parseInt(model.getXPathValue("count(" + nodeset + ")"));
  272. datagrid3.rebuildStyle();
  273. for(var j = 2;j<=nodeCnt2+1;j++)
  274. {
  275. // 取消行选中状态
  276. datagrid3.valueMatrix(j, datagrid1.colRef("CHK"))="N";
  277. datagrid3.cellAttribute("editable", j,datagrid3.colRef("SLAB_NO")) = "false";
  278. datagrid3.cellAttribute("editable", j,datagrid3.colRef("SLAB_THK")) = "false";
  279. datagrid3.cellAttribute("editable", j,datagrid3.colRef("SLAB_WTH")) = "false";
  280. datagrid3.cellAttribute("editable", j,datagrid3.colRef("SLAB_LEN")) = "false";
  281. datagrid3.cellAttribute("editable", j,datagrid3.colRef("SLAB_TEMP")) = "false";
  282. // 操作完成恢复行状态为标志0
  283. datagrid3.rowStatus(j)= 0;
  284. }
  285. var messages = model.getValue("/root/resData/MESSAGES_VO/MESSAGES_Row");
  286. find();
  287. alert(messages);
  288. }
  289. }
  290. function copyGrid(gridID)
  291. {
  292. var tg = gridID.substr(8,1)
  293. gridID = document.all(gridID);
  294. var nodeset = gridID.nodeset;
  295. var nodeCnt2 = parseInt(model.getXPathValue("count(" + nodeset + ")"));
  296. var rowcnt = nodeCnt2 - 1;
  297. var slabno = model.getValue(gridID.nodeset + "[" + rowcnt + "]/SLAB_NO");
  298. var slabthk = model.getValue(gridID.nodeset + "[" + rowcnt + "]/SLAB_THK");
  299. var slabwth = model.getValue(gridID.nodeset + "[" + rowcnt + "]/SLAB_WTH");
  300. var slablen = model.getValue(gridID.nodeset + "[" + rowcnt + "]/SLAB_LEN");
  301. var slabWgt = model.getValue(gridID.nodeset + "[" + rowcnt + "]/SLAB_WGT");
  302. var nslab = Number(slabno)+10;
  303. // 新增板坯
  304. if(nslab < 100) nslab = "0" + nslab;
  305. // 根据gridID区分表是 datagrid1 datagrid2
  306. model.setValue("/root/gridData/SlabCutting0_VO/SlabCutting0_Row["+nodeCnt2+"]/SLAB_NO",nslab);
  307. model.setValue("/root/gridData/SlabCutting0_VO/SlabCutting0_Row["+nodeCnt2+"]/SLAB_THK",slabthk);
  308. model.setValue("/root/gridData/SlabCutting0_VO/SlabCutting0_Row["+nodeCnt2+"]/SLAB_WTH",slabwth);
  309. model.setValue("/root/gridData/SlabCutting0_VO/SlabCutting0_Row["+nodeCnt2+"]/SLAB_LEN",slablen);
  310. model.setValue("/root/gridData/SlabCutting0_VO/SlabCutting0_Row["+nodeCnt2+"]/SLAB_WGT",slabWgt);
  311. model.setValue("/root/gridData/SlabCutting0_VO/SlabCutting0_Row["+nodeCnt2+"]/HCR_CLF","C");
  312. model.setValue("/root/gridData/SlabCutting0_VO/SlabCutting0_Row["+nodeCnt2+"]/ORD_FL","2");
  313. model.setValue("/root/gridData/SlabCutting0_VO/SlabCutting0_Row["+nodeCnt2+"]/SURPLMATL_YN","S");
  314. model.refresh();
  315. }
  316. //通过选择组信息获得相应的作业人,这里是查询转炉的相关作业人
  317. function selOnClick()
  318. {
  319. model.removenode("/root/reqData");
  320. model.makeNode("/root/reqData");
  321. var WkGroup = model1.getValue("/root/formData/CUT_WKGROUP");
  322. model.setValue("/root/SearchEmp/WK_GROUP", WkGroup);
  323. model.duplicate("/root/reqData","/root/SearchEmp/WK_GROUP");
  324. commSubmit("UIG020060-service","onclick","glueAction.do");
  325. commAppendData("/root/wkResult/WkEmpResult/onclickResult_VO","/root/resData/onclickResult_VO");
  326. model.refresh();
  327. }
  328. function slabLenChg(){
  329. if(datagrid3.col == datagrid3.colRef("SLAB_LEN")||datagrid3.col == datagrid3.colRef("SLAB_WTH")){
  330. var thk = datagrid3.valueMatrix(datagrid3.row,datagrid3.colRef("SLAB_THK"));
  331. var wth = datagrid3.valueMatrix(datagrid3.row,datagrid3.colRef("SLAB_WTH"));
  332. var lenth = datagrid3.valueMatrix(datagrid3.row,datagrid3.colRef("SLAB_LEN"));
  333. datagrid3.valueMatrix(datagrid3.row,datagrid3.colRef("SLAB_WGT")) = Math.round(thk*wth*lenth*7.8/1000000);
  334. }
  335. }
  336. function rightClick(){
  337. var checkValue = model.getValue("/root/searchData/CHARGE_NO");
  338. if(checkValue == null || checkValue == "")return;
  339. var tstvalue = parseInt(checkValue.substr(4,5),10);
  340. tstvalue = (tstvalue + 1) + "";
  341. var strLen = tstvalue.length;
  342. checkValue = checkValue.substr(0,4);
  343. for(var i = 0 ; i < (5 - strLen) ; i++){
  344. checkValue = checkValue + "0";
  345. }
  346. checkValue = checkValue + tstvalue + "A";
  347. model.setValue("/root/searchData/CHARGE_NO",checkValue);
  348. find();
  349. }
  350. function slabRecut(){
  351. var answer = window.alert("确定清除切割记录?\n","确认", 1 | 32);
  352. if (answer == "2"){
  353. return;
  354. }
  355. commSendReq("/root/searchData");
  356. model.duplicate("/root/reqData","/root/formData/CUT_EMP_ID");
  357. commSubmit("UIG020060-service","recut","glueAction.do");
  358. var messages = model.getValue("/root/resData/MESSAGES_VO/MESSAGES_Row");
  359. find();
  360. alert(messages);
  361. }
  362. function leftClick(){
  363. var checkValue = model.getValue("/root/searchData/CHARGE_NO");
  364. if(checkValue == null || checkValue == "")return;
  365. var tstvalue = parseInt(checkValue.substr(4,5),10);
  366. tstvalue = (tstvalue - 1) + "";
  367. var strLen = tstvalue.length;
  368. checkValue = checkValue.substr(0,4);
  369. for(var i = 0 ; i < (5 - strLen) ; i++){
  370. checkValue = checkValue + "0";
  371. }
  372. checkValue = checkValue + tstvalue + "A";
  373. model.setValue("/root/searchData/CHARGE_NO",checkValue);
  374. find();
  375. }
  376. function moveSlab(){
  377. model.setValue("/root/tempData",model.getValue("/root/searchData/CHARGE_NO"));
  378. window.load("UIG020061.xrw","modal","", "left:228; top:120; width:700; height:450; sysmenu:visible; min:visible; max:true; resize:true; caption:visible;");
  379. }
  380. ]]>
  381. </script>
  382. </xhtml:head>
  383. <xhtml:body guideline="1,980;" style="border-color:#000000; ">
  384. <group id="group1" ref="/root/gridData/CHARGE_INFO_VO/CHARGE_INFO_Row" style="left:0px; top:35px; width:980px; height:55px; ">
  385. <line id="line3" style="x1:0px; y1:0px; x2:980px; y2:0px; "/>
  386. <line id="line4" style="x1:0px; y1:55px; x2:980px; y2:55px; "/>
  387. <shape id="rectangle1" appearance="rectangle" style="left:0px; top:1px; width:980px; height:50px; "/>
  388. <caption id="caption4" class="cell2" style="left:0px; top:3px; width:94px; height:23px; ">预定炉次号</caption>
  389. <caption id="caption5" class="cell2" style="left:94px; top:3px; width:94px; height:23px; ">钢种</caption>
  390. <caption id="caption6" class="cell2" style="left:188px; top:3px; width:99px; height:23px; ">连浇炉</caption>
  391. <caption id="caption7" class="cell2" style="left:584px; top:3px; width:99px; height:23px; ">连铸机编号</caption>
  392. <caption id="caption8" class="cell2" style="left:683px; top:3px; width:99px; height:23px; ">班次</caption>
  393. <caption id="caption9" class="cell2" style="left:782px; top:3px; width:99px; height:23px; ">组</caption>
  394. <caption id="caption10" class="cell2" style="left:881px; top:3px; width:99px; height:23px; ">作业人</caption>
  395. <caption id="caption11" class="cell2" style="left:287px; top:3px; width:99px; height:23px; ">钢包包号</caption>
  396. <caption id="caption12" class="cell2" style="left:386px; top:3px; width:99px; height:23px; ">钢包到达时刻</caption>
  397. <caption id="caption13" class="cell2" style="left:485px; top:3px; width:99px; height:23px; ">钢包到达重量</caption>
  398. <caption id="caption14" class="cell" style="left:0px; top:26px; width:94px; height:23px; "/>
  399. <input id="input2" ref="PLAN_CHARGE_NO" editable="false" style="left:2px; top:29px; width:90px; height:17px; background-color:#c0c0c0; "/>
  400. <caption id="caption15" class="cell" style="left:94px; top:26px; width:94px; height:23px; "/>
  401. <input id="input3" ref="STL_GRD" editable="false" style="left:96px; top:29px; width:90px; height:17px; background-color:#c0c0c0; "/>
  402. <caption id="caption16" class="cell" style="left:188px; top:26px; width:99px; height:23px; "/>
  403. <input id="input4" ref="CAST_SEQ" editable="false" style="left:190px; top:29px; width:95px; height:17px; background-color:#c0c0c0; "/>
  404. <caption id="caption22" class="cell" style="left:287px; top:26px; width:99px; height:23px; "/>
  405. <input id="input10" ref="LD_NO" editable="false" style="left:289px; top:29px; width:95px; height:17px; background-color:#c0c0c0; "/>
  406. <caption id="caption21" class="cell" style="left:386px; top:26px; width:99px; height:23px; "/>
  407. <input id="input9" ref="LD_IN_DTIME" editable="false" format="yyyy-mm-dd hh:nn:ss" style="left:388px; top:29px; width:95px; height:17px; background-color:#c0c0c0; "/>
  408. <caption id="caption23" class="cell" style="left:485px; top:26px; width:99px; height:23px; "/>
  409. <input id="input11" ref="RCPT_TAP_QTY" editable="false" style="left:487px; top:29px; width:95px; height:17px; background-color:#c0c0c0; "/>
  410. <caption id="caption17" class="cell" style="left:584px; top:26px; width:99px; height:23px; "/>
  411. <select1 id="combo5" ref="CC_DEVNO" appearance="minimal" style="left:587px; top:27px; width:90px; height:20px; ">
  412. <choices>
  413. <itemset nodeset="/root/codeData/COMM_CODE_RESULT_VO/COMM_CODE_RESULT_Row[LG_CD = 'G02003' and SM_EFNM = 'J']">
  414. <label ref="SM_CFNM"/>
  415. <value ref="SM_CD"/>
  416. </itemset>
  417. </choices>
  418. <script type="javascript" ev:event="xforms-value-changed">
  419. <![CDATA[
  420. document.writeIniFile("session1" , "UIG0200603" , combo5.value.Trim() , "c:\\WINDOWS\\xgmes3.ini");
  421. ]]>
  422. </script>
  423. </select1>
  424. <caption id="caption18" class="cell" style="left:683px; top:26px; width:99px; height:23px; "/>
  425. <select1 id="combo2" ref="CUT_WKSHIFT" appearance="minimal" style="left:685px; top:29px; width:95px; height:17px; ">
  426. <choices>
  427. <itemset nodeset="/root/codeData/COMM_CODE_RESULT_VO/COMM_CODE_RESULT_Row[LG_CD = 'Z05001']">
  428. <label ref="SM_CFNM"/>
  429. <value ref="SM_CD"/>
  430. </itemset>
  431. </choices>
  432. <script type="javascript" ev:event="xforms-value-changed">
  433. <![CDATA[
  434. document.writeIniFile("session1" , "UIG0200601" , combo2.value.Trim() , "c:\\WINDOWS\\xgmes3.ini");
  435. ]]>
  436. </script>
  437. </select1>
  438. <caption id="caption19" class="cell" style="left:782px; top:26px; width:99px; height:23px; "/>
  439. <select1 id="combo3" ref="CUT_WKGROUP" appearance="minimal" style="left:784px; top:29px; width:95px; height:17px; ">
  440. <choices>
  441. <itemset nodeset="/root/codeData/COMM_CODE_RESULT_VO/COMM_CODE_RESULT_Row[LG_CD = 'Z05002']">
  442. <label ref="SM_CFNM"/>
  443. <value ref="SM_CD"/>
  444. </itemset>
  445. </choices>
  446. <script type="javascript" ev:event="xforms-value-changed">
  447. <![CDATA[
  448. document.writeIniFile("session1" , "UIG0200602" , combo3.value.Trim() , "c:\\WINDOWS\\xgmes3.ini");
  449. ]]>
  450. </script>
  451. </select1>
  452. <caption id="caption20" class="cell" style="left:881px; top:26px; width:99px; height:23px; "/>
  453. <input id="input1" ref="/root/formData/CUT_EMP_ID" editable="false" style="left:883px; top:29px; width:95px; height:17px; background-color:#c0c0c0; "/>
  454. </group>
  455. <caption id="caption2" class="cell" style="left:0px; top:5px; width:100px; height:20px; border-color:#000000; ">炉次号</caption>
  456. <select1 id="combo1" ref="/root/searchData/CHARGE_NO" appearance="minimal" editmode="input" style="left:102px; top:5px; width:110px; height:20px; border-color:#000000; ">
  457. <choices>
  458. <itemset nodeset="/root/initData/INIT_CHARGE_NO/InitDataResult_VO/InitDataResult_Row">
  459. <label ref="LABEL"/>
  460. <value ref="VALUE"/>
  461. </itemset>
  462. </choices>
  463. <script type="javascript" ev:event="xforms-value-changed">
  464. <![CDATA[
  465. //alert("sdf");
  466. find();
  467. ]]>
  468. </script>
  469. </select1>
  470. <button id="button1" class="butt_3" style="left:874px; top:271px; width:52px; height:19px; ">
  471. <caption>行增加</caption>
  472. <script type="javascript" ev:event="DOMActivate">
  473. <![CDATA[
  474. datagrid3.addRow();
  475. copyGrid("datagrid3");
  476. // datagrid3.rebuild();
  477. ]]>
  478. </script>
  479. </button>
  480. <line id="line1" style="x1:0px; y1:0px; x2:980px; y2:0px; "/>
  481. <line id="line2" style="x1:0px; y1:30px; x2:980px; y2:30px; "/>
  482. <datagrid id="datagrid2" nodeset="/root/gridData/SlabCutting2_VO/SlabCutting2_Row" caption="选择^板坯号^板坯号^计划板坯号^板坯号^合同号^板坯规格^板坯规格^板坯规格^板坯规格^热送区分^板坯去向^余材区分^最终区分^头尾坯^剩余材^过渡材|选择^板坯号^板坯号^计划板坯号^板坯号^合同号^厚度^宽度^长度^重量^热送区分^板坯去向^余材区分^最终区分^头尾坯^剩余材^过渡材" colsep="^" colwidth="40, 35, 100, 62, 43, 41, 35, 35, 35, 45, 35, 35, 35, 35, 35, 35, 38" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" selectionmode="free" style="left:495px; top:90px; width:485px; height:175px; border-color:#000000; ">
  483. <col ref="CHK" type="checkbox"/>
  484. <col editable="false" ref="SLAB_NO"/>
  485. <col ref="SUB_SLAB_NO" visibility="hidden"/>
  486. <col ref="PLAN_SLAB_NO"/>
  487. <col/>
  488. <col/>
  489. <col editable="false" ref="SLAB_THK"/>
  490. <col editable="false" ref="SLAB_WTH" type="input"/>
  491. <col editable="false" ref="SLAB_LEN" type="input"/>
  492. <col ref="SLAB_WGT"/>
  493. <col disabled="true" ref="HCR_CLF" type="combo">
  494. <choices>
  495. <item>
  496. <label>热送</label>
  497. <value>H</value>
  498. </item>
  499. <item>
  500. <label>下线</label>
  501. <value>C</value>
  502. </item>
  503. </choices>
  504. </col>
  505. <col disabled="true" ref="SLAB_RT" type="combo">
  506. <choices>
  507. <item>
  508. <label>热轧</label>
  509. <value>H</value>
  510. </item>
  511. <item>
  512. <label>中板</label>
  513. <value>Z</value>
  514. </item>
  515. <item>
  516. <label>厚板</label>
  517. <value>P</value>
  518. </item>
  519. </choices>
  520. </col>
  521. <col disabled="true" ref="ORD_FL" type="combo">
  522. <choices>
  523. <item>
  524. <label>正常</label>
  525. <value>1</value>
  526. </item>
  527. <item>
  528. <label>余材</label>
  529. <value>2</value>
  530. </item>
  531. </choices>
  532. </col>
  533. <col disabled="true" ref="LAST_SLAB_YN" type="combo">
  534. <choices>
  535. <item>
  536. <label/>
  537. <value/>
  538. </item>
  539. <item>
  540. <label>尾坯</label>
  541. <value>E</value>
  542. </item>
  543. </choices>
  544. </col>
  545. <col disabled="true" ref="TW_SLAB_YN" type="combo">
  546. <choices>
  547. <item>
  548. <label>头坯</label>
  549. <value>1</value>
  550. </item>
  551. <item>
  552. <label>尾坯</label>
  553. <value>2</value>
  554. </item>
  555. </choices>
  556. </col>
  557. <col disabled="true" ref="SURPLMATL_YN" type="combo">
  558. <choices>
  559. <item>
  560. <label/>
  561. <value/>
  562. </item>
  563. <item>
  564. <label>非计划</label>
  565. <value>S</value>
  566. </item>
  567. </choices>
  568. </col>
  569. <col disabled="true" ref="DIFF_STL_GRD_STA_END_YN" type="combo">
  570. <choices>
  571. <item>
  572. <label>过渡</label>
  573. <value>2</value>
  574. </item>
  575. </choices>
  576. </col>
  577. </datagrid>
  578. <datagrid id="datagrid1" nodeset="/root/gridData/SlabCutting1_VO/SlabCutting1_Row" caption="选择^板坯号^板坯号^计划板坯号^板坯号^合同号^板坯规格^板坯规格^板坯规格^板坯规格^热送区分^板坯去向^余材区分^最终区分^头尾坯^剩余材^过渡材|选择^板坯号^板坯号^计划板坯号^板坯号^合同号^厚度^宽度^长度^重量^热送区分^板坯去向^余材区分^最终区分^头尾坯^剩余材^过渡材" colsep="^" colwidth="40, 35, 100, 59, 41, 41, 35, 35, 35, 45, 35, 35, 35, 35, 40, 37, 38" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" selectionmode="free" style="left:0px; top:90px; width:485px; height:175px; border-color:#000000; ">
  579. <col ref="CHK" type="checkbox"/>
  580. <col editable="false" ref="SLAB_NO"/>
  581. <col ref="SUB_SLAB_NO" visibility="hidden"/>
  582. <col ref="PLAN_SLAB_NO"/>
  583. <col/>
  584. <col/>
  585. <col editable="false" ref="SLAB_THK"/>
  586. <col editable="false" ref="SLAB_WTH" type="input"/>
  587. <col editable="false" ref="SLAB_LEN" type="input"/>
  588. <col ref="SLAB_WGT"/>
  589. <col disabled="true" ref="HCR_CLF" type="combo">
  590. <choices>
  591. <item>
  592. <label>热送</label>
  593. <value>H</value>
  594. </item>
  595. <item>
  596. <label>下线</label>
  597. <value>C</value>
  598. </item>
  599. </choices>
  600. </col>
  601. <col disabled="true" ref="SLAB_RT" type="combo">
  602. <choices>
  603. <item>
  604. <label>热轧</label>
  605. <value>H</value>
  606. </item>
  607. <item>
  608. <label>中板</label>
  609. <value>Z</value>
  610. </item>
  611. <item>
  612. <label>厚板</label>
  613. <value>P</value>
  614. </item>
  615. </choices>
  616. </col>
  617. <col disabled="true" ref="ORD_FL" type="combo">
  618. <choices>
  619. <item>
  620. <label>正常</label>
  621. <value>1</value>
  622. </item>
  623. <item>
  624. <label>余材</label>
  625. <value>2</value>
  626. </item>
  627. </choices>
  628. </col>
  629. <col disabled="true" ref="LAST_SLAB_YN" type="combo">
  630. <choices>
  631. <item>
  632. <label/>
  633. <value/>
  634. </item>
  635. <item>
  636. <label>尾坯</label>
  637. <value>E</value>
  638. </item>
  639. </choices>
  640. </col>
  641. <col ref="TW_SLAB_YN" type="combo">
  642. <choices>
  643. <item>
  644. <label>头坯</label>
  645. <value>1</value>
  646. </item>
  647. <item>
  648. <label>尾坯</label>
  649. <value>2</value>
  650. </item>
  651. </choices>
  652. </col>
  653. <col disabled="true" ref="SURPLMATL_YN" type="combo">
  654. <choices>
  655. <item>
  656. <label/>
  657. <value/>
  658. </item>
  659. <item>
  660. <label>非计划</label>
  661. <value>S</value>
  662. </item>
  663. </choices>
  664. </col>
  665. <col disabled="true" ref="DIFF_STL_GRD_STA_END_YN" type="combo">
  666. <choices>
  667. <item>
  668. <label>过渡</label>
  669. <value>2</value>
  670. </item>
  671. </choices>
  672. </col>
  673. </datagrid>
  674. <button id="button4" class="butt_3" style="left:928px; top:271px; width:58px; height:19px; ">
  675. <caption>清空流号</caption>
  676. <script type="javascript" ev:event="DOMActivate">
  677. <![CDATA[
  678. slabRecut();
  679. ]]>
  680. </script>
  681. </button>
  682. <datagrid id="datagrid3" nodeset="/root/gridData/SlabCutting0_VO/SlabCutting0_Row" caption="选择^板坯号^子板坯号^计划板坯号^订单号^计划规格^板坯规格^板坯规格^板坯规格^板坯规格^炉次结束^头尾坯^流号^流号^过渡坯^成份等级^尺寸等级^热送区分^板坯去向^余材区分^轧制编制区分^剩余材^截断时间|选择^板坯号^子板坯号^计划板坯号^订单号^计划规格^厚度^宽度^长度^重量^炉次结束^头尾坯^一流^二流^过渡坯^成份等级^尺寸等级^热送区分^板坯去向^余材区分^轧制编制区分^剩余材^截断时间" colsep="^" colwidth="30, 35, 100, 81, 63, 54, 33, 37, 36, 46, 50, 50, 50, 50, 50, 38, 39, 40, 44, 40, 48, 45, 121" extendlastcol="false" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" selectionmode="free" style="left:0px; top:290px; width:980px; height:310px; border-color:#000000; ">
  683. <col explorerbar="sort" checkvalue="Y,N" ref="CHK" type="checkbox"/>
  684. <col editable="false" ref="SLAB_NO"/>
  685. <col ref="SUB_SLAB_NO" visibility="hidden"/>
  686. <col ref="PLAN_SLAB_NO"/>
  687. <col editable="false" ref="INS_ORD_NO" type="input"/>
  688. <col ref="INS_SLAB_SIZE"/>
  689. <col ref="SLAB_THK" type="input" format="#,###" maxlength="6" style="background-color:#ffff99; "/>
  690. <col editable="false" ref="SLAB_WTH" type="input" format="#,###" maxlength="6" style="background-color:#ffff99; "/>
  691. <col editable="false" ref="SLAB_LEN" type="input" format="#,###" maxlength="9" style="background-color:#ffff99; "/>
  692. <col editable="false" ref="SLAB_WGT" type="input" format="#,###" maxlength="9" style="background-color:#ffff99; "/>
  693. <col ref="LAST_SLAB_YN" type="combo" style="background-color:#ffff99; ">
  694. <choices>
  695. <item>
  696. <label/>
  697. <value/>
  698. </item>
  699. <item>
  700. <label>结束</label>
  701. <value>E</value>
  702. </item>
  703. </choices>
  704. </col>
  705. <col ref="TW_SLAB_YN" type="combo" style="background-color:#ffff99; ">
  706. <choices>
  707. <item>
  708. <label/>
  709. <value/>
  710. </item>
  711. <item>
  712. <label>头坯</label>
  713. <value>1</value>
  714. </item>
  715. <item>
  716. <label>尾坯</label>
  717. <value>2</value>
  718. </item>
  719. </choices>
  720. </col>
  721. <col checkvalue="Y,N" ref="STRAND_NO1" type="checkbox" style="background-color:#ffff99; "/>
  722. <col checkvalue="Y,N" ref="STRAND_NO2" type="checkbox" style="background-color:#ffff99; "/>
  723. <col checkvalue="Y,N" ref="DIFF_STL_GRD_STA_END_YN" type="checkbox" style="background-color:#ffff99; "/>
  724. <col disabled="true" ref="SLAB_INGR_DEC_GRD" type="combo">
  725. <choices>
  726. <item>
  727. <label>合格</label>
  728. <value>1</value>
  729. </item>
  730. <item>
  731. <label>不合格</label>
  732. <value>2</value>
  733. </item>
  734. <item>
  735. <label>化废</label>
  736. <value>3</value>
  737. </item>
  738. </choices>
  739. </col>
  740. <col disabled="true" ref="SLAB_SIZE_DEC_GRD" type="combo">
  741. <choices>
  742. <item>
  743. <label>合格</label>
  744. <value>1</value>
  745. </item>
  746. <item>
  747. <label>不合格</label>
  748. <value>2</value>
  749. </item>
  750. </choices>
  751. </col>
  752. <col disabled="true" ref="HCR_CLF" type="combo">
  753. <choices>
  754. <item>
  755. <label>热送</label>
  756. <value>H</value>
  757. </item>
  758. <item>
  759. <label>下线</label>
  760. <value>C</value>
  761. </item>
  762. </choices>
  763. </col>
  764. <col disabled="true" ref="SLAB_RT" type="combo">
  765. <choices>
  766. <item>
  767. <label>中板</label>
  768. <value>Z</value>
  769. </item>
  770. <item>
  771. <label>热轧</label>
  772. <value>H</value>
  773. </item>
  774. <item>
  775. <label>厚板</label>
  776. <value>P</value>
  777. </item>
  778. </choices>
  779. </col>
  780. <col disabled="true" ref="ORD_FL" type="combo">
  781. <choices>
  782. <item>
  783. <label>正常材</label>
  784. <value>1</value>
  785. </item>
  786. <item>
  787. <label>余材</label>
  788. <value>2</value>
  789. </item>
  790. </choices>
  791. </col>
  792. <col disabled="true" ref="MILL_FL" type="combo">
  793. <choices>
  794. <item>
  795. <label>已编制</label>
  796. <value>Y</value>
  797. </item>
  798. </choices>
  799. </col>
  800. <col disabled="true" ref="SURPLMATL_YN" type="combo">
  801. <choices>
  802. <item>
  803. <label/>
  804. <value/>
  805. </item>
  806. <item>
  807. <label>非计划</label>
  808. <value>S</value>
  809. </item>
  810. </choices>
  811. </col>
  812. <col ref="SLAB_CUT_DTIME"/>
  813. <script type="javascript" ev:event="xforms-select">
  814. <![CDATA[
  815. /*
  816. * 当grid中行CHK状态值变化时,相应改变editable的值
  817. */
  818. if(datagrid3.colRef("CHK") == datagrid3.col){
  819. datagrid3.cellAttribute("editable", datagrid3.row,datagrid3.colRef("SLAB_NO")) = "true";
  820. datagrid3.cellAttribute("editable", datagrid3.row,datagrid3.colRef("SLAB_THK")) = "true";
  821. datagrid3.cellAttribute("editable", datagrid3.row,datagrid3.colRef("SLAB_THK")) = "true";
  822. datagrid3.cellAttribute("editable", datagrid3.row,datagrid3.colRef("SLAB_WTH")) = "true";
  823. datagrid3.cellAttribute("editable", datagrid3.row,datagrid3.colRef("SLAB_LEN")) = "true";
  824. datagrid3.cellAttribute("editable", datagrid3.row,datagrid3.colRef("SLAB_TEMP")) = "true";
  825. datagrid3.cellAttribute("editable", datagrid3.row,datagrid3.colRef("SLAB_WGT")) = "true";
  826. datagrid3.rowStatus(datagrid3.row) = 1;
  827. }else if(datagrid3.colRef("STRAND_NO1") == datagrid3.col){
  828. datagrid3.valueMatrix(datagrid3.row,datagrid3.colRef("STRAND_NO2")) = "N";
  829. }else if(datagrid3.colRef("STRAND_NO2") == datagrid3.col){
  830. datagrid3.valueMatrix(datagrid3.row,datagrid3.colRef("STRAND_NO1")) = "N";
  831. }
  832. ]]>
  833. </script>
  834. <script type="javascript" ev:event="xforms-deselect">
  835. <![CDATA[
  836. /*
  837. * 当grid中行CHK状态值变化时,相应改变editable的值
  838. */
  839. if(datagrid3.colRef("DIFF_STL_GRD_STA_END_YN") == datagrid3.col){ return;}
  840. datagrid3.rebuildStyle(datagrid3.row,0,datagrid3.row,datagrid3.cols-1);
  841. datagrid3.cellAttribute("editable", datagrid3.row,datagrid3.colRef("SLAB_NO")) = "false";
  842. datagrid3.cellAttribute("editable", datagrid3.row,datagrid3.colRef("SLAB_THK")) = "false";
  843. datagrid3.cellAttribute("editable", datagrid3.row,datagrid3.colRef("SLAB_WTH")) = "false";
  844. datagrid3.cellAttribute("editable", datagrid3.row,datagrid3.colRef("SLAB_LEN")) = "false";
  845. datagrid3.cellAttribute("editable", datagrid3.row,datagrid3.colRef("SLAB_TEMP")) = "false";
  846. datagrid3.rowStatus(datagrid3.row) = 0;
  847. ]]>
  848. </script>
  849. <script type="javascript" ev:event="xforms-value-changed">
  850. <![CDATA[
  851. slabLenChg();
  852. ]]>
  853. </script>
  854. </datagrid>
  855. <button id="button2" style="left:240px; top:8px; width:20px; height:20px; background-image:../../images/cal_next_m.gif; ">
  856. <caption/>
  857. <script type="javascript" ev:event="DOMActivate">
  858. <![CDATA[
  859. rightClick();
  860. ]]>
  861. </script>
  862. </button>
  863. <button id="button3" style="left:215px; top:8px; width:20px; height:20px; background-image:../../images/cal_pre_m.gif; ">
  864. <caption/>
  865. <script type="javascript" ev:event="DOMActivate">
  866. <![CDATA[
  867. leftClick();
  868. ]]>
  869. </script>
  870. </button>
  871. <button id="button5" style="left:892px; top:5px; width:85px; height:20px; text-align:right; background-image:../../images/save2.gif; ">
  872. <caption>结束炉次</caption>
  873. <script type="javascript" ev:event="DOMActivate">
  874. <![CDATA[
  875. compulsoryEndCharge();
  876. ]]>
  877. </script>
  878. </button>
  879. <button id="button6" visibility="hidden" style="left:610px; top:5px; width:100px; height:20px; ">
  880. <caption>find</caption>
  881. <script type="javascript" ev:event="onclick">
  882. <![CDATA[
  883. find();
  884. ]]>
  885. </script>
  886. </button>
  887. <button id="button7" visibility="hidden" style="left:715px; top:5px; width:100px; height:20px; ">
  888. <caption>save</caption>
  889. <script type="javascript" ev:event="onclick">
  890. <![CDATA[
  891. save();
  892. ]]>
  893. </script>
  894. </button>
  895. </xhtml:body>
  896. </xhtml:html>