Type.registerNamespace('ChemShop.Server');
ChemShop.Server.ShopCar=function() {
ChemShop.Server.ShopCar.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
ChemShop.Server.ShopCar.prototype={
Update:function(id,Quantity,succeededCallback, failedCallback, userContext) {
return this._invoke(ChemShop.Server.ShopCar.get_path(), 'Update',false,{id:id,Quantity:Quantity},succeededCallback,failedCallback,userContext); },
Delete:function(id,succeededCallback, failedCallback, userContext) {
return this._invoke(ChemShop.Server.ShopCar.get_path(), 'Delete',false,{id:id},succeededCallback,failedCallback,userContext); },
Insert:function(SaleArea,Product,Quantity,Price,succeededCallback, failedCallback, userContext) {
return this._invoke(ChemShop.Server.ShopCar.get_path(), 'Insert',false,{SaleArea:SaleArea,Product:Product,Quantity:Quantity,Price:Price},succeededCallback,failedCallback,userContext); },
Sum:function(BuyerID,succeededCallback, failedCallback, userContext) {
return this._invoke(ChemShop.Server.ShopCar.get_path(), 'Sum',false,{BuyerID:BuyerID},succeededCallback,failedCallback,userContext); },
Amount:function(BuyerID,succeededCallback, failedCallback, userContext) {
return this._invoke(ChemShop.Server.ShopCar.get_path(), 'Amount',false,{BuyerID:BuyerID},succeededCallback,failedCallback,userContext); },
Products:function(BuyerID,succeededCallback, failedCallback, userContext) {
return this._invoke(ChemShop.Server.ShopCar.get_path(), 'Products',false,{BuyerID:BuyerID},succeededCallback,failedCallback,userContext); }}
ChemShop.Server.ShopCar.registerClass('ChemShop.Server.ShopCar',Sys.Net.WebServiceProxy);
ChemShop.Server.ShopCar._staticInstance = new ChemShop.Server.ShopCar();
ChemShop.Server.ShopCar.set_path = function(value) { 
var e = Function._validateParams(arguments, [{name: 'path', type: String}]); if (e) throw e; ChemShop.Server.ShopCar._staticInstance._path = value; }
ChemShop.Server.ShopCar.get_path = function() { return ChemShop.Server.ShopCar._staticInstance._path; }
ChemShop.Server.ShopCar.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); }
ChemShop.Server.ShopCar._staticInstance._timeout = value; }
ChemShop.Server.ShopCar.get_timeout = function() { 
return ChemShop.Server.ShopCar._staticInstance._timeout; }
ChemShop.Server.ShopCar.set_defaultUserContext = function(value) { 
ChemShop.Server.ShopCar._staticInstance._userContext = value; }
ChemShop.Server.ShopCar.get_defaultUserContext = function() { 
return ChemShop.Server.ShopCar._staticInstance._userContext; }
ChemShop.Server.ShopCar.set_defaultSucceededCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultSucceededCallback', type: Function}]); if (e) throw e; ChemShop.Server.ShopCar._staticInstance._succeeded = value; }
ChemShop.Server.ShopCar.get_defaultSucceededCallback = function() { 
return ChemShop.Server.ShopCar._staticInstance._succeeded; }
ChemShop.Server.ShopCar.set_defaultFailedCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultFailedCallback', type: Function}]); if (e) throw e; ChemShop.Server.ShopCar._staticInstance._failed = value; }
ChemShop.Server.ShopCar.get_defaultFailedCallback = function() { 
return ChemShop.Server.ShopCar._staticInstance._failed; }
ChemShop.Server.ShopCar.set_path("/WebServer/ShopCar.asmx");
ChemShop.Server.ShopCar.Update= function(id,Quantity,onSuccess,onFailed,userContext) {ChemShop.Server.ShopCar._staticInstance.Update(id,Quantity,onSuccess,onFailed,userContext); }
ChemShop.Server.ShopCar.Delete= function(id,onSuccess,onFailed,userContext) {ChemShop.Server.ShopCar._staticInstance.Delete(id,onSuccess,onFailed,userContext); }
ChemShop.Server.ShopCar.Insert= function(SaleArea,Product,Quantity,Price,onSuccess,onFailed,userContext) {ChemShop.Server.ShopCar._staticInstance.Insert(SaleArea,Product,Quantity,Price,onSuccess,onFailed,userContext); }
ChemShop.Server.ShopCar.Sum= function(BuyerID,onSuccess,onFailed,userContext) {ChemShop.Server.ShopCar._staticInstance.Sum(BuyerID,onSuccess,onFailed,userContext); }
ChemShop.Server.ShopCar.Amount= function(BuyerID,onSuccess,onFailed,userContext) {ChemShop.Server.ShopCar._staticInstance.Amount(BuyerID,onSuccess,onFailed,userContext); }
ChemShop.Server.ShopCar.Products= function(BuyerID,onSuccess,onFailed,userContext) {ChemShop.Server.ShopCar._staticInstance.Products(BuyerID,onSuccess,onFailed,userContext); }
