| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179 |
- <?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>指定充当</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <gridData>
- <MAT_NO>J91-01948A060</MAT_NO>
- <STL_GRD>JB08Al-B</STL_GRD>
- <MAT_THK>230</MAT_THK>
- <MAT_WTH>1110</MAT_WTH>
- <MAT_LEN>5200</MAT_LEN>
- <MAT_WGT>10421</MAT_WGT>
- <CUR_LOAD_LOC>Z12D3403</CUR_LOAD_LOC>
- <CUR_PROG_CD>RRC</CUR_PROG_CD>
- <ORD_FL>2</ORD_FL>
- </gridData>
- <formData>
- <R_ORD_NO/>
- <R_ORD_SEQ/>
- <R_MAT_NO/>
- <SIGN_STL>Y</SIGN_STL>
- <SIGN_CHEN_FEN>Y</SIGN_CHEN_FEN>
- <SING_CAIZHI>Y</SING_CAIZHI>
- <SIGN_QIANGZHI/>
- <P_REG_ID/>
- <errInfo/>
- </formData>
- <reqData/>
- <resData/>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- v_ord_no = model.property("V_ORD_NO") ;
- v_ord_seq = model.property("V_ORD_SEQ") ;
- v_reg_id = model.property("V_REG_ID") ;
- output1.value = v_ord_no + "- " +v_ord_seq;
- if(v_ord_no == null || v_ord_no == ""){
- alert(" 订单号为空!")
- }
- if (window.parent == null) Init();
- ]]>
- </script>
- </model>
- <script type="javascript">
- <![CDATA[
- var v_ord_no = "";
- var v_ord_seq = "";
- var v_reg_id = "";
-
- 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;
- node = model.instances(0).selectSingleNode("/root/initData/rcvInfo");
- for (var i = 0; i < nodeList.length; i++) {
- node.appendChild(nodeList.item(i));
- }
- model.setValue("root/formData/USER_NAME",model.getValue("/root/initData/rcvInfo/REG_ID"));
- alert(model.getValue("/root/initData/rcvInfo/REG_ID"));
- }
-
- //2. 页面初始化函数(必须)
- function Init(node)
- {
- InitParams(node);
- }
- function save() {
- model.removenode("/root/reqData");
- model.makeNode("/root/reqData");
- model.setValue("/root/formData/R_ORD_NO",v_ord_no);
- model.setValue("/root/formData/R_ORD_SEQ",v_ord_seq);
- model.setValue("/root/formData/P_REG_ID",v_reg_id);
- commSendReq("/root/formData");
- commSubmit("UIE031046-service","save","glueAction.do");
- if (model.getValue("/root/resData/errorData") != "") {
- // alert(model.getValue("/root/resData/errorData"));
- output2.value = model.getValue("/root/resData/errorData");
- return;
- }
- }
-
- function find() {
- model.removenode("/root/reqData");
- model.makeNode("/root/reqData");
- commSendReq("/root/formData");
- commSubmit("UIE031046-service","find","glueAction.do");
- model.refresh();
- }
- ]]>
- </script>
- <script type="javascript" src="../../js/boaCommon.js"/>
- <script type="javascript" src="../../js/boaMsg.js"/>
- </xhtml:head>
- <xhtml:body>
- <caption id="caption2" class="cell" style="left:30px; top:40px; width:100px; height:20px; ">订单号</caption>
- <output id="output1" style="left:131px; top:40px; width:140px; height:20px; border-color:#000000; border-style:solid; "/>
- <input id="input1" ref="/root/formData/R_MAT_NO" style="left:381px; top:40px; width:139px; height:20px; "/>
- <datagrid id="datagrid1" nodeset="/root/resData/rs_VO/rs_Row" caption="物料号^钢种^物料厚度^物料宽度^物料长度^物料重量^物料位置^当前进程^余材区分^合同号^订单号" colsep="^" colwidth="83, 93, 61, 62, 62, 64, 76, 100, 100, 100, 100" defaultrows="6" mergecellsfixedrows="bycolrec" rowsep="|" style="left:30px; top:95px; width:600px; height:113px; ">
- <col ref="MAT_NO"/>
- <col ref="STL_GRD"/>
- <col ref="MAT_THK"/>
- <col ref="MAT_WTH"/>
- <col ref="MAT_LEN"/>
- <col ref="MAT_WGT"/>
- <col ref="CUR_LOAD_LOC"/>
- <col ref="CUR_PROG_CD"/>
- <col ref="ORD_FL"/>
- <col ref="ORD_NO"/>
- <col ref="ORD_SEQ"/>
- </datagrid>
- <input id="output2" ref="/root/formData/errInfo" style="left:30px; top:215px; width:600px; height:115px; "/>
- <line id="line1" style="x1:30px; y1:211px; x2:630px; y2:211px; "/>
- <select id="checkbox7" ref="/root/formData/SIGN_CHEN_FEN" disabled="true" overflow="visible" appearance="full" style="left:368px; top:69px; width:55px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>同成分</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- <select id="checkbox8" ref="/root/formData/SING_CAIZHI" disabled="true" overflow="visible" appearance="full" style="left:425px; top:69px; width:55px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>同材质</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- <select id="checkbox9" ref="/root/formData/SIGN_STL" overflow="visible" appearance="full" style="left:312px; top:69px; width:55px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>同牌号</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- <select id="checkbox1" ref="/root/formData/SIGN_QIANGZHI" disabled="false" overflow="visible" appearance="full" style="left:481px; top:69px; width:70px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>强制充当</label>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- if(checkbox1.value = "Y") {
- alert("强制充当有风险!请谨慎操作,后果自负");
- }
- ]]>
- </script>
- </select>
- <button id="button1" style="left:555px; top:69px; width:70px; height:20px; text-align:right; background-image:../../images/save.gif; ">
- <caption>充当确定</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- save();
- ]]>
- </script>
- </button>
- <caption id="caption1" class="cell" style="left:280px; top:40px; width:100px; height:20px; ">指定充当物料号</caption>
- <button id="button2" style="left:555px; top:40px; width:70px; height:20px; text-align:right; background-image:../../images/save.gif; ">
- <caption>物料查询</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- find();
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|