| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254 |
- <?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[炼钢作业 >> 炼钢作业实绩 >> 板坯切割实绩查询与录入(UIG020090)]]>
- </xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <initData>
- <LG_CD>G02004</LG_CD>
- </initData>
- <formData>
- <CHARGE_NO/>
- <SUB_CHARGE_CODE/>
- <CHEM_SEQ>01</CHEM_SEQ>
- <FAC_STL_GRD/>
- <SUB_CHARGE_NO/>
- <REG_EMP_ID/>
- </formData>
- <searchData/>
- <codeData/>
- <gridData>
- <grid1/>
- <grid2/>
- <grid3/>
- </gridData>
- <MESSAGES/>
- <combData>
- <CHEM_SEQ/>
- </combData>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- initPage();
- ]]>
- </script>
- </model>
- <script type="javascript" src="../../js/boaCommon.js"/>
- <script type="javascript" src="../../js/boaMsg.js"/>
- <script type="javascript" src="../../js/mesCommon.js"/>
- <script type="javascript">
- <![CDATA[
- function initPage(){
- commSendReq("/root/initData");
- commSubmit("UIGCOMMCODE-service","find","glueAction.do");
- model.copyNode("/root/codeData","/root/resData");
- model.refresh();
- }
-
- function save(){
- if(!check("datagrid2","SUB_CHARGE_CODE")){
- alert("炉次选择错误!");
- return;
- }
- if(!check("datagrid2","CHEM_SEQ")){
- alert("炉次成分错误!");
- return;
- }
-
- model.removenode("/root/reqData");
- model.makeNode("/root/reqData");
- model.duplicate("/root/reqData","/root/formData/REG_EMP_ID");
- commMultiUpdate(datagrid2,"/root/reqData","A",true,"rowStatus");
- commSubmit("UIG020090-service","save","glueAction.do");
- model.setValue("/root/MESSAGES",model.getValue("/root/resData/MESSAGES_VO/MESSAGES_Row"));
- alert(model.getValue("/root/MESSAGES"));
- find();
- }
-
- function find(){
- if(model.getValue("/root/formData/SUB_CHARGE_NO") == ""){
- model.setValue("/root/formData/SUB_CHARGE_NO",model.getValue("/root/formData/CHARGE_NO"));
- }
- commSendReq("/root/formData");
- commSubmit("UIG020090-service","find","glueAction.do");
- model.copyNode("/root/gridData/grid1","/root/resData/rs1_VO");
- model.copyNode("/root/gridData/grid2","/root/resData/rs2_VO");
- model.refresh();
- input5.value = model.getValue("/root/initData/rcvInfo/REG_ID");
- // if(datagrid2.rows - datagrid2.fixedRows > 0){
- // datagrid1.colAttribute(datagrid1.colRef("CHK"),"disabled") = "true";
- // datagrid1.rebuild();
- // }
- }
-
- function select(){
- model.setValue("/root/formData/FAC_STL_GRD",datagrid1.valueMatrix(datagrid1.row,datagrid1.colRef("STL_GRD")));
- model.setValue("/root/formData/SUB_CHARGE_NO",datagrid1.valueMatrix(datagrid1.row,datagrid1.colRef("CHARGE_NO")));
- commSendReq("/root/formData");
- commSubmit("UIG020090-service","init","glueAction.do");
- model.copyNode("/root/combData/CHEM_SEQ","/root/resData/rs4_VO");
-
- commSendReq("/root/formData");
- commSubmit("UIG020090-service","select","glueAction.do");
- model.copyNode("/root/gridData/grid3","/root/resData/rs3_VO");
-
-
- find();
- }
-
- function deselect(){
- model.setValue("/root/formData/STL_GRD","");
- model.setValue("/root/formData/SUB_CHARGE_CODE","");
- }
-
- function autoSelect(grid){
- var gridID = (typeof grid == 'string')?document.controls(grid):grid;
- var tempval = gridID.valueMatrix(gridID.row,gridID.col);
- for(var i = gridID.fixedRows ; i <= gridID.rows - gridID.fixedRows+1; i++){
- if(gridID.valueMatrix(i,gridID.colRef("CHK")) == "Y"){
- gridID.valueMatrix(i,gridID.col) = tempval;
- }
- }
- model.refresh();
- }
-
- function check(grid,colstr){
- var temp1 = "";
- var temp2 = "";
- var gridID = (typeof grid == 'string')?document.controls(grid):grid;
- for(var i = gridID.fixedRows ; i <= gridID.rows - gridID.fixedRows+1; i++){
- if(gridID.valueMatrix(i,gridID.colRef("CHK")) == "Y"){
- if(temp1 == ""){
- temp1 = gridID.valueMatrix(i,gridID.colRef(colstr));
-
- continue;
- }else{
- temp2 = gridID.valueMatrix(i,gridID.colRef(colstr));
- }
- if(temp1 != temp2){
- return false;
- }
- temp1 = temp2;
- continue;
- }
- }
- return true;
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body>
- <datagrid id="datagrid1" nodeset="/root/gridData/grid1/rs1_Row" caption="选择^原始炉号^分炉炉号^钢种^钢水重量^分炉原因^板坯块数^板坯重量^分炉状态^操作人^操作时间^班次^班组^divide_type" colsep="^" colwidth="53, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" subtotalposition="above" style="left:0px; top:40px; width:645px; height:200px; ">
- <col checkvalue="Y,N" ref="CHK" type="radio" visibility="visible"/>
- <col ref="SUB_CHARGE_NO"/>
- <col ref="CHARGE_NO"/>
- <col ref="STL_GRD"/>
- <col ref="CHARGE_WGT" type="input" format="999999-9999999"/>
- <col ref="SUB_CHARGE_CODE" type="combo">
- <choices>
- <itemset nodeset="/root/codeData/COMM_CODE_RESULT_VO/COMM_CODE_RESULT_Row[LG_CD = 'G02004']">
- <label ref="SM_CFNM"/>
- <value ref="SM_CD"/>
- </itemset>
- </choices>
- </col>
- <col ref="SLAB_CNT"/>
- <col ref="SLAB_WGT"/>
- <col ref="CHARGE_STAT"/>
- <col ref="REG_ID"/>
- <col ref="REG_DTIME"/>
- <col ref="REG_SHIFT"/>
- <col ref="REG_GROUP"/>
- <col ref="DIVIDE_TYPE" visibility="hidden"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(datagrid1.col == datagrid1.colRef("CHK")){
- select();
- }
- ]]>
- </script>
- </datagrid>
- <caption id="caption2" class="cell" style="left:0px; top:0px; width:60px; height:20px; font-weight:bold; border-color:#000000; ">炉次号</caption>
- <datagrid id="datagrid2" nodeset="/root/gridData/grid2/rs2_Row" caption="选择^分炉炉号^原始炉号^分炉板坯号^原始板坯号^分炉原因^试样代码^牌号^规格^重量^成份等级^操作人^操作时间^班次^班组^divide_type|选择^分炉炉号^原始炉号^分炉板坯号^原始板坯号^分炉原因^试样代码^牌号^规格^重量^成份等级^操作人^操作时间^班次^班组^divide_type" colsep="^" colwidth="32, 90, 90, 90, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:265px; width:645px; height:335px; ">
- <col checkvalue="Y,N" ref="CHK" type="checkbox"/>
- <col ref="CHARGE_NO"/>
- <col ref="SUB_CHARGE_NO"/>
- <col ref="SLAB_NO"/>
- <col ref="SUB_SLAB_NO"/>
- <col ref="SUB_CHARGE_CODE" type="combo">
- <choices>
- <itemset nodeset="/root/codeData/COMM_CODE_RESULT_VO/COMM_CODE_RESULT_Row[LG_CD = 'G02004']">
- <label ref="SM_CFNM"/>
- <value ref="SM_CD"/>
- </itemset>
- </choices>
- </col>
- <col ref="CHEM_SEQ" type="combo">
- <choices>
- <itemset nodeset="/root/combData/CHEM_SEQ/rs4_Row">
- <label ref="LABEL"/>
- <value ref="VALUE"/>
- </itemset>
- </choices>
- </col>
- <col ref="STL_GRD"/>
- <col ref="SLAB_SIZE"/>
- <col ref="SLAB_WGT"/>
- <col ref="SLAB_INGR_DEC_GRD"/>
- <col ref="REG_ID"/>
- <col ref="REG_DTIME"/>
- <col ref="REG_SHIFT"/>
- <col ref="REG_GROUP"/>
- <col ref="DIVIDE_TYPE" visibility="hidden"/>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(datagrid2.col == datagrid2.colRef("SUB_CHARGE_CODE") || datagrid2.col == datagrid2.colRef("CHEM_SEQ")){
- autoSelect("datagrid2");
- }
- ]]>
- </script>
- </datagrid>
- <caption id="caption3" class="cell" style="left:0px; top:25px; width:82px; height:16px; font-weight:bold; border-color:#000000; ">分炉炉次信息</caption>
- <caption id="caption4" class="cell" style="left:0px; top:250px; width:82px; height:16px; font-weight:bold; border-color:#000000; ">分炉坯料信息</caption>
- <button id="button2" style="left:895px; top:19px; width:85px; height:20px; background-image:../../../../xgmes3/WebContents/images/save2.gif; ">
- <caption>增加炉次</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- datagrid1.addRow();
- ]]>
- </script>
- </button>
- <input id="input1" ref="/root/formData/CHARGE_NO" style="left:60px; top:0px; width:110px; height:20px; "/>
- <datagrid id="datagrid3" nodeset="/root/gridData/grid3/rs3_Row" caption="成分代码^炼钢最小值要求^炼钢最大值要求^判定最小值要求^判定最大值要求^实绩值|成分代码^炼钢最小值要求^炼钢最大值要求^判定最小值要求^判定最大值要求^实绩值" colsep="^" colwidth="38, 60, 60, 60, 60, 50" mergecellsfixedrows="bycolrec" rowsep="|" style="left:650px; top:40px; width:330px; height:560px; ">
- <col ref="CHEM_CD"/>
- <col ref="CHEM_MIN1"/>
- <col ref="CHEM_MAX1"/>
- <col ref="CHEM_MIN"/>
- <col ref="CHEM_MAX"/>
- <col ref="CHEM_VAL"/>
- </datagrid>
- <caption id="caption1" class="cell" style="left:650px; top:25px; width:84px; height:16px; font-weight:bold; border-color:#000000; ">炉次成分信息</caption>
- <select1 id="combo1" ref="/root/formData/CHEM_SEQ" appearance="minimal" style="left:740px; top:20px; width:90px; height:20px; ">
- <choices>
- <itemset nodeset="/root/combData/CHEM_SEQ/rs4_Row">
- <label ref="LABEL"/>
- <value ref="VALUE"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- commSendReq("/root/formData");
- commSubmit("UIG020090-service","select","glueAction.do");
- model.copyNode("/root/gridData/grid3","/root/resData/rs3_VO");
- model.refresh();
- ]]>
- </script>
- </select1>
- <input id="input5" ref="/root/formData/REG_EMP_ID" visibility="hidden" editable="false" style="left:840px; top:20px; width:25px; height:17px; background-color:#c0c0c0; "/>
- </xhtml:body>
- </xhtml:html>
|