var ShoppingService=function() {
ShoppingService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
ShoppingService.prototype={
AddToCart:function(OrderCode,sQty,succeededCallback, failedCallback, userContext) {
return this._invoke(ShoppingService.get_path(), 'AddToCart',false,{OrderCode:OrderCode,sQty:sQty},succeededCallback,failedCallback,userContext); },
AddToCartWithPrice:function(OrderCode,sQty,NewPrice,succeededCallback, failedCallback, userContext) {
return this._invoke(ShoppingService.get_path(), 'AddToCartWithPrice',false,{OrderCode:OrderCode,sQty:sQty,NewPrice:NewPrice},succeededCallback,failedCallback,userContext); },
GetImage:function(OrderCode,width,height,succeededCallback, failedCallback, userContext) {
return this._invoke(ShoppingService.get_path(), 'GetImage',false,{OrderCode:OrderCode,width:width,height:height},succeededCallback,failedCallback,userContext); },
RegisterForSpecialOffer:function(EmailAddress,To,smtp,succeededCallback, failedCallback, userContext) {
return this._invoke(ShoppingService.get_path(), 'RegisterForSpecialOffer',false,{EmailAddress:EmailAddress,To:To,smtp:smtp},succeededCallback,failedCallback,userContext); },
GetDrpDownAttr:function(drpDownItemCode,iDrpDownID,succeededCallback, failedCallback, userContext) {
return this._invoke(ShoppingService.get_path(), 'GetDrpDownAttr',false,{drpDownItemCode:drpDownItemCode,iDrpDownID:iDrpDownID},succeededCallback,failedCallback,userContext); },
GetBranchInfo:function(sPostcode,succeededCallback, failedCallback, userContext) {
return this._invoke(ShoppingService.get_path(), 'GetBranchInfo',false,{sPostcode:sPostcode},succeededCallback,failedCallback,userContext); },
GetLatLong:function(sPostCode,succeededCallback, failedCallback, userContext) {
return this._invoke(ShoppingService.get_path(), 'GetLatLong',false,{sPostCode:sPostCode},succeededCallback,failedCallback,userContext); }}
ShoppingService.registerClass('ShoppingService',Sys.Net.WebServiceProxy);
ShoppingService._staticInstance = new ShoppingService();
ShoppingService.set_path = function(value) { ShoppingService._staticInstance._path = value; }
ShoppingService.get_path = function() { return ShoppingService._staticInstance._path; }
ShoppingService.set_timeout = function(value) { ShoppingService._staticInstance._timeout = value; }
ShoppingService.get_timeout = function() { return ShoppingService._staticInstance._timeout; }
ShoppingService.set_defaultUserContext = function(value) { ShoppingService._staticInstance._userContext = value; }
ShoppingService.get_defaultUserContext = function() { return ShoppingService._staticInstance._userContext; }
ShoppingService.set_defaultSucceededCallback = function(value) { ShoppingService._staticInstance._succeeded = value; }
ShoppingService.get_defaultSucceededCallback = function() { return ShoppingService._staticInstance._succeeded; }
ShoppingService.set_defaultFailedCallback = function(value) { ShoppingService._staticInstance._failed = value; }
ShoppingService.get_defaultFailedCallback = function() { return ShoppingService._staticInstance._failed; }
ShoppingService.set_path("/ShoppingService.asmx");
ShoppingService.AddToCart= function(OrderCode,sQty,onSuccess,onFailed,userContext) {ShoppingService._staticInstance.AddToCart(OrderCode,sQty,onSuccess,onFailed,userContext); }
ShoppingService.AddToCartWithPrice= function(OrderCode,sQty,NewPrice,onSuccess,onFailed,userContext) {ShoppingService._staticInstance.AddToCartWithPrice(OrderCode,sQty,NewPrice,onSuccess,onFailed,userContext); }
ShoppingService.GetImage= function(OrderCode,width,height,onSuccess,onFailed,userContext) {ShoppingService._staticInstance.GetImage(OrderCode,width,height,onSuccess,onFailed,userContext); }
ShoppingService.RegisterForSpecialOffer= function(EmailAddress,To,smtp,onSuccess,onFailed,userContext) {ShoppingService._staticInstance.RegisterForSpecialOffer(EmailAddress,To,smtp,onSuccess,onFailed,userContext); }
ShoppingService.GetDrpDownAttr= function(drpDownItemCode,iDrpDownID,onSuccess,onFailed,userContext) {ShoppingService._staticInstance.GetDrpDownAttr(drpDownItemCode,iDrpDownID,onSuccess,onFailed,userContext); }
ShoppingService.GetBranchInfo= function(sPostcode,onSuccess,onFailed,userContext) {ShoppingService._staticInstance.GetBranchInfo(sPostcode,onSuccess,onFailed,userContext); }
ShoppingService.GetLatLong= function(sPostCode,onSuccess,onFailed,userContext) {ShoppingService._staticInstance.GetLatLong(sPostCode,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
Type.registerNamespace('WebPOS.Ecommerce');
if (typeof(WebPOS.Ecommerce.Order) === 'undefined') {
WebPOS.Ecommerce.Order=gtc("WebPOS.Ecommerce.Order");
WebPOS.Ecommerce.Order.registerClass('WebPOS.Ecommerce.Order');
}
if (typeof(WebPOS.Ecommerce.StoreLocation) === 'undefined') {
WebPOS.Ecommerce.StoreLocation=gtc("WebPOS.Ecommerce.StoreLocation");
WebPOS.Ecommerce.StoreLocation.registerClass('WebPOS.Ecommerce.StoreLocation');
}
