| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525 |
- <?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="">
- <initData>
- <searchInfo>
- <LG_CD>A01004</LG_CD>
- </searchInfo>
- <LG_CD>A01004</LG_CD>
- </initData>
- <formData>
- <COIL_WTH_FR/>
- <COIL_WTH_TO/>
- <proDay>10</proDay>
- <mod_yn/>
- <ORD_NO_CON/>
- <ORD_SEQ_CON/>
- <RCVORD_TP_CON/>
- <SPEC_STL_GRD_CON/>
- <ORD_REG_DTIME_FR/>
- <ORD_REG_DTIME_TO/>
- <CUST_NM_CON/>
- <to_plan_date/>
- <DLIV_TP_CO/>
- <PRODNM_CD/>
- <ord_proDay>12</ord_proDay>
- <ORD_PLAN_DATE_FR>00000000</ORD_PLAN_DATE_FR>
- <ORD_PLAN_DATE_TO>99999999</ORD_PLAN_DATE_TO>
- <CHE_VALUE/>
- <PRODLINE/>
- <TORDTHK/>
- </formData>
- <reqData>
- </reqData>
- <resData/>
- <gridData1>
- <EmpListResult_VO>
- </EmpListResult_VO>
- </gridData1>
- <gridData2>
- <EmpListResult2_VO/>
- </gridData2>
- <corde>
- <countOrd/>
- <sumOrd/>
- <max_to_plan_date/>
- </corde>
- <total/>
- <codeData/>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- datagrid1.fixedcellcheckbox(0,datagrid1.colRef("CHK"))=true;
- datagrid1.colStatus(0)=false;
-
- commSendReq("/root/initData");
- commSubmit("UIGCOMMCODE-service","find","glueAction.do");
- model.copyNode("/root/codeData","/root/resData");
- model.refresh();
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- //1、获取用户登录信息,只能在页面初始化函数中调用
- var totwgt = 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));
-
-
- }
-
- //2. 页面初始化函数(必须)
- function Init(node)
- {
- InitParams(node); // 用于设置节点:/root/initData/rcvInfo,获取用户登录信息
- // 在程序中会重建该节点,最好不要重名
- // 函数 InitParams 在 mesCommon.js 中,仅在需要使用登录用户信息时调用
- //...
- }
-
- //3、页面标题
- function setTitle()
- {
- return "工序计划 >> 订单预排期确认 >> 订单预排期确认"; // 如:return "进程管理 >> 订单进程现况查询";
- }
-
- //4. 页面按键动作
- // 查询按键
- function find()
- {
- model.removenode("/root/reqData");
- model.makeNode("/root/reqData");
-
- model.makeValue("/root/reqData/ORD_NO_CON",model.getValue("/root/formData/ORD_NO_CON"));
- model.makeValue("/root/reqData/ORD_SEQ_CON",model.getValue("/root/formData/ORD_SEQ_CON"));
- model.makeValue("/root/reqData/COIL_WTH_FR",model.getValue("/root/formData/COIL_WTH_FR"));
- model.makeValue("/root/reqData/COIL_WTH_TO",model.getValue("/root/formData/COIL_WTH_TO"));
- model.makeValue("/root/reqData/RCVORD_TP_CON",model.getValue("/root/formData/RCVORD_TP_CON"));
- model.makeValue("/root/reqData/SPEC_STL_GRD_CON",model.getValue("/root/formData/SPEC_STL_GRD_CON"));
- model.makeValue("/root/reqData/CUST_NM_CON",model.getValue("/root/formData/CUST_NM_CON"));
- model.makeValue("/root/reqData/ORD_REG_DTIME_FR",model.getValue("/root/formData/ORD_REG_DTIME_FR"));
- model.makeValue("/root/reqData/ORD_REG_DTIME_TO",model.getValue("/root/formData/ORD_REG_DTIME_TO"));
- model.makeValue("/root/reqData/DLIV_TP_CO",model.getValue("/root/formData/DLIV_TP_CO"));
- model.makeValue("/root/reqData/PRODNM_CD",model.getValue("/root/formData/PRODNM_CD"));
-
- model.makeValue("/root/reqData/ORD_PLAN_DATE_FR",model.getValue("/root/formData/ORD_PLAN_DATE_FR"));
- model.makeValue("/root/reqData/ORD_PLAN_DATE_TO",model.getValue("/root/formData/ORD_PLAN_DATE_TO"));
- model.makeValue("/root/reqData/PRODLINE",model.getValue("/root/formData/PRODLINE"));
- model.makeValue("/root/reqData/TORDTHK",model.getValue("/root/formData/TORDTHK"));
-
- commSubmit("UID060010-service","findOrderForPlanDate","glueAction.do");
- errorMessage();
- model.copyNode("/root/gridData2/EmpListResult2_VO","/root/resData/EmpListResult2_VO");
- model.copyNode("/root/gridData1/EmpListResult_VO","/root/resData/EmpListResult_VO");
- model.setXPathValue("/root/corde/max_to_plan_date","/root/resData/EmpListResult3_VO/EmpListResult3_Row/MAX_ORD_PLAN_DATA");
- model.removenode("/root/resData/EmpListResult_VO");
- model.removenode("/root/resData/EmpListResult2_VO");
- calculateSummary();
- totwgt = 0;
- input11.value = totwgt;
- model.refresh();
- }
- function excelExport() {
- return datagrid1;
- }
- function calculateSummary()
- {
- model.setXPathValue("/root/corde/countOrd" ,"count(/root/gridData1/EmpListResult_VO/EmpListResult_Row)");
- model.setXPathValue("/root/corde/sumOrd" ,"sum(/root/gridData1/EmpListResult_VO/EmpListResult_Row/ORD_WGT )");
- }
- // 保存按键
- function save()
- {
- commSendReq("/root/gridData1/EmpListResult_VO");
-
- model.makeValue("/root/reqData/ORD_NO_CON",model.getValue("/root/formData/ORD_NO_CON"));
- model.makeValue("/root/reqData/ORD_SEQ_CON",model.getValue("/root/formData/ORD_SEQ_CON"));
- model.makeValue("/root/reqData/COIL_WTH_FR",model.getValue("/root/formData/COIL_WTH_FR"));
- model.makeValue("/root/reqData/COIL_WTH_TO",model.getValue("/root/formData/COIL_WTH_TO"));
- model.makeValue("/root/reqData/RCVORD_TP_CON",model.getValue("/root/formData/RCVORD_TP_CON"));
- model.makeValue("/root/reqData/SPEC_STL_GRD_CON",model.getValue("/root/formData/SPEC_STL_GRD_CON"));
- model.makeValue("/root/reqData/CUST_NM_CON",model.getValue("/root/formData/CUST_NM_CON"));
- model.makeValue("/root/reqData/ORD_REG_DTIME_FR",model.getValue("/root/formData/ORD_REG_DTIME_FR"));
- model.makeValue("/root/reqData/ORD_REG_DTIME_TO",model.getValue("/root/formData/ORD_REG_DTIME_TO"));
- model.makeValue("/root/reqData/DLIV_TP_CO",model.getValue("/root/formData/DLIV_TP_CO"));
- model.makeValue("/root/reqData/PRODNM_CD",model.getValue("/root/formData/PRODNM_CD"));
- //model.removenode("/root/gridData1/sendInfo");
- //model.makeNode("/root/gridData1/sendInfo");
- //model.copyNode("/root/gridData1/sendInfo","/root/gridData1/EmpListResult_VO")
-
- commSubmit("UID060010-service","saveOrderForPlanDate","glueAction.do");
- errorMessage();
- window.alert(" 保存成功! "," 提示信息 ");
- //find();
- model.refresh();
- }
- // 新增按键
- function create()
- {
- }
- // 删除按键
- function remove()
- {
-
- }
-
- function getDEVLMTDate(planDate,ldate)
- {
- var mont = (Number(planDate.substr(4,2))-1)+""
- if(mont.length == 1)
- {
- mont = "0" + mont;
- }
- ldate =(typeof ldate == 'string')? Number(ldate) : ldate;
- var curDate = "";
- var d = new Date(planDate.substr(0,4),mont,planDate.substr(6,2));
-
- d.setDate(d.getDate() + ldate);
- var monString = (d.getMonth()+1)+"";
- var dateString = d.getDate()+"";
- if(monString.length == 1)
- {
- monString = "0" + monString;
- }
- if(dateString.length == 1)
- {
- dateString = "0"+ dateString;
- }
- curDate += d.getYear();
- curDate += monString;
- curDate += dateString;
-
- return curDate;
- }
- ]]>
- </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 overflow="hidden" guideline="1,979;2,619;">
- <datagrid id="datagrid2" nodeset="/root/gridData2/EmpListResult2_VO/EmpListResult2_Row" caption="待设计量^炼钢计划量^板坯库存订单量^合计" colwidth="112, 108, 124, 129" defaultrows="1" extendlastcol="false" mergecellsfixedrows="bycolrec" rowsep="|" colsep="^" style="left:0px; top:106px; width:979px; height:44px; ">
- <col ref="NEED_WGT" format="#,###" style="text-align:right; "/>
- <col ref="CHARGE_WGT" format="#,###" style="text-align:right; "/>
- <col ref="KC_WGT" format="#,###" style="text-align:right; "/>
- <col ref="ALLWGT" format="#,###" style="text-align:right; "/>
- </datagrid>
- <line id="line2" style="x1:0px; y1:30px; x2:979px; y2:30px; "/>
- <line id="line3" style="x1:0px; y1:60px; x2:980px; y2:60px; "/>
- <datagrid id="datagrid1" nodeset="/root/gridData1/EmpListResult_VO/EmpListResult_Row" scroll="both" backcoloralternate="#f7f9f9" caption="选择^合同单位^合同号^订单号^订单类型^产线^预排时间^热轧交货期^订单交货期^产品类型^热轧标准牌号^订单牌号^订单量^产品重量^产品重量^品质设计建议规格^品质设计建议规格^成品规格^成品规格^申报人^申报时间^运输方式^订单备注^客户特殊要求^销售区域|选择^合同单位^合同号^订单号^订单类型^产线^预排时间^热轧交货期^订单交货期^产品类型^热轧标准牌号^订单牌号^订单量^下限^上限^厚度^宽度^厚度^宽度^申报人^申报时间^运输方式^订单备注^客户特殊要求^销售区域" colwidth="67, 81, 90, 43, 89, 73, 82, 82, 81, 100, 80, 100, 74, 52, 55, 59, 54, 43, 43, 60, 62, 100, 89, 87, 100" explorerbar="sort" frozencols="3" mergecellsfixedrows="bycolrec" rowsep="|" colsep="^" style="left:0px; top:165px; width:980px; height:425px; border-style:solid; border-right-style:sunken; ">
- <col ref="CHK" type="checkbox" checkvalue="Y,N"/>
- <col ref="CUST_NM" type="input" editable="false"/>
- <col ref="ORD_NO" type="input" editable="false"/>
- <col ref="ORD_SEQ" type="input" editable="false"/>
- <col ref="SM_CFNM" type="input" editable="false"/>
- <col ref="PROD_LINE" type="input" editable="false"/>
- <col ref="ORD_PLAN_DATA" type="inputdate" format="yyyy-mm-dd" style="background-color:#ffff99; "/>
- <col ref="H_ORD_DEVLMT_DATE" type="input" format="yyyy-mm-dd" editable="false"/>
- <col ref="ORD_DEVLMT_DATE" type="input" format="yyyy-mm-dd" editable="false"/>
- <col ref="PRDNM_CD" type="input" editable="false"/>
- <col ref="H_SPEC_STL_GRD" type="input" editable="false"/>
- <col ref="SPEC_STL_GRD" type="input" editable="false"/>
- <col ref="ORD_WGT" type="input" format="#,###" editable="false" style="text-align:right; "/>
- <col ref="PROD_WGT_MIN" type="input" format="#,###" editable="false" style="text-align:right; "/>
- <col ref="PROD_WGT_MAX" type="input" format="#,###" editable="false" style="text-align:right; "/>
- <col ref="H_THK_AIM" type="input" editable="false" style="text-align:right; "/>
- <col ref="H_WTH_AIM" type="input" editable="false" style="text-align:right; "/>
- <col ref="ORD_THK" type="input" editable="false" style="text-align:right; "/>
- <col ref="ORD_WTH" type="input" editable="false" style="text-align:right; "/>
- <col ref="ORD_REGBY_CD" type="input" editable="false"/>
- <col ref="ORD_REG_DTIME" type="input" format="yyyy-mm-dd" editable="false"/>
- <col ref="DLIV_TP" type="combo" editable="false">
- <choices>
- <item>
- <label>公路(车辆)</label>
- <value>C</value>
- </item>
- <item>
- <label>铁路(火车)</label>
- <value>T</value>
- </item>
- </choices>
- </col>
- <col ref="MK_CONTENT" type="input" editable="false"/>
- <col ref="INGR_YN" type="input" editable="false"/>
- <col ref="XSQY" type="input" editable="false"/>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var planDate = datagrid1.valueMatrix(datagrid1.row,datagrid1.colRef("ORD_PLAN_DATA"));
- var devlmtDate = getDEVLMTDate(planDate,model.getValue("/root/formData/proDay"))
- if(datagrid1.valueMatrix(datagrid1.row,datagrid1.colRef("PROD_LINE")) == "H")
- {
- datagrid1.valueMatrix(datagrid1.row,datagrid1.colRef("ORD_DEVLMT_DATE")) = devlmtDate;
- datagrid1.valueMatrix(datagrid1.row,datagrid1.colRef("H_ORD_DEVLMT_DATE")) = devlmtDate;
- }
- else
- {
- datagrid1.valueMatrix(datagrid1.row,datagrid1.colRef("H_ORD_DEVLMT_DATE")) = devlmtDate;
- datagrid1.valueMatrix(datagrid1.row,datagrid1.colRef("ORD_DEVLMT_DATE")) = getDEVLMTDate(devlmtDate,model.getValue("/root/formData/ord_proDay"));
- }
-
-
- model.refresh();
- if(datagrid1.colRef("CHK") == datagrid1.col) {
- (datagrid1.valueMatrix(datagrid1.row,datagrid1.colRef("CHK")) == "Y") ? totwgt += Number(datagrid1.valueMatrix(datagrid1.row,datagrid1.colRef("ORD_WGT"))) : totwgt -= Number(datagrid1.valueMatrix(datagrid1.row,datagrid1.colRef("ORD_WGT")));
- input11.value = totwgt;
- }
- ]]>
- </script>
- </datagrid>
- <line id="line1" style="x1:0px; y1:0px; x2:979px; y2:0px; "/>
- <caption id="caption7" class="cell" style="left:0px; top:5px; width:70px; height:20px; text-align:center; vertical-align:middle; border-color:#000000; border-style:solid; ">订单号</caption>
- <input id="input3" ref="/root/formData/ORD_NO_CON" maxlength="12" style="left:71px; top:5px; width:80px; height:20px; "/>
- <input id="input4" ref="/root/formData/ORD_SEQ_CON" maxlength="3" style="left:153px; top:5px; width:30px; height:20px; "/>
- <input id="input8" ref="/root/formData/COIL_WTH_FR" style="left:257px; top:5px; width:64px; height:20px; "/>
- <input id="input9" ref="/root/formData/COIL_WTH_TO" style="left:334px; top:5px; width:64px; height:20px; "/>
- <caption id="caption17" class="cell" style="left:185px; top:5px; width:70px; height:20px; text-align:center; vertical-align:middle; border-color:#000000; border-style:solid; ">钢卷宽度</caption>
- <caption id="caption18" style="left:321px; top:10px; width:20px; height:15px; ">~</caption>
- <caption id="caption19" class="cell" style="left:400px; top:5px; width:70px; height:20px; text-align:center; vertical-align:middle; border-color:#000000; border-style:solid; ">订单类型</caption>
- <caption id="caption14" class="cell" style="left:584px; top:5px; width:70px; height:20px; text-align:center; vertical-align:middle; border-color:#000000; border-style:solid; ">标准牌号</caption>
- <input id="input5" ref="/root/formData/SPEC_STL_GRD_CON" style="left:658px; top:5px; width:100px; height:20px; "/>
- <caption id="caption1" class="cell" style="left:0px; top:35px; width:95px; height:20px; text-align:center; vertical-align:middle; border-color:#000000; border-style:solid; ">合同单位</caption>
- <input id="input1" ref="/root/formData/CUST_NM_CON" style="left:98px; top:35px; width:104px; height:20px; "/>
- <caption id="caption2" class="cell" style="left:204px; top:35px; width:90px; height:20px; text-align:center; vertical-align:middle; border-color:#000000; border-style:solid; ">订单申报时间</caption>
- <caption id="caption20" style="left:394px; top:40px; width:20px; height:15px; ">~</caption>
- <input id="input2" ref="/root/formData/ORD_REG_DTIME_TO" inputtype="date" editable="false" style="left:406px; top:35px; width:100px; height:20px; "/>
- <input id="input6" ref="/root/formData/ORD_REG_DTIME_FR" inputtype="date" editable="false" style="left:296px; top:35px; width:100px; height:20px; "/>
- <caption id="caption3" class="cell" style="left:659px; top:595px; width:70px; height:20px; text-align:center; vertical-align:middle; border-color:#000000; border-style:solid; ">热轧生产期</caption>
- <input id="input7" ref="/root/formData/proDay" disabled="false" style="left:731px; top:595px; width:38px; height:20px; text-align:right; "/>
- <caption id="caption4" style="left:912px; top:596px; width:20px; height:20px; ">天</caption>
- <select id="checkbox1" ref="/root/formData/mod_yn" disabled="false" overflow="visible" appearance="full" style="left:929px; top:595px; width:50px; height:20px; color:#000000; background-color:#ccffff; border-color:#800000; border-style:solid; ">
- <choices>
- <item>
- <label>修改</label>
- <value>mod</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(model.getValue("/root/formData/mod_yn") == "mod")
- {
- input7.disabled = false;
- input12.disabled = false;
- }
- else
- {
- input7.disabled = true;
- input12.disabled = true;
- }
- ]]>
- </script>
- </select>
- <input id="input10" ref="/root/formData/to_plan_date" inputtype="date" editable="false" style="left:592px; top:120px; width:100px; height:20px; background-color:#ffff99; "/>
- <caption id="caption5" class="cell" style="left:510px; top:120px; width:80px; height:20px; text-align:center; vertical-align:middle; border-color:#000000; border-style:solid; ">预排时间</caption>
- <button id="button1" style="left:694px; top:120px; width:49px; height:20px; background-color:#99ccff; border-color:#000000; border-style:solid; ">
- <caption>确认</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var planDate = model.getValue("/root/formData/to_plan_date");
- var devlmtDate = getDEVLMTDate(planDate,model.getValue("/root/formData/proDay"));
-
- 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");
- var product_line = model.getValue("/root/gridData1/EmpListResult_VO/EmpListResult_Row["+(i)+"]/PROD_LINE");
- if(chk == 'Y')
- {
- if(product_line == 'H'){
- model.setValue("/root/gridData1/EmpListResult_VO/EmpListResult_Row["+(i)+"]/ORD_PLAN_DATA", planDate);
- model.setValue("/root/gridData1/EmpListResult_VO/EmpListResult_Row["+(i)+"]/ORD_DEVLMT_DATE", devlmtDate);
- model.setValue("/root/gridData1/EmpListResult_VO/EmpListResult_Row["+(i)+"]/H_ORD_DEVLMT_DATE",'');
- }else if(product_line == 'C'){
- model.setValue("/root/gridData1/EmpListResult_VO/EmpListResult_Row["+(i)+"]/ORD_PLAN_DATA", planDate);
- model.setValue("/root/gridData1/EmpListResult_VO/EmpListResult_Row["+(i)+"]/H_ORD_DEVLMT_DATE", getDEVLMTDate(planDate,model.getValue("/root/formData/proDay")));
- model.setValue("/root/gridData1/EmpListResult_VO/EmpListResult_Row["+(i)+"]/ORD_DEVLMT_DATE", getDEVLMTDate(getDEVLMTDate(planDate,model.getValue("/root/formData/proDay")),model.getValue("/root/formData/ord_proDay")));
- }else if(product_line == 'L'){
- model.setValue("/root/gridData1/EmpListResult_VO/EmpListResult_Row["+(i)+"]/ORD_PLAN_DATA", planDate);
- model.setValue("/root/gridData1/EmpListResult_VO/EmpListResult_Row["+(i)+"]/H_ORD_DEVLMT_DATE", getDEVLMTDate(planDate,model.getValue("/root/formData/proDay")));
- model.setValue("/root/gridData1/EmpListResult_VO/EmpListResult_Row["+(i)+"]/ORD_DEVLMT_DATE", getDEVLMTDate(getDEVLMTDate(planDate,model.getValue("/root/formData/proDay")),model.getValue("/root/formData/ord_proDay")));
- }else if(product_line == 'K'){
- model.setValue("/root/gridData1/EmpListResult_VO/EmpListResult_Row["+(i)+"]/ORD_PLAN_DATA", planDate);
- model.setValue("/root/gridData1/EmpListResult_VO/EmpListResult_Row["+(i)+"]/ORD_DEVLMT_DATE", devlmtDate);
- }
-
- }
- }
- model.refresh();
- ]]>
- </script>
- </button>
- <line id="line4" style="x1:0px; y1:155px; x2:980px; y2:155px; "/>
- <caption id="caption6" class="cell" style="left:0px; top:595px; width:50px; height:20px; text-align:center; background-color:#ffcc99; border-color:#000000; border-style:solid; ">统计:</caption>
- <caption id="caption8" class="cell" style="left:55px; top:595px; width:80px; height:20px; text-align:center; border-color:#000000; border-style:solid; ">订单数量</caption>
- <caption id="caption9" ref="/root/corde/countOrd" format="#,###" style="left:137px; top:595px; width:100px; height:20px; text-align:right; border-color:#000000; border-style:solid; "/>
- <caption id="caption10" class="cell" style="left:243px; top:595px; width:80px; height:20px; text-align:center; border-color:#000000; border-style:solid; ">订单总重量</caption>
- <caption id="caption11" ref="/root/corde/sumOrd" format="#,###" style="left:325px; top:595px; width:100px; height:20px; text-align:right; border-color:#000000; border-style:solid; "/>
- <caption id="caption12" class="cell" style="left:508px; top:35px; width:80px; height:20px; text-align:center; vertical-align:middle; border-color:#000000; border-style:solid; ">运输方式</caption>
- <select1 id="combo3" ref="/root/formData/DLIV_TP_CO" appearance="minimal" style="left:590px; top:35px; width:85px; height:20px; ">
- <choices>
- <item>
- <label>全部</label>
- <value/>
- </item>
- <item>
- <label>公路(车辆)</label>
- <value>C</value>
- </item>
- <item>
- <label>铁路(火车)</label>
- <value>T</value>
- </item>
- </choices>
- </select1>
- <caption id="caption13" class="cell" style="left:456px; top:595px; width:112px; height:20px; text-align:center; border-color:#000000; border-style:solid; ">已确认的最大预排期</caption>
- <caption id="caption15" ref="/root/corde/max_to_plan_date" format="yyyy-mm-dd" style="left:569px; top:595px; width:69px; height:20px; text-align:right; border-color:#000000; border-style:solid; "/>
- <input id="input11" ref="/root/total" format="#,###" style="left:831px; top:125px; width:105px; height:20px; "/>
- <caption id="caption16" style="left:764px; top:125px; width:65px; height:20px; background-color:#00ffff; border-color:#00ffff; border-style:solid; ">订单量统计</caption>
- <input id="combo105" ref="/root/formData/RCVORD_TP_CON" inputtype="button" appearance="minimal" style="left:471px; top:5px; width:111px; height:20px; ">
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- //修改订单类型,可以多选。TL 091125
- checkbox2.visible = (checkbox2.visible == false);
- ]]>
- </script>
- </input>
- <select id="checkbox2" ref="/root/formData/RCVORD_TP_CON" visibility="hidden" overflow="visible" appearance="full" sep="," style="left:470px; top:25px; width:110px; height:20px; background-color:#ffff99; border-color:#ff9900; border-width:1px; ">
- <choices>
- <item>
- <label>协议合同</label>
- <value>S</value>
- </item>
- <item>
- <label>现款合同</label>
- <value>K</value>
- </item>
- <item>
- <label>直销合同</label>
- <value>L</value>
- </item>
- <item>
- <label>自用合同</label>
- <value>E</value>
- </item>
- <item>
- <label>厂内合同</label>
- <value>T</value>
- </item>
- <item>
- <label>外贸合同</label>
- <value>W</value>
- </item>
- <item>
- <label>清库合同</label>
- <value>M</value>
- </item>
- </choices>
- </select>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var target = event.target;
- var parent = event.pTarget.parent;
- var parent2 = null;
- if (parent != null) parent2 = parent.parent;
- if (target != "checkbox1" && target != "combo3"
- && parent != null && parent.attribute("id") != "checkbox1" && parent.attribute("id") != "combo3"
- && parent2 != null && parent2.attribute("id") != "checkbox1" && parent2.attribute("id") != "combo3")
- checkbox1.visible = false;
- if (target != "checkbox2" && target != "combo105"
- && parent != null && parent.attribute("id") != "checkbox2" && parent.attribute("id") != "combo105"
- && parent2 != null && parent2.attribute("id") != "checkbox2" && parent2.attribute("id") != "combo105")
- checkbox2.visible = false;
- ]]>
- </script>
- <caption id="caption21" class="cell" style="left:763px; top:5px; width:70px; height:20px; vertical-align:middle; ">产品类型</caption>
- <select1 id="combo2" ref="/root/formData/PRODNM_CD" appearance="minimal" style="left:610px; top:80px; width:110px; height:20px; ">
- <choices>
- <itemset nodeset="/root/codeData/COMM_CODE_RESULT_VO/COMM_CODE_RESULT_Row[LG_CD = 'A01004' or LG_CD ='A']">
- <label ref="SM_CFNM"/>
- <value ref="SM_CD"/>
- </itemset>
- </choices>
- </select1>
- <input id="input12" ref="/root/formData/ord_proDay" disabled="false" style="left:859px; top:595px; width:38px; height:20px; text-align:right; "/>
- <caption id="caption22" class="cell" style="left:774px; top:595px; width:82px; height:20px; text-align:center; vertical-align:middle; border-color:#000000; border-style:solid; ">冷轧生产期</caption>
- <caption id="caption23" style="left:857px; top:37px; width:20px; height:15px; ">~</caption>
- <caption id="caption24" class="cell" style="left:715px; top:35px; width:50px; height:20px; text-align:center; vertical-align:middle; border-color:#000000; border-style:solid; ">预排期</caption>
- <input id="input13" ref="/root/formData/ORD_PLAN_DATE_TO" disabled="true" inputtype="date" editable="false" style="left:870px; top:35px; width:95px; height:20px; "/>
- <input id="input14" ref="/root/formData/ORD_PLAN_DATE_FR" disabled="true" inputtype="date" editable="false" style="left:765px; top:35px; width:90px; height:20px; "/>
- <select id="checkbox3" ref="/root/formData/CHE_VALUE" overflow="visible" appearance="full" style="left:695px; top:35px; width:15px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label/>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var chckValue = model.getValue("/root/formData/CHE_VALUE");
- if(chckValue == "Y"){
- input13.disabled = false;
- input14.disabled = false;
- model.setValue("/root/formData/ORD_PLAN_DATE_FR","00000000");
- model.setValue("/root/formData/ORD_PLAN_DATE_TO","00000000");
- }else{
- input13.disabled = true;
- input14.disabled = true;
- model.setValue("/root/formData/ORD_PLAN_DATE_FR","00000000");
- model.setValue("/root/formData/ORD_PLAN_DATE_TO","99999999");
- }
- model.refresh();
- ]]>
- </script>
- </select>
- <caption id="caption25" class="cell" style="left:0px; top:70px; width:95px; height:20px; text-align:center; vertical-align:middle; border-color:#000000; border-style:solid; ">产线</caption>
- <select1 id="combo4" ref="/root/formData/PRODLINE" appearance="minimal" style="left:95px; top:70px; width:100px; height:20px; ">
- <choices>
- <item>
- <label/>
- <value/>
- </item>
- <item>
- <label>热轧</label>
- <value>H</value>
- </item>
- <item>
- <label>冷轧</label>
- <value>C</value>
- </item>
- </choices>
- </select1>
- <caption id="caption26" class="cell" style="left:205px; top:70px; width:95px; height:20px; text-align:center; vertical-align:middle; border-color:#000000; border-style:solid; ">订单厚度</caption>
- <input id="input15" ref="/root/formData/TORDTHK" style="left:300px; top:70px; width:100px; height:20px; "/>
- <input id="input16" ref="/root/formData/PRODNM_CD" style="left:835px; top:5px; width:100px; height:20px; ">
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- checkbox4.visible = (checkbox4.visible == false);
- ]]>
- </script>
- </input>
- <select id="checkbox4" ref="/root/formData/PRODNM_CD" visibility="hidden" overflow="visible" appearance="full" sep="," style="left:835px; top:25px; width:100px; height:20px; background-color:#ffff99; border-width:1px; border-style:none; ">
- <choices>
- <itemset nodeset="/root/codeData/COMM_CODE_RESULT_VO/COMM_CODE_RESULT_Row[LG_CD = 'A01004' or LG_CD ='A']">
- <label ref="SM_CFNM"/>
- <value ref="SM_CD"/>
- </itemset>
- </choices>
- </select>
- </xhtml:body>
- </xhtml:html>
|