8b3d6f927407f629b42b80672a951f823feebcd1.svn-base 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  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. <gridData>
  10. <MAT_NO>J91-01948A060</MAT_NO>
  11. <STL_GRD>JB08Al-B</STL_GRD>
  12. <MAT_THK>230</MAT_THK>
  13. <MAT_WTH>1110</MAT_WTH>
  14. <MAT_LEN>5200</MAT_LEN>
  15. <MAT_WGT>10421</MAT_WGT>
  16. <CUR_LOAD_LOC>Z12D3403</CUR_LOAD_LOC>
  17. <CUR_PROG_CD>RRC</CUR_PROG_CD>
  18. <ORD_FL>2</ORD_FL>
  19. </gridData>
  20. <formData>
  21. <R_ORD_NO/>
  22. <R_ORD_SEQ/>
  23. <R_MAT_NO/>
  24. <SIGN_STL>Y</SIGN_STL>
  25. <SIGN_CHEN_FEN>Y</SIGN_CHEN_FEN>
  26. <SING_CAIZHI>Y</SING_CAIZHI>
  27. <SIGN_QIANGZHI/>
  28. <P_REG_ID/>
  29. <errInfo/>
  30. </formData>
  31. <reqData/>
  32. <resData/>
  33. </root>
  34. </instance>
  35. <script type="javascript" ev:event="xforms-ready">
  36. <![CDATA[
  37. v_ord_no = model.property("V_ORD_NO") ;
  38. v_ord_seq = model.property("V_ORD_SEQ") ;
  39. v_reg_id = model.property("V_REG_ID") ;
  40. output1.value = v_ord_no + "- " +v_ord_seq;
  41. if(v_ord_no == null || v_ord_no == ""){
  42. alert(" 订单号为空!")
  43. }
  44. if (window.parent == null) Init();
  45. ]]>
  46. </script>
  47. </model>
  48. <script type="javascript">
  49. <![CDATA[
  50. var v_ord_no = "";
  51. var v_ord_seq = "";
  52. var v_reg_id = "";
  53. function InitParams(node) {
  54. if (typeof node == "undefined" && typeof node != "object") return;
  55. model.removenode("/root/initData/rcvInfo");
  56. model.makeNode("/root/initData/rcvInfo");
  57. var nodeList = node.childNodes;
  58. node = model.instances(0).selectSingleNode("/root/initData/rcvInfo");
  59. for (var i = 0; i < nodeList.length; i++) {
  60. node.appendChild(nodeList.item(i));
  61. }
  62. model.setValue("root/formData/USER_NAME",model.getValue("/root/initData/rcvInfo/REG_ID"));
  63. alert(model.getValue("/root/initData/rcvInfo/REG_ID"));
  64. }
  65. //2. 页面初始化函数(必须)
  66. function Init(node)
  67. {
  68. InitParams(node);
  69. }
  70. function save() {
  71. model.removenode("/root/reqData");
  72. model.makeNode("/root/reqData");
  73. model.setValue("/root/formData/R_ORD_NO",v_ord_no);
  74. model.setValue("/root/formData/R_ORD_SEQ",v_ord_seq);
  75. model.setValue("/root/formData/P_REG_ID",v_reg_id);
  76. commSendReq("/root/formData");
  77. commSubmit("UIE031046-service","save","glueAction.do");
  78. if (model.getValue("/root/resData/errorData") != "") {
  79. // alert(model.getValue("/root/resData/errorData"));
  80. output2.value = model.getValue("/root/resData/errorData");
  81. return;
  82. }
  83. }
  84. function find() {
  85. model.removenode("/root/reqData");
  86. model.makeNode("/root/reqData");
  87. commSendReq("/root/formData");
  88. commSubmit("UIE031046-service","find","glueAction.do");
  89. model.refresh();
  90. }
  91. ]]>
  92. </script>
  93. <script type="javascript" src="../../js/boaCommon.js"/>
  94. <script type="javascript" src="../../js/boaMsg.js"/>
  95. </xhtml:head>
  96. <xhtml:body>
  97. <caption id="caption2" class="cell" style="left:30px; top:40px; width:100px; height:20px; ">订单号</caption>
  98. <output id="output1" style="left:131px; top:40px; width:140px; height:20px; border-color:#000000; border-style:solid; "/>
  99. <input id="input1" ref="/root/formData/R_MAT_NO" style="left:381px; top:40px; width:139px; height:20px; "/>
  100. <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; ">
  101. <col ref="MAT_NO"/>
  102. <col ref="STL_GRD"/>
  103. <col ref="MAT_THK"/>
  104. <col ref="MAT_WTH"/>
  105. <col ref="MAT_LEN"/>
  106. <col ref="MAT_WGT"/>
  107. <col ref="CUR_LOAD_LOC"/>
  108. <col ref="CUR_PROG_CD"/>
  109. <col ref="ORD_FL"/>
  110. <col ref="ORD_NO"/>
  111. <col ref="ORD_SEQ"/>
  112. </datagrid>
  113. <input id="output2" ref="/root/formData/errInfo" style="left:30px; top:215px; width:600px; height:115px; "/>
  114. <line id="line1" style="x1:30px; y1:211px; x2:630px; y2:211px; "/>
  115. <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; ">
  116. <choices>
  117. <item>
  118. <label>同成分</label>
  119. <value>Y</value>
  120. </item>
  121. </choices>
  122. </select>
  123. <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; ">
  124. <choices>
  125. <item>
  126. <label>同材质</label>
  127. <value>Y</value>
  128. </item>
  129. </choices>
  130. </select>
  131. <select id="checkbox9" ref="/root/formData/SIGN_STL" overflow="visible" appearance="full" style="left:312px; top:69px; width:55px; height:20px; border-style:none; ">
  132. <choices>
  133. <item>
  134. <label>同牌号</label>
  135. <value>Y</value>
  136. </item>
  137. </choices>
  138. </select>
  139. <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; ">
  140. <choices>
  141. <item>
  142. <label>强制充当</label>
  143. <value>Y</value>
  144. </item>
  145. </choices>
  146. <script type="javascript" ev:event="xforms-select">
  147. <![CDATA[
  148. if(checkbox1.value = "Y") {
  149. alert("强制充当有风险!请谨慎操作,后果自负");
  150. }
  151. ]]>
  152. </script>
  153. </select>
  154. <button id="button1" style="left:555px; top:69px; width:70px; height:20px; text-align:right; background-image:../../images/save.gif; ">
  155. <caption>充当确定</caption>
  156. <script type="javascript" ev:event="onclick">
  157. <![CDATA[
  158. save();
  159. ]]>
  160. </script>
  161. </button>
  162. <caption id="caption1" class="cell" style="left:280px; top:40px; width:100px; height:20px; ">指定充当物料号</caption>
  163. <button id="button2" style="left:555px; top:40px; width:70px; height:20px; text-align:right; background-image:../../images/save.gif; ">
  164. <caption>物料查询</caption>
  165. <script type="javascript" ev:event="onclick">
  166. <![CDATA[
  167. find();
  168. ]]>
  169. </script>
  170. </button>
  171. </xhtml:body>
  172. </xhtml:html>