dbdc5c70306adcafcf31794c71c7a0732372dfb5.svn-base 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <?xml-stylesheet type="text/css" href="../../css/body.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>
  6. <![CDATA[发货管理 > 发货处理 > 火车排车及装车指示]]>
  7. </xhtml:title>
  8. <model id="model1">
  9. <instance id="instance1">
  10. <root xmlns="">
  11. <initData/>
  12. <resData/>
  13. <reqData/>
  14. <searchData>
  15. <fromDate/>
  16. <toDate/>
  17. <SHIP_DIRNO/>
  18. <DLIV_TP/>
  19. <SHIP_COMP_NM/>
  20. <SHIP_PROG_CD/>
  21. <CUR_PROG_CD/>
  22. <LANE_TP/>
  23. <ENTERANCE_SEQ/>
  24. <DLIV_DIRNO/>
  25. </searchData>
  26. <datagrid1/>
  27. <ISCANCEL/>
  28. </root>
  29. </instance>
  30. </model>
  31. <script type="javascript" src="../../js/boaMsg.js"/>
  32. <script type="javascript" src="../../js/boaCommon.js"/>
  33. <script type="javascript">
  34. <![CDATA[
  35. function Init(node) {
  36. InitParams(node);
  37. }
  38. //调用公共的初始化方法获得登录用户名
  39. function InitParams(node) {
  40. if (typeof node == "undefined" && typeof node != "object") return;
  41. model.removenode("/root/initData/rcvInfo");
  42. model.makeNode("/root/initData/rcvInfo");
  43. var nodeList = node.childNodes;
  44. node = model.instances(0).selectSingleNode("/root/initData/rcvInfo");
  45. for (var i = 0; i < nodeList.length; i++)
  46. node.appendChild(nodeList.item(i));
  47. }
  48. //查询方法
  49. function find(){
  50. //清空发送接点
  51. model.removenode("/root/reqData");
  52. model.makeNode("/root/reqData");
  53. //清空datagrid1
  54. model.removenode("/root/datagrid1");
  55. model.makeNode("/root/datagrid1");
  56. //判断发货指示时间是否为空
  57. var fromDate = model.getValue("/root/searchData/fromDate");
  58. var toDate = model.getValue("/root/searchData/toDate");
  59. var DLIV_TP = model.getValue("/root/searchData/DLIV_TP");
  60. if(fromDate == ""){
  61. alert(" 发货指示的开始时间不能为空,请选择相应的发货指示开始时间! ");
  62. return;
  63. }
  64. if(toDate == ""){
  65. alert(" 发货指示的结束时间不能为空,请选择相应的发货指示结束时间! ");
  66. return;
  67. }
  68. if(DLIV_TP == ""){
  69. alert(" 运输方式不能为空,请选择相应的运输方式! ");
  70. return;
  71. }
  72. //把相应的接点放入发送对象
  73. //初始化页面,查询的发货指示状态为03排车待机和材料进度"SFB"
  74. model.setValue("/root/searchData/SHIP_PROG_CD","03");
  75. model.duplicate("/root/reqData","/root/searchData/SHIP_PROG_CD");
  76. model.duplicate("/root/reqData","/root/searchData/fromDate");
  77. model.duplicate("/root/reqData","/root/searchData/toDate");
  78. model.setValue("/root/searchData/SHIP_DIRNO","");
  79. model.duplicate("/root/reqData","/root/searchData/SHIP_DIRNO");
  80. //这里物料进度为SFB,避免降级余才
  81. model.setValue("/root/searchData/CUR_PROG_CD","SFB");
  82. //5
  83. model.duplicate("/root/reqData","/root/searchData/CUR_PROG_CD");
  84. model.duplicate("/root/reqData","/root/searchData/fromDate");
  85. model.duplicate("/root/reqData","/root/searchData/toDate");
  86. model.duplicate("/root/reqData","/root/searchData/DLIV_TP");
  87. model.setValue("/root/searchData/LANE_TP","");
  88. model.duplicate("/root/reqData","/root/searchData/LANE_TP");
  89. model.setValue("/root/searchData/ENTERANCE_SEQ","");
  90. model.duplicate("/root/reqData","/root/searchData/ENTERANCE_SEQ");
  91. //11 这里的运输方式也一定是铁路运输,所以可以直接默认
  92. model.duplicate("/root/reqData","/root/searchData/SHIP_COMP_NM");
  93. model.duplicate("/root/reqData","/root/searchData/DLIV_TP");
  94. //这里查询写死为0
  95. model.setValue("/root/ISCANCEL","0");
  96. model.duplicate("/root/reqData","/root/ISCANCEL");
  97. model.duplicate("/root/reqData","/root/searchData/DLIV_DIRNO");
  98. commSubmit("UIJ010100-service","find","glueAction.do");
  99. commAppendData("/root/datagrid1/DLIVDIR_VO","/root/resData/DLIVDIR_VO");
  100. model.refresh();
  101. }
  102. //保存方法
  103. function save() {
  104. //这里必须判断,没有选中的行不能点击保存按钮。
  105. var mark = null;
  106. var ISCANCEL = null;
  107. var nodeSet1 = datagrid1.nodeset;
  108. for(var i=1;i<datagrid1.rows;i++){
  109. var chk = model.getValue(nodeSet1+"["+i+"]/CHK");
  110. if(chk == "Y"){
  111. mark = "Y";
  112. ISCANCEL = model.getValue(nodeSet1+"["+i+"]/ISCANCEL");
  113. break;
  114. }
  115. }
  116. if(mark == "Y"){
  117. if(ISCANCEL == "0"){
  118. model.removenode("/root/reqData");
  119. model.makeNode("/root/reqData");
  120. commMultiUpdate(datagrid1,"/root/reqData","A",true,"rowStatus");
  121. //这里加入登录用户名,会不会与已有的initData冲突
  122. model.makeValue("/root/reqData/REG_ID",model.getValue("/root/initData/rcvInfo/REG_ID"));
  123. commSubmit("UIJ010100-service","save","glueAction.do");
  124. model.refresh();
  125. }else if(ISCANCEL == "1"){
  126. alert(" 已经回退的计划,不能进行保存操作!! ");
  127. return;
  128. }
  129. }else{
  130. alert(" 没有选中的计划,不能点击保存按钮!! ");
  131. return;
  132. }
  133. find();
  134. }
  135. ]]>
  136. </script>
  137. </xhtml:head>
  138. <xhtml:body guideline="2,-3;">
  139. <caption id="caption3" class="cell" style="left:650px; top:0px; width:95px; height:20px; font-weight:bold; text-align:center; border-color:#000000; border-style:solid; "/>
  140. <caption id="caption5" class="cell" style="left:0px; top:0px; width:90px; height:20px; font-weight:bold; text-align:left; border-color:#000000; border-style:solid; ">发货指示时间</caption>
  141. <input id="input1" ref="/root/searchData/fromDate" inputtype="date" format="yyyy-mm-dd" style="left:90px; top:0px; width:115px; height:20px; background-color:#ffff99; "/>
  142. <input id="input2" ref="/root/searchData/toDate" inputtype="date" format="yyyy-mm-dd" style="left:235px; top:0px; width:115px; height:20px; background-color:#ffff99; "/>
  143. <caption id="caption1" style="left:205px; top:0px; width:30px; height:20px; text-align:center; vertical-align:middle; ">--</caption>
  144. <caption id="caption2" class="cell" style="left:380px; top:0px; width:75px; height:20px; font-weight:bold; text-align:center; border-color:#000000; border-style:solid; ">运输指示号</caption>
  145. <input id="input6" ref="/root/searchData/DLIV_DIRNO" style="left:455px; top:0px; width:95px; height:20px; background-color:#ffff99; "/>
  146. <datagrid id="datagrid1" nodeset="/root/datagrid1/DLIVDIR_VO/DLIVDIR_Row" caption="选择^发货指示号^目的地^专用线^收货单位^合同单位^合同号^订单号^牌号^规格^是否回退标志^运输指示号^发货指示^发货指示^^^^^^^^^^^|选择^发货指示号^目的地^专用线^收货单位^合同单位^合同号^订单号^牌号^规格^是否回退标志^运输指示号^数量^重量^^^^^^^^^^^" colsep="^" colwidth="21, 85, 63, 70, 90, 90, 86, 50, 75, 70, 88, 88, 43, 43, 100, 32, 100, 53, 68, 100, 100, 100, 100, 100, 100" defaultrows="30" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:25px; width:980px; height:570px; ">
  147. <col checkvalue="Y,N" ref="CHK" type="checkbox"/>
  148. <col editable="false" ref="SHIP_DIRNO" type="input" style="background-color:#ffffff; "/>
  149. <col editable="false" ref="DEST_PCD_DESC" type="input" style="background-color:#ffffff; "/>
  150. <col editable="false" ref="EXLV_LINE_CD_DESC" type="input" style="background-color:#ffffff; "/>
  151. <col editable="false" ref="ORD_NM" type="input" style="background-color:#ffffff; "/>
  152. <col editable="false" ref="CUST_NM" type="input" style="background-color:#ffffff; "/>
  153. <col editable="false" ref="ORD_NO" type="input" style="background-color:#ffffff; "/>
  154. <col editable="false" ref="ORD_SEQ" type="input" style="background-color:#ffffff; "/>
  155. <col editable="false" ref="SPEC_STL_GRD" type="input" style="background-color:#ffffff; "/>
  156. <col editable="false" ref="T_W" type="input" style="background-color:#ffffff; "/>
  157. <col editable="false" ref="ISCANCEL" type="input" style="background-color:#ffffff; "/>
  158. <col editable="false" ref="DLIV_DIRNO" type="input" style="background-color:#ffffff; "/>
  159. <col ref="CNT"/>
  160. <col ref="ACT_WGT"/>
  161. <col ref="TRAIN_DLIVNO" visibility="hidden"/>
  162. <col ref="ALLOC_SEQ" type="input" visibility="hidden" style="background-color:#ffff99; "/>
  163. <col ref="TRANS_CAR_NO" type="input" visibility="hidden" style="background-color:#ffff99; "/>
  164. <col editmode="input" ref="LANE_TP" type="combo" visibility="hidden" style="background-color:#ffff99; ">
  165. <choices>
  166. <item>
  167. <label/>
  168. <value/>
  169. </item>
  170. <item>
  171. <label>A</label>
  172. <value>A</value>
  173. </item>
  174. <item>
  175. <label>B</label>
  176. <value>B</value>
  177. </item>
  178. </choices>
  179. </col>
  180. <col ref="ENTERANCE_SEQ" type="input" visibility="hidden" style="background-color:#ffff99; "/>
  181. <col ref="SM_CFNM" visibility="hidden"/>
  182. <col ref="DLIV_TP_NM" visibility="hidden"/>
  183. <col ref="GET_NO_PCD" visibility="hidden"/>
  184. <col ref="GET_OFF_PCD" visibility="hidden"/>
  185. <col ref="DEST_PCD" visibility="hidden"/>
  186. <col ref="EXLV_LINE_CD" visibility="hidden"/>
  187. </datagrid>
  188. <select1 id="combo2" ref="/root/searchData/DLIV_TP" appearance="minimal" style="left:865px; top:0px; width:110px; height:20px; background-color:#ffff99; border-color:#000000; ">
  189. <choices>
  190. <item>
  191. <label>火运</label>
  192. <value>T</value>
  193. </item>
  194. <item>
  195. <label>汽运</label>
  196. <value>C</value>
  197. </item>
  198. </choices>
  199. </select1>
  200. <caption id="caption4" class="cell" style="left:770px; top:0px; width:95px; height:20px; font-weight:bold; text-align:center; border-color:#000000; border-style:solid; ">运输方式</caption>
  201. <button id="button3" style="left:650px; top:0px; width:95px; height:20px; ">
  202. <caption>查询回退计划</caption>
  203. <script type="javascript" ev:event="DOMActivate">
  204. <![CDATA[
  205. //清空发送接点
  206. model.removenode("/root/reqData");
  207. model.makeNode("/root/reqData");
  208. //清空datagrid1
  209. model.removenode("/root/datagrid1");
  210. model.makeNode("/root/datagrid1");
  211. //判断发货指示时间是否为空
  212. var fromDate = model.getValue("/root/searchData/fromDate");
  213. var toDate = model.getValue("/root/searchData/toDate");
  214. var DLIV_TP = model.getValue("/root/searchData/DLIV_TP");
  215. if(fromDate == ""){
  216. alert(" 发货指示的开始时间不能为空,请选择相应的发货指示开始时间! ");
  217. return;
  218. }
  219. if(toDate == ""){
  220. alert(" 发货指示的结束时间不能为空,请选择相应的发货指示结束时间! ");
  221. return;
  222. }
  223. if(DLIV_TP == ""){
  224. alert(" 运输方式不能为空,请选择相应的运输方式! ");
  225. return;
  226. }
  227. //把相应的接点放入发送对象
  228. //初始化页面,查询的发货指示状态为03排车待机和材料进度"SFB"
  229. model.setValue("/root/searchData/SHIP_PROG_CD","03");
  230. model.duplicate("/root/reqData","/root/searchData/SHIP_PROG_CD");
  231. model.duplicate("/root/reqData","/root/searchData/fromDate");
  232. model.duplicate("/root/reqData","/root/searchData/toDate");
  233. model.setValue("/root/searchData/SHIP_DIRNO","");
  234. model.duplicate("/root/reqData","/root/searchData/SHIP_DIRNO");
  235. //这里物料进度为SFB,避免降级余才
  236. model.setValue("/root/searchData/CUR_PROG_CD","SFB");
  237. //5
  238. model.duplicate("/root/reqData","/root/searchData/CUR_PROG_CD");
  239. model.duplicate("/root/reqData","/root/searchData/fromDate");
  240. model.duplicate("/root/reqData","/root/searchData/toDate");
  241. model.duplicate("/root/reqData","/root/searchData/DLIV_TP");
  242. model.setValue("/root/searchData/LANE_TP","");
  243. model.duplicate("/root/reqData","/root/searchData/LANE_TP");
  244. model.setValue("/root/searchData/ENTERANCE_SEQ","");
  245. model.duplicate("/root/reqData","/root/searchData/ENTERANCE_SEQ");
  246. //11 这里的运输方式也一定是铁路运输,所以可以直接默认
  247. model.duplicate("/root/reqData","/root/searchData/SHIP_COMP_NM");
  248. model.duplicate("/root/reqData","/root/searchData/DLIV_TP");
  249. //人工指定查询取消
  250. model.setValue("/root/ISCANCEL","1");
  251. model.duplicate("/root/reqData","/root/ISCANCEL");
  252. model.duplicate("/root/reqData","/root/searchData/DLIV_DIRNO");
  253. commSubmit("UIJ010100-service","find","glueAction.do");
  254. commAppendData("/root/datagrid1/DLIVDIR_VO","/root/resData/DLIVDIR_VO");
  255. model.refresh();
  256. ]]>
  257. </script>
  258. </button>
  259. </xhtml:body>
  260. </xhtml:html>