| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505 |
- <?xml version="1.0" encoding="UTF-8"?>
- <?xml-stylesheet href="../../css/body.css" type="text/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[炼钢作业 >> 板坯库管理 >> 板坯尺寸修改实绩登录与查询(UIG040070)]]>
- </xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <reqData/>
- <resData/>
- <searchData>
- <SCRAP_WGT/>
- <MATRL_END_CAUSE_CD/>
- <SLAB_NO/>
- </searchData>
- <comboData/>
- <gridData>
- <grid3/>
- <cutDirectGrid/>
- <cutResultGrid/>
- <grid1/>
- <grid2/>
- </gridData>
- <initData>
- <LG_CD>G03003,Z05001,Z05002</LG_CD>
- </initData>
- <codeData>
- </codeData>
- <formData>
- <REG_ID/>
- <MOD_CD/>
- <SLAB_NO/>
- <SCRAP_WGT/>
- <MATRL_END_CD/>
- <REG_SHIP/>
- <REG_GROUP/>
- <CUT_CNT/>
- </formData>
- </root>
- </instance>
- </model>
- <script type="javascript">
- <![CDATA[
- // 板坯分割修改原因
- var MODIFY_CODE = "";
- /*
- * 初始化页面
- */
-
- function Init(node) {
- InitParams(node);
- initPage();
-
- //shiftSearch();
-
- }
-
- 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 initPage()
- {
- // commSubmit("UIG040070-service","success","glueAction.do");
- // commAppendData("/root/gridData/grid3/INIT_RESULT_VO","/root/resData/INIT_RESULT_VO");
- // datagrid5.refresh();
- //
- // datagrid1.cellAttribute("editable", 1,datagrid1.colRef("SLAB_LEN")) = "false";
- // datagrid1.cellAttribute("editable", 1,datagrid1.colRef("SIZE_DEC_FL")) = "false";
-
- commSendReq("/root/initData");
- commSubmit("UIGCOMMCODE-service","find","glueAction.do");
- model.copyNode("/root/codeData","/root/resData");
- model.refresh();
-
- model.setValue("/root/formData/REG_ID",model.getValue("/root/initData/rcvInfo/REG_ID"));
- }
-
- function find(){
- commSendReq("/root/searchData");
- commSubmit("UIG040070-service","find","glueAction.do");
- commAppendData("/root/gridData/grid3/SearchMILLYARD_Result_VO","/root/resData/SearchMILLYARD_Result_VO");
- model.refresh();
- }
- function select()
- {
-
- model.setValue("/root/searchData/SLAB_NO",datagrid5.valueMatrix(datagrid5.row,datagrid5.colRef("SLAB_NO")));
- commSendReq("/root/searchData");
-
- commSubmit("UIG040070-service","select","glueAction.do");
-
- // datagrid1.valueMatrix(1,datagrid1.colRef("MODIFY_CD")) = "";
-
- // 将分割指示信息在 分割指示对象表中显示
- commAppendData("/root/gridData/cutDirectGrid/CutDirectResult_VO","/root/resData/CutDirectResult_VO");
-
- // 将板坯实绩信息在分割实绩录入表的第一行显示,作为板坯的原始信息对照
- commAppendData("/root/gridData/cutResultGrid/CutResult_VO","/root/resData/CutResult_VO");
- datagrid3.refresh();
- //datagrid1.refresh();
- datagrid3.valueMatrix(1,datagrid3.colRef("CLF")) = " 修改前";
-
- }
-
- function save()
- {
- datagrid3.rowStatus(1) = 0;
- if(MODIFY_CODE == 2 || MODIFY_CODE == 3)
- {
- var loadLoc1 = datagrid3.valueMatrix(2,datagrid3.colRef("CUR_LOAD_LOC"));
- var loadLoc2 = datagrid3.valueMatrix(3,datagrid3.colRef("CUR_LOAD_LOC"));
- var len1 = loadLoc1.length;
- var len2 = loadLoc2.length;
- if((loadLoc1 == "" || loadLoc1 == null )
- ||(loadLoc2 == "" || loadLoc2 == null ))
- {
- alert("垛位不能为空");
- return;
- }
- if(loadLoc1.substr(0,1) == "L" && loadLoc2.substr(0,1) == "L"){
- if(len1 != 5 || len2 != 5){
- alert("垛位格式错误!");
- return;
- }
- }
- else if(loadLoc1.substr(0,1) == "Z" && loadLoc2.substr(0,1) == "Z"){
- if(len1 != 6 || len2 != 6){
- alert("垛位格式错误!");
- return;
- }
- }else{
- alert("垛位格式错误!");
- return;
- }
-
- // 修改分割实绩录入表格2,3行的行状态为UPDATE
- datagrid3.rowStatus(2) = 2;
- datagrid3.rowStatus(3) = 2;
- model1.removenode("/root/reqData");
- model1.makeNode("/root/reqData");
- commMultiUpdate(datagrid3,"/root/reqData","A",true,"rowStatus");
-
- model1.makeNode("/root/reqData/CutResult_Row[1]/MODIFY_CD");
- model1.makeNode("/root/reqData/CutResult_Row[2]/MODIFY_CD");
- model1.makeNode("/root/reqData/CutResult_Row[1]/SIZE_UPDT_BEF_THK");
- model1.makeNode("/root/reqData/CutResult_Row[2]/SIZE_UPDT_BEF_THK");
- model1.makeNode("/root/reqData/CutResult_Row[1]/SIZE_UPDT_BEF_WTH");
- model1.makeNode("/root/reqData/CutResult_Row[2]/SIZE_UPDT_BEF_WTH");
- model1.makeNode("/root/reqData/CutResult_Row[1]/SIZE_UPDT_BEF_LEN");
- model1.makeNode("/root/reqData/CutResult_Row[2]/SIZE_UPDT_BEF_LEN");
- model1.makeNode("/root/reqData/CutResult_Row[1]/SIZE_UPDT_BEF_WGT");
- model1.makeNode("/root/reqData/CutResult_Row[2]/SIZE_UPDT_BEF_WGT");
- model1.makeNode("/root/reqData/CutResult_Row[1]/SIZE_UPDT_WKSHIFT");
- model1.makeNode("/root/reqData/CutResult_Row[2]/SIZE_UPDT_WKSHIFT");
- model1.makeNode("/root/reqData/CutResult_Row[1]/SIZE_UPDT_WKGROUP");
- model1.makeNode("/root/reqData/CutResult_Row[2]/SIZE_UPDT_WKGROUP");
- model1.makeNode("/root/reqData/CutResult_Row[1]/SIZE_UPDT_EMP_NO");
- model1.makeNode("/root/reqData/CutResult_Row[2]/SIZE_UPDT_EMP_NO");
- model1.makeNode("/root/reqData/CutResult_Row[1]/UPDT_BEF_SLABNO");
- model1.makeNode("/root/reqData/CutResult_Row[2]/UPDT_BEF_SLABNO");
- model1.makeNode("/root/reqData/UPDT_BEF_SLAB_NO");
- model1.setValue("/root/reqData/UPDT_BEF_SLAB_NO",model1.getValue("/root/searchData/SLAB_NO"));
- model1.makeNode("/root/reqData/SUB_SLAB_NO");
- model1.setValue("/root/reqData/SUB_SLAB_NO",model1.getValue("/root/searchData/SLAB_NO").substr(0,12));
-
- model1.setValue("/root/reqData/CutResult_Row[1]/MODIFY_CD",datagrid1.valueMatrix(1,datagrid1.colRef("MODIFY_CD")));
- model1.setValue("/root/reqData/CutResult_Row[2]/MODIFY_CD",datagrid1.valueMatrix(1,datagrid1.colRef("MODIFY_CD")));
- model1.setValue("/root/reqData/CutResult_Row[1]/SIZE_UPDT_WKSHIFT",datagrid1.valueMatrix(1,datagrid1.colRef("WKSHIFT")));
- model1.setValue("/root/reqData/CutResult_Row[2]/SIZE_UPDT_WKSHIFT",datagrid1.valueMatrix(1,datagrid1.colRef("WKSHIFT")));
- model1.setValue("/root/reqData/CutResult_Row[1]/SIZE_UPDT_WKGROUP",datagrid1.valueMatrix(1,datagrid1.colRef("GROUP")));
- model1.setValue("/root/reqData/CutResult_Row[2]/SIZE_UPDT_WKGROUP",datagrid1.valueMatrix(1,datagrid1.colRef("GROUP")));
- model1.setValue("/root/reqData/CutResult_Row[1]/SIZE_UPDT_EMP_NO",datagrid1.valueMatrix(1,datagrid1.colRef("REG_ID")));
- model1.setValue("/root/reqData/CutResult_Row[2]/SIZE_UPDT_EMP_NO",datagrid1.valueMatrix(1,datagrid1.colRef("REG_ID")));
-
- model1.setValue("/root/reqData/CutResult_Row[1]/SIZE_UPDT_BEF_THK",datagrid3.valueMatrix(1,datagrid3.colRef("SLAB_THK")));
- model1.setValue("/root/reqData/CutResult_Row[2]/SIZE_UPDT_BEF_THK",datagrid3.valueMatrix(1,datagrid3.colRef("SLAB_THK")));
- model1.setValue("/root/reqData/CutResult_Row[1]/SIZE_UPDT_BEF_WTH",datagrid3.valueMatrix(1,datagrid3.colRef("SLAB_WTH")));
- model1.setValue("/root/reqData/CutResult_Row[2]/SIZE_UPDT_BEF_WTH",datagrid3.valueMatrix(1,datagrid3.colRef("SLAB_WTH")));
- model1.setValue("/root/reqData/CutResult_Row[1]/SIZE_UPDT_BEF_LEN",datagrid3.valueMatrix(1,datagrid3.colRef("SLAB_LEN")));
- model1.setValue("/root/reqData/CutResult_Row[2]/SIZE_UPDT_BEF_LEN",datagrid3.valueMatrix(1,datagrid3.colRef("SLAB_LEN")));
- model1.setValue("/root/reqData/CutResult_Row[1]/SIZE_UPDT_BEF_WGT",datagrid3.valueMatrix(1,datagrid3.colRef("SLAB_WGT")));
- model1.setValue("/root/reqData/CutResult_Row[2]/SIZE_UPDT_BEF_WGT",datagrid3.valueMatrix(1,datagrid3.colRef("SLAB_WGT")));
- model1.setValue("/root/reqData/CutResult_Row[1]/UPDT_BEF_SLABNO",model1.getValue("/root/searchData/SLAB_NO"));
- model1.setValue("/root/reqData/CutResult_Row[2]/UPDT_BEF_SLABNO",model1.getValue("/root/searchData/SLAB_NO"));
-
- commSubmit("UIG040070-service","save1","glueAction.do");
-
-
- }
- // 如果修改原因是全废钢
- else if(MODIFY_CODE == 4 )
- {
- // 设置板坯结束状态为废钢
- model1.setValue("/root/searchData/MATRL_END_CAUSE_CD",2);
- commSendReq("/root/searchData");
- model1.makeNode("/root/reqData/rowStatus");
- model1.setValue("/root/reqData/rowStatus","u");
- model1.makeNode("/root/reqData/SUB_SLAB_NO");
- model1.makeNode("/root/reqData/SCRAP_WGT");
- model1.setValue("/root/reqData/SUB_SLAB_NO",model1.getValue("/root/searchData/SLAB_NO").substr(0,12));
- model1.setValue("/root/reqData/SCRAP_WGT",model1.getValue("/root/searchData/SCRAP_WGT"));
-
-
- commSubmit("UIG040070-service","save2","glueAction.do");
- }
- // 如果修改原因是部分废钢,则还可以切出一块板坯来
- else if(MODIFY_CODE == 5)
- {
- // 修改分割实绩录入表格2行的行状态为UPDATE
- datagrid3.rowStatus(2) = 2;
- model1.removenode("/root/reqData");
- model1.makeNode("/root/reqData");
-
-
- commMultiUpdate(datagrid3,"/root/reqData","A",true,"rowStatus");
-
- model1.makeNode("/root/reqData/CutResult_Row[1]/SUB_SLAB_NO");
- model1.makeNode("/root/reqData/CutResult_Row[1]/SCRAP_WGT");
- // 用于模糊查询修改前,修改后的板坯信息
- model1.setValue("/root/reqData/CutResult_Row[1]/SUB_SLAB_NO",model1.getValue("/root/searchData/SLAB_NO").substr(0,12));
- model1.setValue("/root/reqData/CutResult_Row[1]/SCRAP_WGT",model1.getValue("/root/searchData/SCRAP_WGT"));
-
- model1.makeNode("/root/reqData/CutResult_Row[1]/MODIFY_CD");
- model1.makeNode("/root/reqData/CutResult_Row[1]/SIZE_UPDT_BEF_THK");
- model1.makeNode("/root/reqData/CutResult_Row[1]/SIZE_UPDT_BEF_WTH");
- model1.makeNode("/root/reqData/CutResult_Row[1]/SIZE_UPDT_BEF_LEN");
- model1.makeNode("/root/reqData/CutResult_Row[1]/SIZE_UPDT_BEF_WGT");
-
- model1.makeNode("/root/reqData/CutResult_Row[1]/WKSHIFT");
- model1.makeNode("/root/reqData/CutResult_Row[1]/GROUP");
- model1.makeNode("/root/reqData/CutResult_Row[1]/REG_ID");
-
- model1.setValue("/root/reqData/CutResult_Row[1]/WKSHIFT",datagrid1.valueMatrix(1,datagrid1.colRef("WKSHIFT")));
- model1.setValue("/root/reqData/CutResult_Row[1]/GROUP",datagrid1.valueMatrix(1,datagrid1.colRef("GROUP")));
- model1.setValue("/root/reqData/CutResult_Row[1]/REG_ID",datagrid1.valueMatrix(1,datagrid1.colRef("REG_ID")));
-
- model1.setValue("/root/reqData/CutResult_Row[1]/MODIFY_CD",datagrid1.valueMatrix(1,datagrid1.colRef("MODIFY_CD")));
- model1.setValue("/root/reqData/CutResult_Row[1]/SIZE_UPDT_BEF_THK",datagrid3.valueMatrix(1,datagrid3.colRef("SLAB_THK")));
- model1.setValue("/root/reqData/CutResult_Row[1]/SIZE_UPDT_BEF_WTH",datagrid3.valueMatrix(1,datagrid3.colRef("SLAB_WTH")));
- model1.setValue("/root/reqData/CutResult_Row[1]/SIZE_UPDT_BEF_LEN",datagrid3.valueMatrix(1,datagrid3.colRef("SLAB_LEN")));
- model1.setValue("/root/reqData/CutResult_Row[1]/SIZE_UPDT_BEF_WGT",datagrid3.valueMatrix(1,datagrid3.colRef("SLAB_WGT")));
-
-
- commSubmit("UIG040070-service","save4","glueAction.do");
- }
- else if(MODIFY_CODE == 1)
- {
- // 修改分割实绩录入表格2行的行状态为UPDATE
- datagrid3.rowStatus(2) = 2;
- model1.removenode("/root/reqData");
- model1.makeNode("/root/reqData");
- model1.makeNode("/root/reqData/SUB_SLAB_NO");
- model1.setValue("/root/reqData/SUB_SLAB_NO",model1.getValue("/root/searchData/SLAB_NO").substr(0,12));
- commMultiUpdate(datagrid3,"/root/reqData","A",true,"rowStatus");
-
- model1.makeNode("/root/reqData/CutResult_Row[1]/MODIFY_CD");
- model1.makeNode("/root/reqData/CutResult_Row[1]/SIZE_UPDT_BEF_THK");
- model1.makeNode("/root/reqData/CutResult_Row[1]/SIZE_UPDT_BEF_WTH");
- model1.makeNode("/root/reqData/CutResult_Row[1]/SIZE_UPDT_BEF_LEN");
- model1.makeNode("/root/reqData/CutResult_Row[1]/SIZE_UPDT_BEF_WGT");
-
- model1.makeNode("/root/reqData/CutResult_Row[1]/WKSHIFT");
- model1.makeNode("/root/reqData/CutResult_Row[1]/GROUP");
- model1.makeNode("/root/reqData/CutResult_Row[1]/REG_ID");
-
- model1.setValue("/root/reqData/CutResult_Row[1]/WKSHIFT",datagrid1.valueMatrix(1,datagrid1.colRef("WKSHIFT")));
- model1.setValue("/root/reqData/CutResult_Row[1]/GROUP",datagrid1.valueMatrix(1,datagrid1.colRef("GROUP")));
- model1.setValue("/root/reqData/CutResult_Row[1]/REG_ID",datagrid1.valueMatrix(1,datagrid1.colRef("REG_ID")));
-
- model1.setValue("/root/reqData/CutResult_Row[1]/MODIFY_CD",datagrid1.valueMatrix(1,datagrid1.colRef("MODIFY_CD")));
- model1.setValue("/root/reqData/CutResult_Row[1]/SIZE_UPDT_BEF_THK",datagrid3.valueMatrix(1,datagrid3.colRef("SLAB_THK")));
- model1.setValue("/root/reqData/CutResult_Row[1]/SIZE_UPDT_BEF_WTH",datagrid3.valueMatrix(1,datagrid3.colRef("SLAB_WTH")));
- model1.setValue("/root/reqData/CutResult_Row[1]/SIZE_UPDT_BEF_LEN",datagrid3.valueMatrix(1,datagrid3.colRef("SLAB_LEN")));
- model1.setValue("/root/reqData/CutResult_Row[1]/SIZE_UPDT_BEF_WGT",datagrid3.valueMatrix(1,datagrid3.colRef("SLAB_WGT")));
-
-
- commSubmit("UIG040070-service","save3","glueAction.do");
- }
- commAppendData("/root/gridData/grid2/CorrectedResult_VO","/root/resData/CorrectedResult_VO");
- datagrid4.refresh();
- alert(model.getValue("/root/resData/MESSAGES_VO/MESSAGES_Row"));
- }
- ]]>
- </script>
- <script type="javascript" src="../../js/boaCommon.js"/>
- </xhtml:head>
- <xhtml:body guideline="1,980;2,615;">
- <caption id="caption10" class="cell" style="left:0px; top:215px; width:100px; height:20px; font-weight:bold; border-color:#000000; ">分割指示对象</caption>
- <datagrid id="datagrid2" nodeset="/root/gridData/cutDirectGrid/CutDirectResult_VO/CutDirectResult_Row" disabled="true" allowuserresize="false" caption="板坯号^分割^厚度^宽度^长度" colsep="^" colwidth="99, 60, 60, 54, 76" defaultrows="3" mergecellsfixedrows="bycolrec" rowsep="|" selectionmode="free" style="left:0px; top:235px; width:355px; height:120px; border-color:#000000; ">
- <col ref="SLAB_NO"/>
- <col ref="SLAB_CUT_SEQ"/>
- <col editable="false" ref="SLAB_THK" type="input"/>
- <col editable="false" ref="SLAB_WTH" type="input"/>
- <col editable="false" ref="SLAB_LEN" type="input"/>
- </datagrid>
- <caption id="caption1" class="cell" style="left:360px; top:215px; width:100px; height:20px; font-weight:bold; border-color:#000000; ">分割实绩录入</caption>
- <datagrid id="datagrid3" nodeset="/root/gridData/cutResultGrid/CutResult_VO/CutResult_Row" caption="区分^板坯号^厚度^宽度^长度^重量^长度判定^垛位^废钢量^" colsep="^" colwidth="80, 97, 46, 50, 55, 60, 52, 90, 100, 5" defaultrows="4" fixedcols="1" mergecellsfixedrows="bycolrec" rowsep="|" selectionmode="free" style="left:360px; top:235px; width:620px; height:120px; border-color:#000000; ">
- <col ref="CLF"/>
- <col ref="SLAB_NO"/>
- <col ref="SLAB_THK" type="input" style="background-color:#ffff99; "/>
- <col ref="SLAB_WTH" type="input" style="background-color:#ffff99; "/>
- <col ref="SLAB_LEN" type="input" style="background-color:#ffff99; "/>
- <col ref="SLAB_WGT" type="input" style="background-color:#ffff99; "/>
- <col ref="SIZE_DEC_FL" type="combo" style="background-color:#ffff99; ">
- <choices>
- <item>
- <label>合格</label>
- <value>1</value>
- </item>
- <item>
- <label>不合格</label>
- <value>2</value>
- </item>
- </choices>
- </col>
- <col ref="CUR_LOAD_LOC" type="input" style="background-color:#ffff99; "/>
- <col/>
- <col ref="ORL_LOAD_LOC" visibility="hidden"/>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(datagrid3.col == datagrid3.colRef("SLAB_LEN"))
- {
- //板坯分割生成新的板坯后,根据新板坯的长宽厚计算出板坯重量
- var slabThk = datagrid3.valueMatrix(datagrid3.row,datagrid3.colRef("SLAB_THK"));
- var slabWth = datagrid3.valueMatrix(datagrid3.row,datagrid3.colRef("SLAB_WTH"));
- var slabLen = datagrid3.valueMatrix(datagrid3.row,datagrid3.colRef("SLAB_LEN"));
-
- var slabWgt = Math.round(parseInt(slabThk)*parseInt(slabWth)*parseInt(slabLen)*7.8/1000000);
- datagrid3.valueMatrix(datagrid3.row,datagrid3.colRef("SLAB_WGT")) = slabWgt;
-
- if(datagrid1.valueMatrix(1,datagrid1.colRef("MODIFY_CD")) == "05"){
-
- var scrapWgt = datagrid3.valueMatrix(1,datagrid3.colRef("SLAB_WGT")) - slabWgt;
-
- model.makeNode("/root/searchData/SCRAP_WGT");
- model.setValue("/root/searchData/SCRAP_WGT",scrapWgt);
- input2.value = scrapWgt;
- input2.refresh();
- }
- }
- ]]>
- </script>
- </datagrid>
- <caption id="caption2" class="cell" style="left:0px; top:362px; width:100px; height:20px; font-weight:bold; border-color:#000000; ">切割实绩</caption>
- <datagrid id="datagrid4" nodeset="/root/gridData/grid2/CorrectedResult_VO/CorrectedResult_Row" disabled="true" caption="板坯号^修改前^修改前^修改前^修改前^修改后^修改后^修改后^修改后^修改原因^产品余材区分^牌号^登录人^班次^组|板坯号^厚度^宽度^长度^重量^厚度^宽度^长度^重量^修改原因^产品余材区分^牌号^登录人^班次^组" colsep="^" colwidth="90, 60, 60, 60, 60, 60, 60, 60, 60, 75, 60, 60, 90, 60, 60" defaultrows="12" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:382px; width:980px; height:233px; border-color:#000000; ">
- <col editable="false" ref="SLAB_NO" type="input"/>
- <col editable="false" ref="SIZE_UPDT_BEF_THK" type="input"/>
- <col editable="false" ref="SIZE_UPDT_BEF_WTH" type="input"/>
- <col editable="false" ref="SIZE_UPDT_BEF_LEN" type="input"/>
- <col editable="false" ref="SIZE_UPDT_BEF_WGT" type="input"/>
- <col editable="false" ref="SIZE_UPDT_AFT_THK" type="input"/>
- <col editable="false" ref="SIZE_UPDT_AFT_WTH" type="input"/>
- <col editable="false" ref="SIZE_UPDT_AFT_LEN" type="input"/>
- <col editable="false" ref="SIZE_UPDT_AFT_WGT" type="input"/>
- <col ref="SIZE_UPDT_CAUSE_CD"/>
- <col ref="ORD_FL"/>
- <col editable="false" ref="STL_GRD" type="input"/>
- <col editable="false" ref="SIZE_UPDT_EMP_NO" type="input"/>
- <col ref="SIZE_UPDT_WKGROUP"/>
- <col ref="SIZE_UPDT_WKSHIFT"/>
- </datagrid>
- <caption id="caption3" class="cell" style="left:780px; top:215px; width:100px; height:20px; font-weight:bold; border-color:#000000; ">废钢量</caption>
- <input id="input2" ref="/root/searchData/SCRAP_WGT" format="999999-9999999" style="left:880px; top:215px; width:100px; height:20px; background-color:#ffff99; "/>
- <line id="line2" style="x1:0px; y1:210px; x2:980px; y2:210px; "/>
- <line id="line3" style="x1:1px; y1:0px; x2:980px; y2:0px; "/>
- <line id="line5" style="x1:101px; y1:375px; x2:980px; y2:375px; "/>
- <datagrid id="datagrid5" nodeset="/root/gridData/grid3/SearchMILLYARD_Result_VO/SearchMILLYARD_Result_Row" caption="选择^板坯号^牌号^精整区分^精整作业实绩代码^厚度^宽度^长度^板坯重量" colsep="^" colwidth="41, 106, 100, 100, 128, 100, 100, 100, 100" defaultrows="9" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:35px; width:980px; height:170px; ">
- <col ref="CHK" type="radio"/>
- <col editable="false" ref="SLAB_NO" type="input"/>
- <col editable="false" ref="STL_GRD" type="input"/>
- <col ref="CORRECT_YN"/>
- <col editable="false" ref="CORRECT_RSLT_CD" type="input"/>
- <col editable="false" ref="SLAB_THK" type="input"/>
- <col editable="false" ref="SLAB_WTH" type="input"/>
- <col editable="false" ref="SLAB_LEN" type="input"/>
- <col editable="false" ref="SLAB_WGT" type="input"/>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- select();
- ]]>
- </script>
- </datagrid>
- <input id="input3" ref="/root/searchData/SLAB_NO" style="left:85px; top:5px; width:100px; height:20px; background-color:#ffff99; "/>
- <caption id="caption4" class="cell" style="left:0px; top:5px; width:85px; height:20px; font-weight:bold; border-color:#000000; ">待二切板坯号</caption>
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == 13){
- find();
- }
- ]]>
- </script>
- <select1 id="combo1" ref="/root/formData/MOD_CD" appearance="minimal" style="left:560px; top:215px; width:90px; height:20px; ">
- <choices>
- <itemset nodeset="/root/codeData/COMM_CODE_RESULT_VO/COMM_CODE_RESULT_Row[LG_CD = 'G03003']">
- <label ref="SM_CFNM"/>
- <value ref="SM_CD"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- // 获得板坯分割修改原因
- MODIFY_CODE = combo1.value;
-
-
- for(var i = datagrid3.rows ; i > datagrid3.fixedRows + 1 ; i--) datagrid3.removeRow(true);
-
- // 如果修改原因是指示分割 或是 未指示分割
- if(MODIFY_CODE == 2 ||MODIFY_CODE == 3)
- {
- // 将分割实绩录入表第一行的数据复制到第2,3行,设置长度,长度判定为可编辑,以进行分割实绩的录入,修改
- // 重量根据板坯长*宽*厚*密度 得出
- model1.duplicate("/root/gridData/cutResultGrid/CutResult_VO","/root/resData/CutResult_VO/CutResult_Row");
- model1.duplicate("/root/gridData/cutResultGrid/CutResult_VO","/root/resData/CutResult_VO/CutResult_Row");
-
- datagrid3.refresh();
- datagrid2.refresh();
-
- datagrid3.valueMatrix(2,datagrid3.colRef("CLF")) = " 第一次修改 ";
- datagrid3.valueMatrix(3,datagrid3.colRef("CLF")) = " 第二次修改 ";
-
- //分割生成新的两块板坯,板坯号为原板坯的前12位 + 原板坯号预留13位0分别设置位1,2
- var oldSlabNo = datagrid3.valueMatrix(1,datagrid3.colRef("SLAB_NO"));
- datagrid3.valueMatrix(2,datagrid3.colRef("SLAB_NO")) = oldSlabNo.substr(0,12) + '1';
- datagrid3.valueMatrix(3,datagrid3.colRef("SLAB_NO")) = oldSlabNo.substr(0,12) + '2';
- datagrid3.valueMatrix(2,datagrid3.colRef("SIZE_DEC_FL")) = "1";
- datagrid3.valueMatrix(3,datagrid3.colRef("SIZE_DEC_FL")) = "1";
- datagrid3.valueMatrix(2,datagrid3.colRef("CUR_LOAD_LOC")) = "";
- datagrid3.valueMatrix(3,datagrid3.colRef("CUR_LOAD_LOC")) = "";
- }
- else if(MODIFY_CODE == 1)
- {
- // 将分割实绩录入表第一行的数据复制到第2,设置长度,长度判定为可编辑,以进行分割实绩的录入,修改
- // 重量根据板坯长*宽*厚*密度 得出
- model1.duplicate("/root/gridData/cutResultGrid/CutResult_VO","/root/resData/CutResult_VO/CutResult_Row");
- datagrid3.refresh();
- datagrid2.refresh();
-
- datagrid3.valueMatrix(2,datagrid3.colRef("CLF")) = " 尺寸修改 ";
- datagrid3.valueMatrix(2,datagrid3.colRef("SIZE_DEC_FL")) = "1";
- }
- else if(MODIFY_CODE == 5)
- {
- // 将分割实绩录入表第一行的数据复制到第2,设置长度,长度判定为可编辑,以进行分割实绩的录入,修改
- // 重量根据板坯长*宽*厚*密度 得出
- model1.duplicate("/root/gridData/cutResultGrid/CutResult_VO","/root/resData/CutResult_VO/CutResult_Row");
- datagrid3.refresh();
- datagrid2.refresh();
-
- datagrid3.valueMatrix(1,datagrid3.colRef("CLF")) = " 修改前 ";
- datagrid3.valueMatrix(2,datagrid3.colRef("CLF")) = " 部分废钢 ";
- datagrid3.valueMatrix(2,datagrid3.colRef("SIZE_DEC_FL")) = "1";
- }
- else if(MODIFY_CODE == 4)
- {
- model.setValue("/root/searchData/SCRAP_WGT",datagrid3.valueMatrix(1,datagrid3.colRef("SLAB_WGT")));
- input2.refresh();
-
- }
- ]]>
- </script>
- </select1>
- <caption id="caption5" class="cell" style="left:475px; top:215px; width:85px; height:20px; font-weight:bold; border-color:#000000; ">修改原因</caption>
- <select1 id="combo2" ref="/root/formData/REG_SHIP" appearance="minimal" style="left:705px; top:5px; width:55px; height:20px; ">
- <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>
- </select1>
- <caption id="caption6" class="cell" style="left:660px; top:5px; width:45px; height:20px; font-weight:bold; border-color:#000000; ">班次</caption>
- <select1 id="combo3" ref="/root/formData/REG_GROUP" appearance="minimal" style="left:810px; top:5px; width:55px; height:20px; ">
- <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>
- </select1>
- <caption id="caption7" class="cell" style="left:765px; top:5px; width:45px; height:20px; font-weight:bold; border-color:#000000; ">班组</caption>
- <caption id="caption8" class="cell" style="left:870px; top:5px; width:50px; height:20px; font-weight:bold; border-color:#000000; ">操作人</caption>
- <input id="input1" ref="/root/formData/REG_ID" disabled="true" style="left:920px; top:5px; width:60px; height:20px; "/>
- <input id="input4" ref="/root/formData/CUT_CNT" disabled="true" format="999999-9999999" style="left:650px; top:215px; width:40px; height:20px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(combo1.value != "02") return;
-
-
- ]]>
- </script>
- </input>
- </xhtml:body>
- </xhtml:html>
|