| 
														
															@@ -477,7 +477,8 @@ namespace WCS.Service.Extensions 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         /// <returns></returns> 
														 | 
														
														 | 
														
															         /// <returns></returns> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         public StationDeviceGroup BeforeStation() 
														 | 
														
														 | 
														
															         public StationDeviceGroup BeforeStation() 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         { 
														 | 
														
														 | 
														
															         { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-            return LocationList.Where(v => v.Entity.Is(DF.涂布RGV取货设备组)).OrderBy(v => Distance(v)).FirstOrDefault(); 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            var a = LocationList.Where(v => v.Entity.Is(DF.涂布RGV取货设备组) || v.Entity.Is(DF.BOPPRGV取货设备组)); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            return LocationList.Where(v => v.Entity.Is(DF.涂布RGV取货设备组) || v.Entity.Is(DF.BOPPRGV取货设备组)).OrderBy(v => Distance(v)).FirstOrDefault(); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         } 
														 | 
														
														 | 
														
															         } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															         /// <summary> 
														 | 
														
														 | 
														
															         /// <summary> 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -510,13 +511,13 @@ namespace WCS.Service.Extensions 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         /// <returns></returns> 
														 | 
														
														 | 
														
															         /// <returns></returns> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         public StationDeviceGroup CurrentStation() 
														 | 
														
														 | 
														
															         public StationDeviceGroup CurrentStation() 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         { 
														 | 
														
														 | 
														
															         { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-            return LocationList.Where(v => v.Entity.Is(DF.涂布RGV取货设备组) || v.Entity.Is(DF.涂布RGV放货设备组)).Where(v => 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-               { 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                   //RGV与站台距离误差为 正负50500 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                   var max = v.Position + 500; 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                   var min = v.Position - 500; 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                   return Data2.Position < max && Data2.Position > min; 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-               }).FirstOrDefault(); 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            return LocationList.Where(v => v.Entity.Is(DF.涂布RGV取货设备组) || v.Entity.Is(DF.涂布RGV放货设备组) || v.Entity.Is(DF.BOPPRGV取货设备组) || v.Entity.Is(DF.BOPPRGV放货设备组)).Where(v => 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                    //RGV与站台距离误差为 正负50500 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                    var max = v.Position + 500; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                    var min = v.Position - 500; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                    return Data2.Position < max && Data2.Position > min; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                }).FirstOrDefault(); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         } 
														 | 
														
														 | 
														
															         } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															         /// <summary> 
														 | 
														
														 | 
														
															         /// <summary> 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -1009,18 +1010,18 @@ namespace WCS.Service.Extensions 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 new StationLocation("G9",1256875,"RGV3",1567770), 
														 | 
														
														 | 
														
															                 new StationLocation("G9",1256875,"RGV3",1567770), 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 new StationLocation("G10",1313239,"RGV3",1567770), 
														 | 
														
														 | 
														
															                 new StationLocation("G10",1313239,"RGV3",1567770), 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 new StationLocation("G11",1369970,"RGV3",1567770), 
														 | 
														
														 | 
														
															                 new StationLocation("G11",1369970,"RGV3",1567770), 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                new StationLocation("G12",636770,"RGV1",3000000), 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                new StationLocation("G13",749520,"RGV1",3000000), 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                new StationLocation("G14",879930,"RGV1",3000000), 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                new StationLocation("G15",936310,"RGV1",3000000), 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                new StationLocation("G16",988000,"RGV1",3000000), 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                new StationLocation("G17",2335849,"RGV1",3000000), 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                new StationLocation("G18",2415849,"RGV1",3000000), 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                new StationLocation("G19",2495849,"RGV1",3000000), 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                new StationLocation("G20",2548012,"RGV1",3000000), 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                new StationLocation("G21",2606033,"RGV1",3000000), 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                new StationLocation("G22",2660833,"RGV1",3000000), 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                new StationLocation("G23",2715603,"RGV1",3000000), 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                new StationLocation("G12",636770,"RGV1",3719290), 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                new StationLocation("G13",749520,"RGV1",3719290), 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                new StationLocation("G14",879930,"RGV1",3719290), 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                new StationLocation("G15",936310,"RGV1",3719290), 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                new StationLocation("G16",988000,"RGV1",3719290), 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                new StationLocation("G17",2335849,"RGV1",3719290), 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                new StationLocation("G18",2410000,"RGV1",3719290), 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                new StationLocation("G19",2495849,"RGV1",3719290), 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                new StationLocation("G20",2548012,"RGV1",3719290), 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                new StationLocation("G21",2606033,"RGV1",3719290), 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                new StationLocation("G22",2660833,"RGV1",3719290), 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                new StationLocation("G23",2715603,"RGV1",3719290), 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             }); 
														 | 
														
														 | 
														
															             }); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         } 
														 | 
														
														 | 
														
															         } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 |