Type.registerNamespace('Dizo.Service');
Dizo.Service.CarPicSearch=function() {
Dizo.Service.CarPicSearch.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
Dizo.Service.CarPicSearch.prototype={
Search:function(searchKey,PageIndex,PageSize,succeededCallback, failedCallback, userContext) {
return this._invoke(Dizo.Service.CarPicSearch.get_path(), 'Search',false,{searchKey:searchKey,PageIndex:PageIndex,PageSize:PageSize},succeededCallback,failedCallback,userContext); },
SearchNewCar:function(BrandID,Typeid,PageIndex,PageSize,succeededCallback, failedCallback, userContext) {
return this._invoke(Dizo.Service.CarPicSearch.get_path(), 'SearchNewCar',false,{BrandID:BrandID,Typeid:Typeid,PageIndex:PageIndex,PageSize:PageSize},succeededCallback,failedCallback,userContext); },
GetBrandId:function(CarId,succeededCallback, failedCallback, userContext) {
return this._invoke(Dizo.Service.CarPicSearch.get_path(), 'GetBrandId',false,{CarId:CarId},succeededCallback,failedCallback,userContext); },
GetCarPicIndex:function(BrandID,picUrl,succeededCallback, failedCallback, userContext) {
return this._invoke(Dizo.Service.CarPicSearch.get_path(), 'GetCarPicIndex',false,{BrandID:BrandID,picUrl:picUrl},succeededCallback,failedCallback,userContext); }}
Dizo.Service.CarPicSearch.registerClass('Dizo.Service.CarPicSearch',Sys.Net.WebServiceProxy);
Dizo.Service.CarPicSearch._staticInstance = new Dizo.Service.CarPicSearch();
Dizo.Service.CarPicSearch.set_path = function(value) { 
var e = Function._validateParams(arguments, [{name: 'path', type: String}]); if (e) throw e; Dizo.Service.CarPicSearch._staticInstance._path = value; }
Dizo.Service.CarPicSearch.get_path = function() { return Dizo.Service.CarPicSearch._staticInstance._path; }
Dizo.Service.CarPicSearch.set_timeout = function(value) { var e = Function._validateParams(arguments, [{name: 'timeout', type: Number}]); if (e) throw e; if (value < 0) { throw Error.argumentOutOfRange('value', value, Sys.Res.invalidTimeout); }
Dizo.Service.CarPicSearch._staticInstance._timeout = value; }
Dizo.Service.CarPicSearch.get_timeout = function() { 
return Dizo.Service.CarPicSearch._staticInstance._timeout; }
Dizo.Service.CarPicSearch.set_defaultUserContext = function(value) { 
Dizo.Service.CarPicSearch._staticInstance._userContext = value; }
Dizo.Service.CarPicSearch.get_defaultUserContext = function() { 
return Dizo.Service.CarPicSearch._staticInstance._userContext; }
Dizo.Service.CarPicSearch.set_defaultSucceededCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultSucceededCallback', type: Function}]); if (e) throw e; Dizo.Service.CarPicSearch._staticInstance._succeeded = value; }
Dizo.Service.CarPicSearch.get_defaultSucceededCallback = function() { 
return Dizo.Service.CarPicSearch._staticInstance._succeeded; }
Dizo.Service.CarPicSearch.set_defaultFailedCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultFailedCallback', type: Function}]); if (e) throw e; Dizo.Service.CarPicSearch._staticInstance._failed = value; }
Dizo.Service.CarPicSearch.get_defaultFailedCallback = function() { 
return Dizo.Service.CarPicSearch._staticInstance._failed; }
Dizo.Service.CarPicSearch.set_path("/WebService/CarPicSearch.asmx");
Dizo.Service.CarPicSearch.Search= function(searchKey,PageIndex,PageSize,onSuccess,onFailed,userContext) {Dizo.Service.CarPicSearch._staticInstance.Search(searchKey,PageIndex,PageSize,onSuccess,onFailed,userContext); }
Dizo.Service.CarPicSearch.SearchNewCar= function(BrandID,Typeid,PageIndex,PageSize,onSuccess,onFailed,userContext) {Dizo.Service.CarPicSearch._staticInstance.SearchNewCar(BrandID,Typeid,PageIndex,PageSize,onSuccess,onFailed,userContext); }
Dizo.Service.CarPicSearch.GetBrandId= function(CarId,onSuccess,onFailed,userContext) {Dizo.Service.CarPicSearch._staticInstance.GetBrandId(CarId,onSuccess,onFailed,userContext); }
Dizo.Service.CarPicSearch.GetCarPicIndex= function(BrandID,picUrl,onSuccess,onFailed,userContext) {Dizo.Service.CarPicSearch._staticInstance.GetCarPicIndex(BrandID,picUrl,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
if (typeof(Dizo.Service.CarImage) === 'undefined') {
Dizo.Service.CarImage=gtc("Dizo.Service.CarImage");
Dizo.Service.CarImage.registerClass('Dizo.Service.CarImage');
}
