| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466 |
- <?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>Untitle</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <formData>
- <searchInfo/>
- <facStlGrd/>
- <procStat>01</procStat>
- <slabNo/>
- <l2SchNO/>
- <regDateTimeFrm/>
- <regDateTimeTo/>
- <ordNo/>
- <ordSeq/>
- <procDateTimeFrm/>
- <procDateTimeTo/>
- <sendDateTimeTo/>
- <sendDateTimeFrm/>
- <L2_SCH/>
- </formData>
- <reqData/>
- <resData/>
- <gridData>
- <EmpListResult_VO>
- </EmpListResult_VO>
- <sendInfo/>
- </gridData>
- <slabCount/>
- <slabWgt/>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- datagrid1.fixedcellcheckbox(0,datagrid1.colRef("CHK"))=true;
- datagrid1.colStatus(0)=false;
-
- model.makeValue("/root/reqData/SQLKEY","UID030010_GRD.select");
- //commSubmit("UID030010-service","success","glueAction.do");
- errorMessage();
- model.copyNode("/root/formData/facStlGrd","/root/resData/DropDownRes_VO");
- addall2("/root/formData/facStlGrd","LABEL","VALUE");
- combo2.refresh();
- combo2.select(combo2.length-1);
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- //导出
- function excelExport(){
- return datagrid1;
- }
- //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()
- {
- if(commDiffDay(input4.value,input5.value)>90)
- {
- window.alert("查询时间不能超过90天");
- return;
- }
- if(commDiffDay(input8.value,input9.value)>90)
- {
- window.alert("查询时间不能超过90天");
- return;
- }
- if(commDiffDay(input10.value,input11.value)>90)
- {
- window.alert("查询时间不能超过90天");
- return;
- }
- model.removenode("/root/reqData");
- model.makeNode("/root/reqData");
- model.makeValue("/root/reqData/facStlGrd",model.getValue("/root/formData/facStlGrd"));
- model.makeValue("/root/reqData/procStat",model.getValue("/root/formData/procStat"));
- model.makeValue("/root/reqData/slabNo",model.getValue("/root/formData/slabNo"));
- model.makeValue("/root/reqData/l2SchNO",model.getValue("/root/formData/l2SchNO"));
- model.makeValue("/root/reqData/regDateTimeFrm",model.getValue("/root/formData/regDateTimeFrm"));
- model.makeValue("/root/reqData/regDateTimeTo",model.getValue("/root/formData/regDateTimeTo"));
- model.makeValue("/root/reqData/ORD_NO",model.getValue("/root/formData/ordNo"));
- model.makeValue("/root/reqData/ORD_SEQ",model.getValue("/root/formData/ordSeq"));
- model.makeValue("/root/reqData/sendDateTimeFrm",model.getValue("/root/formData/sendDateTimeFrm"));
- model.makeValue("/root/reqData/sendDateTimeTo",model.getValue("/root/formData/sendDateTimeTo"));
- model.makeValue("/root/reqData/procDateTimeFrm",model.getValue("/root/formData/procDateTimeFrm"));
- model.makeValue("/root/reqData/procDateTimeTo",model.getValue("/root/formData/procDateTimeTo"));
- model.makeValue("/root/reqData/L2_SCH",model.getValue("/root/formData/L2_SCH"));
-
- commSubmit("UID030010-service","findSlabFromPlate","glueAction.do");
- errorMessage();
- model.copyNode("/root/gridData/EmpListResult_VO","/root/resData/EmpListResult_VO");
- model.setValue("/root/slabCount",model.getXPathValue("count(/root/gridData/EmpListResult_VO/EmpListResult_Row)"));
- model.setValue("/root/slabWgt",model.getXPathValue("sum(/root/gridData/EmpListResult_VO/EmpListResult_Row/SLAB_WGT)"))
- model.refresh();
- }
-
- function comfirm()
- {
-
- model.removenode("/root/gridData/sendInfo");
- model.makeNode("/root/gridData/sendInfo");
- var count = model.getXPathValue("count(/root/gridData/EmpListResult_VO/EmpListResult_Row)");
- var count_CHK = model.getXPathValue("count(/root/gridData/EmpListResult_VO/EmpListResult_Row[CHK='true'])");
-
- if(count_CHK == 0)
- {
- window.alert("请选择需要提取的板坯!","提示信息")
- return;
- }
- for(var i = 1; i<=count; i++)
- {
- var CHK = model.getValue("/root/gridData/EmpListResult_VO/EmpListResult_Row["+i+"]/CHK");
-
- //model.makeValue("/root/gridData/EmpListResult_VO/EmpListResult_Row["+i+"]/regId",REG_ID);
- if(CHK == 'true')
- {
- var PROC_STAT = model.getValue("/root/gridData/EmpListResult_VO/EmpListResult_Row["+i+"]/PROC_STAT");
- if(PROC_STAT != "01")
- {
- window.alert("您选择的板坯中必须为‘设计等待’状态,请检查板坯状态!","提示信息");
- return;
- }
-
- model.duplicate("/root/gridData/sendInfo","/root/gridData/EmpListResult_VO/EmpListResult_Row["+i+"]")
- }
- }
- commSendReq("/root/gridData/sendInfo");
-
- commSubmit("UID030010-service","extractSlabFromPlate","glueAction.do");
- //alert(model.getValue("/root/resData/list_VO"));
- //if(model.getValue("/root/resData/list_VO") != "")
- //{
- var node = instance1.selectSingleNode("/root/resData/list_VO/list_Row");
- if(node != null)
- {
- var nodeList = node.childNodes;
- var tempCaption1 = "";
-
- for(var i = 0 ; i < nodeList.length; i++)
- {
- tempCaption1 = tempCaption1 +";"+nodeList.item(i).nodeValue;
- }
- window.alert(tempCaption1+"在三期系统品质管理中无该牌号,不能冶炼,请联系相关部门输入标准!", "提示信息");
- return;
- }
- //}
- errorMessage();
- find();
- }
-
-
- function cancelComfirm()
- {
- model.removenode("/root/gridData/sendInfo");
- model.makeNode("/root/gridData/sendInfo");
- var count = model.getXPathValue("count(/root/gridData/EmpListResult_VO/EmpListResult_Row)");
- var count_CHK = model.getXPathValue("count(/root/gridData/EmpListResult_VO/EmpListResult_Row[CHK='true'])");
-
- if(count_CHK == 0)
- {
- window.alert("请选择需要取消提取的板坯!","提示信息")
- return;
- }
- for(var i = 1; i<=count; i++)
- {
- var CHK = model.getValue("/root/gridData/EmpListResult_VO/EmpListResult_Row["+i+"]/CHK");
-
- //model.makeValue("/root/gridData/EmpListResult_VO/EmpListResult_Row["+i+"]/regId",REG_ID);
- if(CHK == 'true')
- {
- var PROC_STAT = model.getValue("/root/gridData/EmpListResult_VO/EmpListResult_Row["+i+"]/PROC_STAT");
- if(PROC_STAT != "02")
- {
- window.alert("取消操作时,您选择的板坯中必须为‘已提取’状态,请检查板坯状态!","提示信息");
- return;
- }
-
- model.duplicate("/root/gridData/sendInfo","/root/gridData/EmpListResult_VO/EmpListResult_Row["+i+"]")
- }
- }
- commSendReq("/root/gridData/sendInfo");
-
- commSubmit("UID030010-service","cancelSlabFromPlate","glueAction.do");
- errorMessage();
- find();
- }
-
-
- function IngrDesign(){
- commSendReq("/root/gridData/sendInfo");
- commSubmit("UID030010-service","ingrDesign","glueAction.do");
- errorMessage();
- find();
- }
-
- // 保存按键
- function save()
- {
- /*model.removenode("/root/reqData");
- model.makeNode("/root/reqData");
- model.removenode("/root/gridData/sendInfo");
- model.makeNode("/root/gridData/sendInfo");
- var REG_ID = model.getValue("/root/initData/rcvInfo/REG_ID");
- var count = model.getXPathValue("count(/root/gridData/EmpListResult_VO/EmpListResult_Row)");
- var j = 0;
- for(var i = 1; i<=count; i++)
- {
- var CHK = model.getValue("/root/gridData/EmpListResult_VO/EmpListResult_Row["+i+"]/CHK");
- model.makeValue("/root/gridData/EmpListResult_VO/EmpListResult_Row["+i+"]/regId",REG_ID);
- if(CHK == 'true')
- {
- model.duplicate("/root/gridData/sendInfo","/root/gridData/EmpListResult_VO/EmpListResult_Row["+i+"]")
- var FAC_STL_GRD = model.getValue("/root/gridData/EmpListResult_VO/EmpListResult_Row["+i+"]/FAC_STL_GRD");
- if(FAC_STL_GRD == null || FAC_STL_GRD == "")
- {
- window.alert(" 厂内牌号不能为空! "," 提示信息 ");
- return;
- }
- var CAST_STL_GRD = model.getValue("/root/gridData/EmpListResult_VO/EmpListResult_Row["+i+"]/CAST_STL_GRD");
- if(CAST_STL_GRD == null || CAST_STL_GRD == "")
- {
- window.alert(" 连浇钢种组代码不能为空! "," 提示信息 ");
- return;
- }
- }
- else
- {
- j++;
- }
- }
- if(j == count)
- {
- window.alert(" 请选择连浇钢种组标准信息进行保存! "," 提示信息 ");
- return;
- }
-
- commSendReq("/root/gridData/sendInfo");
-
- commSubmit("UID010110-service","saveCastStlGrd","glueAction.do");
- errorMessage();
- //model.copyNode("/root/gridData2/EmpListResult_VO","/root/resData/EmpListResult_VO");
- model.refresh();*/
- }
- // 删除按键
- function remove()
- {
- /*model.removenode("/root/reqData");
- model.makeNode("/root/reqData");
- if(commComfirmBox(" 确认删除连铸钢种组? "," 提示信息 ")=='0') return;
-
- model.removenode("/root/gridData/sendInfo");
- model.makeNode("/root/gridData/sendInfo");
- var count = model.getXPathValue("count(/root/gridData/EmpListResult_VO/EmpListResult_Row)");
- var j = 1;
- for(var i = 1; i<=count; i++)
- {
-
- var CHK = model.getValue("/root/gridData/EmpListResult_VO/EmpListResult_Row["+j+"]/CHK");
- if(CHK == 'true')
- {
- model.duplicate("/root/gridData/sendInfo","/root/gridData/EmpListResult_VO/EmpListResult_Row["+j+"]");
- model.removenode("/root/gridData/EmpListResult_VO/EmpListResult_Row["+j+"]");
- }
- else
- {
- j++;
- }
- }
- commSendReq("/root/gridData/sendInfo");
- commSubmit("UID010110-service","deleteCastStlGrd","glueAction.do");
- errorMessage();
- //model.copyNode("/root/gridData2/EmpListResult_VO","/root/resData/EmpListResult_VO");
- model.refresh();*/
- }
- ]]>
- </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,955;">
- <line id="line3" style="x1:1px; y1:80px; x2:955px; y2:80px; "/>
- <caption id="caption1" class="cell" style="left:90px; top:590px; width:90px; height:20px; text-align:center; border-color:#000000; border-style:solid; ">板坯块数</caption>
- <line id="line1" style="x1:0px; y1:0px; x2:955px; y2:0px; "/>
- <caption id="caption3" class="cell" style="left:0px; top:30px; width:90px; height:20px; text-align:center; border-color:#000000; border-style:solid; ">厂内牌号</caption>
- <datagrid id="datagrid1" nodeset="/root/gridData/EmpListResult_VO/EmpListResult_Row" scroll="auto" caption="选择^生产号^计划号^板坯号^合同号^交货期^订单号^预排期^板坯状态^板坯^板坯^板坯^板坯^厂内牌号组^厂内牌号^是否紧急材^工序路径^坑冷^下发时间^备注|选择^生产号^计划号^板坯号^合同号^交货期^订单号^预排期^板坯状态^长度^宽度^厚度^重量^厂内牌号组^厂内牌号^是否紧急材^工序路径^坑冷^下发时间^备注" colsep="^" colwidth="45, 78, 93, 100, 71, 68, 39, 69, 71, 59, 59, 56, 57, 40, 70, 40, 81, 35, 77, 100" defaultrows="30" explorerbar="sort" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:85px; width:955px; height:500px; ">
- <col ref="CHK" type="checkbox"/>
- <col editable="false" ref="L2_SCH" type="input" style="text-align:left; padding-left:2; background-color:#ffffff; "/>
- <col editable="false" ref="L2_SCH_NO" type="input" style="text-align:left; padding-left:2; background-color:#ffffff; "/>
- <col editable="false" ref="DSN_SLAB_NO" type="input" style="text-align:left; padding-left:2; background-color:#ffffff; "/>
- <col ref="ORD_NO"/>
- <col ref="L2_SENDBEGINDATE"/>
- <col ref="ORD_SEQ"/>
- <col ref="PLAN_PRODUCT_DATE"/>
- <col disabled="true" editable="false" ref="PROC_STAT" type="combo" style="text-align:left; padding-left:2; background-color:#ffffff; ">
- <choices>
- <item>
- <label>设计等待</label>
- <value>01</value>
- </item>
- <item>
- <label>已提取</label>
- <value>02</value>
- </item>
- <item>
- <label>炉次浇次设计</label>
- <value>03</value>
- </item>
- <item>
- <label>出钢指示</label>
- <value>04</value>
- </item>
- <item>
- <label>生产完成</label>
- <value>05</value>
- </item>
- <item>
- <label>移送至中厚板</label>
- <value>06</value>
- </item>
- </choices>
- </col>
- <col editable="false" ref="SLAB_LEN" type="input" format="#,###" style="text-align:right; background-color:#ffffff; "/>
- <col editable="false" ref="SLAB_WTH" type="input" format="#,###" style="text-align:right; background-color:#ffffff; "/>
- <col editable="false" ref="SLAB_THK" type="input" format="#,###" style="text-align:right; background-color:#ffffff; "/>
- <col editable="false" ref="SLAB_WGT" type="input" format="#,###" style="text-align:right; background-color:#ffffff; "/>
- <col editable="false" ref="FAC_STL_GRP" type="input" style="text-align:left; padding-left:3; background-color:#ffffff; "/>
- <col editable="false" ref="FAC_STL_GRD" type="input" style="text-align:left; padding-left:3; background-color:#ffffff; "/>
- <col editable="false" ref="EMGMTR_YN" type="input" style="background-color:#ffffff; "/>
- <col editable="false" ref="PROC_PATH" type="input" style="text-align:left; padding-left:3; background-color:#ffffff; "/>
- <col editable="false" ref="KEEPWARM_YN" type="input" style="background-color:#ffffff; "/>
- <col editable="false" ref="REG_DATETIME" type="input" style="background-color:#ffffff; "/>
- <col editable="false" ref="L2_MEMO" type="input" style="background-color:#ffffff; "/>
- </datagrid>
- <select1 id="combo1" ref="/root/formData/procStat" appearance="minimal" style="left:91px; top:5px; width:84px; height:20px; ">
- <choices>
- <item>
- <label>--全部--</label>
- <value/>
- </item>
- <item>
- <label>设计等待</label>
- <value>01</value>
- </item>
- <item>
- <label>已提取</label>
- <value>02</value>
- </item>
- <item>
- <label>炉次浇次设计</label>
- <value>03</value>
- </item>
- <item>
- <label>出钢指示</label>
- <value>04</value>
- </item>
- <item>
- <label>生产完成</label>
- <value>05</value>
- </item>
- <item>
- <label>移送至中厚板</label>
- <value>06</value>
- </item>
- <item>
- <label>品质设计待机</label>
- <value>07</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- find();
- ]]>
- </script>
- </select1>
- <select1 id="combo2" ref="/root/formData/facStlGrd" appearance="minimal" editmode="inputsearch" style="left:91px; top:30px; width:84px; height:20px; ">
- <choices>
- <itemset nodeset="/root/formData/facStlGrd/DropDownRes_Row">
- <label ref="LABEL"/>
- <value ref="VALUE"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption7" class="cell" style="left:0px; top:590px; width:85px; height:20px; text-align:center; background-color:#ffcc99; border-color:#000000; border-style:solid; ">统计:</caption>
- <caption id="caption2" class="cell" style="left:0px; top:5px; width:90px; height:20px; text-align:center; border-color:#000000; border-style:solid; ">板坯状态</caption>
- <caption id="caption4" ref="/root/slabCount" format="#,###" style="left:182px; top:590px; width:90px; height:20px; text-align:right; border-color:#000000; border-style:solid; "/>
- <caption id="caption5" class="cell" style="left:185px; top:5px; width:90px; height:20px; text-align:center; border-color:#000000; border-style:solid; ">板坯号</caption>
- <input id="input1" ref="/root/formData/slabNo" style="left:276px; top:5px; width:84px; height:20px; "/>
- <caption id="caption6" class="cell" style="left:280px; top:590px; width:90px; height:20px; text-align:center; border-color:#000000; border-style:solid; ">板坯总重量</caption>
- <caption id="input2" ref="/root/slabWgt" format="#,###" style="left:372px; top:590px; width:90px; height:20px; text-align:right; border-color:#000000; border-style:solid; "/>
- <button id="button1" style="left:740px; top:5px; width:70px; height:20px; text-align:right; background-image:../../images/btn_delete.gif; ">
- <caption>取消提取</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- cancelComfirm();
- ]]>
- </script>
- </button>
- <caption id="caption8" class="cell" style="left:185px; top:30px; width:90px; height:20px; text-align:center; border-color:#000000; border-style:solid; ">计划号</caption>
- <input id="input3" ref="/root/formData/l2SchNO" style="left:276px; top:30px; width:84px; height:20px; "/>
- <caption id="caption9" class="cell" style="left:365px; top:5px; width:90px; height:20px; text-align:center; border-color:#000000; border-style:solid; ">下发时间</caption>
- <input id="input4" ref="/root/formData/regDateTimeFrm" editable="false" inputtype="date" style="left:457px; top:5px; width:84px; height:20px; "/>
- <input id="input5" ref="/root/formData/regDateTimeTo" editable="false" inputtype="date" style="left:555px; top:5px; width:84px; height:20px; "/>
- <caption id="caption10" style="left:545px; top:10px; width:10px; height:10px; ">~</caption>
- <caption id="caption11" class="cell" style="left:365px; top:30px; width:89px; height:20px; text-align:center; border-color:#000000; border-style:solid; ">订单号</caption>
- <input id="input6" ref="/root/formData/ordNo" maxlength="40" format="999999-9999999" style="left:457px; top:29px; width:84px; height:20px; "/>
- <input id="input7" ref="/root/formData/ordSeq" maxlength="3" format="999999-9999999" style="left:555px; top:30px; width:84px; height:20px; "/>
- <caption id="caption12" style="left:545px; top:35px; width:10px; height:10px; ">~</caption>
- <button id="button2" style="left:655px; top:5px; width:70px; height:20px; text-align:right; background-image:../../images/btn_delete.gif; ">
- <caption>品质设计</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- IngrDesign();
- ]]>
- </script>
- </button>
- <button id="button3" visibility="hidden" style="left:645px; top:30px; width:100px; height:20px; ">
- <caption>button3</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- find();
- ]]>
- </script>
- </button>
- <caption id="caption13" style="left:460px; top:60px; width:10px; height:10px; ">~</caption>
- <input id="input8" ref="/root/formData/procDateTimeFrm" editable="false" inputtype="date" style="left:372px; top:55px; width:84px; height:20px; "/>
- <caption id="caption14" class="cell" style="left:280px; top:55px; width:90px; height:20px; text-align:center; border-color:#000000; border-style:solid; ">预排期</caption>
- <input id="input9" ref="/root/formData/procDateTimeTo" editable="false" inputtype="date" style="left:470px; top:55px; width:84px; height:20px; "/>
- <input id="input10" ref="/root/formData/sendDateTimeFrm" editable="false" inputtype="date" style="left:92px; top:55px; width:84px; height:20px; "/>
- <input id="input11" ref="/root/formData/sendDateTimeTo" editable="false" inputtype="date" style="left:190px; top:55px; width:84px; height:20px; "/>
- <caption id="caption15" style="left:180px; top:60px; width:15px; height:10px; ">~</caption>
- <caption id="caption16" class="cell" style="left:0px; top:55px; width:90px; height:20px; text-align:center; border-color:#000000; border-style:solid; ">交货期</caption>
- <caption id="caption17" class="cell" style="left:565px; top:55px; width:85px; height:20px; text-align:center; border-color:#000000; border-style:solid; ">生产号</caption>
- <input id="input12" ref="/root/formData/L2_SCH" style="left:655px; top:55px; width:84px; height:20px; "/>
- </xhtml:body>
- </xhtml:html>
|