| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964 |
- <?xml version="1.0" encoding="UTF-8"?>
- <?xml-stylesheet type="text/css" href="../../css/body.css" ?>
- <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">
- <xhtml:head>
- <xhtml:title>
- <![CDATA[炼钢作业 >> 炼钢作业实绩 >> 板坯切割实绩查询与录入(UIG020006)]]>
- </xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <INTI_DATA/>
- <formData>
- <PLAN_CHARGE_NO/>
- <STL_GRD/>
- <CAST_SEQ/>
- <CC_DEVNO>J1</CC_DEVNO>
- <LD_NO/>
- <LD_IN_DTIME/>
- <RCPT_TAP_QTY/>
- <CUT_WKSHIFT/>
- <CUT_WKGROUP/>
- <CUT_EMP_ID/>
- <SLAB_CNT/>
- </formData>
- <gridData/>
- <searchData>
- <CHARGE_NO/>
- <PLAN_CHARGE_NO/>
- </searchData>
- <shiftData>
- <FAC_CD>J</FAC_CD>
- <PROC_CD>S</PROC_CD>
- <GROUP_CD/>
- </shiftData>
- <resData/>
- <reqData/>
- <initData>
- <INIT_CHARGE_NO/>
- <LG_CD>Z05002,Z05001,G02003</LG_CD>
- </initData>
- <wkResult>
- <WkShiftResult/>
- <WkGroupResult/>
- <WkEmpResult/>
- </wkResult>
- <SearchEmp>
- <WK_GROUP/>
- </SearchEmp>
- <tempData/>
- <comboData>
- <reg_id/>
- </comboData>
- <codeData/>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- //InitParamsEE();
-
- ]]>
- </script>
- </model>
- <script type="javascript" src="../../js/boaCommon.js"/>
- <script type="javascript" src="../../js/boaMsg.js"/>
- <script type="javascript" src="../../js/Common.js"/>
- <script type="javascript" src="../../js/mesCommon.js"/>
- <script type="javascript">
- <![CDATA[
- /*
- *全局变量,函数
- */
- // 记录表格选中行数
- var SELECTED_SLAB_COUNT1 = 0;
- var SELECTED_SLAB_COUNT2 = 0;
-
- function InitParams(node) {
- if (typeof node == "undefined" && typeof node != "object") return;
- model.removenode("/root/initData/rcvInfo");
- model.makeNode("/root/initData/rcvInfo");
- var nodeList = node.childNodes;
- for (var i = 0; i < nodeList.length; i++)
- model.instances(0).selectSingleNode("/root/initData/rcvInfo").appendChild(nodeList.item(i));
-
- }
-
- function InitParamsEE()
- {
- model1.makeValue("/root/formData/SUBPROC","");
- commSubmit("UIG020020-service","success","glueAction.do");
- commAppendData("/root/initData/INIT_CHARGE_NO/InitDataResult_VO","/root/resData/InitDataResult_VO");
- commSendReq("/root/initData");
- commSubmit("UIGCOMMCODE-service","find","glueAction.do");
- model.copyNode("/root/codeData","/root/resData");
- model.refresh();
- }
-
- function Init(node) {
- InitParams(node);
- InitParamsEE();
-
- //shiftSearch();
-
- }
-
- /*
- *查询操作
- */
- function shiftSearch(){
- commSendReq("/root/shiftData");
- commSubmit("UIG020SHIFT-service","findshift","glueAction.do");
- model.setValue("/root/formData/CUT_WKSHIFT",model.getValue("/root/resData/SHIFT_RESULT_VO/SHIFT_RESULT_Row/GR_SHIFT"));
- model.setValue("/root/formData/CUT_WKGROUP",model.getValue("/root/resData/SHIFT_RESULT_VO/SHIFT_RESULT_Row/GROUP_CD"));
- model.copyNode("/root/comboData/reg_id","/root/resData/EMP_NM_RESUTL_VO");
- combo2.refresh();combo3.refresh();
- }
- function find()
- {
- //shiftSearch(); model.getValue("/root/searchData/CHARGE_NO") == null ||
- // 检查查询修改条件是否为空
-
- //
- //
- if(model.getValue("/root/searchData/CHARGE_NO") == "" )
- {
- alert("炉次号不能为空!");
- return;
- }
- if(model.getValue("/root/searchData/CHARGE_NO").length < 9 || model.getValue("/root/searchData/CHARGE_NO").length >10 )
- {
- alert("炉次号只能为9或者10位!");
- return;
- }
- else
- {
- model.removenode("/root/reqData");
- commSendReq("/root/searchData");
- commSubmit("UIG020060-service","find","glueAction.do");
-
- // 将查询结果Apped到datagrid上
- commAppendData("/root/gridData/CHARGE_INFO_VO","/root/resData/CHARGE_INFO_VO");
- commAppendData("/root/gridData/SlabCutting0_VO","/root/resData/SlabCutting0_VO");
- commAppendData("/root/gridData/SlabCutting1_VO","/root/resData/SlabCutting1_VO");
- commAppendData("/root/gridData/SlabCutting2_VO","/root/resData/SlabCutting2_VO");
-
- model.refresh();
-
- // 查询操作执行完成以后取消选中行状,选中行背景色,datagridL中选中行数清零
- var nodeset = datagrid1.nodeset;
- var nodeCnt2 = parseInt(model.getXPathValue("count(" + nodeset + ")"));
- datagrid1.rebuildStyle();
-
- for(var j = 2;j<=nodeCnt2+1;j++)
- {
- datagrid1.valueMatrix(j, datagrid1.colRef("CHK"))="N";
- datagrid1.cellAttribute("editable", j,datagrid1.colRef("SLAB_NO")) = "false";
- datagrid1.cellAttribute("editable", j,datagrid1.colRef("SLAB_THK")) = "false";
- datagrid1.cellAttribute("editable", j,datagrid1.colRef("SLAB_WTH")) = "false";
- datagrid1.cellAttribute("editable", j,datagrid1.colRef("SLAB_LEN")) = "false";
- datagrid1.cellAttribute("editable", j,datagrid1.colRef("SLAB_TEMP")) = "false";
- }
-
-
-
- var jj = 0;
- for(var ii = 2;ii<=nodeCnt2+1;ii++)
- {
- jj = ii - 1;
- var sSlabStat = model.getValue("/root/gridData/SlabCutting1_VO/SlabCutting1_Row["+jj+"]/SLAB_STAT");
-
- if ( sSlabStat == "1" ) {
- datagrid1.cellstyle("background-color", ii, 2, ii, 2) = "#FEFF56";
- } else {
- datagrid1.cellstyle("background-color", ii, 2, ii, 2) = "#ff00ff";
- }
- }
-
- jj = 0;
- var nodeset2 = datagrid2.nodeset;
- var nodeCnt4 = parseInt(model.getXPathValue("count(" + nodeset2 + ")"));
-
- for(var j = 2;j<=nodeCnt4+1;j++)
- {
- datagrid2.valueMatrix(j, datagrid1.colRef("CHK"))="N";
- datagrid2.cellAttribute("editable", j,datagrid2.colRef("SLAB_NO")) = "false";
- datagrid2.cellAttribute("editable", j,datagrid2.colRef("SLAB_THK")) = "false";
- datagrid2.cellAttribute("editable", j,datagrid2.colRef("SLAB_WTH")) = "false";
- datagrid2.cellAttribute("editable", j,datagrid2.colRef("SLAB_LEN")) = "false";
- datagrid2.cellAttribute("editable", j,datagrid2.colRef("SLAB_TEMP")) = "false";
- }
-
-
- for(var ii = 2;ii<=nodeCnt4+1;ii++)
- {
- jj = ii - 1;
- var sSlabStat = model.getValue("/root/gridData/SlabCutting2_VO/SlabCutting2_Row["+jj+"]/SLAB_STAT");
- if ( sSlabStat == "1" ) {
- datagrid2.cellstyle("background-color", ii, 2, ii, 2) = "#FEFF56";
- } else {
- datagrid2.cellstyle("background-color", ii, 2, ii, 2) = "#ff00ff";
- }
- }
- }
- input1.value = model.getValue("/root/initData/rcvInfo/REG_ID");
- combo2.value = document.readIniFile("session1" , "UIG0200601" , "" , "c:\\WINDOWS\\xgmes3.ini");
- combo3.value = document.readIniFile("session1" , "UIG0200602" , "" , "c:\\WINDOWS\\xgmes3.ini");
- combo5.value = document.readIniFile("session1" , "UIG0200603" , "" , "c:\\WINDOWS\\xgmes3.ini");
- }
-
- function compulsoryEndCharge(){
- var msgStr = " 确认强制结束?操作完成不可回退!";
- var answer = window.alert(msgStr,"坯料确认", 1 | 32);
- if (answer == "2"){ return; }
- model.setValue("/root/searchData/PLAN_CHARGE_NO",input2.value/*model.getValue("/root/formData/PLAN_CHARGE_NO")*/);
- commSendReq("/root/searchData");
- commSubmit("UIG020060-service","compulsory","glueAction.do");
-
- //find();
- }
-
- /*
- * 录入
- */
- function save()
- {
- // 检查查询修改条件是否为空
- if(model.getValue("/root/searchData/CHARGE_NO") == "" )
- {
- alert("炉次号不能为空!");
- return;
- }
- else
- {
-
-
- if(combo2.value == "" )
- {
- alert(" @@@ 请 输入班次 @@@ ");
- return;
- }
-
- if(combo3.value == "" )
- {
- alert(" @@@ 请 输入班组 @@@ ");
- return;
- }
-
- if(input1.value == "" )
- {
- alert(" @@@ 请 输入作业人 @@@ ");
- return;
- }
-
- SELECTED_SLAB_COUNT1=0;
- // 提交修改
- model.removenode("/root/reqData");
-
- //commMultiUpdate(datagrid1,"/root/reqData","A",true,"rowStuts");
-
- commMultiUpdate(datagrid3,"/root/reqData","A",true,"rowStuts");
-
- model.duplicate("/root/reqData","/root/searchData/CHARGE_NO");
- model.duplicate("/root/reqData","/root/gridData/CHARGE_INFO_VO/CHARGE_INFO_Row/CC_DEVNO");
- model.duplicate("/root/reqData","/root/gridData/CHARGE_INFO_VO/CHARGE_INFO_Row/CAST_SEQ");
- model.duplicate("/root/reqData","/root/gridData/CHARGE_INFO_VO/CHARGE_INFO_Row/CUT_WKSHIFT");
- model.duplicate("/root/reqData","/root/gridData/CHARGE_INFO_VO/CHARGE_INFO_Row/CUT_WKGROUP");
- model.duplicate("/root/reqData","/root/formData/CUT_EMP_ID");
-
- // 当CHK状态被选,则全局变加一
- var targetNode = datagrid3.nodeset;
- var dataCnt = parseInt(model.getXPathValue("count("+targetNode+")"));
- var msgStr = "以下板坯已经编入轧制计划,请确认无误\n\n板坯序号 宽度 长度\n";
- var millFl = false;
- for(var i=2;i<=dataCnt+1;i++)
- {
- var chk = datagrid3.valueMatrix(i,datagrid3.colRef("CHK"));
-
- if(chk == "Y")
- {
- if(datagrid3.valueMatrix(i,datagrid3.colRef("MILL_FL")) == "Y"){
- millFl = true;
- msgStr = msgStr + datagrid3.valueMatrix(i,datagrid3.colRef("SLAB_NO"));
- msgStr = msgStr + " " + datagrid3.valueMatrix(i,datagrid3.colRef("SLAB_WTH"));
- msgStr = msgStr + " " + datagrid3.valueMatrix(i,datagrid3.colRef("SLAB_LEN"));
- msgStr = msgStr + "\n";
- }
- SELECTED_SLAB_COUNT1 = SELECTED_SLAB_COUNT1 + 1;
- }
- }
- /*if(millFl == true){
- var answer = window.alert(msgStr,"坯料确认", 1 | 32);
- if (answer == "2"){
- return;
- }
- }*/
-
- if(SELECTED_SLAB_COUNT1 == 0)
- {
- alert("@@@@ 请先选定操作记录! @@@@");
-
- return;
- }
-
- commSubmit("UIG020060-service","save","glueAction.do");
-
-
- // 选中行数重设为0
- SELECTED_SLAB_COUNT = 0; //20160222不重载的情况下会导致空保存卡死系统
-
- // 录入操作完成,恢复表格各种状态到原始状态
-
- var nodeset = datagrid3.nodeset;
- var nodeCnt2 = parseInt(model.getXPathValue("count(" + nodeset + ")"));
- datagrid3.rebuildStyle();
- for(var j = 2;j<=nodeCnt2+1;j++)
- {
- // 取消行选中状态
- datagrid3.valueMatrix(j, datagrid1.colRef("CHK"))="N";
- datagrid3.cellAttribute("editable", j,datagrid3.colRef("SLAB_NO")) = "false";
- datagrid3.cellAttribute("editable", j,datagrid3.colRef("SLAB_THK")) = "false";
- datagrid3.cellAttribute("editable", j,datagrid3.colRef("SLAB_WTH")) = "false";
- datagrid3.cellAttribute("editable", j,datagrid3.colRef("SLAB_LEN")) = "false";
- datagrid3.cellAttribute("editable", j,datagrid3.colRef("SLAB_TEMP")) = "false";
- // 操作完成恢复行状态为标志0
- datagrid3.rowStatus(j)= 0;
- }
- var messages = model.getValue("/root/resData/MESSAGES_VO/MESSAGES_Row");
- find();
- alert(messages);
-
-
- }
- }
-
-
-
- function copyGrid(gridID)
- {
- var tg = gridID.substr(8,1)
- gridID = document.all(gridID);
- var nodeset = gridID.nodeset;
- var nodeCnt2 = parseInt(model.getXPathValue("count(" + nodeset + ")"));
- var rowcnt = nodeCnt2 - 1;
- var slabno = model.getValue(gridID.nodeset + "[" + rowcnt + "]/SLAB_NO");
- var slabthk = model.getValue(gridID.nodeset + "[" + rowcnt + "]/SLAB_THK");
- var slabwth = model.getValue(gridID.nodeset + "[" + rowcnt + "]/SLAB_WTH");
- var slablen = model.getValue(gridID.nodeset + "[" + rowcnt + "]/SLAB_LEN");
- var slabWgt = model.getValue(gridID.nodeset + "[" + rowcnt + "]/SLAB_WGT");
- var nslab = Number(slabno)+10;
-
- // 新增板坯
- if(nslab < 100) nslab = "0" + nslab;
-
- // 根据gridID区分表是 datagrid1 datagrid2
-
- model.setValue("/root/gridData/SlabCutting0_VO/SlabCutting0_Row["+nodeCnt2+"]/SLAB_NO",nslab);
- model.setValue("/root/gridData/SlabCutting0_VO/SlabCutting0_Row["+nodeCnt2+"]/SLAB_THK",slabthk);
- model.setValue("/root/gridData/SlabCutting0_VO/SlabCutting0_Row["+nodeCnt2+"]/SLAB_WTH",slabwth);
- model.setValue("/root/gridData/SlabCutting0_VO/SlabCutting0_Row["+nodeCnt2+"]/SLAB_LEN",slablen);
- model.setValue("/root/gridData/SlabCutting0_VO/SlabCutting0_Row["+nodeCnt2+"]/SLAB_WGT",slabWgt);
- model.setValue("/root/gridData/SlabCutting0_VO/SlabCutting0_Row["+nodeCnt2+"]/HCR_CLF","C");
- model.setValue("/root/gridData/SlabCutting0_VO/SlabCutting0_Row["+nodeCnt2+"]/ORD_FL","2");
- model.setValue("/root/gridData/SlabCutting0_VO/SlabCutting0_Row["+nodeCnt2+"]/SURPLMATL_YN","S");
-
- model.refresh();
-
- }
- //通过选择组信息获得相应的作业人,这里是查询转炉的相关作业人
- function selOnClick()
- {
- model.removenode("/root/reqData");
- model.makeNode("/root/reqData");
-
- var WkGroup = model1.getValue("/root/formData/CUT_WKGROUP");
- model.setValue("/root/SearchEmp/WK_GROUP", WkGroup);
-
- model.duplicate("/root/reqData","/root/SearchEmp/WK_GROUP");
-
- commSubmit("UIG020060-service","onclick","glueAction.do");
-
- commAppendData("/root/wkResult/WkEmpResult/onclickResult_VO","/root/resData/onclickResult_VO");
- model.refresh();
- }
-
-
- function slabLenChg(){
- if(datagrid3.col == datagrid3.colRef("SLAB_LEN")||datagrid3.col == datagrid3.colRef("SLAB_WTH")){
- var thk = datagrid3.valueMatrix(datagrid3.row,datagrid3.colRef("SLAB_THK"));
- var wth = datagrid3.valueMatrix(datagrid3.row,datagrid3.colRef("SLAB_WTH"));
- var lenth = datagrid3.valueMatrix(datagrid3.row,datagrid3.colRef("SLAB_LEN"));
-
- datagrid3.valueMatrix(datagrid3.row,datagrid3.colRef("SLAB_WGT")) = Math.round(thk*wth*lenth*7.8/1000000);
- }
-
- }
-
- function rightClick(){
- var checkValue = model.getValue("/root/searchData/CHARGE_NO");
- if(checkValue == null || checkValue == "")return;
- var tstvalue = parseInt(checkValue.substr(4,5),10);
- tstvalue = (tstvalue + 1) + "";
- var strLen = tstvalue.length;
- checkValue = checkValue.substr(0,4);
- for(var i = 0 ; i < (5 - strLen) ; i++){
- checkValue = checkValue + "0";
- }
- checkValue = checkValue + tstvalue + "A";
- model.setValue("/root/searchData/CHARGE_NO",checkValue);
- find();
- }
- function slabRecut(){
- var answer = window.alert("确定清除切割记录?\n","确认", 1 | 32);
- if (answer == "2"){
- return;
- }
- commSendReq("/root/searchData");
- model.duplicate("/root/reqData","/root/formData/CUT_EMP_ID");
- commSubmit("UIG020060-service","recut","glueAction.do");
- var messages = model.getValue("/root/resData/MESSAGES_VO/MESSAGES_Row");
- find();
- alert(messages);
- }
- function leftClick(){
- var checkValue = model.getValue("/root/searchData/CHARGE_NO");
- if(checkValue == null || checkValue == "")return;
- var tstvalue = parseInt(checkValue.substr(4,5),10);
- tstvalue = (tstvalue - 1) + "";
- var strLen = tstvalue.length;
- checkValue = checkValue.substr(0,4);
- for(var i = 0 ; i < (5 - strLen) ; i++){
- checkValue = checkValue + "0";
- }
- checkValue = checkValue + tstvalue + "A";
- model.setValue("/root/searchData/CHARGE_NO",checkValue);
- find();
- }
-
- function moveSlab(){
- model.setValue("/root/tempData",model.getValue("/root/searchData/CHARGE_NO"));
-
- window.load("UIG020061.xrw","modal","", "left:228; top:120; width:700; height:450; sysmenu:visible; min:visible; max:true; resize:true; caption:visible;");
-
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,980;" style="border-color:#000000; ">
- <group id="group1" ref="/root/gridData/CHARGE_INFO_VO/CHARGE_INFO_Row" style="left:0px; top:35px; width:980px; height:55px; ">
- <line id="line3" style="x1:0px; y1:0px; x2:980px; y2:0px; "/>
- <line id="line4" style="x1:0px; y1:55px; x2:980px; y2:55px; "/>
- <shape id="rectangle1" appearance="rectangle" style="left:0px; top:1px; width:980px; height:50px; "/>
- <caption id="caption4" class="cell2" style="left:0px; top:3px; width:94px; height:23px; ">预定炉次号</caption>
- <caption id="caption5" class="cell2" style="left:94px; top:3px; width:94px; height:23px; ">钢种</caption>
- <caption id="caption6" class="cell2" style="left:188px; top:3px; width:99px; height:23px; ">连浇炉</caption>
- <caption id="caption7" class="cell2" style="left:584px; top:3px; width:99px; height:23px; ">连铸机编号</caption>
- <caption id="caption8" class="cell2" style="left:683px; top:3px; width:99px; height:23px; ">班次</caption>
- <caption id="caption9" class="cell2" style="left:782px; top:3px; width:99px; height:23px; ">组</caption>
- <caption id="caption10" class="cell2" style="left:881px; top:3px; width:99px; height:23px; ">作业人</caption>
- <caption id="caption11" class="cell2" style="left:287px; top:3px; width:99px; height:23px; ">钢包包号</caption>
- <caption id="caption12" class="cell2" style="left:386px; top:3px; width:99px; height:23px; ">钢包到达时刻</caption>
- <caption id="caption13" class="cell2" style="left:485px; top:3px; width:99px; height:23px; ">钢包到达重量</caption>
- <caption id="caption14" class="cell" style="left:0px; top:26px; width:94px; height:23px; "/>
- <input id="input2" ref="PLAN_CHARGE_NO" editable="false" style="left:2px; top:29px; width:90px; height:17px; background-color:#c0c0c0; "/>
- <caption id="caption15" class="cell" style="left:94px; top:26px; width:94px; height:23px; "/>
- <input id="input3" ref="STL_GRD" editable="false" style="left:96px; top:29px; width:90px; height:17px; background-color:#c0c0c0; "/>
- <caption id="caption16" class="cell" style="left:188px; top:26px; width:99px; height:23px; "/>
- <input id="input4" ref="CAST_SEQ" editable="false" style="left:190px; top:29px; width:95px; height:17px; background-color:#c0c0c0; "/>
- <caption id="caption22" class="cell" style="left:287px; top:26px; width:99px; height:23px; "/>
- <input id="input10" ref="LD_NO" editable="false" style="left:289px; top:29px; width:95px; height:17px; background-color:#c0c0c0; "/>
- <caption id="caption21" class="cell" style="left:386px; top:26px; width:99px; height:23px; "/>
- <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; "/>
- <caption id="caption23" class="cell" style="left:485px; top:26px; width:99px; height:23px; "/>
- <input id="input11" ref="RCPT_TAP_QTY" editable="false" style="left:487px; top:29px; width:95px; height:17px; background-color:#c0c0c0; "/>
- <caption id="caption17" class="cell" style="left:584px; top:26px; width:99px; height:23px; "/>
- <select1 id="combo5" ref="CC_DEVNO" appearance="minimal" style="left:587px; top:27px; width:90px; height:20px; ">
- <choices>
- <itemset nodeset="/root/codeData/COMM_CODE_RESULT_VO/COMM_CODE_RESULT_Row[LG_CD = 'G02003' and SM_EFNM = 'J']">
- <label ref="SM_CFNM"/>
- <value ref="SM_CD"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- document.writeIniFile("session1" , "UIG0200603" , combo5.value.Trim() , "c:\\WINDOWS\\xgmes3.ini");
- ]]>
- </script>
- </select1>
- <caption id="caption18" class="cell" style="left:683px; top:26px; width:99px; height:23px; "/>
- <select1 id="combo2" ref="CUT_WKSHIFT" appearance="minimal" style="left:685px; top:29px; width:95px; height:17px; ">
- <choices>
- <itemset nodeset="/root/codeData/COMM_CODE_RESULT_VO/COMM_CODE_RESULT_Row[LG_CD = 'Z05001']">
- <label ref="SM_CFNM"/>
- <value ref="SM_CD"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- document.writeIniFile("session1" , "UIG0200601" , combo2.value.Trim() , "c:\\WINDOWS\\xgmes3.ini");
- ]]>
- </script>
- </select1>
- <caption id="caption19" class="cell" style="left:782px; top:26px; width:99px; height:23px; "/>
- <select1 id="combo3" ref="CUT_WKGROUP" appearance="minimal" style="left:784px; top:29px; width:95px; height:17px; ">
- <choices>
- <itemset nodeset="/root/codeData/COMM_CODE_RESULT_VO/COMM_CODE_RESULT_Row[LG_CD = 'Z05002']">
- <label ref="SM_CFNM"/>
- <value ref="SM_CD"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- document.writeIniFile("session1" , "UIG0200602" , combo3.value.Trim() , "c:\\WINDOWS\\xgmes3.ini");
- ]]>
- </script>
- </select1>
- <caption id="caption20" class="cell" style="left:881px; top:26px; width:99px; height:23px; "/>
- <input id="input1" ref="/root/formData/CUT_EMP_ID" editable="false" style="left:883px; top:29px; width:95px; height:17px; background-color:#c0c0c0; "/>
- </group>
- <caption id="caption2" class="cell" style="left:0px; top:5px; width:100px; height:20px; border-color:#000000; ">炉次号</caption>
- <select1 id="combo1" ref="/root/searchData/CHARGE_NO" appearance="minimal" editmode="input" style="left:102px; top:5px; width:110px; height:20px; border-color:#000000; ">
- <choices>
- <itemset nodeset="/root/initData/INIT_CHARGE_NO/InitDataResult_VO/InitDataResult_Row">
- <label ref="LABEL"/>
- <value ref="VALUE"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //alert("sdf");
- find();
- ]]>
- </script>
- </select1>
- <button id="button1" class="butt_3" style="left:874px; top:271px; width:52px; height:19px; ">
- <caption>行增加</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- datagrid3.addRow();
- copyGrid("datagrid3");
- // datagrid3.rebuild();
-
- ]]>
- </script>
- </button>
- <line id="line1" style="x1:0px; y1:0px; x2:980px; y2:0px; "/>
- <line id="line2" style="x1:0px; y1:30px; x2:980px; y2:30px; "/>
- <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; ">
- <col ref="CHK" type="checkbox"/>
- <col editable="false" ref="SLAB_NO"/>
- <col ref="SUB_SLAB_NO" visibility="hidden"/>
- <col ref="PLAN_SLAB_NO"/>
- <col/>
- <col/>
- <col editable="false" ref="SLAB_THK"/>
- <col editable="false" ref="SLAB_WTH" type="input"/>
- <col editable="false" ref="SLAB_LEN" type="input"/>
- <col ref="SLAB_WGT"/>
- <col disabled="true" ref="HCR_CLF" type="combo">
- <choices>
- <item>
- <label>热送</label>
- <value>H</value>
- </item>
- <item>
- <label>下线</label>
- <value>C</value>
- </item>
- </choices>
- </col>
- <col disabled="true" ref="SLAB_RT" type="combo">
- <choices>
- <item>
- <label>热轧</label>
- <value>H</value>
- </item>
- <item>
- <label>中板</label>
- <value>Z</value>
- </item>
- <item>
- <label>厚板</label>
- <value>P</value>
- </item>
- </choices>
- </col>
- <col disabled="true" ref="ORD_FL" type="combo">
- <choices>
- <item>
- <label>正常</label>
- <value>1</value>
- </item>
- <item>
- <label>余材</label>
- <value>2</value>
- </item>
- </choices>
- </col>
- <col disabled="true" ref="LAST_SLAB_YN" type="combo">
- <choices>
- <item>
- <label/>
- <value/>
- </item>
- <item>
- <label>尾坯</label>
- <value>E</value>
- </item>
- </choices>
- </col>
- <col disabled="true" ref="TW_SLAB_YN" type="combo">
- <choices>
- <item>
- <label>头坯</label>
- <value>1</value>
- </item>
- <item>
- <label>尾坯</label>
- <value>2</value>
- </item>
- </choices>
- </col>
- <col disabled="true" ref="SURPLMATL_YN" type="combo">
- <choices>
- <item>
- <label/>
- <value/>
- </item>
- <item>
- <label>非计划</label>
- <value>S</value>
- </item>
- </choices>
- </col>
- <col disabled="true" ref="DIFF_STL_GRD_STA_END_YN" type="combo">
- <choices>
- <item>
- <label>过渡</label>
- <value>2</value>
- </item>
- </choices>
- </col>
- </datagrid>
- <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; ">
- <col ref="CHK" type="checkbox"/>
- <col editable="false" ref="SLAB_NO"/>
- <col ref="SUB_SLAB_NO" visibility="hidden"/>
- <col ref="PLAN_SLAB_NO"/>
- <col/>
- <col/>
- <col editable="false" ref="SLAB_THK"/>
- <col editable="false" ref="SLAB_WTH" type="input"/>
- <col editable="false" ref="SLAB_LEN" type="input"/>
- <col ref="SLAB_WGT"/>
- <col disabled="true" ref="HCR_CLF" type="combo">
- <choices>
- <item>
- <label>热送</label>
- <value>H</value>
- </item>
- <item>
- <label>下线</label>
- <value>C</value>
- </item>
- </choices>
- </col>
- <col disabled="true" ref="SLAB_RT" type="combo">
- <choices>
- <item>
- <label>热轧</label>
- <value>H</value>
- </item>
- <item>
- <label>中板</label>
- <value>Z</value>
- </item>
- <item>
- <label>厚板</label>
- <value>P</value>
- </item>
- </choices>
- </col>
- <col disabled="true" ref="ORD_FL" type="combo">
- <choices>
- <item>
- <label>正常</label>
- <value>1</value>
- </item>
- <item>
- <label>余材</label>
- <value>2</value>
- </item>
- </choices>
- </col>
- <col disabled="true" ref="LAST_SLAB_YN" type="combo">
- <choices>
- <item>
- <label/>
- <value/>
- </item>
- <item>
- <label>尾坯</label>
- <value>E</value>
- </item>
- </choices>
- </col>
- <col ref="TW_SLAB_YN" type="combo">
- <choices>
- <item>
- <label>头坯</label>
- <value>1</value>
- </item>
- <item>
- <label>尾坯</label>
- <value>2</value>
- </item>
- </choices>
- </col>
- <col disabled="true" ref="SURPLMATL_YN" type="combo">
- <choices>
- <item>
- <label/>
- <value/>
- </item>
- <item>
- <label>非计划</label>
- <value>S</value>
- </item>
- </choices>
- </col>
- <col disabled="true" ref="DIFF_STL_GRD_STA_END_YN" type="combo">
- <choices>
- <item>
- <label>过渡</label>
- <value>2</value>
- </item>
- </choices>
- </col>
- </datagrid>
- <button id="button4" class="butt_3" style="left:928px; top:271px; width:58px; height:19px; ">
- <caption>清空流号</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- slabRecut();
-
- ]]>
- </script>
- </button>
- <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; ">
- <col explorerbar="sort" checkvalue="Y,N" ref="CHK" type="checkbox"/>
- <col editable="false" ref="SLAB_NO"/>
- <col ref="SUB_SLAB_NO" visibility="hidden"/>
- <col ref="PLAN_SLAB_NO"/>
- <col editable="false" ref="INS_ORD_NO" type="input"/>
- <col ref="INS_SLAB_SIZE"/>
- <col ref="SLAB_THK" type="input" format="#,###" maxlength="6" style="background-color:#ffff99; "/>
- <col editable="false" ref="SLAB_WTH" type="input" format="#,###" maxlength="6" style="background-color:#ffff99; "/>
- <col editable="false" ref="SLAB_LEN" type="input" format="#,###" maxlength="9" style="background-color:#ffff99; "/>
- <col editable="false" ref="SLAB_WGT" type="input" format="#,###" maxlength="9" style="background-color:#ffff99; "/>
- <col ref="LAST_SLAB_YN" type="combo" style="background-color:#ffff99; ">
- <choices>
- <item>
- <label/>
- <value/>
- </item>
- <item>
- <label>结束</label>
- <value>E</value>
- </item>
- </choices>
- </col>
- <col ref="TW_SLAB_YN" type="combo" style="background-color:#ffff99; ">
- <choices>
- <item>
- <label/>
- <value/>
- </item>
- <item>
- <label>头坯</label>
- <value>1</value>
- </item>
- <item>
- <label>尾坯</label>
- <value>2</value>
- </item>
- </choices>
- </col>
- <col checkvalue="Y,N" ref="STRAND_NO1" type="checkbox" style="background-color:#ffff99; "/>
- <col checkvalue="Y,N" ref="STRAND_NO2" type="checkbox" style="background-color:#ffff99; "/>
- <col checkvalue="Y,N" ref="DIFF_STL_GRD_STA_END_YN" type="checkbox" style="background-color:#ffff99; "/>
- <col disabled="true" ref="SLAB_INGR_DEC_GRD" type="combo">
- <choices>
- <item>
- <label>合格</label>
- <value>1</value>
- </item>
- <item>
- <label>不合格</label>
- <value>2</value>
- </item>
- <item>
- <label>化废</label>
- <value>3</value>
- </item>
- </choices>
- </col>
- <col disabled="true" ref="SLAB_SIZE_DEC_GRD" type="combo">
- <choices>
- <item>
- <label>合格</label>
- <value>1</value>
- </item>
- <item>
- <label>不合格</label>
- <value>2</value>
- </item>
- </choices>
- </col>
- <col disabled="true" ref="HCR_CLF" type="combo">
- <choices>
- <item>
- <label>热送</label>
- <value>H</value>
- </item>
- <item>
- <label>下线</label>
- <value>C</value>
- </item>
- </choices>
- </col>
- <col disabled="true" ref="SLAB_RT" type="combo">
- <choices>
- <item>
- <label>中板</label>
- <value>Z</value>
- </item>
- <item>
- <label>热轧</label>
- <value>H</value>
- </item>
- <item>
- <label>厚板</label>
- <value>P</value>
- </item>
- </choices>
- </col>
- <col disabled="true" ref="ORD_FL" type="combo">
- <choices>
- <item>
- <label>正常材</label>
- <value>1</value>
- </item>
- <item>
- <label>余材</label>
- <value>2</value>
- </item>
- </choices>
- </col>
- <col disabled="true" ref="MILL_FL" type="combo">
- <choices>
- <item>
- <label>已编制</label>
- <value>Y</value>
- </item>
- </choices>
- </col>
- <col disabled="true" ref="SURPLMATL_YN" type="combo">
- <choices>
- <item>
- <label/>
- <value/>
- </item>
- <item>
- <label>非计划</label>
- <value>S</value>
- </item>
- </choices>
- </col>
- <col ref="SLAB_CUT_DTIME"/>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- /*
- * 当grid中行CHK状态值变化时,相应改变editable的值
- */
- if(datagrid3.colRef("CHK") == datagrid3.col){
- datagrid3.cellAttribute("editable", datagrid3.row,datagrid3.colRef("SLAB_NO")) = "true";
- datagrid3.cellAttribute("editable", datagrid3.row,datagrid3.colRef("SLAB_THK")) = "true";
- datagrid3.cellAttribute("editable", datagrid3.row,datagrid3.colRef("SLAB_THK")) = "true";
- datagrid3.cellAttribute("editable", datagrid3.row,datagrid3.colRef("SLAB_WTH")) = "true";
- datagrid3.cellAttribute("editable", datagrid3.row,datagrid3.colRef("SLAB_LEN")) = "true";
- datagrid3.cellAttribute("editable", datagrid3.row,datagrid3.colRef("SLAB_TEMP")) = "true";
- datagrid3.cellAttribute("editable", datagrid3.row,datagrid3.colRef("SLAB_WGT")) = "true";
- datagrid3.rowStatus(datagrid3.row) = 1;
- }else if(datagrid3.colRef("STRAND_NO1") == datagrid3.col){
- datagrid3.valueMatrix(datagrid3.row,datagrid3.colRef("STRAND_NO2")) = "N";
- }else if(datagrid3.colRef("STRAND_NO2") == datagrid3.col){
- datagrid3.valueMatrix(datagrid3.row,datagrid3.colRef("STRAND_NO1")) = "N";
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-deselect">
- <![CDATA[
- /*
- * 当grid中行CHK状态值变化时,相应改变editable的值
- */
- if(datagrid3.colRef("DIFF_STL_GRD_STA_END_YN") == datagrid3.col){ return;}
- datagrid3.rebuildStyle(datagrid3.row,0,datagrid3.row,datagrid3.cols-1);
- datagrid3.cellAttribute("editable", datagrid3.row,datagrid3.colRef("SLAB_NO")) = "false";
- datagrid3.cellAttribute("editable", datagrid3.row,datagrid3.colRef("SLAB_THK")) = "false";
- datagrid3.cellAttribute("editable", datagrid3.row,datagrid3.colRef("SLAB_WTH")) = "false";
- datagrid3.cellAttribute("editable", datagrid3.row,datagrid3.colRef("SLAB_LEN")) = "false";
- datagrid3.cellAttribute("editable", datagrid3.row,datagrid3.colRef("SLAB_TEMP")) = "false";
- datagrid3.rowStatus(datagrid3.row) = 0;
-
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- slabLenChg();
- ]]>
- </script>
- </datagrid>
- <button id="button2" style="left:240px; top:8px; width:20px; height:20px; background-image:../../images/cal_next_m.gif; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rightClick();
- ]]>
- </script>
- </button>
- <button id="button3" style="left:215px; top:8px; width:20px; height:20px; background-image:../../images/cal_pre_m.gif; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- leftClick();
- ]]>
- </script>
- </button>
- <button id="button5" style="left:892px; top:5px; width:85px; height:20px; text-align:right; background-image:../../images/save2.gif; ">
- <caption>结束炉次</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- compulsoryEndCharge();
- ]]>
- </script>
- </button>
- <button id="button6" visibility="hidden" style="left:610px; top:5px; width:100px; height:20px; ">
- <caption>find</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- find();
- ]]>
- </script>
- </button>
- <button id="button7" visibility="hidden" style="left:715px; top:5px; width:100px; height:20px; ">
- <caption>save</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- save();
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|