UIH050700.xrw 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806
  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[热轧作业>>钢卷库管理>>钢卷库移垛操作(UIH050700)]]>
  7. </xhtml:title>
  8. <model id="model1">
  9. <instance id="instance1">
  10. <root xmlns="">
  11. <reqData/>
  12. <resData/>
  13. <datagrid1>
  14. </datagrid1>
  15. <searchData>
  16. <FROM_ADDR/>
  17. <TO_ADDR/>
  18. <TMP_ADDR/>
  19. </searchData>
  20. <tempData/>
  21. <send_flag/>
  22. <datagrid2/>
  23. <datagrid3/>
  24. <COIL_SEARCH>
  25. <COIL_NO/>
  26. <COIL_YARD/>
  27. </COIL_SEARCH>
  28. <REG_ID/>
  29. <WK>
  30. <ENTRY_SHIFT/>
  31. <ENTRY_GROUP/>
  32. <ENTRY_REG/>
  33. <ENTRY_DTIME/>
  34. </WK>
  35. </root>
  36. </instance>
  37. </model>
  38. <script type="javascript" src="../../js/boaMsg.js"/>
  39. <script type="javascript" src="../../js/boaCommon.js"/>
  40. <script type="javascript">
  41. <![CDATA[
  42. //页面初始化的时候需要获取登录的相关用户信息
  43. function Init(node) {
  44. InitParams(node);
  45. }
  46. //调用公共的初始化方法获得登录用户名
  47. function InitParams(node) {
  48. if (typeof node == "undefined" && typeof node != "object") return;
  49. model.removenode("/root/initData/rcvInfo");
  50. model.makeNode("/root/initData/rcvInfo");
  51. var nodeList = node.childNodes;
  52. node = model.instances(0).selectSingleNode("/root/initData/rcvInfo");
  53. for (var i = 0; i < nodeList.length; i++)
  54. node.appendChild(nodeList.item(i));
  55. }
  56. function find(){
  57. model.removenode("/root/reqData");
  58. model.makeNode("/root/reqData");
  59. model.removenode("/root/datagrid1");
  60. model.makeNode("/root/datagrid1");
  61. model.removenode("/root/datagrid2");
  62. model.makeNode("/root/datagrid2");
  63. model.removenode("/root/datagrid3");
  64. model.makeNode("/root/datagrid3");
  65. //如果没有输入垛位值的话,给出默认值
  66. if(model.getValue("/root/searchData/FROM_ADDR") == ""){
  67. model.setValue("/root/searchData/FROM_ADDR","C1101");
  68. }
  69. if(model.getValue("/root/searchData/TO_ADDR") == ""){
  70. model.setValue("/root/searchData/TO_ADDR","C3101");
  71. }
  72. if(model.getValue("/root/searchData/TMP_ADDR") == ""){
  73. model.setValue("/root/searchData/TMP_ADDR","C4301");
  74. }
  75. model.duplicate("/root/reqData","/root/searchData/FROM_ADDR");
  76. model.duplicate("/root/reqData","/root/searchData/TO_ADDR");
  77. model.duplicate("/root/reqData","/root/searchData/TMP_ADDR");
  78. commSubmit("UIH050700-service", "find", "glueAction.do");
  79. commAppendData("/root/datagrid1/FromYard_VO","/root/resData/FromYard_VO");
  80. commAppendData("/root/datagrid3/ToYard_VO","/root/resData/ToYard_VO");
  81. commAppendData("/root/datagrid2/TmpYard_VO","/root/resData/TmpYard_VO");
  82. model.refresh();
  83. }
  84. function save(){
  85. model.removenode("/root/reqData");
  86. model.makeNode("/root/reqData");
  87. //给出行状态
  88. for(var i=0;i<datagrid1.rows;i++){
  89. datagrid1.rowStatus(i) = 3;
  90. }
  91. for(var j=0;j<datagrid2.rows;j++){
  92. datagrid2.rowStatus(j) = 3;
  93. }
  94. for(var k=0;k<datagrid3.rows;k++){
  95. datagrid3.rowStatus(k) = 3;
  96. }
  97. commMultiUpdate(datagrid1,"/root/reqData","A",true,"rowStuts");
  98. commMultiUpdate(datagrid2,"/root/reqData","A",true,"rowStuts");
  99. commMultiUpdate(datagrid3,"/root/reqData","A",true,"rowStuts");
  100. //这里加入登录用户名,会不会与已有的initData冲突
  101. model.makeValue("/root/reqData/REG_ID",model.getValue("/root/initData/rcvInfo/REG_ID"));;
  102. commSubmit("UIH050700-service", "save", "glueAction.do");
  103. model.refresh();
  104. }
  105. //获得来源位置垛位
  106. function call_FROM_UIH05_COIL_YARD(){
  107. //这里给出正常垛位标志
  108. model.setValue("/root/send_flag","Y");
  109. model.refresh();
  110. window.load("UIH05_SELECT_COIL_YARD.xrw","modal","", "left:400; top:100; width:650px; height:500px; sysmenu:visible; min:visible; max:true; resize:true; caption:visible;");
  111. model1.setValue("/root/searchData/FROM_ADDR",model1.getValue("/root/tempData"));
  112. model1.removenode("/root/tempData");
  113. model1.makeNode("/root/tempData");
  114. input2.refresh();
  115. find();
  116. }
  117. //获得去向位置垛位
  118. function call_TO_UIH05_COIL_YARD(){
  119. //这里给出正常垛位标志
  120. model.setValue("/root/send_flag","Y");
  121. model.refresh();
  122. window.load("UIH05_SELECT_COIL_YARD.xrw","modal","", "left:400; top:100; width:650px; height:500px; sysmenu:visible; min:visible; max:true; resize:true; caption:visible;");
  123. model1.setValue("/root/searchData/TO_ADDR",model1.getValue("/root/tempData"));
  124. model1.removenode("/root/tempData");
  125. model1.makeNode("/root/tempData");
  126. input1.refresh();
  127. find();
  128. }
  129. //获得临时垛位
  130. function call_TMP_UIH05_COIL_YARD(){
  131. //这里给出临时垛位标志
  132. model.setValue("/root/send_flag","N");
  133. model.refresh();
  134. window.load("UIH05_SELECT_COIL_YARD.xrw","modal","", "left:400; top:100; width:650px; height:500px; sysmenu:visible; min:visible; max:true; resize:true; caption:visible;");
  135. model1.setValue("/root/searchData/TMP_ADDR",model1.getValue("/root/tempData"));
  136. model1.removenode("/root/tempData");
  137. model1.makeNode("/root/tempData");
  138. input3.refresh();
  139. find();
  140. }
  141. //来源移动到临时
  142. function From_Tmp_MoveR(){
  143. //这里判断来源和去向是否选中
  144. var nodeSet1 = datagrid1.nodeset;
  145. var nodeSet2 = datagrid2.nodeset;
  146. //来源变量
  147. var CHK_FROM = null;
  148. var FROM_YARD = null;
  149. var FROM_COIL = null;
  150. var FROM_ROW = null;
  151. //临时变量
  152. var CHK_TMP = null;
  153. var TMP_YARD = null;
  154. var TMP_COIL = null;
  155. var TMP_ROW = null;
  156. //这里取出表格1中的选中行
  157. for(var i=0;i<datagrid1.selectedRows;i++){
  158. FROM_ROW = datagrid1.selectedRow(i);
  159. CHK_FROM = model.getValue(nodeSet1+"["+FROM_ROW+"]/CHK");
  160. if(CHK_FROM == "Y"){
  161. FROM_YARD = model.getValue(nodeSet1+"["+FROM_ROW+"]/COIL_YARD");
  162. FROM_COIL = model.getValue(nodeSet1+"["+FROM_ROW+"]/COIL_NO");
  163. }
  164. }
  165. //这里取出表格2中的选中行
  166. for(var j=0;j<datagrid2.selectedRows;j++){
  167. TMP_ROW = datagrid2.selectedRow(j);
  168. CHK_TMP = model.getValue(nodeSet2+"["+TMP_ROW+"]/CHK");
  169. if(CHK_TMP == "Y"){
  170. TMP_YARD = model.getValue(nodeSet2+"["+TMP_ROW+"]/COIL_YARD");
  171. TMP_COIL = model.getValue(nodeSet2+"["+TMP_ROW+"]/COIL_NO");
  172. //这里需要判断去向位置是否存在钢卷,存在的话给于提示
  173. if(TMP_COIL == ""){
  174. if(FROM_COIL == ""){
  175. alert(" 请确认需要移动的原放置位置,再点击移动按钮! ");
  176. return;
  177. }else{
  178. //给去向位置赋值
  179. model.setValue(nodeSet2+"["+TMP_ROW+"]/COIL_NO",FROM_COIL);
  180. //清楚来源位置
  181. model.setValue(nodeSet1+"["+FROM_ROW+"]/COIL_NO","");
  182. model.refresh();
  183. }
  184. }else{
  185. alert(" 临时垛位存在钢卷,不能进行移动操作! ");
  186. return;
  187. }
  188. }else{
  189. //这里不选中的行不做处理
  190. }
  191. }
  192. model.refresh();
  193. }
  194. //这里处理从原堆放位置或者临时堆放位置->到堆放位置
  195. function FROM_TMP_TO_MOVER(){
  196. var nodeSet1 = datagrid1.nodeset;
  197. var nodeSet2 = datagrid2.nodeset;
  198. var nodeSet3 = datagrid3.nodeset;
  199. //来源变量
  200. var CHK_FROM = null;
  201. var FROM_YARD = null;
  202. var FROM_COIL = null;
  203. var FROM_ROW = null;
  204. //临时变量
  205. var CHK_TMP = null;
  206. var TMP_YARD = null;
  207. var TMP_COIL = null;
  208. var TMP_ROW = null;
  209. //去向变量
  210. var CHK_TO = null;
  211. var TO_YARD = null;
  212. var TO_COIL = null;
  213. var TO_ROW = null;
  214. //取出原位置和临时位置的值,这里原位置和临时位置不能同时存在
  215. for(var i=0;i<datagrid1.selectedRows;i++){
  216. FROM_ROW = datagrid1.selectedRow(i);
  217. CHK_FROM = model.getValue(nodeSet1+"["+FROM_ROW+"]/CHK");
  218. if(CHK_FROM == "Y"){
  219. FROM_COIL = model.getValue(nodeSet1+"["+FROM_ROW+"]/COIL_NO");
  220. FROM_YARD = model.getValue(nodeSet1+"["+FROM_ROW+"]/COIL_YARD");
  221. }
  222. }
  223. for(var j=0;j<datagrid2.selectedRows;j++){
  224. TMP_ROW = datagrid2.selectedRow(j);
  225. CHK_TMP = model.getValue(nodeSet2+"["+TMP_ROW+"]/CHK");
  226. if(CHK_TMP == "Y"){
  227. TMP_YARD = model.getValue(nodeSet2+"["+TMP_ROW+"]/COIL_YARD");
  228. TMP_COIL = model.getValue(nodeSet2+"["+TMP_ROW+"]/COIL_NO");
  229. }
  230. }
  231. //这里在到放置位置进行判断
  232. for(var k=0;k<datagrid3.selectedRows;k++){
  233. TO_ROW = datagrid3.selectedRow(k);
  234. CHK_TO = model.getValue(nodeSet3+"["+TO_ROW+"]/CHK");
  235. if(CHK_TO == "Y"){
  236. TO_YARD = model.getValue(nodeSet3+"["+TO_ROW+"]/COIL_YARD");
  237. TO_COIL = model.getValue(nodeSet3+"["+TO_ROW+"]/COIL_NO");
  238. //判断来源和临时是否同时存在
  239. if(CHK_FROM == "Y" && CHK_TMP == "Y"){
  240. alert(" 原放置位置和临时位置不能同时选中,请确认后重新选择!");
  241. model.setValue(nodeSet2+"["+TMP_ROW+"]/CHK","N");
  242. model.setValue(nodeSet1+"["+FROM_ROW+"]/CHK","N");
  243. model.refresh();
  244. return;
  245. }else{
  246. //判断到位置有没有钢卷存在
  247. if(TO_COIL == ""){
  248. //这里需要找到选中的来源位置
  249. if(CHK_FROM == "Y"){
  250. //这里处理来源存在的情况
  251. if(FROM_COIL == ""){
  252. alert(" 请确认需要移动的原放置位置,再点击移动按钮! ");
  253. return;
  254. }else{
  255. //给去向位置赋值
  256. model.setValue(nodeSet3+"["+TO_ROW+"]/COIL_NO",FROM_COIL);
  257. //清楚来源位置
  258. model.setValue(nodeSet1+"["+FROM_ROW+"]/COIL_NO","");
  259. model.refresh();
  260. }
  261. }else{
  262. //如果是临时堆放位置选中的情况
  263. if(CHK_TMP == "Y"){
  264. //判断临时位置是否存在钢卷
  265. if(TMP_COIL == ""){
  266. alert(" 请确认需要移动的临时堆放位置,再点击移动按钮! ");
  267. return;
  268. }else{
  269. //给去向位置赋值
  270. model.setValue(nodeSet3+"["+TO_ROW+"]/COIL_NO",TMP_COIL);
  271. //清楚来源位置
  272. model.setValue(nodeSet2+"["+TMP_ROW+"]/COIL_NO","");
  273. model.refresh();
  274. }
  275. }
  276. }
  277. }else{
  278. alert(" 到堆放位置存在钢卷,不能进行移动操作!");
  279. return;
  280. }
  281. }
  282. }
  283. }
  284. model.refresh();
  285. }
  286. //来源移动到临时
  287. function TO_Tmp_MoveL(){
  288. //这里判断来源和去向是否选中
  289. var nodeSet3 = datagrid3.nodeset;
  290. var nodeSet2 = datagrid2.nodeset;
  291. //去向变量
  292. var CHK_TO = null;
  293. var TO_YARD = null;
  294. var TO_COIL = null;
  295. var TO_ROW = null;
  296. //临时变量
  297. var CHK_TMP = null;
  298. var TMP_YARD = null;
  299. var TMP_COIL = null;
  300. var TMP_ROW = null;
  301. //这里取出表格1中的选中行
  302. for(var i=0;i<datagrid3.selectedRows;i++){
  303. TO_ROW = datagrid3.selectedRow(i);
  304. CHK_TO = model.getValue(nodeSet3+"["+TO_ROW+"]/CHK");
  305. if(CHK_TO == "Y"){
  306. TO_YARD = model.getValue(nodeSet3+"["+TO_ROW+"]/COIL_YARD");
  307. TO_COIL = model.getValue(nodeSet3+"["+TO_ROW+"]/COIL_NO");
  308. }
  309. }
  310. //这里取出表格2中的选中行
  311. for(var j=0;j<datagrid2.selectedRows;j++){
  312. TMP_ROW = datagrid2.selectedRow(j);
  313. CHK_TMP = model.getValue(nodeSet2+"["+TMP_ROW+"]/CHK");
  314. if(CHK_TMP == "Y"){
  315. TMP_YARD = model.getValue(nodeSet2+"["+TMP_ROW+"]/COIL_YARD");
  316. TMP_COIL = model.getValue(nodeSet2+"["+TMP_ROW+"]/COIL_NO");
  317. //这里需要判断去向位置是否存在钢卷,存在的话给于提示
  318. if(TMP_COIL == ""){
  319. if(TO_COIL == ""){
  320. alert(" 请确认需要移动的到放置位置,再点击移动按钮! ");
  321. return;
  322. }else{
  323. //给去向位置赋值
  324. model.setValue(nodeSet2+"["+TMP_ROW+"]/COIL_NO",TO_COIL);
  325. //清楚来源位置
  326. model.setValue(nodeSet3+"["+TO_ROW+"]/COIL_NO","");
  327. model.refresh();
  328. }
  329. }else{
  330. alert(" 临时垛位存在钢卷,不能进行移动操作! ");
  331. return;
  332. }
  333. }else{
  334. //这里不选中的行不做处理
  335. }
  336. }
  337. model.refresh();
  338. }
  339. //这里处理从到堆放位置或者临时堆放位置->原堆放位置
  340. function TO_TMP_FROM_MOVEL(){
  341. var nodeSet1 = datagrid1.nodeset;
  342. var nodeSet2 = datagrid2.nodeset;
  343. var nodeSet3 = datagrid3.nodeset;
  344. //来源变量
  345. var CHK_FROM = null;
  346. var FROM_YARD = null;
  347. var FROM_COIL = null;
  348. var FROM_ROW = null;
  349. //临时变量
  350. var CHK_TMP = null;
  351. var TMP_YARD = null;
  352. var TMP_COIL = null;
  353. var TMP_ROW = null;
  354. //去向变量
  355. var CHK_TO = null;
  356. var TO_YARD = null;
  357. var TO_COIL = null;
  358. var TO_ROW = null;
  359. //取出到位置和临时位置的值,这里到位置和临时位置不能同时存在
  360. for(var i=0;i<datagrid3.selectedRows;i++){
  361. TO_ROW = datagrid3.selectedRow(i);
  362. CHK_TO = model.getValue(nodeSet3+"["+TO_ROW+"]/CHK");
  363. if(CHK_TO == "Y"){
  364. TO_COIL = model.getValue(nodeSet3+"["+TO_ROW+"]/COIL_NO");
  365. TO_YARD = model.getValue(nodeSet3+"["+TO_ROW+"]/COIL_YARD");
  366. }
  367. }
  368. for(var j=0;j<datagrid2.selectedRows;j++){
  369. TMP_ROW = datagrid2.selectedRow(j);
  370. CHK_TMP = model.getValue(nodeSet2+"["+TMP_ROW+"]/CHK");
  371. if(CHK_TMP == "Y"){
  372. TMP_YARD = model.getValue(nodeSet2+"["+TMP_ROW+"]/COIL_YARD");
  373. TMP_COIL = model.getValue(nodeSet2+"["+TMP_ROW+"]/COIL_NO");
  374. }
  375. }
  376. //这里在原放置位置进行判断
  377. for(var k=0;k<datagrid1.selectedRows;k++){
  378. FROM_ROW = datagrid1.selectedRow(k);
  379. CHK_FROM = model.getValue(nodeSet1+"["+FROM_ROW+"]/CHK");
  380. if(CHK_FROM == "Y"){
  381. FROM_YARD = model.getValue(nodeSet1+"["+FROM_ROW+"]/COIL_YARD");
  382. FROM_COIL = model.getValue(nodeSet1+"["+FROM_ROW+"]/COIL_NO");
  383. //判断来源和临时是否同时存在
  384. if(CHK_TO == "Y" && CHK_TMP == "Y"){
  385. alert(" 到放置位置和临时位置不能同时选中,请确认后重新选择!");
  386. model.setValue(nodeSet2+"["+TMP_ROW+"]/CHK","N");
  387. model.setValue(nodeSet3+"["+TO_ROW+"]/CHK","N");
  388. model.refresh();
  389. return;
  390. }else{
  391. //判断原位置有没有钢卷存在
  392. if(FROM_COIL == ""){
  393. //这里需要找到选中的到放置位置
  394. if(CHK_TO == "Y"){
  395. //这里处理来源存在的情况
  396. if(TO_COIL == ""){
  397. alert(" 请确认需要移动的到放置位置,再点击移动按钮! ");
  398. return;
  399. }else{
  400. //给去向位置赋值
  401. model.setValue(nodeSet3+"["+TO_ROW+"]/COIL_NO","");
  402. //清楚来源位置
  403. model.setValue(nodeSet1+"["+FROM_ROW+"]/COIL_NO",TO_COIL);
  404. model.refresh();
  405. }
  406. }else{
  407. //如果是临时堆放位置选中的情况
  408. if(CHK_TMP == "Y"){
  409. //判断临时位置是否存在钢卷
  410. if(TMP_COIL == ""){
  411. alert(" 请确认需要移动的临时堆放位置,再点击移动按钮! ");
  412. return;
  413. }else{
  414. //给去向位置赋值
  415. model.setValue(nodeSet1+"["+FROM_ROW+"]/COIL_NO",TMP_COIL);
  416. //清楚来源位置
  417. model.setValue(nodeSet2+"["+TMP_ROW+"]/COIL_NO","");
  418. model.refresh();
  419. }
  420. }
  421. }
  422. }else{
  423. alert(" 原堆放位置存在钢卷,不能进行移动操作!");
  424. return;
  425. }
  426. }
  427. }
  428. }
  429. model.refresh();
  430. }
  431. //清除表格1中的选中的行
  432. function deleteDatagrid1(){
  433. var nodeSet1 = datagrid1.nodeset;
  434. for(var i=0;i<=datagrid1.rows;i++){
  435. if(model.getValue(nodeSet1+"["+i+"]/CHK") == "Y"){
  436. model.setValue(nodeSet1+"["+i+"]/CHK","N");
  437. model.refresh();
  438. break;
  439. }
  440. }
  441. }
  442. //清除表格2中的选中的行
  443. function deleteDatagrid2(){
  444. var nodeSet2 = datagrid2.nodeset;
  445. for(var i=0;i<=datagrid2.rows;i++){
  446. if(model.getValue(nodeSet2+"["+i+"]/CHK") == "Y"){
  447. model.setValue(nodeSet2+"["+i+"]/CHK","N");
  448. model.refresh();
  449. break;
  450. }
  451. }
  452. }
  453. //清除表格3中的选中的行
  454. function deleteDatagrid3(){
  455. var nodeSet3 = datagrid3.nodeset;
  456. for(var i=0;i<=datagrid3.rows;i++){
  457. if(model.getValue(nodeSet3+"["+i+"]/CHK") == "Y"){
  458. model.setValue(nodeSet3+"["+i+"]/CHK","N");
  459. model.refresh();
  460. break;
  461. }
  462. }
  463. }
  464. //加入查询钢卷垛位的方法
  465. function searchYard(){
  466. model.removenode("/root/reqData");
  467. model.makeNode("/root/reqData");
  468. if(model.getValue("/root/COIL_SEARCH/COIL_NO") == ""){
  469. alert(" 需要查询垛位的钢卷号信息不能为空,请输入钢卷号信息再点击查询按钮! ");
  470. return;
  471. }
  472. model.duplicate("/root/reqData","/root/COIL_SEARCH/COIL_NO");
  473. commSubmit("UIH050600-service", "findCoilYard", "glueAction.do");
  474. model.setValue("/root/COIL_SEARCH/COIL_YARD",model.getValue("root/resData/COIL_SEARCH_VO/COIL_SEARCH_Row/COIL_YARD"));
  475. model.refresh();
  476. }
  477. ]]>
  478. </script>
  479. </xhtml:head>
  480. <xhtml:body>
  481. <caption id="caption6" class="cell" style="left:615px; top:5px; width:95px; height:20px; "/>
  482. <caption id="caption5" class="cell" style="left:210px; top:5px; width:65px; height:20px; "/>
  483. <datagrid id="datagrid2" nodeset="/root/datagrid2/TmpYard_VO/TmpYard_Row" caption="选择^库存位置^钢卷号" colsep="^" colwidth="42, 100, 100" mergecellsfixedrows="bycolrec" rowsep="|" style="left:360px; top:90px; width:245px; height:525px; ">
  484. <col checkvalue="Y,N" ref="CHK" type="radio"/>
  485. <col editable="false" ref="COIL_YARD" type="input" style="background-color:#ffffff; "/>
  486. <col editable="false" ref="COIL_NO" type="input" style="background-color:#ffffff; "/>
  487. </datagrid>
  488. <caption id="caption1" class="cell" style="left:10px; top:65px; width:95px; height:20px; ">原堆放位置</caption>
  489. <input id="input2" ref="/root/searchData/FROM_ADDR" editable="false" style="left:105px; top:65px; width:110px; height:20px; ">
  490. <script type="javascript" ev:event="ondblclick">
  491. <![CDATA[
  492. call_FROM_UIH05_COIL_YARD();
  493. ]]>
  494. </script>
  495. </input>
  496. <datagrid id="datagrid1" nodeset="/root/datagrid1/FromYard_VO/FromYard_Row" caption="选择^库存位置^钢卷号" colsep="^" colwidth="42, 100, 100" mergecellsfixedrows="bycolrec" rowsep="|" style="left:10px; top:90px; width:245px; height:525px; ">
  497. <col checkvalue="Y,N" ref="CHK" type="radio"/>
  498. <col editable="false" ref="COIL_YARD" type="input" style="background-color:#ffffff; "/>
  499. <col editable="false" ref="COIL_NO" type="input" style="background-color:#ffffff; "/>
  500. </datagrid>
  501. <datagrid id="datagrid3" nodeset="/root/datagrid3/ToYard_VO/ToYard_Row" caption="选择^库存位置^钢卷号" colsep="^" colwidth="42, 100, 100" mergecellsfixedrows="bycolrec" rowsep="|" style="left:720px; top:90px; width:245px; height:525px; ">
  502. <col checkvalue="Y,N" ref="CHK" type="radio"/>
  503. <col editable="false" ref="COIL_YARD" type="input" style="background-color:#ffffff; "/>
  504. <col editable="false" ref="COIL_NO" type="input" style="background-color:#ffffff; "/>
  505. </datagrid>
  506. <caption id="caption2" class="cell" style="left:360px; top:65px; width:95px; height:20px; ">临时堆放位置</caption>
  507. <caption id="caption3" class="cell" style="left:720px; top:65px; width:95px; height:20px; ">到堆放位置</caption>
  508. <input id="input1" ref="/root/searchData/TO_ADDR" editable="false" style="left:815px; top:65px; width:110px; height:20px; ">
  509. <script type="javascript" ev:event="ondblclick">
  510. <![CDATA[
  511. call_TO_UIH05_COIL_YARD();
  512. ]]>
  513. </script>
  514. </input>
  515. <input id="input3" ref="/root/searchData/TMP_ADDR" editable="false" style="left:455px; top:65px; width:110px; height:20px; ">
  516. <script type="javascript" ev:event="ondblclick">
  517. <![CDATA[
  518. call_TMP_UIH05_COIL_YARD();
  519. ]]>
  520. </script>
  521. </input>
  522. <button id="button4" style="left:295px; top:175px; width:31px; height:31px; background-image:../../images/right.gif; ">
  523. <caption/>
  524. <script type="javascript" ev:event="DOMActivate">
  525. <![CDATA[
  526. From_Tmp_MoveR();
  527. ]]>
  528. </script>
  529. <hint>
  530. <![CDATA[从原堆放位置->临时堆放位置]]>
  531. </hint>
  532. </button>
  533. <button id="button2" style="left:650px; top:170px; width:30px; height:30px; background-image:../../images/right.gif; ">
  534. <caption/>
  535. <script type="javascript" ev:event="DOMActivate">
  536. <![CDATA[
  537. FROM_TMP_TO_MOVER();
  538. ]]>
  539. </script>
  540. <hint>
  541. <![CDATA[从原堆放位置->到堆放位置或者从临时堆放位置->到堆放位置]]>
  542. </hint>
  543. </button>
  544. <button id="button3" style="left:290px; top:305px; width:31px; height:31px; background-image:../../images/left.gif; ">
  545. <caption/>
  546. <script type="javascript" ev:event="DOMActivate">
  547. <![CDATA[
  548. TO_TMP_FROM_MOVEL();
  549. ]]>
  550. </script>
  551. <hint>
  552. <![CDATA[从到堆放位置->原堆放位置或者从临时堆放位置->到原堆放位置]]>
  553. </hint>
  554. </button>
  555. <button id="button5" style="left:645px; top:295px; width:31px; height:31px; background-image:../../images/left.gif; ">
  556. <caption/>
  557. <script type="javascript" ev:event="DOMActivate">
  558. <![CDATA[
  559. TO_Tmp_MoveL();
  560. ]]>
  561. </script>
  562. <hint>
  563. <![CDATA[从到堆放位置->临时堆放位置]]>
  564. </hint>
  565. </button>
  566. <button id="button6" style="left:220px; top:65px; width:35px; height:20px; background-color:#99ccff; ">
  567. <caption>取消</caption>
  568. <hint>
  569. <![CDATA[清除选中的行]]>
  570. </hint>
  571. <script type="javascript" ev:event="DOMActivate">
  572. <![CDATA[
  573. deleteDatagrid1();
  574. ]]>
  575. </script>
  576. </button>
  577. <button id="button7" style="left:570px; top:65px; width:35px; height:20px; background-color:#99ccff; ">
  578. <caption>取消</caption>
  579. <hint>
  580. <![CDATA[清除选中的行]]>
  581. </hint>
  582. <script type="javascript" ev:event="DOMActivate">
  583. <![CDATA[
  584. deleteDatagrid2();
  585. ]]>
  586. </script>
  587. </button>
  588. <button id="button8" style="left:930px; top:65px; width:35px; height:20px; background-color:#99ccff; ">
  589. <caption>取消</caption>
  590. <hint>
  591. <![CDATA[清除选中的行]]>
  592. </hint>
  593. <script type="javascript" ev:event="DOMActivate">
  594. <![CDATA[
  595. deleteDatagrid3();
  596. ]]>
  597. </script>
  598. </button>
  599. <button id="button1" style="left:210px; top:5px; width:65px; height:20px; ">
  600. <caption>查询</caption>
  601. <script type="javascript" ev:event="DOMActivate">
  602. <![CDATA[
  603. searchYard();
  604. ]]>
  605. </script>
  606. </button>
  607. <caption id="caption4" class="cell" style="left:10px; top:5px; width:95px; height:20px; ">钢卷堆位查询</caption>
  608. <input id="input4" ref="/root/COIL_SEARCH/COIL_NO" maxlength="13" style="left:105px; top:5px; width:105px; height:20px; background-color:#ffff99; ">
  609. <hint>
  610. <![CDATA[输入你需要查询垛位的钢卷号]]>
  611. </hint>
  612. </input>
  613. <input id="input5" ref="/root/COIL_SEARCH/COIL_YARD" editable="true" style="left:275px; top:5px; width:110px; height:20px; background-color:#99ccff; ">
  614. <hint>
  615. <![CDATA[显示查询钢卷号的垛位信息]]>
  616. </hint>
  617. </input>
  618. <button id="button9" style="left:615px; top:5px; width:95px; height:20px; ">
  619. <caption>手工移垛操作</caption>
  620. <script type="javascript" ev:event="onclick">
  621. <![CDATA[
  622. //判断班次组入库人不能为空,时间不能为空
  623. if(model.getValue("/root/WK/ENTRY_SHIFT") == ""){
  624. alert(" 移垛班次信息不能为空,请选择相应的移垛班次! ");
  625. return;
  626. }
  627. if(model.getValue("/root/WK/ENTRY_GROUP") == ""){
  628. alert(" 移垛班组信息不能为空,请选择相应的移垛班组信息!! ");
  629. return;
  630. }
  631. if(model.getValue("/root/WK/ENTRY_REG") == ""){
  632. alert(" 移垛人信息不能为空,请选择相应的移垛人信息!! ");
  633. return;
  634. }
  635. if(model.getValue("/root/WK/ENTRY_DTIME") == ""){
  636. alert(" 移垛时间信息不能为空,请输入相应的移垛时间信息!! ");
  637. return;
  638. }
  639. //这里加入双击事件,在同一车号下可以输入多个钢卷号。便于操作
  640. model.setValue("/root/REG_ID",model.getValue("/root/initData/rcvInfo/REG_ID"));
  641. //把相应的班次,班组,信息上传
  642. model.refresh();
  643. window.load("./UIH050710.xrw", "modal", "modalWin", "left:400; top:100; width:650px; height:500px");
  644. find();
  645. ]]>
  646. </script>
  647. </button>
  648. <caption id="caption21" class="cell" style="left:55px; top:35px; width:95px; height:20px; vertical-align:middle; border-color:#000000; ">移垛班次</caption>
  649. <select1 id="combo1" ref="/root/WK/ENTRY_REG" appearance="minimal" editmode="input" style="left:395px; top:35px; width:105px; height:20px; background-color:#ffff99; ">
  650. <choices>
  651. <item>
  652. <label>张永波</label>
  653. <value>张永波</value>
  654. </item>
  655. <item>
  656. <label>刘小龙</label>
  657. <value>刘小龙</value>
  658. </item>
  659. <item>
  660. <label>肖小凯</label>
  661. <value>肖小凯</value>
  662. </item>
  663. <item>
  664. <label>周文刚</label>
  665. <value>周文刚</value>
  666. </item>
  667. <item>
  668. <label>廖林敏</label>
  669. <value>廖林敏</value>
  670. </item>
  671. <item>
  672. <label>吴贤寿</label>
  673. <value>吴贤寿</value>
  674. </item>
  675. <item>
  676. <label>敖艳敏</label>
  677. <value>敖艳敏</value>
  678. </item>
  679. <item>
  680. <label>李斌</label>
  681. <value>李斌</value>
  682. </item>
  683. <item>
  684. <label>魏一琦</label>
  685. <value>魏一琦</value>
  686. </item>
  687. <item>
  688. <label>蔡伟平</label>
  689. <value>蔡伟平</value>
  690. </item>
  691. <item>
  692. <label>王二松</label>
  693. <value>王二松</value>
  694. </item>
  695. <item>
  696. <label>邹秋兰</label>
  697. <value>邹秋兰</value>
  698. </item>
  699. </choices>
  700. </select1>
  701. <caption id="caption23" class="cell" style="left:545px; top:35px; width:95px; height:20px; vertical-align:middle; border-color:#000000; ">移垛班组</caption>
  702. <caption id="caption7" class="cell" style="left:765px; top:35px; width:95px; height:20px; border-color:#000000; ">移垛时间</caption>
  703. <select1 id="combo7" ref="/root/WK/ENTRY_SHIFT" appearance="minimal" style="left:150px; top:35px; width:105px; height:20px; background-color:#ffff99; ">
  704. <choices>
  705. <item>
  706. <label>早</label>
  707. <value>1</value>
  708. </item>
  709. <item>
  710. <label>中</label>
  711. <value>2</value>
  712. </item>
  713. <item>
  714. <label>晚</label>
  715. <value>3</value>
  716. </item>
  717. </choices>
  718. </select1>
  719. <caption id="caption8" class="cell" style="left:300px; top:35px; width:95px; height:20px; vertical-align:middle; border-color:#000000; ">移垛人</caption>
  720. <select1 id="combo8" ref="/root/WK/ENTRY_GROUP" appearance="minimal" style="left:640px; top:35px; width:105px; height:20px; background-color:#ffff99; ">
  721. <choices>
  722. <item>
  723. <label>甲</label>
  724. <value>A</value>
  725. </item>
  726. <item>
  727. <label>乙</label>
  728. <value>B</value>
  729. </item>
  730. <item>
  731. <label>丙</label>
  732. <value>C</value>
  733. </item>
  734. <item>
  735. <label>丁</label>
  736. <value>D</value>
  737. </item>
  738. </choices>
  739. </select1>
  740. <input id="input6" ref="/root/WK/ENTRY_DTIME" inputtype="date" format="yyyy-mm-dd" style="left:860px; top:35px; width:105px; height:20px; background-color:#ffff99; "/>
  741. </xhtml:body>
  742. </xhtml:html>