var ServiceMethods=function() { ServiceMethods.initializeBase(this); this._timeout = 0; this._userContext = null; this._succeeded = null; this._failed = null; } ServiceMethods.prototype={ _get_path:function() { var p = this.get_path(); if (p) return p; else return ServiceMethods._staticInstance.get_path();}, Translate:function(keyString,englishString,farsiString,currentSelectedLanguage,labelId,textEnglishId,textFarsiId,succeededCallback, failedCallback, userContext) { return this._invoke(this._get_path(), 'Translate',false,{keyString:keyString,englishString:englishString,farsiString:farsiString,currentSelectedLanguage:currentSelectedLanguage,labelId:labelId,textEnglishId:textEnglishId,textFarsiId:textFarsiId},succeededCallback,failedCallback,userContext); }, GetProductCount:function(productId,succeededCallback, failedCallback, userContext) { return this._invoke(this._get_path(), 'GetProductCount',false,{productId:productId},succeededCallback,failedCallback,userContext); }, AddProduct:function(productId,succeededCallback, failedCallback, userContext) { return this._invoke(this._get_path(), 'AddProduct',false,{productId:productId},succeededCallback,failedCallback,userContext); }, RemoveProduct:function(productId,succeededCallback, failedCallback, userContext) { return this._invoke(this._get_path(), 'RemoveProduct',false,{productId:productId},succeededCallback,failedCallback,userContext); }, Rank:function(userId,userIP,articleId,rank,averageRank,numberOfRanks,succeededCallback, failedCallback, userContext) { return this._invoke(this._get_path(), 'Rank',false,{userId:userId,userIP:userIP,articleId:articleId,rank:rank,averageRank:averageRank,numberOfRanks:numberOfRanks},succeededCallback,failedCallback,userContext); }, SaveStringToStaticPageHeader:function(stringToSave,StaticPageUrl,succeededCallback, failedCallback, userContext) { return this._invoke(this._get_path(), 'SaveStringToStaticPageHeader',false,{stringToSave:stringToSave,StaticPageUrl:StaticPageUrl},succeededCallback,failedCallback,userContext); }, GetProductsAndRepresentatives:function(succeededCallback, failedCallback, userContext) { return this._invoke(this._get_path(), 'GetProductsAndRepresentatives',false,{},succeededCallback,failedCallback,userContext); }, GetQuickOrderDisplayTexts:function(productCode,quantity,labelTitleId,labelPriceId,labelTotalPriceId,labelTotalForAllRowsId,rowId,succeededCallback, failedCallback, userContext) { return this._invoke(this._get_path(), 'GetQuickOrderDisplayTexts',false,{productCode:productCode,quantity:quantity,labelTitleId:labelTitleId,labelPriceId:labelPriceId,labelTotalPriceId:labelTotalPriceId,labelTotalForAllRowsId:labelTotalForAllRowsId,rowId:rowId},succeededCallback,failedCallback,userContext); }} ServiceMethods.registerClass('ServiceMethods',Sys.Net.WebServiceProxy); ServiceMethods._staticInstance = new ServiceMethods(); ServiceMethods.set_path = function(value) { ServiceMethods._staticInstance.set_path(value); } ServiceMethods.get_path = function() { return ServiceMethods._staticInstance.get_path(); } ServiceMethods.set_timeout = function(value) { ServiceMethods._staticInstance.set_timeout(value); } ServiceMethods.get_timeout = function() { return ServiceMethods._staticInstance.get_timeout(); } ServiceMethods.set_defaultUserContext = function(value) { ServiceMethods._staticInstance.set_defaultUserContext(value); } ServiceMethods.get_defaultUserContext = function() { return ServiceMethods._staticInstance.get_defaultUserContext(); } ServiceMethods.set_defaultSucceededCallback = function(value) { ServiceMethods._staticInstance.set_defaultSucceededCallback(value); } ServiceMethods.get_defaultSucceededCallback = function() { return ServiceMethods._staticInstance.get_defaultSucceededCallback(); } ServiceMethods.set_defaultFailedCallback = function(value) { ServiceMethods._staticInstance.set_defaultFailedCallback(value); } ServiceMethods.get_defaultFailedCallback = function() { return ServiceMethods._staticInstance.get_defaultFailedCallback(); } ServiceMethods.set_enableJsonp = function(value) { ServiceMethods._staticInstance.set_enableJsonp(value); } ServiceMethods.get_enableJsonp = function() { return ServiceMethods._staticInstance.get_enableJsonp(); } ServiceMethods.set_jsonpCallbackParameter = function(value) { ServiceMethods._staticInstance.set_jsonpCallbackParameter(value); } ServiceMethods.get_jsonpCallbackParameter = function() { return ServiceMethods._staticInstance.get_jsonpCallbackParameter(); } ServiceMethods.set_path("/Services/ServiceMethods.asmx"); ServiceMethods.Translate= function(keyString,englishString,farsiString,currentSelectedLanguage,labelId,textEnglishId,textFarsiId,onSuccess,onFailed,userContext) {ServiceMethods._staticInstance.Translate(keyString,englishString,farsiString,currentSelectedLanguage,labelId,textEnglishId,textFarsiId,onSuccess,onFailed,userContext); } ServiceMethods.GetProductCount= function(productId,onSuccess,onFailed,userContext) {ServiceMethods._staticInstance.GetProductCount(productId,onSuccess,onFailed,userContext); } ServiceMethods.AddProduct= function(productId,onSuccess,onFailed,userContext) {ServiceMethods._staticInstance.AddProduct(productId,onSuccess,onFailed,userContext); } ServiceMethods.RemoveProduct= function(productId,onSuccess,onFailed,userContext) {ServiceMethods._staticInstance.RemoveProduct(productId,onSuccess,onFailed,userContext); } ServiceMethods.Rank= function(userId,userIP,articleId,rank,averageRank,numberOfRanks,onSuccess,onFailed,userContext) {ServiceMethods._staticInstance.Rank(userId,userIP,articleId,rank,averageRank,numberOfRanks,onSuccess,onFailed,userContext); } ServiceMethods.SaveStringToStaticPageHeader= function(stringToSave,StaticPageUrl,onSuccess,onFailed,userContext) {ServiceMethods._staticInstance.SaveStringToStaticPageHeader(stringToSave,StaticPageUrl,onSuccess,onFailed,userContext); } ServiceMethods.GetProductsAndRepresentatives= function(onSuccess,onFailed,userContext) {ServiceMethods._staticInstance.GetProductsAndRepresentatives(onSuccess,onFailed,userContext); } ServiceMethods.GetQuickOrderDisplayTexts= function(productCode,quantity,labelTitleId,labelPriceId,labelTotalPriceId,labelTotalForAllRowsId,rowId,onSuccess,onFailed,userContext) {ServiceMethods._staticInstance.GetQuickOrderDisplayTexts(productCode,quantity,labelTitleId,labelPriceId,labelTotalPriceId,labelTotalForAllRowsId,rowId,onSuccess,onFailed,userContext); }