var ComponentService=function() {
ComponentService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
ComponentService.prototype={
GetProductInstance:function(productid,shopid,succeededCallback, failedCallback, userContext) {
return this._invoke(ComponentService.get_path(), 'GetProductInstance',false,{productid:productid,shopid:shopid},succeededCallback,failedCallback,userContext); },
GetActiveEvents:function(date,succeededCallback, failedCallback, userContext) {
return this._invoke(ComponentService.get_path(), 'GetActiveEvents',false,{date:date},succeededCallback,failedCallback,userContext); },
JoinUserInLesson:function(v,succeededCallback, failedCallback, userContext) {
return this._invoke(ComponentService.get_path(), 'JoinUserInLesson',false,{v:v},succeededCallback,failedCallback,userContext); },
MailList:function(email,succeededCallback, failedCallback, userContext) {
return this._invoke(ComponentService.get_path(), 'MailList',false,{email:email},succeededCallback,failedCallback,userContext); },
EditUserRoles:function(userId,roles,succeededCallback, failedCallback, userContext) {
return this._invoke(ComponentService.get_path(), 'EditUserRoles',false,{userId:userId,roles:roles},succeededCallback,failedCallback,userContext); },
GenerateUserRoles:function(userId,succeededCallback, failedCallback, userContext) {
return this._invoke(ComponentService.get_path(), 'GenerateUserRoles',false,{userId:userId},succeededCallback,failedCallback,userContext); },
ChangeQuantity:function(productid,quantity,useridmd5,succeededCallback, failedCallback, userContext) {
return this._invoke(ComponentService.get_path(), 'ChangeQuantity',false,{productid:productid,quantity:quantity,useridmd5:useridmd5},succeededCallback,failedCallback,userContext); },
BuyProduct:function(productid,useridmd5,price,shopid,succeededCallback, failedCallback, userContext) {
return this._invoke(ComponentService.get_path(), 'BuyProduct',false,{productid:productid,useridmd5:useridmd5,price:price,shopid:shopid},succeededCallback,failedCallback,userContext); },
GetProductNodes:function(productid,succeededCallback, failedCallback, userContext) {
return this._invoke(ComponentService.get_path(), 'GetProductNodes',false,{productid:productid},succeededCallback,failedCallback,userContext); },
DeleteProductFromNode:function(productid,nodeid,succeededCallback, failedCallback, userContext) {
return this._invoke(ComponentService.get_path(), 'DeleteProductFromNode',false,{productid:productid,nodeid:nodeid},succeededCallback,failedCallback,userContext); },
AddProductToNode:function(productid,nodeid,succeededCallback, failedCallback, userContext) {
return this._invoke(ComponentService.get_path(), 'AddProductToNode',false,{productid:productid,nodeid:nodeid},succeededCallback,failedCallback,userContext); },
RemoveProductFromNodes:function(productid,succeededCallback, failedCallback, userContext) {
return this._invoke(ComponentService.get_path(), 'RemoveProductFromNodes',false,{productid:productid},succeededCallback,failedCallback,userContext); },
GetProductChildNode:function(productid,languageCategoryNode,succeededCallback, failedCallback, userContext) {
return this._invoke(ComponentService.get_path(), 'GetProductChildNode',false,{productid:productid,languageCategoryNode:languageCategoryNode},succeededCallback,failedCallback,userContext); },
UpdateEvent:function(cevent,succeededCallback, failedCallback, userContext) {
return this._invoke(ComponentService.get_path(), 'UpdateEvent',false,{cevent:cevent},succeededCallback,failedCallback,userContext); },
UpdateEventTime:function(improperEvent,succeededCallback, failedCallback, userContext) {
return this._invoke(ComponentService.get_path(), 'UpdateEventTime',false,{improperEvent:improperEvent},succeededCallback,failedCallback,userContext); },
deleteEvent:function(id,succeededCallback, failedCallback, userContext) {
return this._invoke(ComponentService.get_path(), 'deleteEvent',false,{id:id},succeededCallback,failedCallback,userContext); },
addEvent:function(improperEvent,succeededCallback, failedCallback, userContext) {
return this._invoke(ComponentService.get_path(), 'addEvent',false,{improperEvent:improperEvent},succeededCallback,failedCallback,userContext); }}
ComponentService.registerClass('ComponentService',Sys.Net.WebServiceProxy);
ComponentService._staticInstance = new ComponentService();
ComponentService.set_path = function(value) { 
var e = Function._validateParams(arguments, [{name: 'path', type: String}]); if (e) throw e; ComponentService._staticInstance._path = value; }
ComponentService.get_path = function() { return ComponentService._staticInstance._path; }
ComponentService.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); }
ComponentService._staticInstance._timeout = value; }
ComponentService.get_timeout = function() { 
return ComponentService._staticInstance._timeout; }
ComponentService.set_defaultUserContext = function(value) { 
ComponentService._staticInstance._userContext = value; }
ComponentService.get_defaultUserContext = function() { 
return ComponentService._staticInstance._userContext; }
ComponentService.set_defaultSucceededCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultSucceededCallback', type: Function}]); if (e) throw e; ComponentService._staticInstance._succeeded = value; }
ComponentService.get_defaultSucceededCallback = function() { 
return ComponentService._staticInstance._succeeded; }
ComponentService.set_defaultFailedCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultFailedCallback', type: Function}]); if (e) throw e; ComponentService._staticInstance._failed = value; }
ComponentService.get_defaultFailedCallback = function() { 
return ComponentService._staticInstance._failed; }
ComponentService.set_path("/ComponentService.asmx");
ComponentService.GetProductInstance= function(productid,shopid,onSuccess,onFailed,userContext) {ComponentService._staticInstance.GetProductInstance(productid,shopid,onSuccess,onFailed,userContext); }
ComponentService.GetActiveEvents= function(date,onSuccess,onFailed,userContext) {ComponentService._staticInstance.GetActiveEvents(date,onSuccess,onFailed,userContext); }
ComponentService.JoinUserInLesson= function(v,onSuccess,onFailed,userContext) {ComponentService._staticInstance.JoinUserInLesson(v,onSuccess,onFailed,userContext); }
ComponentService.MailList= function(email,onSuccess,onFailed,userContext) {ComponentService._staticInstance.MailList(email,onSuccess,onFailed,userContext); }
ComponentService.EditUserRoles= function(userId,roles,onSuccess,onFailed,userContext) {ComponentService._staticInstance.EditUserRoles(userId,roles,onSuccess,onFailed,userContext); }
ComponentService.GenerateUserRoles= function(userId,onSuccess,onFailed,userContext) {ComponentService._staticInstance.GenerateUserRoles(userId,onSuccess,onFailed,userContext); }
ComponentService.ChangeQuantity= function(productid,quantity,useridmd5,onSuccess,onFailed,userContext) {ComponentService._staticInstance.ChangeQuantity(productid,quantity,useridmd5,onSuccess,onFailed,userContext); }
ComponentService.BuyProduct= function(productid,useridmd5,price,shopid,onSuccess,onFailed,userContext) {ComponentService._staticInstance.BuyProduct(productid,useridmd5,price,shopid,onSuccess,onFailed,userContext); }
ComponentService.GetProductNodes= function(productid,onSuccess,onFailed,userContext) {ComponentService._staticInstance.GetProductNodes(productid,onSuccess,onFailed,userContext); }
ComponentService.DeleteProductFromNode= function(productid,nodeid,onSuccess,onFailed,userContext) {ComponentService._staticInstance.DeleteProductFromNode(productid,nodeid,onSuccess,onFailed,userContext); }
ComponentService.AddProductToNode= function(productid,nodeid,onSuccess,onFailed,userContext) {ComponentService._staticInstance.AddProductToNode(productid,nodeid,onSuccess,onFailed,userContext); }
ComponentService.RemoveProductFromNodes= function(productid,onSuccess,onFailed,userContext) {ComponentService._staticInstance.RemoveProductFromNodes(productid,onSuccess,onFailed,userContext); }
ComponentService.GetProductChildNode= function(productid,languageCategoryNode,onSuccess,onFailed,userContext) {ComponentService._staticInstance.GetProductChildNode(productid,languageCategoryNode,onSuccess,onFailed,userContext); }
ComponentService.UpdateEvent= function(cevent,onSuccess,onFailed,userContext) {ComponentService._staticInstance.UpdateEvent(cevent,onSuccess,onFailed,userContext); }
ComponentService.UpdateEventTime= function(improperEvent,onSuccess,onFailed,userContext) {ComponentService._staticInstance.UpdateEventTime(improperEvent,onSuccess,onFailed,userContext); }
ComponentService.deleteEvent= function(id,onSuccess,onFailed,userContext) {ComponentService._staticInstance.deleteEvent(id,onSuccess,onFailed,userContext); }
ComponentService.addEvent= function(improperEvent,onSuccess,onFailed,userContext) {ComponentService._staticInstance.addEvent(improperEvent,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
Type.registerNamespace('LocalEntities');
if (typeof(LocalEntities.CalendarEvent) === 'undefined') {
LocalEntities.CalendarEvent=gtc("LocalEntities.CalendarEvent");
LocalEntities.CalendarEvent.registerClass('LocalEntities.CalendarEvent');
}
if (typeof(LocalEntities.ImproperCalendarEvent) === 'undefined') {
LocalEntities.ImproperCalendarEvent=gtc("LocalEntities.ImproperCalendarEvent");
LocalEntities.ImproperCalendarEvent.registerClass('LocalEntities.ImproperCalendarEvent');
}

