var WebService=function() {
WebService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
WebService.prototype={
AddTeacherProfile:function(teacherId,profileName,profileValue,orderIndex,isPublic,succeededCallback, failedCallback, userContext) {
return this._invoke(WebService.get_path(), 'AddTeacherProfile',false,{teacherId:teacherId,profileName:profileName,profileValue:profileValue,orderIndex:orderIndex,isPublic:isPublic},succeededCallback,failedCallback,userContext); },
ModTeacherProfile:function(profileId,profileName,profileValue,orderIndex,isPublic,succeededCallback, failedCallback, userContext) {
return this._invoke(WebService.get_path(), 'ModTeacherProfile',false,{profileId:profileId,profileName:profileName,profileValue:profileValue,orderIndex:orderIndex,isPublic:isPublic},succeededCallback,failedCallback,userContext); },
GetTeacherProfile:function(profileId,succeededCallback, failedCallback, userContext) {
return this._invoke(WebService.get_path(), 'GetTeacherProfile',false,{profileId:profileId},succeededCallback,failedCallback,userContext); },
DelTeacherProfile:function(profileId,succeededCallback, failedCallback, userContext) {
return this._invoke(WebService.get_path(), 'DelTeacherProfile',false,{profileId:profileId},succeededCallback,failedCallback,userContext); },
GetPasswordQuestion:function(username,succeededCallback, failedCallback, userContext) {
return this._invoke(WebService.get_path(), 'GetPasswordQuestion',false,{username:username},succeededCallback,failedCallback,userContext); },
CheckUserExists:function(username,succeededCallback, failedCallback, userContext) {
return this._invoke(WebService.get_path(), 'CheckUserExists',false,{username:username},succeededCallback,failedCallback,userContext); },
GetEpaperList:function(username,password,succeededCallback, failedCallback, userContext) {
return this._invoke(WebService.get_path(), 'GetEpaperList',false,{username:username,password:password},succeededCallback,failedCallback,userContext); },
DeleteFile:function(guid,succeededCallback, failedCallback, userContext) {
return this._invoke(WebService.get_path(), 'DeleteFile',false,{guid:guid},succeededCallback,failedCallback,userContext); },
GetAllUser:function(succeededCallback, failedCallback, userContext) {
return this._invoke(WebService.get_path(), 'GetAllUser',false,{},succeededCallback,failedCallback,userContext); },
ValidateAdministrator:function(username,password,succeededCallback, failedCallback, userContext) {
return this._invoke(WebService.get_path(), 'ValidateAdministrator',false,{username:username,password:password},succeededCallback,failedCallback,userContext); },
GetFileId:function(succeededCallback, failedCallback, userContext) {
return this._invoke(WebService.get_path(), 'GetFileId',false,{},succeededCallback,failedCallback,userContext); },
GetFiles:function(fileGroupId,succeededCallback, failedCallback, userContext) {
return this._invoke(WebService.get_path(), 'GetFiles',false,{fileGroupId:fileGroupId},succeededCallback,failedCallback,userContext); },
GetRadioFiles:function(radioId,succeededCallback, failedCallback, userContext) {
return this._invoke(WebService.get_path(), 'GetRadioFiles',false,{radioId:radioId},succeededCallback,failedCallback,userContext); }}
WebService.registerClass('WebService',Sys.Net.WebServiceProxy);
WebService._staticInstance = new WebService();
WebService.set_path = function(value) { WebService._staticInstance._path = value; }
WebService.get_path = function() { return WebService._staticInstance._path; }
WebService.set_timeout = function(value) { WebService._staticInstance._timeout = value; }
WebService.get_timeout = function() { return WebService._staticInstance._timeout; }
WebService.set_defaultUserContext = function(value) { WebService._staticInstance._userContext = value; }
WebService.get_defaultUserContext = function() { return WebService._staticInstance._userContext; }
WebService.set_defaultSucceededCallback = function(value) { WebService._staticInstance._succeeded = value; }
WebService.get_defaultSucceededCallback = function() { return WebService._staticInstance._succeeded; }
WebService.set_defaultFailedCallback = function(value) { WebService._staticInstance._failed = value; }
WebService.get_defaultFailedCallback = function() { return WebService._staticInstance._failed; }
WebService.set_path("/WebService/WebService.asmx");
WebService.AddTeacherProfile= function(teacherId,profileName,profileValue,orderIndex,isPublic,onSuccess,onFailed,userContext) {WebService._staticInstance.AddTeacherProfile(teacherId,profileName,profileValue,orderIndex,isPublic,onSuccess,onFailed,userContext); }
WebService.ModTeacherProfile= function(profileId,profileName,profileValue,orderIndex,isPublic,onSuccess,onFailed,userContext) {WebService._staticInstance.ModTeacherProfile(profileId,profileName,profileValue,orderIndex,isPublic,onSuccess,onFailed,userContext); }
WebService.GetTeacherProfile= function(profileId,onSuccess,onFailed,userContext) {WebService._staticInstance.GetTeacherProfile(profileId,onSuccess,onFailed,userContext); }
WebService.DelTeacherProfile= function(profileId,onSuccess,onFailed,userContext) {WebService._staticInstance.DelTeacherProfile(profileId,onSuccess,onFailed,userContext); }
WebService.GetPasswordQuestion= function(username,onSuccess,onFailed,userContext) {WebService._staticInstance.GetPasswordQuestion(username,onSuccess,onFailed,userContext); }
WebService.CheckUserExists= function(username,onSuccess,onFailed,userContext) {WebService._staticInstance.CheckUserExists(username,onSuccess,onFailed,userContext); }
WebService.GetEpaperList= function(username,password,onSuccess,onFailed,userContext) {WebService._staticInstance.GetEpaperList(username,password,onSuccess,onFailed,userContext); }
WebService.DeleteFile= function(guid,onSuccess,onFailed,userContext) {WebService._staticInstance.DeleteFile(guid,onSuccess,onFailed,userContext); }
WebService.GetAllUser= function(onSuccess,onFailed,userContext) {WebService._staticInstance.GetAllUser(onSuccess,onFailed,userContext); }
WebService.ValidateAdministrator= function(username,password,onSuccess,onFailed,userContext) {WebService._staticInstance.ValidateAdministrator(username,password,onSuccess,onFailed,userContext); }
WebService.GetFileId= function(onSuccess,onFailed,userContext) {WebService._staticInstance.GetFileId(onSuccess,onFailed,userContext); }
WebService.GetFiles= function(fileGroupId,onSuccess,onFailed,userContext) {WebService._staticInstance.GetFiles(fileGroupId,onSuccess,onFailed,userContext); }
WebService.GetRadioFiles= function(radioId,onSuccess,onFailed,userContext) {WebService._staticInstance.GetRadioFiles(radioId,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
if (typeof(TeacherProfile) === 'undefined') {
var TeacherProfile=gtc("TeacherProfile");
TeacherProfile.registerClass('TeacherProfile');
}
Type.registerNamespace('System.Data');
if (typeof(System.Data.DataSet) === 'undefined') {
System.Data.DataSet=gtc("System.Data.DataSet");
System.Data.DataSet.registerClass('System.Data.DataSet');
}
if (typeof(System.Data.DataTable) === 'undefined') {
System.Data.DataTable=gtc("System.Data.DataTable");
System.Data.DataTable.registerClass('System.Data.DataTable');
}

