| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382 |
- <?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/>
- <DEVLMT_FR/>
- <DEVLMT_TO/>
- <PLAN_WGT_FR/>
- <PLAN_WGT_TO/>
- <DEVLMT_ALL_YN/>
- <PLAN_WGT_ALL_YN/>
- <PRO_LINE/>
- <ETSTDH_SEQ/>
- <clear_YN>yes</clear_YN>
- </formData>
- <reqData/>
- <resData/>
- <gridData1>
- <EmpListResult_VO>
- </EmpListResult_VO>
- <sendInfo/>
- </gridData1>
- <gridData2>
- <EmpListResult_VO>
- </EmpListResult_VO>
- </gridData2>
- <REC_CNT_SUM/>
- <ORD_CNT_SUM/>
- <ORD_WGT_SUM/>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- datagrid1.fixedcellcheckbox(0,datagrid1.colRef("CHK"))=true;
- datagrid1.colStatus(0)=false;
- datagrid2.fixedcellcheckbox(0,datagrid2.colRef("CHK2"))=true;
- datagrid2.colStatus(0)=false;
-
- //caption3.visible = false;
- //combo1.visible = false;
-
- model.refresh();
- ]]>
- </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 中,仅在需要使用登录用户信息时调用
- //...
- //model.setValue("/root/formData/DEVLMT_FR", commFirstDay());
- //model.setValue("/root/formData/DEVLMT_TO", commCurDate());
- pageInit();
- }
-
- function findCondition()
- {
- /*----------------初始化查询条件开始---------------------------------------- */
- /*commSubmit("UID010010-service","findCondition","glueAction.do"); */
-
- /*----------------初始化查询条件结束---------------------------------------- */
-
- /*----------------初始化设计对象表开始---------------------------------------- */
- //var wthGrp = model.getValue("/root/resData/EmpListResult_VO/EmpListResult_Row/COIL_WTH_GAP");
- //initDatagrid2(wthGrp);
- /*----------------初始化设计对象表开始---------------------------------------- */
-
- /*----------------厂内牌号组初始化开始---------------------------------------- */
- model.removenode("/root/reqData");
- commSubmit("UID010010-service","findSltedStlGrd","glueAction.do");
- errorMessage();
- //model.instances
- model.copyNode("/root/gridData1/EmpListResult_VO","/root/resData/EmpListResult_VO");
-
- if(model.getValue("/root/resData/EmpListResult0_VO/EmpListResult0_Row/DEVLMT_ALL_YN") == "Y")
- {
- model.setValue("/root/formData/DEVLMT_ALL_YN",model.getValue("/root/resData/EmpListResult0_VO/EmpListResult0_Row/DEVLMT_ALL_YN"));
- input1.disabled = true;
- input2.disabled = true;
- }
- if(model.getValue("/root/resData/EmpListResult0_VO/EmpListResult0_Row/PLAN_WGT_ALL_YN") == "Y")
- {
- model.setValue("/root/formData/PLAN_WGT_ALL_YN",model.getValue("/root/resData/EmpListResult0_VO/EmpListResult0_Row/PLAN_WGT_ALL_YN"));
- input3.disabled = true;
- input4.disabled = true;
- }
- model.setValue("/root/formData/DEVLMT_FR",model.getValue("/root/resData/EmpListResult0_VO/EmpListResult0_Row/DEVLMT_FR"));
- model.setValue("/root/formData/DEVLMT_TO",model.getValue("/root/resData/EmpListResult0_VO/EmpListResult0_Row/DEVLMT_TO"));
- model.setValue("/root/formData/PLAN_WGT_FR",model.getValue("/root/resData/EmpListResult0_VO/EmpListResult0_Row/PLAN_WGT_FR"));
- model.setValue("/root/formData/PLAN_WGT_TO",model.getValue("/root/resData/EmpListResult0_VO/EmpListResult0_Row/PLAN_WGT_TO"));
- //model.setValue("/root/formData/COIL_WTH_GAP",model.getValue("/root/resData/EmpListResult0_VO/EmpListResult0_Row/COIL_WTH_GAP"));
- model.setValue("/root/formData/ETSTDH_SEQ",model.getValue("/root/resData/EmpListResult0_VO/EmpListResult0_Row/ETSTDH_SEQ"));
- /*----------------厂内牌号组初始化结束---------------------------------------- */
- model.refresh();
- }
- function initDatagrid2()
- {
- model.removenode("/root/reqData");
-
- var devlmtAllYn = model.getValue("/root/formData/DEVLMT_ALL_YN");
- var planWgtAllYn = model.getValue("/root/formData/PLAN_WGT_ALL_YN");
- //判断选择全部条件的情况
- if(devlmtAllYn == "Y")
- {
- model.makeValue("/root/reqData/DEVLMT_FR","00000000");
- model.makeValue("/root/reqData/DEVLMT_TO","99999999");
- }
- else
- {
- model.makeValue("/root/reqData/DEVLMT_FR",model.getValue("/root/formData/DEVLMT_FR"));
- model.makeValue("/root/reqData/DEVLMT_TO",model.getValue("/root/formData/DEVLMT_TO"));
- }
- if(planWgtAllYn == "Y")
- {
- model.makeValue("/root/reqData/PLAN_WGT_FR","0");
- model.makeValue("/root/reqData/PLAN_WGT_TO","999999999");
- }
- else
- {
- model.makeValue("/root/reqData/PLAN_WGT_FR",model.getValue("/root/formData/PLAN_WGT_FR"));
- model.makeValue("/root/reqData/PLAN_WGT_TO",model.getValue("/root/formData/PLAN_WGT_TO"));
- }
- model.makeValue("/root/reqData/PRO_LINE",model.getValue("/root/formData/PRO_LINE"));//产线
- //model.makeValue("/root/reqData/ETSTDH_SEQ",model.getValue("/root/formData/ETSTDH_SEQ"));
-
- commSubmit("UID010010-service","findOrderByCoilWth","glueAction.do");
-
- errorMessage();
-
- var count = model.getXPathValue("count(/root/resData/EmpListResult_VO/EmpListResult_Row)");
- for(var i = 1; i <= count; i++)
- {
- var F_VAL = model.getValue("/root/resData/EmpListResult_VO/EmpListResult_Row["+i+"]/F_VAL");
- var T_VAL = model.getValue("/root/resData/EmpListResult_VO/EmpListResult_Row["+i+"]/T_VAL");
- var VAL = F_VAL +"~"+ T_VAL;
- model.makeValue("/root/resData/EmpListResult_VO/EmpListResult_Row["+i+"]/VAL",VAL)
- }
- model.copyNode("/root/gridData2/EmpListResult_VO","/root/resData/EmpListResult_VO");
-
- model.setValue("/root/REC_CNT_SUM",model.getXPathValue("sum(/root/gridData2/EmpListResult_VO/EmpListResult_Row/REC_CNT)"));
- model.setValue("/root/ORD_CNT_SUM",model.getXPathValue("sum(/root/gridData2/EmpListResult_VO/EmpListResult_Row/ORD_CNT)"));
- model.setValue("/root/ORD_WGT_SUM",model.getXPathValue("sum(/root/gridData2/EmpListResult_VO/EmpListResult_Row/ORD_WGT)"));
- model.refresh();
-
- }
-
- function pageInit()
- {
- model.removenode("/root/reqData");
- model.removenode("/root/resData");
- model.refresh();
- }
-
- //3、页面标题
- function setTitle()
- {
- return "工序计划 >> 板坯设计 >> 设计对象订单选定标准/提取"; // 如:return "进程管理 >> 订单进程现况查询";
- }
-
- function find()
- {
- }
- ]]>
- </script>
- </model>
- <script type="javascript" src="../../js/boaMsg.js"/>
- <script type="javascript" src="../../js/boaCommon.js"/>
- <script type="javascript" src="../../js/dCommon.js"/>
- </xhtml:head>
- <xhtml:body guideline="2,620;1,980;1,470;1,571;1,671;1,771;">
- <line id="line3" style="x1:0px; y1:30px; x2:980px; y2:30px; "/>
- <line id="line1" style="x1:0px; y1:0px; x2:980px; y2:0px; "/>
- <caption id="caption1" class="cell" style="left:0px; top:5px; width:90px; height:20px; ">交货期</caption>
- <caption id="caption11" style="left:203px; top:8px; width:20px; height:15px; ">~</caption>
- <input id="input1" ref="/root/formData/DEVLMT_TO" editable="false" inputtype="date" style="left:218px; top:5px; width:110px; height:20px; "/>
- <input id="input2" ref="/root/formData/DEVLMT_FR" editable="false" inputtype="date" style="left:92px; top:5px; width:110px; height:20px; "/>
- <caption id="caption2" style="left:203px; top:40px; width:20px; height:15px; ">~</caption>
- <input id="input3" ref="/root/formData/PLAN_WGT_FR" format="999999999" style="left:92px; top:35px; width:108px; height:20px; border-color:#000000; "/>
- <input id="input4" ref="/root/formData/PLAN_WGT_TO" format="999999999" style="left:218px; top:35px; width:110px; height:20px; "/>
- <caption id="caption8" class="cell" style="left:0px; top:35px; width:90px; height:20px; text-align:center; border-color:#000000; border-style:solid; ">待设计量</caption>
- <select id="checkbox1" ref="/root/formData/DEVLMT_ALL_YN" class="cell" overflow="visible" appearance="full" style="left:330px; top:5px; width:50px; height:20px; text-align:center; background-color:#e4ecf5; border-color:#000000; border-style:solid; ">
- <choices>
- <item>
- <label>全部</label>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(model.getValue("/root/formData/DEVLMT_ALL_YN") == "Y")
- {
- input1.disabled = true;
- input2.disabled = true;
- }
- else
- {
- input1.disabled = false;
- input2.disabled = false;
- }
-
- ]]>
- </script>
- </select>
- <select id="checkbox2" ref="/root/formData/PLAN_WGT_ALL_YN" class="cell" overflow="visible" appearance="full" style="left:330px; top:35px; width:50px; height:20px; text-align:center; background-color:#e4ecf5; border-color:#000000; border-style:solid; ">
- <choices>
- <item>
- <label>全部</label>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(model.getValue("/root/formData/PLAN_WGT_ALL_YN") == "Y")
- {
- input3.disabled = true;
- input4.disabled = true;
- }
- else
- {
- input3.disabled = false;
- input4.disabled = false;
- }
- ]]>
- </script>
- </select>
- <caption id="caption3" class="cell" style="left:390px; top:35px; width:60px; height:20px; text-align:center; border-color:#000000; border-style:solid; ">产线</caption>
- <select1 id="combo1" ref="/root/formData/PRO_LINE" appearance="minimal" style="left:452px; top:35px; width:103px; height:20px; ">
- <choices>
- <item>
- <label>全部</label>
- <value/>
- </item>
- <item>
- <label>热轧</label>
- <value>R</value>
- </item>
- <item>
- <label>酸轧</label>
- <value>C</value>
- </item>
- <item>
- <label>连退</label>
- <value>L</value>
- </item>
- </choices>
- </select1>
- <datagrid id="datagrid1" nodeset="/root/gridData1/EmpListResult_VO/EmpListResult_Row" backcoloralternate="#f7f9f9" caption="选择^厂内牌号组^厂内牌号组|选择^组代码^组名称" colsep="^" colwidth="60, 125, 113, 100" defaultrows="30" extendlastcol="false" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:65px; width:300px; height:555px; ">
- <col ref="CHK" type="checkbox"/>
- <col ref="SLTED_STL_GRP" style="text-align:left; padding-left:2; "/>
- <col ref="SM_CFNM" style="text-align:left; padding-left:2; "/>
- <col ref="RN" visibility="hidden"/>
- </datagrid>
- <datagrid id="datagrid2" nodeset="/root/gridData2/EmpListResult_VO/EmpListResult_Row" backcoloralternate="#f7f9f9" caption="选择^钢卷宽度^设计对象^设计对象^设计对象^交货期^交货期|选择^钢卷宽度^订单数^订单块数^订单量^最早^最晚" colsep="^" colwidth="60, 106, 100, 100, 100, 106, 102, 100" defaultrows="30" mergecellsfixedrows="bycolrec" rowsep="|" style="left:305px; top:65px; width:675px; height:535px; ">
- <col ref="CHK2" type="checkbox"/>
- <col ref="VAL"/>
- <col ref="REC_CNT" format="#,###" style="text-align:right; padding-right:2; "/>
- <col ref="ORD_CNT" format="#,###" style="text-align:right; padding-right:2; "/>
- <col ref="ORD_WGT" format="#,###" style="text-align:right; padding-right:2; "/>
- <col ref="F_DATE" format="yyyy-mm-dd"/>
- <col ref="T_DATE" format="yyyy-mm-dd"/>
- <col ref="F_VAL" visibility="hidden"/>
- <col ref="T_VAL" visibility="hidden"/>
- <col ref="MIN_WGT" visibility="hidden"/>
- <col ref="MAX_WGT" visibility="hidden"/>
- </datagrid>
- <line id="line2" style="x1:0px; y1:60px; x2:980px; y2:60px; "/>
- <button id="button15" style="left:685px; top:5px; width:70px; height:20px; text-align:right; background-image:../../images/create.gif; ">
- <caption>条件查询</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- findCondition();
- ]]>
- </script>
- </button>
- <button id="button5" style="left:835px; top:5px; width:70px; height:20px; text-align:right; background-image:../../images/create.gif; ">
- <caption>对象查询</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- initDatagrid2();
- ]]>
- </script>
- </button>
- <button id="button6" style="left:760px; top:5px; width:70px; height:20px; text-align:right; background-image:../../images/create.gif; ">
- <caption>条件保存</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- //条件保存
- var count = model.getXPathValue("count(/root/gridData1/EmpListResult_VO/EmpListResult_Row)");
- for(var i = 1; i <= count; i++)
- {
- var CHK = model.getValue("/root/gridData1/EmpListResult_VO/EmpListResult_Row["+i+"]/CHK");
- if(CHK == "true")
- {
- model.makeNode("/root/gridData1/sendInfo");
- model.duplicate("/root/gridData1/sendInfo","/root/gridData1/EmpListResult_VO/EmpListResult_Row["+i+"]");
- }
- }
- commSendReq("/root/gridData1/sendInfo");
-
- model.makeValue("/root/reqData/COIL_WTH_GAP",model.getValue("/root/formData/COIL_WTH_GAP"));//钢卷宽度间隔
- model.makeValue("/root/reqData/DEVLMT_FR",model.getValue("/root/formData/DEVLMT_FR"));
- model.makeValue("/root/reqData/DEVLMT_TO",model.getValue("/root/formData/DEVLMT_TO"));
- model.makeValue("/root/reqData/PLAN_WGT_FR",model.getValue("/root/formData/PLAN_WGT_FR"));
- model.makeValue("/root/reqData/PLAN_WGT_TO",model.getValue("/root/formData/PLAN_WGT_TO"));
-
- model.makeValue("/root/reqData/DEVLMT_ALL_YN",model.getValue("/root/formData/DEVLMT_ALL_YN"));
- model.makeValue("/root/reqData/PLAN_WGT_ALL_YN",model.getValue("/root/formData/PLAN_WGT_ALL_YN"));
-
- model.makeValue("/root/reqData/REGED_BY_CD",model.getValue("/root/initData/rcvInfo/REG_ID"));//录入人
- model.makeValue("/root/reqData/CHGED_BY_CD",model.getValue("/root/initData/rcvInfo/REG_ID"));//修改人
-
- commSubmit("UID010010-service","saveSltedStlGrd","glueAction.do");
- errorMessage();
- model.removenode("/root/gridData1/sendInfo");
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="button7" style="left:910px; top:5px; width:70px; height:20px; text-align:right; background-image:../../images/create.gif; ">
- <caption>对象提取</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- model.removenode("/root/gridData/sendInfo");
- var clear_YN = model.getValue("/root/formData/clear_YN")
- var count = model.getXPathValue("count(/root/gridData2/EmpListResult_VO/EmpListResult_Row)");
- for(var i = 1; i <= count; i++)
- {
- var CHK = model.getValue("/root/gridData2/EmpListResult_VO/EmpListResult_Row["+i+"]/CHK2");
- if(CHK == "true")
- {
- model.makeNode("/root/gridData/sendInfo");
- model.duplicate("/root/gridData/sendInfo","/root/gridData2/EmpListResult_VO/EmpListResult_Row["+i+"]");
- }
- }
-
- commSendReq("/root/gridData/sendInfo");
- model.makeValue("/root/reqData/clear_YN",clear_YN);
- //commSendReq("/root/formData/clear_YN");
-
- commSubmit("UID010010-service","saveOrderDNObj","glueAction.do");
- ]]>
- </script>
- </button>
- <caption id="caption22" ref="/root/ORD_CNT_SUM" style="left:571px; top:600px; width:100px; height:20px; text-align:right; border-color:#000000; border-style:solid; "/>
- <caption id="caption12" ref="/root/REC_CNT_SUM" style="left:471px; top:600px; width:100px; height:20px; text-align:right; border-color:#000000; border-style:solid; "/>
- <caption id="caption7" class="cell" style="left:305px; top:600px; width:85px; height:20px; text-align:center; background-color:#ffcc99; border-color:#000000; border-style:solid; ">统计:</caption>
- <caption id="caption4" ref="/root/ORD_WGT_SUM" style="left:671px; top:600px; width:100px; height:20px; text-align:right; border-color:#000000; border-style:solid; "/>
- <select id="checkbox3" ref="/root/formData/clear_YN" overflow="visible" appearance="full" style="left:865px; top:35px; width:115px; height:20px; text-align:center; background-color:#e4ecf5; border-color:#000000; border-style:solid; ">
- <choices>
- <item>
- <label>清空前一批计划</label>
- <value>yes</value>
- </item>
- </choices>
- </select>
- </xhtml:body>
- </xhtml:html>
|