var MAGIservice=function() {
MAGIservice.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
MAGIservice.prototype={
ViewArticle:function(newsID,succeededCallback, failedCallback, userContext) {
return this._invoke(MAGIservice.get_path(), 'ViewArticle',false,{newsID:newsID},succeededCallback,failedCallback,userContext); },
AddToCart:function(htmlID,studentID,myCartId,itemID,itemAmount,itemType,packageID,seminarID,enrollmentID,LicenseTypeID,State,PartnershipID,succeededCallback, failedCallback, userContext) {
return this._invoke(MAGIservice.get_path(), 'AddToCart',false,{htmlID:htmlID,studentID:studentID,myCartId:myCartId,itemID:itemID,itemAmount:itemAmount,itemType:itemType,packageID:packageID,seminarID:seminarID,enrollmentID:enrollmentID,LicenseTypeID:LicenseTypeID,State:State,PartnershipID:PartnershipID},succeededCallback,failedCallback,userContext); },
TestCart:function(Number,succeededCallback, failedCallback, userContext) {
return this._invoke(MAGIservice.get_path(), 'TestCart',false,{Number:Number},succeededCallback,failedCallback,userContext); },
GetSearchCount:function(States,LicTypes,instructor,association,searchtype,succeededCallback, failedCallback, userContext) {
return this._invoke(MAGIservice.get_path(), 'GetSearchCount',false,{States:States,LicTypes:LicTypes,instructor:instructor,association:association,searchtype:searchtype},succeededCallback,failedCallback,userContext); }}
MAGIservice.registerClass('MAGIservice',Sys.Net.WebServiceProxy);
MAGIservice._staticInstance = new MAGIservice();
MAGIservice.set_path = function(value) { MAGIservice._staticInstance._path = value; }
MAGIservice.get_path = function() { return MAGIservice._staticInstance._path; }
MAGIservice.set_timeout = function(value) { MAGIservice._staticInstance._timeout = value; }
MAGIservice.get_timeout = function() { return MAGIservice._staticInstance._timeout; }
MAGIservice.set_defaultUserContext = function(value) { MAGIservice._staticInstance._userContext = value; }
MAGIservice.get_defaultUserContext = function() { return MAGIservice._staticInstance._userContext; }
MAGIservice.set_defaultSucceededCallback = function(value) { MAGIservice._staticInstance._succeeded = value; }
MAGIservice.get_defaultSucceededCallback = function() { return MAGIservice._staticInstance._succeeded; }
MAGIservice.set_defaultFailedCallback = function(value) { MAGIservice._staticInstance._failed = value; }
MAGIservice.get_defaultFailedCallback = function() { return MAGIservice._staticInstance._failed; }
MAGIservice.set_path("/MP/MAGIservice.asmx");
MAGIservice.ViewArticle= function(newsID,onSuccess,onFailed,userContext) {MAGIservice._staticInstance.ViewArticle(newsID,onSuccess,onFailed,userContext); }
MAGIservice.AddToCart= function(htmlID,studentID,myCartId,itemID,itemAmount,itemType,packageID,seminarID,enrollmentID,LicenseTypeID,State,PartnershipID,onSuccess,onFailed,userContext) {MAGIservice._staticInstance.AddToCart(htmlID,studentID,myCartId,itemID,itemAmount,itemType,packageID,seminarID,enrollmentID,LicenseTypeID,State,PartnershipID,onSuccess,onFailed,userContext); }
MAGIservice.TestCart= function(Number,onSuccess,onFailed,userContext) {MAGIservice._staticInstance.TestCart(Number,onSuccess,onFailed,userContext); }
MAGIservice.GetSearchCount= function(States,LicTypes,instructor,association,searchtype,onSuccess,onFailed,userContext) {MAGIservice._staticInstance.GetSearchCount(States,LicTypes,instructor,association,searchtype,onSuccess,onFailed,userContext); }
if (typeof(shoppingCart_CartItemType) === 'undefined') {
shoppingCart_CartItemType = function() { throw Error.invalidOperation(); }
shoppingCart_CartItemType.prototype = {OnlineCourse: 0,Certificate: 1,Package: 2,Seminar: 3,LiveCourse: 4,Material: 5,Discount: 6,AddedCertificate: 7,BasePackage: 8}
shoppingCart_CartItemType.registerEnum('shoppingCart_CartItemType', true);
}
