| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162 |
- <?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>Untitle</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <formData>
- <searchInfo>
- <CHK/>
- <GRAVITY/>
- <SLAB_THK/>
- <SLAB_WTH/>
- <SLAB_LEN_SMIN/>
- <SLAB_LEN_SMAX/>
- <SLAB_LEN_LMIN/>
- <SLAB_LEN_LMAX/>
- </searchInfo>
- <proName>
- <item>
- <label/>
- <value/>
- </item>
- </proName>
- <STL_GRD>
- <item>
- <label/>
- <value/>
- </item>
- </STL_GRD>
- </formData>
- <reqData>
- </reqData>
- <resData/>
- <gridData>
- <record>
- <EmpListResult_Row>
- <CHK/>
- <GRAVITY>
- </GRAVITY>
- <SLAB_THK/>
- <SLAB_WTH/>
- <SLAB_LEN_SMIN/>
- <SLAB_LEN_SMAX/>
- <SLAB_WGT_SMIN/>
- <SLAB_WGT_SMAX/>
- <SLAB_LEN_LMIN/>
- <SLAB_LEN_LMAX/>
- <SLAB_WGT_LMIN/>
- <SLAB_WGT_LMAX/>
- </EmpListResult_Row>
- </record>
- </gridData>
- </root>
- </instance>
- <bind id="TYPE-1-WGT-MIN" ref="/root/gridData/record/EmpListResult_Row/SLAB_WGT_SMIN" calculate="../SLAB_LEN_SMIN * ../SLAB_THK * ../SLAB_WTH * ../GRAVITY * 1000 div 1000000000"/>
- <bind id="TYPE-1-WGT-MAX" ref="/root/gridData/record/EmpListResult_Row/SLAB_WGT_SMAX" calculate="( ../SLAB_LEN_SMAX * ../SLAB_THK * ../SLAB_WTH * ../GRAVITY) * 1000 div 1000000000"/>
- <bind id="TYPE-2-WGT-MIN" ref="/root/gridData/record/EmpListResult_Row/SLAB_WGT_LMIN" calculate="(../SLAB_LEN_LMIN * ../SLAB_THK * ../SLAB_WTH * ../GRAVITY) * 1000 div 1000000000"/>
- <bind id="TYPE-2-WGT-MAX" ref="/root/gridData/record/EmpListResult_Row/SLAB_WGT_LMAX" calculate="(../SLAB_LEN_LMAX * ../SLAB_THK * ../SLAB_WTH * ../GRAVITY) * 1000 div 1000000000"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- datagrid1.removeRow();
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- //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 中,仅在需要使用登录用户信息时调用
- //...
- }
-
- //3、页面标题
- function setTitle()
- {
- return "工序计划 >> 板坯设计 >> 板坯单重标准管理"; // 如:return "进程管理 >> 订单进程现况查询";
- }
-
- function find()
- {
- datagrid1.fixedcellischeck(2,0)=false;
- model.removenode("/root/reqData");
- commSubmit("UID010025-service","find","glueAction.do");
- errorMessage();
- model.copyNode("/root/gridData/record","/root/resData/EmpListResult_VO");
- model.removenode("/root/resData/EmpListResult_VO");
- model.refresh();
- }
-
- // 保存按键
- function save()
- {
- model.removenode("/root/gridData/sendInfo");
- model.makeNode("/root/gridData/sendInfo");
- var count = model.getXPathValue("count(/root/gridData/record/EmpListResult_Row)");
- var j = 0;
- for(var i = 1; i<=count; i++)
- {
- var CHK = model.getValue("/root/gridData/record/EmpListResult_Row["+i+"]/CHK");
- if(CHK == 'true')
- {
- model.duplicate("/root/gridData/sendInfo","/root/gridData/record/EmpListResult_Row["+i+"]")
- }
- else
- {
- j++;
- }
- }
- if(j == count)
- {
- window.alert(" 请选择需要保存或者已经修改的板坏重量标准进行该操作! "," 提示信息 ");
- return;
- }
-
- commSendReq("/root/gridData/sendInfo");
- commSubmit("UID010025-service","save","glueAction.do");
- errorMessage();
- model.copyNode("/root/gridData/record","/root/resData/EmpListResult_VO");
- model.refresh();
- }
- ]]>
- </script>
- </model>
- <script type="javascript" src="../../js/boaCommon.js"/>
- <script type="javascript" src="../../js/boaMsg.js"/>
- <script type="javascript" src="../../js/dCommon.js"/>
- </xhtml:head>
- <xhtml:body guideline="1,980;2,620;">
- <line id="line2" style="x1:1px; y1:0px; x2:980px; y2:0px; "/>
- <datagrid id="datagrid1" nodeset="/root/gridData/record/EmpListResult_Row" caption="选择^热轧钢卷比重^板坯厚度^板坯宽度^板坯(型号1)^板坯(型号1)^板坯(型号1)^板坯(型号1)^板坯(型号2)^板坯(型号2)^板坯(型号2)^板坯(型号2)|选择^热轧钢卷比重^板坯厚度^板坯宽度^长度(最小)^长度(最大)^重量(最小)^重量(最大)^长度(最小)^长度(最大)^重量(最小)^重量(最大)" colsep="^" colwidth="73, 90, 76, 82, 86, 82, 85, 82, 73, 75, 77, 98, 100, 100, 100" defaultrows="30" explorerbar="sort" mergecellsfixedrows="bycolrec" rowsep="|" style="left:1px; top:5px; width:979px; height:615px; border-color:#000000; ">
- <col ref="CHK" type="checkbox"/>
- <col ref="GRAVITY" type="input" format="#,###.0" style="text-align:right; background-color:#ffff99; "/>
- <col ref="SLAB_THK" type="input" format="#,###" style="text-align:right; background-color:#ffff99; "/>
- <col ref="SLAB_WTH" type="input" format="#,###" style="text-align:right; background-color:#ffff99; "/>
- <col ref="SLAB_LEN_SMIN" type="input" format="#,###" style="text-align:right; background-color:#ffff99; "/>
- <col ref="SLAB_LEN_SMAX" type="input" format="#,###" style="text-align:right; background-color:#ffff99; "/>
- <col editable="true" ref="SLAB_WGT_SMIN" type="output" format="#,###" roundmode="round" roundposition="-3" style="text-align:right; "/>
- <col ref="SLAB_WGT_SMAX" type="output" format="#,###" roundmode="round" roundposition="-3" style="text-align:right; "/>
- <col ref="SLAB_LEN_LMIN" type="input" format="#,###" style="text-align:right; background-color:#ffff99; "/>
- <col ref="SLAB_LEN_LMAX" type="input" format="#,###" style="text-align:right; background-color:#ffff99; "/>
- <col ref="SLAB_WGT_LMIN" type="output" format="#,###" roundmode="round" roundposition="-3" style="text-align:right; "/>
- <col ref="SLAB_WGT_LMAX" type="output" format="#,###" roundmode="round" roundposition="-3" style="text-align:right; "/>
- </datagrid>
- </xhtml:body>
- </xhtml:html>
|