| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453 |
- <?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[生产管制 >> 热轧管理 >> CCR料轧辊编制选定]]>
- </xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <reqData/>
- <resData/>
- <formData>
- <searchForm>
- <STL_GRD/>
- <FAC_STL_GRP/>
- <ORD_USEAGE_CD/>
- <THK_MINI/>
- <THK_MAXI/>
- <ORD_SEQ/>
- <ORD_NO/>
- <WTH_MINI/>
- <WTH_MAXI/>
- <CUR_LOAD_LOC/>
- <isYH/>
- </searchForm>
- </formData>
- <gridData1>
- <WTH_GRP_CD/>
- <WTH_MINI/>
- <WTH_MAXI/>
- <isEdit/>
- <isCancel/>
- <ROLL_SLAB_CNT/>
- <ROLL_SLAB_WGT/>
- <MILL_LEN/>
- <MINI/>
- <MAXI/>
- <ROLL_DTIME/>
- </gridData1>
- <codeData>
- <STL_GRD>
- <item>
- <label/>
- <value/>
- </item>
- </STL_GRD>
- <ORD_SEQ/>
- </codeData>
- <tempreqData>
- <MINI/>
- <MAXI/>
- <STL_GRD/>
- </tempreqData>
- <gData>
- <g2Data>
- <CHK/>
- <ROLL_SLAB_SEQ/>
- <CUR_LOAD_LOC/>
- <SLAB_NO/>
- <SLAB_THK/>
- <SLAB_WTH/>
- <SLAB_LEN/>
- <SLAB_WGT/>
- <INSTR_COIL_THK/>
- <INSTR_COIL_WTH/>
- <ORD_LEN/>
- <ORD_WGT/>
- <HOT_THK_AIM/>
- <HOT_THK_MIN/>
- <HOT_THK_MAX/>
- <WTH_AIM>900</WTH_AIM>
- <WTH_MIN>890</WTH_MIN>
- <WTH_MAX>930</WTH_MAX>
- <INSTR_COIL_WGT/>
- <THK_AIM/>
- <WTH_AIM/>
- <SPEC_ABBSYM/>
- <ORD_NO/>
- <ORD_SEQ/>
- <CUST_CD/>
- <STL_GRD/>
- <SLAB_RT/>
- </g2Data>
- </gData>
- <tempData>
- </tempData>
- <tempData2/>
- <tempResult/>
- <initResult/>
- <g1Data/>
- <g2Data/>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
-
- if (window.parent == null) Init();
-
- ]]>
- </script>
- <script type="javascript" src="../../js/boaMsg.js"/>
- <script type="javascript" src="../../js/boaCommon.js"/>
- <script type="javascript" src="../../js/dCommon.js"/>
- </model>
- <script type="javascript">
- <![CDATA[
- var V_WTH_MAXI = 0;
- var V_WTH_MINI = 0;
- //1、获取用户登录信息,只能在页面初始化函数中调用
- 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));
- }
-
- //2. 页面初始化函数(必须)
- function Init(node)
- {
-
- InitParams(node); // 用于设置节点:/root/initData/rcvInfo,获取用户登录信息
- // 在程序中会重建该节点,最好不要重名
- // 函数 InitParams 在 mesCommon.js 中,仅在需要使用登录用户信息时调用
-
-
- input1091.value = 0;
- input1092.value = 999.999;
- input1.value= "";
- combo5.value = "";
- // datagrid2.fixedcellcheckbox(0,datagrid2.colRef("CHK"))=true;//设置第0行的checkbox的属性为true 便于进行全选操作
- // datagrid2.colStatus(0)=false; //设置第0列也即为checkbox所在列的列状态为false。
- commSubmit("UIF023010-service","success","glueAction.do");
- model.duplicate("/root/initResult","/root/resData");//复制结点
-
-
- addAllOption("/root/initResult/resData/resultkey1_VO","/root/initResult/resData/resultkey1_VO/resultkey1_Row","SM_CFNM","SM_CD","--全部--");
- addAllOption("/root/initResult/resData/resultkey2_VO","/root/initResult/resData/resultkey2_VO/resultkey2_Row","SM_CFNM","SM_CD","--全部--");
- model.refresh();
- }
-
- //3、页面标题
- function setTitle()
- {
- return "热轧管制 >> 热轧管制指示 >> CCR料轧辊编制选定"; // 如:return "进程管理 >> 订单进程现况查询";
- }
-
- function find() {
- model.removenode("/root/reqData");
- model.makeNode("/root/reqData");
- commSubmit("UIF023010-service","find","glueAction.do");
- commAppendData("/root/g1Data/rs_VO","/root/resData/rs_VO");
- model.refresh();
- disableLastOption();
- if(datagrid1.rows> 2) {
- m= datagrid1.rows-1;
- datagrid1.rowstyle(datagrid1.rows-1, "data", "background-color") = "#ffffcc";
- datagrid1.rowstyle(datagrid1.rows-1, "data", "color") = "red";
- }
- }
-
- function edit() {
- model.removenode("/root/reqData");
- model.makeNode("/root/reqData");
- commSendReq("/root/formData/searchForm");
- datagrid2.colStatus(0) = false;
- if(datagrid2.fixedcellcheckbox(0,datagrid2.colRef("CHK"))=true) {
- for(i = 2;i<datagrid2.rows;i++) {
- if(datagrid2.valueMatrix(i,datagrid2.colRef("CHK")) == "true") {
- datagrid2.addStatus(i, "update");
- } else {
- datagrid2.rowStatus(i) = 0;
- }
- }
- }
- commMultiUpdate(datagrid2,"/root/reqData","A",true,"rowStatus");
- commSubmit("UIF023010-service","edit","glueAction.do");
- chkInit();
- datagrid2.fixedcellischeck(0,0) = false;
- datagrid2.fixedcellcheckbox(0,datagrid2.colRef("CHK"))=false;
- }
- function cancel() {
- model.removenode("/root/reqData");
- datagrid2.colStatus(0) = false;
- if(datagrid2.fixedcellcheckbox(0,datagrid2.colRef("CHK"))=true) {
- for(i = 2;i<datagrid2.rows;i++) {
- if(datagrid2.valueMatrix(i,datagrid2.colRef("CHK")) == "true") {
- datagrid2.addStatus(i, "delete");
- } else {
- datagrid2.rowStatus(i) = 0;
- }
- }
- }
- commMultiUpdate(datagrid2,"/root/reqData","A",true,"rowStatus");
- commSubmit("UIF023010-service","cancel","glueAction.do");
- chkInit();
- datagrid2.fixedcellischeck(0,0) = false;
- datagrid2.fixedcellcheckbox(0,datagrid2.colRef("CHK"))=false;
- }
- //禁止点击带统计的最后一行的选项
- function disableLastOption() {
- datagrid1.cellattribute("editable",2,1) = "true";
- datagrid1.cellattribute("editable",2,2) = "true";
- datagrid1.cellattribute("disabled",datagrid1.rows-1,3) = "true";
- datagrid1.cellattribute("disabled",datagrid1.rows-1,4) = "true";
- }
- //编制取消按钮只能有一个选项
- function chkOption()
- {
- if(datagrid1.col == 3 ) {
- for(var i = 2;i<datagrid1.rows -1;i++) {
- datagrid1.valueMatrix(i,4) = false;
- }
- } else {
- for(var i = 2;i<datagrid1.rows -1;i++) {
- datagrid1.valueMatrix(i,3) = false;
- }
- }
- }
- //添加全部选项到combo头部
- function addAllOption(srcpath,targetpath,lable,value,allvalue) {
- model.duplicate(srcpath,targetpath);
- model.setValue(targetpath + "/" +lable,allvalue);
- model.setValue(targetpath + "/" +value,"");
- }
- function chkInit() {
- datagrid1.fixedcellischeck(0,datagrid1.colRef("CHK"))=false;
- var str = datagrid1.children;
- //commGridInit(datagrid1);
- model.refresh();
- }
- function color_status()
- {
- for(var i = 2;i<=datagrid2.rows-1;i++)
- {
- var v_status = datagrid2.valueMatrix(i,datagrid2.colRef("SLAB_STOCK_TYPE"))
- var bgcolor = "#ffffff";
- if(v_status == "轧回入库" ) {
- bgcolor = "#ff99cc";
- }else if(v_status == "加回入库" ){
- bgcolor = "#ffcc99";
- }
- datagrid2.rowstyle(i, "data", "background-color") = bgcolor;
- }
- }
-
- function fowardUID010031(gridID,colName) {
- if(gridID.col == gridID.colRef(colName)) {
- model.makeValue("/root/fwdData/UID010031/ORD_NO", gridID.valueMatrix(gridID.row, gridID.colRef("ORD_NO")));
- model.makeValue("/root/fwdData/UID010031/ORD_SEQ", gridID.valueMatrix(gridID.row, gridID.colRef("ORD_SEQ")));
- model.makeValue("/root/fwdData/UID010031/URL", "../../B/B01/UIB015020.xrw");
- var java = window.parent.javaScript;
- java.open(model.instances(0).selectSingleNode("/root/fwdData/UID010031"));
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="980" pageheight="620" guideline="1,980;2,592;" style="font-family:宋体; font-size:14pt; ">
- <datagrid id="datagrid1" nodeset="/root/g1Data/rs_VO/rs_Row" scroll="auto" backcoloralternate="#f7f9f9" caption="钢卷宽度组^钢卷宽度组^钢卷宽度组^对象选定^对象选定^编制结果(块数)^轧制总质量^轧制总长度(米)^编制量下限^编制量上限^编制时刻|宽度组^下限^上限^编制^取消^编制结果(块数)^轧制总质量^轧制总长度(米)^编制量下限^编制量上限^编制时刻" colsep="^" colwidth="100, 100, 100, 69, 63, 71, 80, 61, 66, 64, 117" extendlastcol="false" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:62px; width:980px; height:232px; ">
- <col ref="WTH_GRP_CD"/>
- <col editable="false" ref="WTH_MINI" type="input" format="#,##0" style="text-align:right; "/>
- <col editable="false" ref="WTH_MAXI" type="input" format="#,##0" style="font-family:宋体; font-size:14pt; text-align:right; "/>
- <col checkvalue="true,false" ref="isEdit" type="radio"/>
- <col checkvalue="true,false" ref="isCancel" type="radio"/>
- <col ref="ROLL_SLAB_CNT" format="#,##0" style="text-align:right; "/>
- <col ref="ROLL_SLAB_WGT" format="#,##0" style="font-size:14pt; text-align:right; "/>
- <col ref="MILL_LEN" format="#,##0" style="text-align:right; "/>
- <col ref="MINI" format="#,##0" style="text-align:right; "/>
- <col ref="MAXI" format="#,##0" style="text-align:right; "/>
- <col ref="ROLL_DTIME" format="yyyy-mm-dd hh:nn:ss"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(datagrid1.row <= 1) return;
- if (!datagrid1.isCell(event.target)) return;
- if(datagrid1.col == 3 || datagrid1.col == 4) {
- datagrid2.fixedcellcheckbox(0,datagrid2.colRef("CHK"))=true;
- chkOption();
- model.removenode("/root/reqData");
- model.makeNode("/root/reqData");
- V_WTH_MINI = datagrid1.valueMatrix(datagrid1.row,1)
- model.setValue("/root/formData/searchForm/WTH_MINI",V_WTH_MINI);
- V_WTH_MAXI = datagrid1.valueMatrix(datagrid1.row,2);
- model.setValue("/root/formData/searchForm/WTH_MAXI",V_WTH_MAXI);
- commSendReq("/root/formData/searchForm");
- if(datagrid1.col == 3 ){
- datagrid2.nodeset = "/root/resData/rs1_VO/rs1_Row";
- commSubmit("UIF023010-service","findSchoseCCR","glueAction.do")
- }else {
- datagrid2.nodeset = "/root/resData/rs2_VO/rs2_Row";
- commSubmit("UIF023010-service","findCancelCCR","glueAction.do");
- }
- color_status();
- model.refresh();
- }
- ]]>
- </script>
- </datagrid>
- <datagrid id="datagrid2" nodeset="/root/resData/rs1_VO/rs1_Row" scroll="auto" backcoloralternate="#f7f9f9" caption="选择^编制序号^堆置位置^板坯号^板坯^板坯^板坯^板坯^轧制^轧制^轧制^轧制^轧制^轧制^轧制^轧制^轧制^订单类型^钢号^标准号^合同号^订单号^客户^交货期^紧急材^去向^发货方式^订单备注^入库类型^客户成分特殊要求^材质特殊要求^公差特殊要求|选择^编制序号^堆置位置^板坯号^厚度^宽度^长度^重量^订单厚度^目标厚度^厚度下限^厚度上限^目标宽度^宽度下限^宽度上限^长度^重量^订单类型^钢号^标准号^合同号^订单号^客户^交货期^紧急材^去向^发货方式^订单备注^入库类型^客户成分特殊要求^材质特殊要求^公差特殊要求" colsep="^" colwidth="52, 47, 46, 118, 49, 61, 55, 48, 60, 59, 55, 54, 55, 56, 64, 41, 47, 32, 63, 52, 54, 50, 62, 100, 100, 67, 100, 100, 100, 60, 60, 60" defaultrows="0" explorerbar="sortshowmove" extendlastcol="false" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:301px; width:980px; height:319px; background-color:#ffffff; ">
- <col ref="CHK" type="checkbox"/>
- <col ref="ROLL_SLAB_SEQ" style="text-align:right; "/>
- <col editable="false" ref="CUR_LOAD_LOC" type="input" style="text-align:center; "/>
- <col editable="false" ref="SLAB_NO" type="input" style="text-align:center; "/>
- <col ref="SLAB_THK" style="text-align:right; "/>
- <col ref="SLAB_WTH" format="#,##0" style="text-align:right; "/>
- <col ref="SLAB_LEN" format="#,##0" style="text-align:right; "/>
- <col ref="SLAB_WGT" format="#,##0" style="text-align:right; "/>
- <col editable="false" ref="INSTR_COIL_THK" type="input" format="#.##0" style="text-align:right; "/>
- <col editable="false" ref="HOT_THK_AIM" type="input" format="#.##0" style="text-align:right; "/>
- <col ref="HOT_THK_MIN" format="#.##0" style="text-align:right; "/>
- <col ref="HOT_THK_MAX" format="#.##0" style="text-align:right; "/>
- <col editable="false" ref="WTH_AIM" type="input" format="#,##0" style="text-align:right; "/>
- <col ref="WTH_MIN" format="#,##0" style="text-align:right; "/>
- <col ref="WTH_MAX" format="#,##0" style="text-align:right; "/>
- <col ref="ORD_LEN" format="#,##0" style="text-align:right; "/>
- <col ref="ORD_WGT" format="#,##0" style="text-align:right; "/>
- <col ref="PRODNM_CD"/>
- <col editable="false" editmode="search" ref="STL_GRD" type="input" style="text-align:left; "/>
- <col editable="false" ref="SPEC_ABBSYM" type="input" style="text-align:left; "/>
- <col editable="false" ref="ORD_NO" type="input" style="text-align:center; "/>
- <col editable="false" ref="ORD_SEQ" type="input" style="text-align:center; "/>
- <col disabled="true" editmode="search" ref="CUST_NM" style="text-align:left; "/>
- <col ref="DEL_TO_DATE" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="EMGMTR_NMG_CLF"/>
- <col disabled="true" editmode="search" ref="SLAB_RT"/>
- <col ref="DLIV_TP"/>
- <col ref="MK_CONTENT" style="text-align:left; "/>
- <col ref="SLAB_STOCK_TYPE" style="text-align:left; "/>
- <col ref="INGR_YN" style="text-decoration:underline; color:#0000ff; cursor:hand; ">
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fowardUID010031(datagrid2,"INGR_YN");
- ]]>
- </script>
- </col>
- <col ref="QLTY_YN" style="text-decoration:underline; color:#0000ff; cursor:hand; ">
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fowardUID010031(datagrid2,"QLTY_YN");
- ]]>
- </script>
- </col>
- <col ref="DEL_YN" style="text-decoration:underline; color:#0000ff; cursor:hand; ">
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fowardUID010031(datagrid2,"DEL_YN");
- ]]>
- </script>
- </col>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(datagrid2.valueMatrix(datagrid2.row,0) == "false") {
- datagrid2.rowStatus(datagrid2.row) = 0;
- }
- ]]>
- </script>
- </datagrid>
- <button id="button2" style="left:826px; top:10px; width:91px; height:20px; background-image:../../images/save.gif; ">
- <caption>编制确认</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- edit();
- find();
- ]]>
- </script>
- </button>
- <select1 id="combo2" ref="/root/formData/searchForm/FAC_STL_GRP" appearance="minimal" style="left:92px; top:10px; width:190px; height:20px; ">
- <choices>
- <itemset nodeset="/root/initResult/resData/resultkey1_VO/resultkey1_Row">
- <label ref="SM_CFNM"/>
- <value ref="SM_CD"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption3" class="cell" style="left:0px; top:10px; width:90px; height:20px; text-align:center; border-style:solid; ">钢号组</caption>
- <select1 id="combo4" ref="/root/formData/searchForm/STL_GRD" appearance="minimal" editmode="inputsearch" style="left:92px; top:35px; width:188px; height:20px; ">
- <choices>
- <itemset nodeset="/root/initResult/resData/resultkey0_VO/resultkey0_Row">
- <label ref="FAC_STL_GRD"/>
- <value ref="FAC_CODE"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption6" class="cell" style="left:0px; top:35px; width:90px; height:20px; text-align:center; border-style:solid; ">钢号</caption>
- <select1 id="combo1" ref="/root/formData/searchForm/ORD_USEAGE_CD" appearance="minimal" style="left:627px; top:10px; width:158px; height:20px; ">
- <choices>
- <itemset nodeset="/root/initResult/resData/resultkey2_VO/resultkey2_Row">
- <label ref="SM_CFNM"/>
- <value ref="SM_CD"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption4" class="cell" style="left:535px; top:10px; width:90px; height:20px; text-align:center; border-style:solid; ">订单用途</caption>
- <caption id="caption7" class="cell" style="left:295px; top:10px; width:90px; height:20px; vertical-align:middle; ">合同号</caption>
- <select1 id="combo5" ref="/root/formData/searchForm/ORD_SEQ" appearance="minimal" editmode="search" style="left:469px; top:10px; width:45px; height:20px; ">
- <choices>
- <itemset nodeset="/root/codeData/ORD_SEQ/ListResult_0_VO/ListResult_0_Row[ORD_SEQ != '']">
- <label ref="ORD_SEQ"/>
- <value ref="ORD_SEQ"/>
- </itemset>
- </choices>
- </select1>
- <input id="input1" ref="/root/formData/searchForm/ORD_NO" maxlength="12" style="left:387px; top:10px; width:80px; height:20px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.setValue("/root/formData/searchForm//ORD_SEQ", "");
- if (model.getValue("/root/formData/searchForm/ORD_NO").length == 12) {
- commSendReq("/root/formData/searchForm");
- commSubmit("UIF023010-service","seq","glueAction.do");
- commAppendData("/root/codeData/ORD_SEQ/ListResult_0_VO", "/root/resData/ListResult_0_VO");
- //exec("/root/formData/searchInfo/ORD_NO", "", "seq", "/root/codeData/ORD_SEQ/ListResult_0_VO");
- //model.setValue("/root/formData/searchInfo/ORD_SEQ", model.getValue("/root/codeData/ORD_SEQ/ListResult_0_VO/ListResult_0_Row/ORD_SEQ"));
- } else {
- model.removenode("/root/codeData/ORD_SEQ/ListResult_0_VO");
- }
- chkInit();
- ]]>
- </script>
- </input>
- <input id="input1092" ref="/root/formData/searchForm/THK_MAXI" style="left:682px; top:34px; width:73px; height:20px; text-align:right; "/>
- <caption id="caption109" class="cell" style="left:536px; top:34px; width:90px; height:20px; ">钢卷厚度</caption>
- <input id="input1091" ref="/root/formData/searchForm/THK_MINI" style="left:628px; top:34px; width:52px; height:20px; text-align:right; "/>
- <button id="button3" style="left:906px; top:10px; width:70px; height:20px; text-align:right; background-image:../../images/save.gif; ">
- <caption>编制取消</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- cancel();
- find();
- ]]>
- </script>
- </button>
- <line id="line3" style="x1:0px; y1:58px; x2:980px; y2:58px; border-color:#ff00ff; "/>
- <line id="line1" style="x1:0px; y1:297px; x2:980px; y2:297px; border-color:#0000ff; "/>
- <caption id="caption1" class="cell" style="left:295px; top:35px; width:90px; height:20px; text-align:center; border-style:solid; ">堆置位置</caption>
- <input id="input2" ref="/root/formData/searchForm/CUR_LOAD_LOC" style="left:386px; top:35px; width:128px; height:20px; text-align:left; "/>
- <select id="checkbox1" ref="/root/formData/searchForm/isYH" overflow="visible" appearance="full" style="left:880px; top:35px; width:85px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>排序优化</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- <caption id="caption2" style="left:769px; top:35px; width:30px; height:15px; text-align:center; background-color:#ff99cc; ">轧回</caption>
- <caption id="caption5" style="left:805px; top:35px; width:30px; height:15px; text-align:center; background-color:#ffcc99; ">加回</caption>
- </xhtml:body>
- </xhtml:html>
|