| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268 |
- <?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[炼钢作业 >> 板坯库管理 >> 热轧计划板坯替换]]>
- </xhtml:title>
- <model id="model1" autocdata="false">
- <instance id="instance1">
- <root xmlns="">
- <initData>
- <searchInfo>
- <LG_CD/>
- </searchInfo>
- </initData>
- <codeData>
- <EmpListResult_VO/>
- </codeData>
- <formData>
- <searchInfo>
- <ROLL_MANA_NO/>
- </searchInfo>
- <searchForm>
- <SLABTHK/>
- <SLABWTH/>
- <SLABLEN/>
- <STLGRD/>
- <ORDNO/>
- <ORDSEQ/>
- <SLABNO/>
- </searchForm>
- <updateForm>
- <slabNo1/>
- <slabNo2/>
- <REG_ID/>
- </updateForm>
- </formData>
- <gridData>
- </gridData>
- <gridData2>
- <ListResult_1_VO/>
- </gridData2>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- //if (window.parent == null) Init();
- // pageInit();
- ]]>
- </script>
- </model>
- <script type="javascript" src="../../js/boaCommon.js"/>
- <script type="javascript" src="../../js/dCommon.js"/>
- <script type="javascript" src="../../js/boaMsg.js"/>
- <script type="javascript" src="../../js/mesCommon.js">
- <![CDATA[
- submitID = "UID080010-service";
- function Init()
- {
- }
-
- function X(node) {
- InitParams(node);
- exec("/root/initData/searchInfo", "", "", "/root/codeData/ListResult_0_VO",
- "/root/codeData/ListResult_1_VO", "/root/codeData/ListResult_2_VO");
- pageInitX();
- model.duplicate("/root/formData", "/root/initData/rcvInfo/REG_ID");
- }
- function pageInitX()
- {
- commSubmit(submitID,"findRollManaNo","glueAction.do");
- model.copyNode("/root/codeData/EmpListResult_VO","/root/resData/EmpListResult_VO");
- model.refresh();
- model.removenode("/root/resData/EmpListResult_VO");
- rollnumber.select(0);
- //model.removenode("/root/reqData");
- model.refresh();
- }
- /*function pageInit() {
- model.removenode("/root/reqData");
- model.removenode("/root/resData");
- //model.setValue("/root/ORD_REM_WGT_SUM","");
- model.refresh();
- var datagrid = datagrid1;
- datagrid.isReadOnly(0, 0, datagrid.rows-1, datagrid.cols-1) = true;
- datagrid.subtotal("clear", -1, 0);
-
- }*/
- function find() {
- exec("/root/formData/searchInfo", "", "find", "/root/gridData/ListResult_0_VO");
- model.setValue("/root/formData/updateForm/slabNo1","");
- model.setValue("/root/formData/updateForm/slabNo2","");
- //pageInit();
- model.removenode("/root/gridData2/ListResult_1_VO");
- model.removenode("/root/reqData");
- //model.removenode("/root/resData");
- model.refresh();
- }
- function save() {}
- function create() {}
- function remove() {}
- function excelExport() {
- return datagrid1;
- }
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body overflow="hidden" pagewidth="980" pageheight="620" style="font-family:宋体; ">
- <datagrid id="datagrid1" nodeset="/root/gridData/ListResult_0_VO/ListResult_0_Row" backcoloralternate="#F7F9F9" caption="选择^轧辊单元^轧辊内顺序^板坯号^生产流水号^板坯^板坯^板坯^板坯^厂内牌号^合同号^订单号|选择^轧辊单元^轧辊内顺序^板坯号^生产流水号^厚度^宽度^长度^重量^厂内牌号^合同号^订单号" colsep="^" colwidth="32, 48, 49, 70, 74, 60, 57, 58, 62, 85, 107, 81" extendlastcol="false" frozencols="1" mergecellsfixedrows="bycolrec" rowheader="select" rowsep="|" subtotalposition="below" style="left:0px; top:85px; width:485px; height:535px; border-style:solid; border-right-style:sunken; ">
- <col ref="CHK" type="radio" style="text-align:left; "/>
- <col ref="ROLL_MANA_NO" style="text-align:center; "/>
- <col ref="ROLL_SLAB_SEQ" style="text-align:center; "/>
- <col ref="SLAB_NO" style="text-align:left; "/>
- <col ref="COIL_NO" style="text-align:left; "/>
- <col ref="SLAB_THK" format="#,###"/>
- <col ref="SLAB_WTH" format="#,###"/>
- <col ref="SLAB_LEN" format="#,###"/>
- <col ref="SLAB_WGT" format="#,###"/>
- <col ref="STL_GRD"/>
- <col ref="ORD_NO"/>
- <col ref="ORD_SEQ"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(datagrid1.row <= 1) return;
- if (!datagrid1.isCell(event.target)) return;
- //alert(datagrid1.col);
- //alert(datagrid1.valueMatrix(datagrid1.row,2));
- if(datagrid1.col == 1)
- {
- model.removenode("/root/reqData");
- model.makeNode("/root/reqData");
-
- var slabNo = datagrid1.valueMatrix(datagrid1.row,4)
- model.setValue("/root/formData/updateForm/slabNo1",slabNo);
- model.setValue("/root/formData/updateForm/slabNo2","");
-
- var slabThk = datagrid1.valueMatrix(datagrid1.row,6);
- var slabWth = datagrid1.valueMatrix(datagrid1.row,7);
- var slabLen = datagrid1.valueMatrix(datagrid1.row,8);
- var stlGrd = datagrid1.valueMatrix(datagrid1.row,10);
- var ordNo = datagrid1.valueMatrix(datagrid1.row,11);
- var ordSeq = datagrid1.valueMatrix(datagrid1.row,12);
- model.setValue("/root/formData/searchForm/SLABTHK",slabThk);
- model.setValue("/root/formData/searchForm/SLABWTH",slabWth);
- model.setValue("/root/formData/searchForm/SLABLEN",slabLen);
- model.setValue("/root/formData/searchForm/STLGRD",stlGrd);
- model.setValue("/root/formData/searchForm/ORDNO",ordNo);
- model.setValue("/root/formData/searchForm/ORDSEQ",ordSeq);
- model.setValue("/root/formData/searchForm/SLABNO",slabNo);
- commSendReq("/root/formData/searchForm");
- commSubmit(submitID,"findReplaceSlab","glueAction.do")
- //exec("/root/formData/searchForm", "", "findReplaceSlab", "/root/gridData/ListResult_1_VO");
- //pageInit();
- model.makeNode("/root/gridData2/ListResult_1_VO");
- model.copyNode("/root/gridData2/ListResult_1_VO","/root/resData/ListResult_1_VO");
- model.removenode("/root/reqData");
- //model.removenode("/root/resData");
- //model.removenode("/root/resData/ListResult_1_VO");
- //model.setValue("/root/formData/searchForm/SPECSTLGRD",V_WTH_MAXI);
- model.refresh();
- }
- ]]>
- </script>
- </datagrid>
- <caption id="caption1" class="cell" style="left:0px; top:5px; width:60px; height:20px; text-align:center; border-style:solid; ">轧辊单元</caption>
- <select1 id="rollnumber" ref="/root/formData/searchInfo/ROLL_MANA_NO" appearance="minimal" editmode="inputsearch" style="left:61px; top:5px; width:90px; height:20px; ">
- <choices>
- <itemset nodeset="/root/codeData/EmpListResult_VO/EmpListResult_Row">
- <label ref="ROLL_MANA_NO_2"/>
- <value ref="ROLL_MANA_NO"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //find();
- ]]>
- </script>
- </select1>
- <datagrid id="datagrid2" nodeset="/root/gridData2/ListResult_1_VO/ListResult_1_Row" backcoloralternate="#F7F9F9" caption="选择^板坯号^板坯^板坯^板坯^板坯^厂内牌号^是否订单材^板坯当前状态^合同号^订单号^板坯切割时间|选择^板坯号^厚度^宽度^长度^重量^厂内牌号^是否订单材^板坯当前状态^合同号^订单号^板坯切割时间" colsep="^" colwidth="32, 70, 60, 57, 58, 62, 71, 75, 100, 100, 56, 100" extendlastcol="false" frozencols="1" mergecellsfixedrows="bycolrec" rowheader="select" rowsep="|" subtotalposition="below" style="left:495px; top:85px; width:485px; height:535px; border-style:solid; border-right-style:sunken; ">
- <col ref="CHK2" type="radio" style="text-align:left; "/>
- <col ref="SLAB_NO" style="text-align:left; "/>
- <col ref="SLAB_THK" format="#,###"/>
- <col ref="SLAB_WTH" format="#,###"/>
- <col ref="SLAB_LEN" format="#,###"/>
- <col ref="SLAB_WGT" format="#,###"/>
- <col ref="STL_GRD"/>
- <col ref="ORD_FL"/>
- <col ref="CUR_PROG_CD"/>
- <col ref="ORD_NO"/>
- <col ref="ORD_SEQ"/>
- <col ref="SLAB_CUT_DTIME" format="yyyy-mm-dd hh:nn:ss"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(datagrid2.row <= 1) return;
- if (!datagrid2.isCell(event.target)) return;
- //alert(datagrid1.col);
- //alert(datagrid1.valueMatrix(datagrid1.row,2));
- if(datagrid2.col == 1)
- {
- model.removenode("/root/reqData");
- model.makeNode("/root/reqData");
-
- var slabNo2 = datagrid2.valueMatrix(datagrid2.row,2)
- model.setValue("/root/formData/updateForm/slabNo2",slabNo2);
- }
- ]]>
- </script>
- </datagrid>
- <button id="button2" style="left:410px; top:65px; width:75px; height:20px; background-image:../../images/find.gif; border-color:#ffffff; border-style:solid; ">
- <caption>替 换</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(model.getValue("/root/gridData/ListResult_0_VO/ListResult_0_Row[CHK='true']/SLAB_NO") == "" || model.getValue("/root/gridData2/ListResult_1_VO/ListResult_1_Row[CHK2='true']/SLAB_NO") == "")
- {
- window.alert("请选择请选择替换或者被替换板坯后再进行替换操作!","提示信息!");
- return;
- }
- if(model.getValue("/root/gridData/ListResult_0_VO/ListResult_0_Row[CHK='true']/SLAB_NO") == model.getValue("/root/formData/updateForm/slabNo2") || model.getValue("/root/gridData2/ListResult_1_VO/ListResult_1_Row[CHK2='true']/SLAB_NO") == model.getValue("/root/formData/updateForm/slabNo1"))
- {
- window.alert("请不要进行重复操作,重新选择板坯后再进行替换操作!","提示信息!");
- return;
- }
- model.setValue("/root/formData/updateForm/REG_ID",model.getValue("/root/initData/rcvInfo/REG_ID"));
- commSendReq("/root/formData/updateForm");
- commSubmit(submitID,"updateRollWorkSlab","glueAction.do")
- //--------------------------------------------------------------------------------------------------------
- //var node = instance1.selectSingleNode("/root/resData/errorData_VO/errorData_Row");
- var node = instance1.selectSingleNode("/root/resData/errorData_VO");
- if(node != null)
- {
- //window.alert(model.getValue("/root/resData/errorData_VO/errorData_Row"), "提示信息");
- return;
- }
- //--------------------------------------------------------------------------------------------------------
- //errorMessage();
- model.setValue("/root/gridData/ListResult_0_VO/ListResult_0_Row[CHK='true']/SLAB_NO",model.getValue("/root/formData/updateForm/slabNo2"));
- model.setValue("/root/gridData2/ListResult_1_VO/ListResult_1_Row[CHK2='true']/SLAB_NO",model.getValue("/root/formData/updateForm/slabNo1"));
- model.setValue("/root/gridData/ListResult_0_VO/ListResult_0_Row[CHK='true']/CHK","false");
- model.setValue("/root/gridData2/ListResult_1_VO/ListResult_1_Row[CHK2='true']/CHK2","false");
- //var yesNo = model.getValue("/root/resData/AYY_VO/AYY_Row");
- //window.alert(yesNo , "提示");
- model.refresh();
- ]]>
- </script>
- </button>
- <caption id="caption2" style="left:240px; top:35px; width:508px; height:20px; color:#ff0000; background-color:#ffff99; border-color:#000000; border-style:solid; ">板坯替换操作需谨慎,操作完之前或之后需通知相关部门及时查看或核对计划信息,谢谢合作!</caption>
- <line id="line2" style="x1:0px; y1:60px; x2:980px; y2:60px; "/>
- <line id="line1" style="x1:0px; y1:30px; x2:980px; y2:30px; "/>
- <line id="line3" style="x1:490px; y1:60px; x2:490px; y2:620px; "/>
- <caption id="caption3" style="left:0px; top:65px; width:100px; height:20px; background-color:#ccffff; border-color:#000000; border-style:solid; ">热轧计划信息表</caption>
- <caption id="caption4" style="left:495px; top:65px; width:100px; height:20px; background-color:#ccffff; border-color:#000000; border-style:solid; ">可替换板坯信息表</caption>
- <button id="button1" visibility="hidden" style="left:410px; top:10px; width:100px; height:20px; ">
- <caption>find</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- find();
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|