var CalendarWebServices=function() {
CalendarWebServices.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
CalendarWebServices.prototype={
GetCalendarEvents:function(Year,Month,CategoryID,succeededCallback, failedCallback, userContext) {
return this._invoke(CalendarWebServices.get_path(), 'GetCalendarEvents',false,{Year:Year,Month:Month,CategoryID:CategoryID},succeededCallback,failedCallback,userContext); },
GetCalendarItemControl:function(CalendarEventID,succeededCallback, failedCallback, userContext) {
return this._invoke(CalendarWebServices.get_path(), 'GetCalendarItemControl',false,{CalendarEventID:CalendarEventID},succeededCallback,failedCallback,userContext); },
SaveCalendarItem:function(CalendarEventID,StartDate,EndDate,CategoryID,Title,Description,Location,succeededCallback, failedCallback, userContext) {
return this._invoke(CalendarWebServices.get_path(), 'SaveCalendarItem',false,{CalendarEventID:CalendarEventID,StartDate:StartDate,EndDate:EndDate,CategoryID:CategoryID,Title:Title,Description:Description,Location:Location},succeededCallback,failedCallback,userContext); },
DeleteCalendarItem:function(CalendarEventID,Year,Month,CategoryID,succeededCallback, failedCallback, userContext) {
return this._invoke(CalendarWebServices.get_path(), 'DeleteCalendarItem',false,{CalendarEventID:CalendarEventID,Year:Year,Month:Month,CategoryID:CategoryID},succeededCallback,failedCallback,userContext); },
GetNewsItemControl:function(NewsID,succeededCallback, failedCallback, userContext) {
return this._invoke(CalendarWebServices.get_path(), 'GetNewsItemControl',false,{NewsID:NewsID},succeededCallback,failedCallback,userContext); }}
CalendarWebServices.registerClass('CalendarWebServices',Sys.Net.WebServiceProxy);
CalendarWebServices._staticInstance = new CalendarWebServices();
CalendarWebServices.set_path = function(value) { 
var e = Function._validateParams(arguments, [{name: 'path', type: String}]); if (e) throw e; CalendarWebServices._staticInstance._path = value; }
CalendarWebServices.get_path = function() { return CalendarWebServices._staticInstance._path; }
CalendarWebServices.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); }
CalendarWebServices._staticInstance._timeout = value; }
CalendarWebServices.get_timeout = function() { 
return CalendarWebServices._staticInstance._timeout; }
CalendarWebServices.set_defaultUserContext = function(value) { 
CalendarWebServices._staticInstance._userContext = value; }
CalendarWebServices.get_defaultUserContext = function() { 
return CalendarWebServices._staticInstance._userContext; }
CalendarWebServices.set_defaultSucceededCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultSucceededCallback', type: Function}]); if (e) throw e; CalendarWebServices._staticInstance._succeeded = value; }
CalendarWebServices.get_defaultSucceededCallback = function() { 
return CalendarWebServices._staticInstance._succeeded; }
CalendarWebServices.set_defaultFailedCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultFailedCallback', type: Function}]); if (e) throw e; CalendarWebServices._staticInstance._failed = value; }
CalendarWebServices.get_defaultFailedCallback = function() { 
return CalendarWebServices._staticInstance._failed; }
CalendarWebServices.set_path("/CalendarWebServices.asmx");
CalendarWebServices.GetCalendarEvents= function(Year,Month,CategoryID,onSuccess,onFailed,userContext) {CalendarWebServices._staticInstance.GetCalendarEvents(Year,Month,CategoryID,onSuccess,onFailed,userContext); }
CalendarWebServices.GetCalendarItemControl= function(CalendarEventID,onSuccess,onFailed,userContext) {CalendarWebServices._staticInstance.GetCalendarItemControl(CalendarEventID,onSuccess,onFailed,userContext); }
CalendarWebServices.SaveCalendarItem= function(CalendarEventID,StartDate,EndDate,CategoryID,Title,Description,Location,onSuccess,onFailed,userContext) {CalendarWebServices._staticInstance.SaveCalendarItem(CalendarEventID,StartDate,EndDate,CategoryID,Title,Description,Location,onSuccess,onFailed,userContext); }
CalendarWebServices.DeleteCalendarItem= function(CalendarEventID,Year,Month,CategoryID,onSuccess,onFailed,userContext) {CalendarWebServices._staticInstance.DeleteCalendarItem(CalendarEventID,Year,Month,CategoryID,onSuccess,onFailed,userContext); }
CalendarWebServices.GetNewsItemControl= function(NewsID,onSuccess,onFailed,userContext) {CalendarWebServices._staticInstance.GetNewsItemControl(NewsID,onSuccess,onFailed,userContext); }
