| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158 |
- <?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[生产管制 >> 炼钢管制 >> 作业路线调整]]>
- </xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <formData>
- <CHARGE_NO/>
- <CUR_LD_LOC/>
- <CUR_PROC/>
- <PRE_WORK_LINE/>
- <CUR_WORK_LINE/>
- </formData>
- <gridData>
- <grid1/>
- <grid2/>
- </gridData>
- <searchData>
- <CUR_WORK_LINE/>
- <CHARGE_NO/>
- </searchData>
- <resData>
- <messages_VO>
- <messages_Row/>
- </messages_VO>
- </resData>
- <MESSAGES/>
- </root>
- </instance>
- </model>
- <script type="javascript" src="../../js/boaCommon.js"/>
- <script type="javascript">
- <![CDATA[
- function find(){
- commSendReq("/root/searchData");
- commSubmit("UIF012070-service","findx","glueAction.do");
- commAppendData("/root/gridData/grid1/rs1_VO","/root/resData/rs1_VO");
- commAppendData("/root/gridData/grid2/rs2_VO","/root/resData/rs2_VO");
- model.refresh();
- }
-
- function save(){
- if(model.getValue("/root/searchData/CUR_WORK_LINE")== ""){
- alert("作业路线错误!");
- return;
- }
- model.setValue("/root/searchData/CHARGE_NO",model.getValue("/root/formData/CHARGE_NO"));
- commSendReq("/root/searchData");
- commSubmit("UIF012070-service","save","glueAction.do");
- model.setValue("/root/MESSAGES",model.getValue("/root/resData/messages_VO/messages_Row"));
- alert(model.getValue("/root/MESSAGES"));
-
- find();
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body>
- <datagrid id="datagrid1" nodeset="/root/gridData/grid1/rs1_VO/rs1_Row" visibility="visible" scroll="auto" backcoloralternate="#f7f9f9" caption="选择^浇次管理号^浇次内顺序^转炉号^炉次管理号^钢号^预定出钢量^处理路径^修改后路径^浇铸^浇铸^订单板坯块数^余材板坯块数^计划出钢开始^进程^状态区分^热送^L2传送^轧制编制^回送^客户特殊要求|选择^浇次管理号^浇次内顺序^转炉号^炉次管理号^钢号^预定出钢量^处理路径^修改后路径^厚度^宽度^订单板坯块数^余材板坯块数^计划出钢开始^进程^状态区分^热送^L2传送^轧制编制^回送^客户特殊要求" colsep="^" colwidth="30, 56, 56, 56, 56, 56, 56, 56, 100, 56, 56, 56, 56, 56, 56, 56, 56, 27, 56, 26, 52" defaultrows="0" extendlastcol="false" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:0px; width:980px; height:259px; color:#000000; text-align:center; ">
- <col ref="CHK" type="radio"/>
- <col ref="CAST_MANA_NO" style="text-align:center; "/>
- <col ref="CAST_CHARGE_SEQ" style="text-align:right; "/>
- <col ref="PRC_LINE" style="text-align:right; "/>
- <col editable="false" ref="CHARGE_MANA_NO" type="input" style="text-align:center; "/>
- <col editable="false" ref="STL_GRD" type="input" style="text-align:left; "/>
- <col ref="PREV_CHARGE_WGT" format="#,##0" style="text-align:right; "/>
- <col ref="LINE_PROC_CD" style="text-decoration:underline; color:#ff0000; text-align:left; "/>
- <col ref="INSTR_RT" style="text-decoration:underline; color:#ff0000; text-align:left; "/>
- <col ref="CCM_THK" format="#,##0" style="text-align:right; "/>
- <col ref="CCM_WTH" format="#,##0" style="text-align:right; "/>
- <col ref="ORD_SLAB_CNT" format="#,##0" style="text-align:right; "/>
- <col ref="NONORD_SLAB_CNT" format="#,##0" style="text-align:right; "/>
- <col ref="PRE_BOF_STR_DTIME" format="yyyy-mm-dd hh:nn:ss" style="text-align:center; "/>
- <col disabled="true" editmode="search" ref="PROG_CD" style="text-align:left; "/>
- <col disabled="true" editmode="search" ref="STATUS_CFNM" style="text-align:center; "/>
- <col disabled="true" editmode="search" ref="HCR_CLF" style="text-align:center; "/>
- <col ref="L2_SEND" style="text-align:center; "/>
- <col ref="MILL_FL" style="text-align:center; "/>
- <col ref="RTN_CHARGE_CLF" style="text-align:center; "/>
- <col ref="DSN_KIND" style="text-decoration:underline; color:#ff0000; "/>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- model.setValue("/root/formData/CHARGE_NO",datagrid1.valueMatrix(datagrid1.row,datagrid1.colRef("CHARGE_MANA_NO")));
- model.setValue("/root/formData/CUR_LD_LOC",datagrid1.valueMatrix(datagrid1.row,datagrid1.colRef("")));
- model.setValue("/root/formData/CUR_PROC",datagrid1.valueMatrix(datagrid1.row,datagrid1.colRef("")));
- model.setValue("/root/formData/PRE_WORK_LINE",datagrid1.valueMatrix(datagrid1.row,datagrid1.colRef("LINE_PROC_CD")));
- model.refresh();
- ]]>
- </script>
- </datagrid>
- <caption id="caption9" class="cell" style="left:435px; top:310px; width:120px; height:20px; vertical-align:middle; ">原始作业路线</caption>
- <input id="input6" ref="/root/formData/PRE_WORK_LINE" disabled="true" style="left:555px; top:310px; width:345px; height:20px; text-align:left; "/>
- <caption id="caption1" class="cell" style="left:435px; top:335px; width:120px; height:20px; vertical-align:middle; ">变更后作业路线</caption>
- <input id="input1" ref="/root/formData/CUR_WORK_LINE" style="left:555px; top:335px; width:345px; height:20px; text-align:left; "/>
- <caption id="caption2" class="cell" style="left:550px; top:265px; width:115px; height:20px; vertical-align:middle; ">当前钢包位置</caption>
- <input id="input2" ref="/root/formData/CUR_LD_LOC" disabled="true" style="left:550px; top:285px; width:115px; height:20px; text-align:right; "/>
- <caption id="caption4" class="cell" style="left:435px; top:265px; width:115px; height:20px; vertical-align:middle; ">炉号</caption>
- <input id="input4" ref="/root/formData/CHARGE_NO" disabled="true" style="left:435px; top:285px; width:115px; height:20px; text-align:right; "/>
- <datagrid id="datagrid2" nodeset="/root/gridData/grid2/rs2_VO/rs2_Row" visibility="visible" scroll="auto" backcoloralternate="#f7f9f9" caption="选择^处理编号^处理内容^机号|选择^处理编号^处理内容^机号" colsep="^" colwidth="30, 112, 197, 56" defaultrows="0" extendlastcol="false" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:265px; width:420px; height:259px; color:#000000; text-align:center; ">
- <col checkvalue="Y,N" ref="CHK" type="radio"/>
- <col ref="SM_CD" style="text-align:center; "/>
- <col ref="SM_CFNM" style="text-align:center; "/>
- <col ref="CD_SEQ" style="text-align:center; "/>
- </datagrid>
- <caption id="caption5" class="cell" style="left:665px; top:265px; width:115px; height:20px; vertical-align:middle; ">当前进度</caption>
- <input id="input5" ref="/root/formData/CUR_PROC" disabled="true" style="left:665px; top:285px; width:115px; height:20px; text-align:right; "/>
- <button id="button1" style="left:435px; top:365px; width:90px; height:20px; background-image:../../images/btn_save1.gif; ">
- <caption>选择</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rows = datagrid2.rows;
- firstrow = datagrid2.fixedRows;
- for(var i = firstrow ;i < rows;i++){
- if(datagrid2.valueMatrix(i,datagrid2.colRef("CHK")) == "Y"){
- var lineProc = model.getValue("/root/formData/CUR_WORK_LINE");
- lineProc = lineProc + "" + datagrid2.valueMatrix(i,datagrid2.colRef("SM_CD"))
- model.setValue("/root/formData/CUR_WORK_LINE",lineProc);
- model.refresh();
- }
- }
- ]]>
- </script>
- </button>
- <button id="button2" style="left:550px; top:365px; width:90px; height:20px; background-image:../../images/btn_save1.gif; ">
- <caption>取消</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/formData/CUR_WORK_LINE","");
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="button4" style="left:670px; top:365px; width:90px; height:20px; background-image:../../images/btn_save1.gif; ">
- <caption>确认</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/searchData/CUR_WORK_LINE",model.getValue("/root/formData/CUR_WORK_LINE"));
- commSendReq("/root/searchData");
- commSubmit("UIF012070-service","chek","glueAction.do");
- var msg = model.getValue("/root/resData/rs3_VO/rs3_Row/SM_CD");
- if(msg == null || msg == ""){
- alert("错误作业路线,或则该作业路线尚未维护");
- model.setValue("/root/searchData/CUR_WORK_LINE","");
- return;
- }else{
- model.setValue("/root/searchData/CUR_WORK_LINE",msg);
- alert("调整后作业路线 " + msg + " :" + model.getValue("/root/formData/CUR_WORK_LINE"));
- return;
- }
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|