function MiscSupportPROXY() { this.init(); } MiscSupportPROXY.prototype.init = function() { this.url = 'ExecuteMethod.dwa?E=1'; this.onError = null; this.onSuccess = null; this.executeAsync = false; this.enableSession = true; } MiscSupportASYNCPROXY.prototype = new MiscSupportPROXY(); MiscSupportASYNCPROXY.prototype.constructor = MiscSupportASYNCPROXY; MiscSupportASYNCPROXY.superclass = MiscSupportPROXY.prototype; function MiscSupportASYNCPROXY() { this.init(); this.executeAsync = true; } MiscSupportPROXY.prototype.GetItemInfo = function(layerId,itemId) { var serverCall = new DWAClient('pt.inga.web.MiscSupport, WebLib, Version=1.0.0.1, Culture=neutral, PublicKeyToken=null'); serverCall.onCompleted = this.onCompleted; serverCall.onError = this.onError; serverCall.executeAsync = this.executeAsync; if (this.enableSession) { serverCall.url = this.url + '&SS=1'; } else { serverCall.url = this.url + '&SS=0'; } serverCall.actionId = this.actionId; var parameters = new Array(); parameters.push(new DWAParameter('layerId', 'System.Int64', layerId)); parameters.push(new DWAParameter('itemId', 'System.Int64', itemId)); return serverCall.executeServerMethod(this, 'GetItemInfo', parameters); } MiscSupportPROXY.prototype.GetRasterLayers = function(x,y,width,height) { var serverCall = new DWAClient('pt.inga.web.MiscSupport, WebLib, Version=1.0.0.1, Culture=neutral, PublicKeyToken=null'); serverCall.onCompleted = this.onCompleted; serverCall.onError = this.onError; serverCall.executeAsync = this.executeAsync; if (this.enableSession) { serverCall.url = this.url + '&SS=1'; } else { serverCall.url = this.url + '&SS=0'; } serverCall.actionId = this.actionId; var parameters = new Array(); parameters.push(new DWAParameter('x', 'System.Double', x)); parameters.push(new DWAParameter('y', 'System.Double', y)); parameters.push(new DWAParameter('width', 'System.Double', width)); parameters.push(new DWAParameter('height', 'System.Double', height)); return serverCall.executeServerMethod(this, 'GetRasterLayers', parameters); } MiscSupportPROXY.prototype.GetRasterLayerParameters = function(catalogID) { var serverCall = new DWAClient('pt.inga.web.MiscSupport, WebLib, Version=1.0.0.1, Culture=neutral, PublicKeyToken=null'); serverCall.onCompleted = this.onCompleted; serverCall.onError = this.onError; serverCall.executeAsync = this.executeAsync; if (this.enableSession) { serverCall.url = this.url + '&SS=1'; } else { serverCall.url = this.url + '&SS=0'; } serverCall.actionId = this.actionId; var parameters = new Array(); parameters.push(new DWAParameter('catalogID', 'System.Int64', catalogID)); return serverCall.executeServerMethod(this, 'GetRasterLayerParameters', parameters); } MiscSupportPROXY.prototype.GetRasterImageInfo = function(catalogId,x,y) { var serverCall = new DWAClient('pt.inga.web.MiscSupport, WebLib, Version=1.0.0.1, Culture=neutral, PublicKeyToken=null'); serverCall.onCompleted = this.onCompleted; serverCall.onError = this.onError; serverCall.executeAsync = this.executeAsync; if (this.enableSession) { serverCall.url = this.url + '&SS=1'; } else { serverCall.url = this.url + '&SS=0'; } serverCall.actionId = this.actionId; var parameters = new Array(); parameters.push(new DWAParameter('catalogId', 'System.Int64', catalogId)); parameters.push(new DWAParameter('x', 'System.Double', x)); parameters.push(new DWAParameter('y', 'System.Double', y)); return serverCall.executeServerMethod(this, 'GetRasterImageInfo', parameters); } MiscSupportPROXY.prototype.GetSpatialLayers = function() { var serverCall = new DWAClient('pt.inga.web.MiscSupport, WebLib, Version=1.0.0.1, Culture=neutral, PublicKeyToken=null'); serverCall.onCompleted = this.onCompleted; serverCall.onError = this.onError; serverCall.executeAsync = this.executeAsync; if (this.enableSession) { serverCall.url = this.url + '&SS=1'; } else { serverCall.url = this.url + '&SS=0'; } serverCall.actionId = this.actionId; var parameters = new Array(); return serverCall.executeServerMethod(this, 'GetSpatialLayers', parameters); } MiscSupportPROXY.prototype.GetZoomRect = function(searchBy,searchText) { var serverCall = new DWAClient('pt.inga.web.MiscSupport, WebLib, Version=1.0.0.1, Culture=neutral, PublicKeyToken=null'); serverCall.onCompleted = this.onCompleted; serverCall.onError = this.onError; serverCall.executeAsync = this.executeAsync; if (this.enableSession) { serverCall.url = this.url + '&SS=1'; } else { serverCall.url = this.url + '&SS=0'; } serverCall.actionId = this.actionId; var parameters = new Array(); parameters.push(new DWAParameter('searchBy', 'System.String', searchBy)); parameters.push(new DWAParameter('searchText', 'System.String', searchText)); return serverCall.executeServerMethod(this, 'GetZoomRect', parameters); } MiscSupportPROXY.prototype.GetItemZoom = function(layerId,itemId) { var serverCall = new DWAClient('pt.inga.web.MiscSupport, WebLib, Version=1.0.0.1, Culture=neutral, PublicKeyToken=null'); serverCall.onCompleted = this.onCompleted; serverCall.onError = this.onError; serverCall.executeAsync = this.executeAsync; if (this.enableSession) { serverCall.url = this.url + '&SS=1'; } else { serverCall.url = this.url + '&SS=0'; } serverCall.actionId = this.actionId; var parameters = new Array(); parameters.push(new DWAParameter('layerId', 'System.Int64', layerId)); parameters.push(new DWAParameter('itemId', 'System.Int64', itemId)); return serverCall.executeServerMethod(this, 'GetItemZoom', parameters); } if(typeof(Sys) !== "undefined") { Sys.Application.notifyScriptLoaded(); }