Type.registerNamespace('JA.JustDeliverIT.Web.CommonControls');
JA.JustDeliverIT.Web.CommonControls.AddressSearchService=function() {
JA.JustDeliverIT.Web.CommonControls.AddressSearchService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
JA.JustDeliverIT.Web.CommonControls.AddressSearchService.prototype={
GetAddressesListByPostcode:function(request,succeededCallback, failedCallback, userContext) {
return this._invoke(JA.JustDeliverIT.Web.CommonControls.AddressSearchService.get_path(), 'GetAddressesListByPostcode',false,{request:request},succeededCallback,failedCallback,userContext); },
GetDeliveryAddressByItemID:function(itemNumber,isUseDateRange,succeededCallback, failedCallback, userContext) {
return this._invoke(JA.JustDeliverIT.Web.CommonControls.AddressSearchService.get_path(), 'GetDeliveryAddressByItemID',false,{itemNumber:itemNumber,isUseDateRange:isUseDateRange},succeededCallback,failedCallback,userContext); },
GetDeliveryAddressByItemDescription:function(itemDesc,isUseDateRange,succeededCallback, failedCallback, userContext) {
return this._invoke(JA.JustDeliverIT.Web.CommonControls.AddressSearchService.get_path(), 'GetDeliveryAddressByItemDescription',false,{itemDesc:itemDesc,isUseDateRange:isUseDateRange},succeededCallback,failedCallback,userContext); },
GetDeliveryAddressByDateSold:function(dateSold,isUseDateRange,succeededCallback, failedCallback, userContext) {
return this._invoke(JA.JustDeliverIT.Web.CommonControls.AddressSearchService.get_path(), 'GetDeliveryAddressByDateSold',false,{dateSold:dateSold,isUseDateRange:isUseDateRange},succeededCallback,failedCallback,userContext); },
GetCollectionAddressesList:function(prefixText,count,succeededCallback, failedCallback, userContext) {
return this._invoke(JA.JustDeliverIT.Web.CommonControls.AddressSearchService.get_path(), 'GetCollectionAddressesList',false,{prefixText:prefixText,count:count},succeededCallback,failedCallback,userContext); },
GetDeliveryAddressesList:function(prefixText,count,succeededCallback, failedCallback, userContext) {
return this._invoke(JA.JustDeliverIT.Web.CommonControls.AddressSearchService.get_path(), 'GetDeliveryAddressesList',false,{prefixText:prefixText,count:count},succeededCallback,failedCallback,userContext); },
AutoCorrectPostcode:function(postcode,succeededCallback, failedCallback, userContext) {
return this._invoke(JA.JustDeliverIT.Web.CommonControls.AddressSearchService.get_path(), 'AutoCorrectPostcode',false,{postcode:postcode},succeededCallback,failedCallback,userContext); },
GetAddress:function(addressType,favouriteName,succeededCallback, failedCallback, userContext) {
return this._invoke(JA.JustDeliverIT.Web.CommonControls.AddressSearchService.get_path(), 'GetAddress',false,{addressType:addressType,favouriteName:favouriteName},succeededCallback,failedCallback,userContext); },
CopyAddress:function(request,succeededCallback, failedCallback, userContext) {
return this._invoke(JA.JustDeliverIT.Web.CommonControls.AddressSearchService.get_path(), 'CopyAddress',false,{request:request},succeededCallback,failedCallback,userContext); }}
JA.JustDeliverIT.Web.CommonControls.AddressSearchService.registerClass('JA.JustDeliverIT.Web.CommonControls.AddressSearchService',Sys.Net.WebServiceProxy);
JA.JustDeliverIT.Web.CommonControls.AddressSearchService._staticInstance = new JA.JustDeliverIT.Web.CommonControls.AddressSearchService();
JA.JustDeliverIT.Web.CommonControls.AddressSearchService.set_path = function(value) { JA.JustDeliverIT.Web.CommonControls.AddressSearchService._staticInstance._path = value; }
JA.JustDeliverIT.Web.CommonControls.AddressSearchService.get_path = function() { return JA.JustDeliverIT.Web.CommonControls.AddressSearchService._staticInstance._path; }
JA.JustDeliverIT.Web.CommonControls.AddressSearchService.set_timeout = function(value) { JA.JustDeliverIT.Web.CommonControls.AddressSearchService._staticInstance._timeout = value; }
JA.JustDeliverIT.Web.CommonControls.AddressSearchService.get_timeout = function() { return JA.JustDeliverIT.Web.CommonControls.AddressSearchService._staticInstance._timeout; }
JA.JustDeliverIT.Web.CommonControls.AddressSearchService.set_defaultUserContext = function(value) { JA.JustDeliverIT.Web.CommonControls.AddressSearchService._staticInstance._userContext = value; }
JA.JustDeliverIT.Web.CommonControls.AddressSearchService.get_defaultUserContext = function() { return JA.JustDeliverIT.Web.CommonControls.AddressSearchService._staticInstance._userContext; }
JA.JustDeliverIT.Web.CommonControls.AddressSearchService.set_defaultSucceededCallback = function(value) { JA.JustDeliverIT.Web.CommonControls.AddressSearchService._staticInstance._succeeded = value; }
JA.JustDeliverIT.Web.CommonControls.AddressSearchService.get_defaultSucceededCallback = function() { return JA.JustDeliverIT.Web.CommonControls.AddressSearchService._staticInstance._succeeded; }
JA.JustDeliverIT.Web.CommonControls.AddressSearchService.set_defaultFailedCallback = function(value) { JA.JustDeliverIT.Web.CommonControls.AddressSearchService._staticInstance._failed = value; }
JA.JustDeliverIT.Web.CommonControls.AddressSearchService.get_defaultFailedCallback = function() { return JA.JustDeliverIT.Web.CommonControls.AddressSearchService._staticInstance._failed; }
JA.JustDeliverIT.Web.CommonControls.AddressSearchService.set_path("/CommonControls/AddressSearchService.asmx");
JA.JustDeliverIT.Web.CommonControls.AddressSearchService.GetAddressesListByPostcode= function(request,onSuccess,onFailed,userContext) {JA.JustDeliverIT.Web.CommonControls.AddressSearchService._staticInstance.GetAddressesListByPostcode(request,onSuccess,onFailed,userContext); }
JA.JustDeliverIT.Web.CommonControls.AddressSearchService.GetDeliveryAddressByItemID= function(itemNumber,isUseDateRange,onSuccess,onFailed,userContext) {JA.JustDeliverIT.Web.CommonControls.AddressSearchService._staticInstance.GetDeliveryAddressByItemID(itemNumber,isUseDateRange,onSuccess,onFailed,userContext); }
JA.JustDeliverIT.Web.CommonControls.AddressSearchService.GetDeliveryAddressByItemDescription= function(itemDesc,isUseDateRange,onSuccess,onFailed,userContext) {JA.JustDeliverIT.Web.CommonControls.AddressSearchService._staticInstance.GetDeliveryAddressByItemDescription(itemDesc,isUseDateRange,onSuccess,onFailed,userContext); }
JA.JustDeliverIT.Web.CommonControls.AddressSearchService.GetDeliveryAddressByDateSold= function(dateSold,isUseDateRange,onSuccess,onFailed,userContext) {JA.JustDeliverIT.Web.CommonControls.AddressSearchService._staticInstance.GetDeliveryAddressByDateSold(dateSold,isUseDateRange,onSuccess,onFailed,userContext); }
JA.JustDeliverIT.Web.CommonControls.AddressSearchService.GetCollectionAddressesList= function(prefixText,count,onSuccess,onFailed,userContext) {JA.JustDeliverIT.Web.CommonControls.AddressSearchService._staticInstance.GetCollectionAddressesList(prefixText,count,onSuccess,onFailed,userContext); }
JA.JustDeliverIT.Web.CommonControls.AddressSearchService.GetDeliveryAddressesList= function(prefixText,count,onSuccess,onFailed,userContext) {JA.JustDeliverIT.Web.CommonControls.AddressSearchService._staticInstance.GetDeliveryAddressesList(prefixText,count,onSuccess,onFailed,userContext); }
JA.JustDeliverIT.Web.CommonControls.AddressSearchService.AutoCorrectPostcode= function(postcode,onSuccess,onFailed,userContext) {JA.JustDeliverIT.Web.CommonControls.AddressSearchService._staticInstance.AutoCorrectPostcode(postcode,onSuccess,onFailed,userContext); }
JA.JustDeliverIT.Web.CommonControls.AddressSearchService.GetAddress= function(addressType,favouriteName,onSuccess,onFailed,userContext) {JA.JustDeliverIT.Web.CommonControls.AddressSearchService._staticInstance.GetAddress(addressType,favouriteName,onSuccess,onFailed,userContext); }
JA.JustDeliverIT.Web.CommonControls.AddressSearchService.CopyAddress= function(request,onSuccess,onFailed,userContext) {JA.JustDeliverIT.Web.CommonControls.AddressSearchService._staticInstance.CopyAddress(request,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
Type.registerNamespace('JA.JustDeliverIT.Web.Code.AddressSearch');
if (typeof(JA.JustDeliverIT.Web.Code.AddressSearch.AddressSearchRequest) === 'undefined') {
JA.JustDeliverIT.Web.Code.AddressSearch.AddressSearchRequest=gtc("JA.JustDeliverIT.Web.Code.AddressSearch.AddressSearchRequest");
JA.JustDeliverIT.Web.Code.AddressSearch.AddressSearchRequest.registerClass('JA.JustDeliverIT.Web.Code.AddressSearch.AddressSearchRequest');
}
if (typeof(JA.JustDeliverIT.Web.Code.AddressSearch.AddressSearchResponse) === 'undefined') {
JA.JustDeliverIT.Web.Code.AddressSearch.AddressSearchResponse=gtc("JA.JustDeliverIT.Web.Code.AddressSearch.AddressSearchResponse");
JA.JustDeliverIT.Web.Code.AddressSearch.AddressSearchResponse.registerClass('JA.JustDeliverIT.Web.Code.AddressSearch.AddressSearchResponse');
}
Type.registerNamespace('JA.JustDeliverIT.Common');
if (typeof(JA.JustDeliverIT.Common.Address) === 'undefined') {
JA.JustDeliverIT.Common.Address=gtc("JA.JustDeliverIT.Common.Address");
JA.JustDeliverIT.Common.Address.registerClass('JA.JustDeliverIT.Common.Address');
}
Type.registerNamespace('JA.JustDeliverIT.Web.Code');
if (typeof(JA.JustDeliverIT.Web.Code.AddressCopyRequest) === 'undefined') {
JA.JustDeliverIT.Web.Code.AddressCopyRequest=gtc("JA.JustDeliverIT.Web.Code.AddressCopyRequest");
JA.JustDeliverIT.Web.Code.AddressCopyRequest.registerClass('JA.JustDeliverIT.Web.Code.AddressCopyRequest');
}
if (typeof(JA.JustDeliverIT.Web.Code.AddressCopyResponse) === 'undefined') {
JA.JustDeliverIT.Web.Code.AddressCopyResponse=gtc("JA.JustDeliverIT.Web.Code.AddressCopyResponse");
JA.JustDeliverIT.Web.Code.AddressCopyResponse.registerClass('JA.JustDeliverIT.Web.Code.AddressCopyResponse');
}
