UIH05_ORD_NO.xrw 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <?xml-stylesheet href="../../css/body.css" type="text/css" ?>
  3. <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">
  4. <xhtml:head>
  5. <xhtml:title>合同号</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <resData/>
  10. <reqData/>
  11. <ORD_NO/>
  12. <ORD_SEQ/>
  13. <ORD_YN/>
  14. <datagrid1>
  15. </datagrid1>
  16. </root>
  17. </instance>
  18. <script type="javascript" ev:event="xforms-ready">
  19. <![CDATA[
  20. //初始化的时候,直接查询出合同号下面对应的订单号和牌号规格等信息
  21. var opp1 = window.opener;
  22. model.setValue("/root/ORD_NO",opp1.model.getValue("/root/ORD_NO"));
  23. model.setValue("/root/ORD_YN",opp1.model.getValue("/root/ORD_YN"));
  24. model.refresh();
  25. model.removenode("/root/reqData");
  26. model.makeNode("/root/reqData");
  27. //根据标志位来判断获取合同号,订单号的相应信息
  28. if(model.getValue("/root/ORD_YN") == "Y"){
  29. //老系统的合同
  30. model.duplicate("/root/reqData","/root/ORD_NO");
  31. commSubmit("UIH050800-service", "findOldOrd", "glueAction.do");
  32. commAppendData("/root/datagrid1/OrdNo_VO","/root/resData/OrdNo_VO");
  33. model.refresh();
  34. }else if(model.getValue("/root/ORD_YN") == "N"){
  35. //新系统合同
  36. model.duplicate("/root/reqData","/root/ORD_NO");
  37. commSubmit("UIH050800-service", "findNewOrd", "glueAction.do");
  38. commAppendData("/root/datagrid1/OrdNo_VO","/root/resData/OrdNo_VO");
  39. model.refresh();
  40. }else{
  41. alert(" 转换标志位为必输项,不选择不能获取相应的合同信息!! ");
  42. return;
  43. }
  44. ]]>
  45. </script>
  46. </model>
  47. <script type="javascript" src="../../js/boaMsg.js"/>
  48. <script type="javascript" src="../../js/boaCommon.js"/>
  49. </xhtml:head>
  50. <xhtml:body pagewidth="650" pageheight="500">
  51. <caption id="caption1" class="cell" style="left:545px; top:25px; width:65px; height:20px; "/>
  52. <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; ">
  53. <col checkvalue="Y,N" ref="CHK" type="radio"/>
  54. <col ref="ORD_NO"/>
  55. <col ref="ORD_SEQ"/>
  56. <col ref="SPEC_STL_GRD"/>
  57. <col ref="ORD_THK"/>
  58. <col ref="ORD_WTH"/>
  59. <col ref="ORD_UNIT_WGT_MIN"/>
  60. <col ref="ORD_UNIT_WGT_MAX"/>
  61. <script type="javascript" ev:event="onclick">
  62. <![CDATA[
  63. //把事件定位到选择按钮上面
  64. //获取选中的哪一行,把合同号和订单号带到上面的显示
  65. var nodeSet1 = datagrid1.nodeset;
  66. for(var i=0;i<datagrid1.rows;i++){
  67. var CHK = model.getValue(nodeSet1+"["+i+"]/CHK");
  68. if(CHK == "Y"){
  69. var ord_no = model.getValue(nodeSet1+"["+i+"]/ORD_NO");
  70. var ord_seq = model.getValue(nodeSet1+"["+i+"]/ORD_SEQ");
  71. model.setValue("/root/ORD_NO",ord_no);
  72. model.setValue("/root/ORD_SEQ",ord_seq);
  73. model.refresh();
  74. }
  75. }
  76. ]]>
  77. </script>
  78. <hint>
  79. <![CDATA[通过输入的合同号查询出系统存在的合同和订单信息]]>
  80. </hint>
  81. </datagrid>
  82. <caption id="caption3" class="cell" style="left:0px; top:5px; width:55px; height:20px; ">合同号</caption>
  83. <input id="input2" ref="/root/ORD_NO" style="left:55px; top:5px; width:145px; height:20px; background-color:#ffff99; ">
  84. <hint>
  85. <![CDATA[老系统的合同号为月份+合同号的后4位。新系统的合同号必须输入合同号加订单号]]>
  86. </hint>
  87. </input>
  88. <caption id="caption5" class="cell" style="left:205px; top:5px; width:50px; height:20px; ">订单号</caption>
  89. <input id="input1" ref="/root/ORD_SEQ" style="left:255px; top:5px; width:65px; height:20px; background-color:#ffff99; "/>
  90. <hint>
  91. <![CDATA[老系统的合同号为月份+合同号的后4位。新系统的合同号必须输入合同号加订单号]]>
  92. </hint>
  93. <select1 id="combo1" ref="/root/ORD_YN" appearance="minimal" style="left:325px; top:5px; width:120px; height:20px; background-color:#ffff99; ">
  94. <choices>
  95. <item>
  96. <label>老系统合同号</label>
  97. <value>Y</value>
  98. </item>
  99. <item>
  100. <label>新系统合同号</label>
  101. <value>N</value>
  102. </item>
  103. </choices>
  104. </select1>
  105. <button id="button1" style="left:545px; top:25px; width:65px; height:20px; ">
  106. <caption>确定</caption>
  107. <script type="javascript" ev:event="DOMActivate">
  108. <![CDATA[
  109. model.removenode("/root/reqData");
  110. model.makeNode("/root/reqData");
  111. //这里给出重量上下限的提示
  112. var isUse = commComfirmBox("请注意录入此合同的卷是否满足重量上下限的要求?","提示");
  113. if(isUse == "0"){
  114. //如果选择否的话,不进行相应操作
  115. //find();
  116. //bool1.value = "true";
  117. return;
  118. }
  119. //把获取的合同号和订单号给于下一个界面
  120. var opp1 = window.opener;
  121. opp1.model.setValue("/root/ORD_NO",model.getValue("/root/ORD_NO"));
  122. opp1.model.setValue("/root/ORD_SEQ",model.getValue("/root/ORD_SEQ"));
  123. //这里转换以后一定是新系统的合同号
  124. opp1.model.setValue("/root/ORD_YN","N");
  125. opp1.model.refresh();
  126. model.refresh();
  127. window.close();
  128. ]]>
  129. </script>
  130. </button>
  131. </xhtml:body>
  132. </xhtml:html>