| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298 |
- <?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/>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <resData/>
- <reqData/>
- <coil_no/>
- <R_MAT_NO/>
- <THK/>
- <THK_1/>
- <WTH/>
- <WTH_1/>
- <SPEC_STL_GRD/>
- <datagrid1/>
- <formData>
- <SIGN_STL>Y</SIGN_STL>
- <SIGN_CHEN_FEN>Y</SIGN_CHEN_FEN>
- <SING_CAIZHI>Y</SING_CAIZHI>
- <SIGN_QIANGZHI/>
- <P_REG_ID/>
- <errInfo/>
- <SIGN_WGT>Y</SIGN_WGT>
- </formData>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- //获取钢卷号,在界面显示
- var opp1 = window.opener;
- var coil_no = opp1.model1.getValue("/root/COIL/coil_no");
- v_spec_stl_grd = model.property("V_SPEC_STL_GRD");
- reg_id = model.property("V_REG_ID");
-
- model.setValue("/root/coil_no",coil_no);
- model.setValue("/root/SPEC_STL_GRD",v_spec_stl_grd);
- model.setValue("/root/formData/P_REG_ID",reg_id);
-
- model.refresh();
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- 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 find() {
- //这里根据列来查询列上面的钢卷
- model.removenode("/root/reqData");
- model.makeNode("/root/reqData");
-
- model.removenode("/root/datagrid1");
- model.makeNode("/root/datagrid1");
-
- model.duplicate("/root/reqData","/root/R_MAT_NO");
- model.duplicate("/root/reqData","/root/coil_no");
-
- commSubmit("UIJ010040-service","CurLoadLoc","glueAction.do");
-
- commAppendData("/root/datagrid1/coilCurLoadLoc_VO","/root/resData/coilCurLoadLoc_VO");
-
- model.refresh();
- }
- ]]>
- </script>
- </model>
- <script type="javascript" src="../../js/boaMsg.js"/>
- <script type="javascript" src="../../js/boaCommon.js"/>
- </xhtml:head>
- <xhtml:body pagewidth="650" pageheight="500">
- <caption id="caption5" class="cell" style="left:540px; top:45px; width:80px; height:20px; "/>
- <caption id="caption4" class="cell" style="left:540px; top:65px; width:80px; height:20px; "/>
- <caption id="caption1" class="cell" style="left:190px; top:50px; width:80px; height:20px; "/>
- <caption id="caption3" class="cell" style="left:20px; top:20px; width:75px; height:18px; ">钢卷号</caption>
- <button id="button2" style="left:540px; top:45px; width:79px; height:20px; ">
- <caption>钢卷合同互换</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var isUse = commComfirmBox("钢卷互换存在风险,请谨慎操作?","提示");
-
- if(isUse == "0"){
- //如果选择否的话,不进行相应操作
- return;
- }
-
- //这里判断,如果没有选中卷就点击确认按钮,会清除计划
- if(model.getValue("/root/R_MAT_NO") == ""){
- alert(" 没有选中希望替换的钢卷,不能点击换卷按钮!!! ");
- return;
- }
-
- //清空发送接点
- model.removenode("/root/reqData");
- model.makeNode("/root/reqData");
-
- model.removenode("/root/formData/errInfo");
- model.makeNode("/root/formData/errInfo");
-
- commSendReq("/root/formData");
-
- model.duplicate("/root/reqData","/root/R_MAT_NO");
- model.duplicate("/root/reqData","/root/coil_no");
-
- commSubmit("UIJ010040-service","saveOrdNoHH","glueAction.do");
-
- model.refresh();
-
- if (model.getValue("/root/resData/errorData") != "") {
- // alert(model.getValue("/root/resData/errorData"));
- output2.value = model.getValue("/root/resData/errorData");
- return;
- }
- window.close();
- ]]>
- </script>
- </button>
- <output id="output1" ref="/root/coil_no" style="left:95px; top:20px; width:125px; height:18px; "/>
- <button id="button3" style="left:185px; top:50px; width:75px; height:20px; ">
- <caption>同规格查询</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- //这里根据列来查询列上面的钢卷
- model.removenode("/root/reqData");
- model.makeNode("/root/reqData");
-
- model.removenode("/root/datagrid1");
- model.makeNode("/root/datagrid1");
-
- model.duplicate("/root/reqData","/root/R_MAT_NO");
- model.duplicate("/root/reqData","/root/THK");
- model.duplicate("/root/reqData","/root/THK_1");
- model.duplicate("/root/reqData","/root/WTH");
- model.duplicate("/root/reqData","/root/WTH_1");
- //这里要排除选中的卷
- model.duplicate("/root/reqData","/root/coil_no");
-
-
- commSubmit("UIJ010040-service","coilCurLoadLoc","glueAction.do");
-
- commAppendData("/root/datagrid1/coilCurLoadLoc_VO","/root/resData/coilCurLoadLoc_VO");
-
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="button4" style="left:540px; top:67px; width:80px; height:15px; ">
- <caption>同牌号查询</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- //这里根据列来查询列上面的钢卷
- model.removenode("/root/reqData");
- model.makeNode("/root/reqData");
-
- model.removenode("/root/datagrid1");
- model.makeNode("/root/datagrid1");
-
- model.duplicate("/root/reqData","/root/R_MAT_NO");
- model.duplicate("/root/reqData","/root/SPEC_STL_GRD");
- //这里要排除选中的卷
- model.duplicate("/root/reqData","/root/coil_no");
-
-
- commSubmit("UIJ010040-service","SpecStlGrd","glueAction.do");
-
- commAppendData("/root/datagrid1/coilCurLoadLoc_VO","/root/resData/coilCurLoadLoc_VO");
-
- model.refresh();
- ]]>
- </script>
- </button>
- <line id="line1" style="x1:20px; y1:300px; x2:620px; y2:300px; "/>
- <line id="line2" style="x1:115px; y1:55px; x2:130px; y2:55px; "/>
- <line id="line3" style="x1:115px; y1:70px; x2:130px; y2:70px; "/>
- <caption id="caption7" class="cell" style="left:20px; top:42px; width:42px; height:20px; ">厚度</caption>
- <input id="input2" ref="/root/THK" style="left:60px; top:42px; width:55px; height:20px; "/>
- <caption id="caption8" class="cell" style="left:20px; top:60px; width:42px; height:20px; ">宽度</caption>
- <input id="input3" ref="/root/SPEC_STL_GRD" style="left:440px; top:65px; width:100px; height:20px; "/>
- <input id="input4" ref="/root/WTH" style="left:60px; top:60px; width:55px; height:20px; "/>
- <input id="input5" ref="/root/THK_1" style="left:130px; top:42px; width:55px; height:20px; "/>
- <input id="output2" ref="/root/formData/errInfo" style="left:20px; top:305px; width:600px; height:115px; "/>
- <input id="input6" ref="/root/WTH_1" style="left:130px; top:60px; width:55px; height:20px; "/>
- <datagrid id="datagrid1" nodeset="/root/datagrid1/coilCurLoadLoc_VO/coilCurLoadLoc_Row" caption="钢卷号^钢种^实际厚度^实际宽度^订单厚度^订单宽度^钢卷长度^钢卷重量^钢卷外径^垛位^当前进程^余材区分^合同号^订单号^收货单位^合同单位^目的地" colsep="^" colwidth="83, 80, 61, 62, 62, 61, 62, 64, 58, 88, 62, 61, 100, 62, 100, 100, 100" defaultrows="10" mergecellsfixedrows="bycolrec" rowsep="|" style="left:20px; top:85px; width:600px; height:210px; ">
- <col ref="OLD_SAMPL_NO"/>
- <col ref="SPEC_STL_GRD"/>
- <col ref="COIL_THK"/>
- <col ref="COIL_WTH"/>
- <col ref="INSTR_COIL_THK"/>
- <col ref="INSTR_COIL_WTH"/>
- <col ref="COIL_LEN"/>
- <col ref="ACT_WGT"/>
- <col ref="COIL_OUTDIA"/>
- <col ref="CUR_LOAD_LOC"/>
- <col ref="CUR_PROG_CD"/>
- <col ref="ORD_FL"/>
- <col ref="ORD_NO"/>
- <col ref="ORD_SEQ"/>
- <col ref="ORD_NM"/>
- <col ref="CUST_NM"/>
- <col ref="DEST_PCD_DESC"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- //这里增加点击事件,把钢卷号信息带到指定充当信息中
- var nodeSet1 = datagrid1.nodeset;
- var row = null;
- var OLD_SAMPL_NO = null;
- for(var i=0;i<datagrid1.selectedRows;i++){
- row = datagrid1.selectedRow(i);
-
- OLD_SAMPL_NO = model.getValue(nodeSet1+"["+row+"]/OLD_SAMPL_NO");
-
- model.setValue("/root/R_MAT_NO",OLD_SAMPL_NO);
- model.refresh();
- }
-
- ]]>
- </script>
- </datagrid>
- <button id="button1" style="left:540px; top:20px; width:70px; height:20px; text-align:right; background-image:../../images/save.gif; ">
- <caption>物料查询</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- find();
- ]]>
- </script>
- </button>
- <caption id="caption2" class="cell" style="left:295px; top:20px; width:115px; height:20px; ">指定充当物料号</caption>
- <input id="input1" ref="/root/R_MAT_NO" style="left:410px; top:20px; width:125px; height:20px; "/>
- <select id="checkbox1" ref="/root/formData/SIGN_QIANGZHI" visibility="hidden" overflow="visible" appearance="full" style="left:464px; top:45px; 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>
- <select id="checkbox7" ref="/root/formData/SIGN_CHEN_FEN" disabled="true" overflow="visible" appearance="full" style="left:346px; top:45px; 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:403px; top:45px; 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:285px; top:45px; width:55px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>同牌号</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- <select id="checkbox2" ref="/root/formData/SIGN_WGT" overflow="visible" appearance="full" style="left:285px; top:65px; width:110px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>是否检查重量</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- </xhtml:body>
- </xhtml:html>
|