Type.registerNamespace('px');
px.ShopService=function() {
px.ShopService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
px.ShopService.prototype={
UpdateQuantity:function(CartId,amount,succeededCallback, failedCallback, userContext) {
return this._invoke(px.ShopService.get_path(), 'UpdateQuantity',false,{CartId:CartId,amount:amount},succeededCallback,failedCallback,userContext); },
DeleteFromCart:function(CartId,succeededCallback, failedCallback, userContext) {
return this._invoke(px.ShopService.get_path(), 'DeleteFromCart',false,{CartId:CartId},succeededCallback,failedCallback,userContext); },
RenderProductContainter:function(Product,ProductId,Image,PricePechextreme,PriceMarket,PricePromotion,BackgroundImage,succeededCallback, failedCallback, userContext) {
return this._invoke(px.ShopService.get_path(), 'RenderProductContainter',false,{Product:Product,ProductId:ProductId,Image:Image,PricePechextreme:PricePechextreme,PriceMarket:PriceMarket,PricePromotion:PricePromotion,BackgroundImage:BackgroundImage},succeededCallback,failedCallback,userContext); },
SetSavePercent:function(price_pechextreme,price_market,price_promotion,succeededCallback, failedCallback, userContext) {
return this._invoke(px.ShopService.get_path(), 'SetSavePercent',false,{price_pechextreme:price_pechextreme,price_market:price_market,price_promotion:price_promotion},succeededCallback,failedCallback,userContext); },
SetCorrectPrice:function(price_pechextreme,price_market,price_promotion,succeededCallback, failedCallback, userContext) {
return this._invoke(px.ShopService.get_path(), 'SetCorrectPrice',false,{price_pechextreme:price_pechextreme,price_market:price_market,price_promotion:price_promotion},succeededCallback,failedCallback,userContext); },
SearchProducts:function(keyword,LocaleId,succeededCallback, failedCallback, userContext) {
return this._invoke(px.ShopService.get_path(), 'SearchProducts',false,{keyword:keyword,LocaleId:LocaleId},succeededCallback,failedCallback,userContext); },
AddToCart:function(ProductId,Amount,Properties,SessionId,UserId,LocaleId,succeededCallback, failedCallback, userContext) {
return this._invoke(px.ShopService.get_path(), 'AddToCart',false,{ProductId:ProductId,Amount:Amount,Properties:Properties,SessionId:SessionId,UserId:UserId,LocaleId:LocaleId},succeededCallback,failedCallback,userContext); },
GetCartData:function(SessionId,LocaleId,succeededCallback, failedCallback, userContext) {
return this._invoke(px.ShopService.get_path(), 'GetCartData',false,{SessionId:SessionId,LocaleId:LocaleId},succeededCallback,failedCallback,userContext); },
GetCart:function(SessionId,LocaleId,succeededCallback, failedCallback, userContext) {
return this._invoke(px.ShopService.get_path(), 'GetCart',false,{SessionId:SessionId,LocaleId:LocaleId},succeededCallback,failedCallback,userContext); }}
px.ShopService.registerClass('px.ShopService',Sys.Net.WebServiceProxy);
px.ShopService._staticInstance = new px.ShopService();
px.ShopService.set_path = function(value) { 
var e = Function._validateParams(arguments, [{name: 'path', type: String}]); if (e) throw e; px.ShopService._staticInstance._path = value; }
px.ShopService.get_path = function() { return px.ShopService._staticInstance._path; }
px.ShopService.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); }
px.ShopService._staticInstance._timeout = value; }
px.ShopService.get_timeout = function() { 
return px.ShopService._staticInstance._timeout; }
px.ShopService.set_defaultUserContext = function(value) { 
px.ShopService._staticInstance._userContext = value; }
px.ShopService.get_defaultUserContext = function() { 
return px.ShopService._staticInstance._userContext; }
px.ShopService.set_defaultSucceededCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultSucceededCallback', type: Function}]); if (e) throw e; px.ShopService._staticInstance._succeeded = value; }
px.ShopService.get_defaultSucceededCallback = function() { 
return px.ShopService._staticInstance._succeeded; }
px.ShopService.set_defaultFailedCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultFailedCallback', type: Function}]); if (e) throw e; px.ShopService._staticInstance._failed = value; }
px.ShopService.get_defaultFailedCallback = function() { 
return px.ShopService._staticInstance._failed; }
px.ShopService.set_path("/WebServices/ShopService.asmx");
px.ShopService.UpdateQuantity= function(CartId,amount,onSuccess,onFailed,userContext) {px.ShopService._staticInstance.UpdateQuantity(CartId,amount,onSuccess,onFailed,userContext); }
px.ShopService.DeleteFromCart= function(CartId,onSuccess,onFailed,userContext) {px.ShopService._staticInstance.DeleteFromCart(CartId,onSuccess,onFailed,userContext); }
px.ShopService.RenderProductContainter= function(Product,ProductId,Image,PricePechextreme,PriceMarket,PricePromotion,BackgroundImage,onSuccess,onFailed,userContext) {px.ShopService._staticInstance.RenderProductContainter(Product,ProductId,Image,PricePechextreme,PriceMarket,PricePromotion,BackgroundImage,onSuccess,onFailed,userContext); }
px.ShopService.SetSavePercent= function(price_pechextreme,price_market,price_promotion,onSuccess,onFailed,userContext) {px.ShopService._staticInstance.SetSavePercent(price_pechextreme,price_market,price_promotion,onSuccess,onFailed,userContext); }
px.ShopService.SetCorrectPrice= function(price_pechextreme,price_market,price_promotion,onSuccess,onFailed,userContext) {px.ShopService._staticInstance.SetCorrectPrice(price_pechextreme,price_market,price_promotion,onSuccess,onFailed,userContext); }
px.ShopService.SearchProducts= function(keyword,LocaleId,onSuccess,onFailed,userContext) {px.ShopService._staticInstance.SearchProducts(keyword,LocaleId,onSuccess,onFailed,userContext); }
px.ShopService.AddToCart= function(ProductId,Amount,Properties,SessionId,UserId,LocaleId,onSuccess,onFailed,userContext) {px.ShopService._staticInstance.AddToCart(ProductId,Amount,Properties,SessionId,UserId,LocaleId,onSuccess,onFailed,userContext); }
px.ShopService.GetCartData= function(SessionId,LocaleId,onSuccess,onFailed,userContext) {px.ShopService._staticInstance.GetCartData(SessionId,LocaleId,onSuccess,onFailed,userContext); }
px.ShopService.GetCart= function(SessionId,LocaleId,onSuccess,onFailed,userContext) {px.ShopService._staticInstance.GetCart(SessionId,LocaleId,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
Type.registerNamespace('System.Data');
if (typeof(System.Data.DataSet) === 'undefined') {
System.Data.DataSet=gtc("System.Data.DataSet");
System.Data.DataSet.registerClass('System.Data.DataSet');
}
