| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212 |
- <?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>
- <![CDATA[进程管理 >> 订单/物料进程管理 >> 材料进程现况查询]]>
- </xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <initData>
- <searchInfo>
- <LG_CD>E01002</LG_CD>
- </searchInfo>
- </initData>
- <codeData>
- <ORD_SEQ/>
- </codeData>
- <formData>
- <searchInfo>
- <ORD_NO/>
- <ORD_SEQ/>
- <MAT_PROC/>
- <MAT_TP/>
- </searchInfo>
- </formData>
- <gridData>
- </gridData>
- <fwdData>
- <UIE012110>
- <URL/>
- <MAT_NOS/>
- <NONORD_CAUSE_CD/>
- </UIE012110>
- <UIE012120>
- <URL/>
- <MAT_NOS/>
- <NONORD_CAUSE_CD/>
- </UIE012120>
- </fwdData>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- if (window.parent == null) Init();
- ]]>
- </script>
- </model>
- <script type="javascript" src="../../js/boaCommon.js"/>
- <script type="javascript" src="../../js/boaMsg.js"/>
- <script type="javascript" src="../../js/mesCommon.js"/>
- <script type="javascript">
- <![CDATA[
- submitID = "UIE012040-service";
- function Init(node) {
- if (window.parent != null) {
- var java = window.parent.javaScript;
- var node = java.getInitDataNode();
- if (node != null) {
- copyNode(node, "/root/formData/searchInfo");
- exec("/root/formData/searchInfo/ORD_NO", "", "seq", "/root/codeData/ORD_SEQ/ListResult_0_VO");
- var proc = model.getValue("/root/formData/searchInfo/MAT_PROC");
- model.makeValue("/root/formData/searchInfo/MAT_TP", proc.substring(0, 1));
- exec("/root/formData/searchInfo", "", "find", "/root/gridData/ListResult_0_VO");
- }
- }
- exec("/root/initData/searchInfo", "", "", "/root/codeData/ListResult_0_VO");
- // if (model.getValue("/root/formData/searchInfo/MAT_PROC") == "") {
- // model.setValue("/root/formData/searchInfo/MAT_PROC", model.getValue("/root/codeData/ListResult_0_VO/ListResult_0_Row[2]/SM_CD"));
- // }
- pageInit();
- }
- function pageInit() {
- model.removenode("/root/reqData");
- model.removenode("/root/resData");
- model.refresh();
- var datagrid = datagrid1;
- datagrid.isReadOnly(0, 0, datagrid.rows-1, datagrid.cols-1) = true;
- }
- function find() {
- // var ordno = model.getValue("/root/formData/searchInfo/ORD_NO");
- // if (ordno.length < 12) {
- // alert("合同号少于 12 位!");
- // model.removenode("/root/gridData/ListResult_0_VO");
- // return;
- // }
- var proc = model.getValue("/root/formData/searchInfo/MAT_PROC");
- if (proc != "") model.setValue("/root/formData/searchInfo/MAT_TP", proc.substring(0, 1));
- else model.setValue("/root/formData/searchInfo/MAT_TP", "");
- exec("/root/formData/searchInfo", "", "ord");
- model.setValue("/root/formData/searchInfo/ORD_NO", model.getValue("/root/resData/ListResult_0_VO/ListResult_0_Row/ORD_NO"));
- model.setValue("/root/formData/searchInfo/ORD_SEQ", model.getValue("/root/resData/ListResult_0_VO/ListResult_0_Row/ORD_SEQ"));
- model.removenode("/root/reqData");
- model.removenode("/root/resData");
- exec("/root/formData/searchInfo", "", "find", "/root/gridData/ListResult_0_VO");
- if (model.getXPathValue("count(/root/codeData/ORD_SEQ/ListResult_0_VO/ListResult_0_Row)") == 0) {
- model.removenode("/root/reqData");
- model.removenode("/root/resData");
- exec("/root/formData/searchInfo/ORD_NO", "", "seq", "/root/codeData/ORD_SEQ/ListResult_0_VO");
- }
- pageInit();
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body overflow="hidden" pagewidth="980" pageheight="620" style="font-family:宋体; ">
- <group id="group1" overflow="hidden" ref="/root/formData/searchInfo" style="left:0px; top:0px; width:980px; height:35px; ">
- <line id="line2" style="x1:0px; y1:29px; x2:980px; y2:29px; "/>
- <caption id="caption3" class="cell" style="left:229px; top:5px; width:90px; height:20px; vertical-align:middle; ">物料进程</caption>
- <select1 id="combo1" ref="MAT_PROC" appearance="minimal" style="left:321px; top:5px; width:160px; height:20px; ">
- <choices>
- <itemset nodeset="/root/codeData/ListResult_0_VO/ListResult_0_Row">
- <label ref="SM_CFNM"/>
- <value ref="SM_CD"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- find();
- ]]>
- </script>
- </select1>
- <caption id="caption1" class="cell" style="left:0px; top:5px; width:90px; height:20px; vertical-align:middle; ">合同号</caption>
- <select1 id="combo2" ref="ORD_SEQ" appearance="minimal" editmode="search" style="left:174px; top:5px; width:45px; height:20px; ">
- <choices>
- <itemset nodeset="/root/codeData/ORD_SEQ/ListResult_0_VO/ListResult_0_Row[ORD_SEQ != '']">
- <label ref="ORD_SEQ"/>
- <value ref="ORD_SEQ"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if (model.getXPathValue("count(/root/codeData/ORD_SEQ/ListResult_0_VO/ListResult_0_Row)") == 0) {
- exec("/root/formData/searchInfo/ORD_NO", "", "seq", "/root/codeData/ORD_SEQ/ListResult_0_VO");
- model.setValue("/root/formData/searchInfo/ORD_SEQ", model.getValue("/root/codeData/ORD_SEQ/ListResult_0_VO/ListResult_0_Row[ORD_SEQ != '']/ORD_SEQ"));
- }
- ]]>
- </script>
- </select1>
- <input id="input1" ref="ORD_NO" maxlength="12" style="left:92px; top:5px; width:80px; height:20px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.setValue("/root/formData/searchInfo/ORD_SEQ", "");
- // var ordno = model.getValue("/root/formData/searchInfo/ORD_NO");
- // if (ordno.length == 12) {
- exec("/root/formData/searchInfo/ORD_NO", "", "seq", "/root/codeData/ORD_SEQ/ListResult_0_VO");
- model.setValue("/root/formData/searchInfo/ORD_SEQ", model.getValue("/root/codeData/ORD_SEQ/ListResult_0_VO/ListResult_0_Row[ORD_SEQ != '']/ORD_SEQ"));
- // } else {
- // model.removenode("/root/codeData/ORD_SEQ/ListResult_0_VO");
- // }
- pageInit();
- ]]>
- </script>
- </input>
- </group>
- <datagrid id="datagrid1" nodeset="/root/gridData/ListResult_0_VO/ListResult_0_Row" backcoloralternate="#F7F9F9" caption="物料进程^区分^物料号^ 成品对应板坯号^厚度^宽度^长度^物料重量^产品重量^堆置位置^生产日期^发货日期" colsep="^" colwidth="150, 40, 100, 100, 80, 80, 80, 80, 80, 135, 120, 100" explorerbar="sortshow" extendlastcol="false" mergecellsfixedrows="bycolrec" rowheader="select" rowheight="42" rowsep="|" style="left:0px; top:34px; width:980px; height:586px; ">
- <col ref="PROG_CD" type="combo" style="text-align:left; ">
- <choices>
- <itemset nodeset="/root/codeData/ListResult_0_VO/ListResult_0_Row[LG_CD = 'E01002']">
- <label ref="SM_CFNM"/>
- <value ref="SM_CD"/>
- </itemset>
- </choices>
- </col>
- <col ref="MAT_TP"/>
- <col ref="MAT_NO" style="text-decoration:underline; color:#0000ff; cursor:hand; "/>
- <col ref="SLAB_NO" style="text-align:left; "/>
- <col ref="MAT_THK" format="#,###.#" style="text-align:right; "/>
- <col ref="MAT_WTH" format="#,###.#" style="text-align:right; "/>
- <col ref="MAT_LEN" format="#,###.#" style="text-align:right; "/>
- <col ref="MAT_WGT" format="#,###.#" style="text-align:right; "/>
- <col ref="WGT" format="#,###.#" style="text-align:right; "/>
- <col ref="CUR_LOAD_LOC"/>
- <col explorerbar="sortshow" ref="REG_DTIME" format="yyyy-mm-dd hh:nn:ss" mask="exclude"/>
- <col explorerbar="sortshow" ref="TRNF_DTIME" format="yyyy-mm-dd hh:nn:ss"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var datagrid = datagrid1;
- if (!datagrid.isCell(event.target) || datagrid.row < datagrid.fixedRows ) return;
- if (datagrid.col != datagrid.colRef("MAT_NO")) return;
- //add by sjw 090803
- model.property("V_ORD_NO") = input1.value;
- model.property("V_ORD_SEQ") = combo2.value;
- //add by sjw 090803
-
- var java = window.parent.javaScript;
- switch (datagrid.valueMatrix(datagrid.row, datagrid.colRef("MAT_TP"))) {
- case "板坯":
- model.setValue("/root/fwdData/UIE012110/URL", "./UIE012110.xrw");
- model.setValue("/root/fwdData/UIE012110/MAT_NOS", datagrid.valueMatrix(datagrid.row, datagrid.colRef("MAT_NO")));
- java.open(model.instances(0).selectSingleNode("/root/fwdData/UIE012110"));
- break;
- case "钢卷":
- model.setValue("/root/fwdData/UIE012120/URL", "./UIE012120.xrw");
- model.setValue("/root/fwdData/UIE012120/MAT_NOS", datagrid.valueMatrix(datagrid.row, datagrid.colRef("MAT_NO")));
- java.open(model.instances(0).selectSingleNode("/root/fwdData/UIE012120"));
- break;
- default: return;
- }
- ]]>
- </script>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- var datagrid = datagrid1;
- window.clipboardData = datagrid.valueMatrix(datagrid.row, datagrid.col);
- ]]>
- </script>
- </datagrid>
- </xhtml:body>
- </xhtml:html>
|