| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148 |
- <?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="">
- <resData/>
- <reqData/>
- <ORD_NO/>
- <ORD_SEQ/>
- <ORD_YN/>
- <datagrid1>
- </datagrid1>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- //初始化的时候,直接查询出合同号下面对应的订单号和牌号规格等信息
- var opp1 = window.opener;
- model.setValue("/root/ORD_NO",opp1.model.getValue("/root/ORD_NO"));
- model.setValue("/root/ORD_YN",opp1.model.getValue("/root/ORD_YN"));
- model.refresh();
-
- model.removenode("/root/reqData");
- model.makeNode("/root/reqData");
-
- //根据标志位来判断获取合同号,订单号的相应信息
- if(model.getValue("/root/ORD_YN") == "Y"){
- //老系统的合同
- model.duplicate("/root/reqData","/root/ORD_NO");
- commSubmit("UIH050800-service", "findOldOrd", "glueAction.do");
-
- commAppendData("/root/datagrid1/OrdNo_VO","/root/resData/OrdNo_VO");
-
- model.refresh();
-
- }else if(model.getValue("/root/ORD_YN") == "N"){
- //新系统合同
- model.duplicate("/root/reqData","/root/ORD_NO");
- commSubmit("UIH050800-service", "findNewOrd", "glueAction.do");
-
- commAppendData("/root/datagrid1/OrdNo_VO","/root/resData/OrdNo_VO");
-
- model.refresh();
- }else{
- alert(" 转换标志位为必输项,不选择不能获取相应的合同信息!! ");
- return;
- }
- ]]>
- </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="caption1" class="cell" style="left:545px; top:25px; width:65px; height:20px; "/>
- <datagrid id="datagrid1" nodeset="/root/datagrid1/OrdNo_VO/OrdNo_Row" caption="选择^合同号^订单号^牌号^订单宽度^订单厚度^订单重量下限^订单重量上限" colsep="^" colwidth="50, 100, 50, 60, 74, 74, 100, 100" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:45px; width:610px; height:435px; ">
- <col checkvalue="Y,N" ref="CHK" type="radio"/>
- <col ref="ORD_NO"/>
- <col ref="ORD_SEQ"/>
- <col ref="SPEC_STL_GRD"/>
- <col ref="ORD_THK"/>
- <col ref="ORD_WTH"/>
- <col ref="ORD_UNIT_WGT_MIN"/>
- <col ref="ORD_UNIT_WGT_MAX"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- //把事件定位到选择按钮上面
- //获取选中的哪一行,把合同号和订单号带到上面的显示
-
- var nodeSet1 = datagrid1.nodeset;
-
- for(var i=0;i<datagrid1.rows;i++){
- var CHK = model.getValue(nodeSet1+"["+i+"]/CHK");
-
- if(CHK == "Y"){
- var ord_no = model.getValue(nodeSet1+"["+i+"]/ORD_NO");
- var ord_seq = model.getValue(nodeSet1+"["+i+"]/ORD_SEQ");
-
- model.setValue("/root/ORD_NO",ord_no);
- model.setValue("/root/ORD_SEQ",ord_seq);
- model.refresh();
- }
- }
- ]]>
- </script>
- <hint>
- <![CDATA[通过输入的合同号查询出系统存在的合同和订单信息]]>
- </hint>
- </datagrid>
- <caption id="caption3" class="cell" style="left:0px; top:5px; width:55px; height:20px; ">合同号</caption>
- <input id="input2" ref="/root/ORD_NO" style="left:55px; top:5px; width:145px; height:20px; background-color:#ffff99; ">
- <hint>
- <![CDATA[老系统的合同号为月份+合同号的后4位。新系统的合同号必须输入合同号加订单号]]>
- </hint>
- </input>
- <caption id="caption5" class="cell" style="left:205px; top:5px; width:50px; height:20px; ">订单号</caption>
- <input id="input1" ref="/root/ORD_SEQ" style="left:255px; top:5px; width:65px; height:20px; background-color:#ffff99; "/>
- <hint>
- <![CDATA[老系统的合同号为月份+合同号的后4位。新系统的合同号必须输入合同号加订单号]]>
- </hint>
- <select1 id="combo1" ref="/root/ORD_YN" appearance="minimal" style="left:325px; top:5px; width:120px; height:20px; background-color:#ffff99; ">
- <choices>
- <item>
- <label>老系统合同号</label>
- <value>Y</value>
- </item>
- <item>
- <label>新系统合同号</label>
- <value>N</value>
- </item>
- </choices>
- </select1>
- <button id="button1" style="left:545px; top:25px; width:65px; height:20px; ">
- <caption>确定</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.removenode("/root/reqData");
- model.makeNode("/root/reqData");
-
- //这里给出重量上下限的提示
- var isUse = commComfirmBox("请注意录入此合同的卷是否满足重量上下限的要求?","提示");
-
- if(isUse == "0"){
- //如果选择否的话,不进行相应操作
- //find();
- //bool1.value = "true";
- return;
- }
- //把获取的合同号和订单号给于下一个界面
-
- var opp1 = window.opener;
- opp1.model.setValue("/root/ORD_NO",model.getValue("/root/ORD_NO"));
- opp1.model.setValue("/root/ORD_SEQ",model.getValue("/root/ORD_SEQ"));
- //这里转换以后一定是新系统的合同号
- opp1.model.setValue("/root/ORD_YN","N");
- opp1.model.refresh();
- model.refresh();
-
- window.close();
-
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|