EXT系统中的信息查询
1 if (Ext.getCmp('rdPlaceLocation').checked) { 2 choseRoad = false; 3 var placeLocationWindow = Ext.getCmp("Views_PlaceRoadLocation"); 4 if (!placeLocationWindow) return; 5 var placeLocationForm = placeLocationWindow.getComponent("placeRoadLocationForm"); 6 var fromObj = placeLocationForm.getForm(); 7 if (fromObj.isValid()) { 8 var placeName = fromObj.findField("NamePlace").getValue(); 9 if (!placeGeometryPair) { 10 placeGeometryPair = {}; 11 placeData = []; 12 var serviceName = "fylocation_point"; 14 var serverLinkUrl = pipelineUrl; 15 var serverLinkIndex = serverLinkUrl.lastIndexOf("/"); 16 var serverLink = ""; 17 if (serverLinkIndex > 0) { 18 serverLink = serverLinkUrl.substring(0, serverLinkIndex + 1); 19 } 20 var queryServiceUrl = serverLink + "QueryService.xml"; 21 var queryCondition = anGeoObj.explorer.Factory.CreateQueryCondition(); 22 var obj2 = anGeoObj.explorer.PipelineQuery.QueryPipelinePropertyData(serverLink, serviceName, queryCondition); 23 var diamtotal = 0; 24 var resultCount = obj2.RecordCount; 25 for (var j = 0; j < resultCount; j++) { 26 var q = obj2.GetRecord(j); 27 var objId = q.FieldValue(0); 34 if (placePair && placePair[objId]) { 35 placeGeometryPair[objId] = q; 36 var gridItem = { id: objId, placeName: placePair[objId] }; 37 placeData.push(gridItem); 38 } 39 } 40 } 41 var gridData = []; 42 for (var i = 0; i < placeData.length; i++) { 43 var placeNameArr = placeData[i]; 44 if (placeNameArr) { 45 var placeNameO = placeNameArr.placeName; 46 if (placeNameO.indexOf(placeName) >= 0) { 47 gridData.push(placeNameArr); 48 } 49 } 50 } 51 var pr = placeStore.getProxy(); 52 pr.data = gridData; 53 needFilter = true; 55 placeStore.loadPage(1); 56 } 57 }