| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306 |
- <?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[炼钢作业 >> 炼钢作业实绩 >> 板坯计量称重(UIG020062)]]>
- </xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <INTI_DATA/>
- <formData>
- <PLAN_CHARGE_NO/>
- <STL_GRD/>
- <CAST_SEQ/>
- <CC_DEVNO>J1</CC_DEVNO>
- <LD_NO/>
- <LD_IN_DTIME/>
- <RCPT_TAP_QTY/>
- <CUT_WKSHIFT/>
- <CUT_WKGROUP/>
- <CUT_EMP_ID/>
- <SLAB_CNT/>
- </formData>
- <gridData/>
- <searchData>
- <CHARGE_NO/>
- <PLAN_CHARGE_NO/>
- <startTime/>
- <endTime/>
- </searchData>
- <shiftData>
- <FAC_CD>J</FAC_CD>
- <PROC_CD>S</PROC_CD>
- <GROUP_CD/>
- </shiftData>
- <resData/>
- <reqData/>
- <initData>
- <INIT_CHARGE_NO/>
- <LG_CD>Z05002,Z05001,G02003</LG_CD>
- </initData>
- <wkResult>
- <WkShiftResult/>
- <WkGroupResult/>
- <WkEmpResult/>
- </wkResult>
- <SearchEmp>
- <WK_GROUP/>
- </SearchEmp>
- <tempData/>
- <comboData>
- <reg_id/>
- </comboData>
- <codeData/>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- //InitParamsEE();
-
- ]]>
- </script>
- </model>
- <script type="javascript" src="../../js/boaCommon.js"/>
- <script type="javascript" src="../../js/boaMsg.js"/>
- <script type="javascript" src="../../js/Common.js"/>
- <script type="javascript" src="../../js/mesCommon.js"/>
- <script type="javascript" src="../../js/b01.js"/>
- <script type="javascript">
- <![CDATA[
- /*
- *全局变量,函数
- */
- // 记录表格选中行数
- var SELECTED_SLAB_COUNT1 = 0;
- var SELECTED_SLAB_COUNT2 = 0;
-
- 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 InitParamsEE()
- {
- model1.makeValue("/root/formData/SUBPROC","");
- commSubmit("UIG020020-service","success","glueAction.do");
- commAppendData("/root/initData/INIT_CHARGE_NO/InitDataResult_VO","/root/resData/InitDataResult_VO");
- commSendReq("/root/initData");
- commSubmit("UIGCOMMCODE-service","find","glueAction.do");
- model.copyNode("/root/codeData","/root/resData");
- model.refresh();
- }
-
- function Init(node) {
- InitParams(node);
- InitParamsEE();
-
- //shiftSearch();
-
- }
-
- /*
- *查询操作
- */
-
- function find()
- {
- //shiftSearch(); model.getValue("/root/searchData/CHARGE_NO") == null ||
- // 检查查询修改条件是否为空
- if(model.getValue("/root/searchData/CHARGE_NO") == "" )
-
- {
- alert("炉次号不能为空!");
- }
- else
- {
-
- model.removenode("/root/reqData");
- model.makeNode("/root/reqData");
-
- //document.writeIniFile("session1" , "UIB020220" , input40.value.Trim() , "c:\\WINDOWS\\xgmes3.ini");
-
- model.makeValue("/root/reqData/CHARGE_NO" , combo1.value.Trim()+"%");//炉次号
- model.makeValue("/root/reqData/startTime" , input5.value+"0000");
- model.makeValue("/root/reqData/endTime" , input6.value+"9999");
- if(combo1.value == "" && input5.value == "")
- {
- window.alert("炉次号或者生产时间必须选择一个进行查询" , "提示");
- return;
- }
- // if(model.getValue("/root/reqData/startTime") != "0000" )
- // {
- // if(AddDate(input5.value.Trim()) < input6.value.Trim())
- // {
- // window.alert("查询日期不可以超过7天,否则可能导致内存溢出!", "提示");
- // return;
- // }
- // alert("asdasdasd");
- // }
- commSubmit("UIG020062-service" , "find" , "glueAction.do");
- commAppendData("/root/gridData/SlabCutting0_VO","/root/resData/SlabCutting0_VO");
-
- // model.copyNode("/root/datagrid3" , "/root/resData/SlabCutting0_VO");
- datagrid3.clearStatus();//将更新的状态清除
- model.refresh();
-
- }
- }
- /*
- * 录入
- */
- function save()
- {
- if(model.getValue("/root/searchData/CHARGE_NO") == "" )
- {
- alert("炉次号不能为空!");
- return;
- }
- else
- {
- model.removenode("/root/reqData");
- model.makeNode("/root/reqData");
- b01MultiUpdate(datagrid3,"/root/reqData","A",true,"rowStuts");//获得修改、插入、删除参数
- //model.makeValue("/root/reqData/REG_NM",model.getValue("/root/initData/rcvInfo/REG_NM"));
- commSubmit("UIG020062-service","save","glueAction.do");
-
- errMSG = model.getValue("/root/resData/errorData");
- if(errMSG != "")
- {
- window.alert(errMSG," 警告 ");
- return;
- }
- //model.copyNode("/root/datagrid1","/root/resData/SeqChemResult_VO");
- //model.refresh();
- //清除删除、插入、修改状态,防止在第二次修改时候出问题
- datagrid3.clearStatus();
- }
- }
-
- function rightClick(){
- var checkValue = model.getValue("/root/searchData/CHARGE_NO");
- if(checkValue == null || checkValue == "")return;
- var tstvalue = parseInt(checkValue.substr(4,5),10);
- tstvalue = (tstvalue + 1) + "";
- var strLen = tstvalue.length;
- checkValue = checkValue.substr(0,4);
- for(var i = 0 ; i < (5 - strLen) ; i++){
- checkValue = checkValue + "0";
- }
- checkValue = checkValue + tstvalue + "A";
- model.setValue("/root/searchData/CHARGE_NO",checkValue);
- find();
- }
-
- function leftClick(){
- var checkValue = model.getValue("/root/searchData/CHARGE_NO");
- if(checkValue == null || checkValue == "")return;
- var tstvalue = parseInt(checkValue.substr(4,5),10);
- tstvalue = (tstvalue - 1) + "";
- var strLen = tstvalue.length;
- checkValue = checkValue.substr(0,4);
- for(var i = 0 ; i < (5 - strLen) ; i++){
- checkValue = checkValue + "0";
- }
- checkValue = checkValue + tstvalue + "A";
- model.setValue("/root/searchData/CHARGE_NO",checkValue);
- find();
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,981;1,981;1,981;1,980;" style="border-color:#000000; ">
- <caption id="caption2" class="cell" style="left:0px; top:5px; width:100px; height:20px; border-color:#000000; ">炉次号</caption>
- <select1 id="combo1" ref="/root/searchData/CHARGE_NO" appearance="minimal" editmode="input" style="left:102px; top:5px; width:110px; height:20px; border-color:#000000; ">
- <choices>
- <itemset nodeset="/root/initData/INIT_CHARGE_NO/InitDataResult_VO/InitDataResult_Row">
- <label ref="LABEL"/>
- <value ref="VALUE"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //alert("sdf");
- //find();
- ]]>
- </script>
- </select1>
- <line id="line1" style="x1:0px; y1:0px; x2:980px; y2:0px; "/>
- <line id="line2" style="x1:0px; y1:30px; x2:980px; y2:30px; "/>
- <datagrid id="datagrid3" nodeset="/root/gridData/SlabCutting0_VO/SlabCutting0_Row" visibility="visible" caption="选择^炉号^板坯号^铸机号^钢种^标识^板坯状态^板坯规格^板坯规格^板坯规格^板坯规格^称重序号^支数^实际重量^最后发送时间^自动化返回时间^最后更新时间^炉次结束^切割时间|选择^炉号^板坯号^铸机号^钢种^标识^板坯状态^厚度^宽度^长度^理论重量^称重序号^支数^实际重量^最后发送时间^自动化返回时间^最后更新时间^炉次结束^切割时间" colsep="^" colwidth="30, 50, 35, 54, 41, 45, 34, 33, 37, 36, 72, 36, 46, 38, 54, 70, 100, 50, 105" extendlastcol="false" mergecells="never" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" selectionmode="free" style="left:0px; top:30px; width:981px; height:560px; border-color:#000000; ">
- <col explorerbar="sort" checkvalue="Y,N" ref="CHK" type="checkbox"/>
- <col editable="true" ref="CHARGE_NO" type="input"/>
- <col editable="false" ref="SLAB_NO" type="input"/>
- <col ref="CC_DEVNO" type="input"/>
- <col ref="STL_GRD" type="input"/>
- <col ref="STATE" type="input"/>
- <col ref="FLAG" type="input"/>
- <col ref="ply" type="input" format="#,###" maxlength="6"/>
- <col editable="false" ref="width" type="input" format="#,###" maxlength="6"/>
- <col editable="false" ref="len" type="input" format="#,###" maxlength="9"/>
- <col editable="false" ref="THEOR_WGT" type="input" format="#,###" maxlength="9"/>
- <col ref="WGT_SEQ" type="input"/>
- <col ref="QUANTITY" type="input"/>
- <col ref="REAL_WGT" type="input"/>
- <col ref="SEDN_TIME" type="input"/>
- <col ref="REVERT_TIME" type="input"/>
- <col ref="LAST_UPDATETIME" type="input"/>
- <col ref="heatoverflag" type="combo">
- <choices>
- <item>
- <label/>
- <value/>
- </item>
- <item>
- <label>结束</label>
- <value>E</value>
- </item>
- </choices>
- </col>
- <col ref="CUTTIME" type="input"/>
- </datagrid>
- <button id="button2" style="left:240px; top:8px; width:20px; height:20px; background-image:../../images/cal_next_m.gif; ">
- <caption/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- rightClick();
- ]]>
- </script>
- </button>
- <button id="button3" style="left:215px; top:8px; width:20px; height:20px; background-image:../../images/cal_pre_m.gif; ">
- <caption/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- leftClick();
- ]]>
- </script>
- </button>
- <input id="input5" ref="/root/searchData/startTime" inputtype="date" style="left:430px; top:5px; width:100px; height:20px; "/>
- <input id="input6" ref="/root/searchData/endTime" inputtype="date" style="left:540px; top:5px; width:100px; height:20px; "/>
- <caption id="caption1" class="cell" style="left:325px; top:5px; width:100px; height:20px; ">切割时间</caption>
- <button id="button4" style="left:785px; top:5px; width:50px; height:20px; background-color:#ffff00; ">
- <caption>查询</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- find();
- ]]>
- </script>
- </button>
- <button id="button1" style="left:870px; top:5px; width:45px; height:20px; background-color:#999999; ">
- <caption>接收</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- save();
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|