Type.registerNamespace('NPhA.Web.Services');
NPhA.Web.Services.Ajax=function() {
NPhA.Web.Services.Ajax.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
NPhA.Web.Services.Ajax.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return NPhA.Web.Services.Ajax._staticInstance.get_path();},
CreateChapter:function(name,zone,info,longitude,latitude,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'CreateChapter',false,{name:name,zone:zone,info:info,longitude:longitude,latitude:latitude},succeededCallback,failedCallback,userContext); },
UpdateChapter:function(chapterId,name,zone,info,longitude,latitude,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'UpdateChapter',false,{chapterId:chapterId,name:name,zone:zone,info:info,longitude:longitude,latitude:latitude},succeededCallback,failedCallback,userContext); },
GetChapter:function(ideaId,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetChapter',false,{ideaId:ideaId},succeededCallback,failedCallback,userContext); },
CreateGallery:function(name,date,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'CreateGallery',false,{name:name,date:date},succeededCallback,failedCallback,userContext); },
UpdateGallery:function(galleryId,name,date,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'UpdateGallery',false,{galleryId:galleryId,name:name,date:date},succeededCallback,failedCallback,userContext); },
DeleteGallery:function(galleryId,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'DeleteGallery',false,{galleryId:galleryId},succeededCallback,failedCallback,userContext); },
DeletePhoto:function(photoId,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'DeletePhoto',false,{photoId:photoId},succeededCallback,failedCallback,userContext); },
CreateUser:function(firstName,lastName,username,password,chapterId,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'CreateUser',false,{firstName:firstName,lastName:lastName,username:username,password:password,chapterId:chapterId},succeededCallback,failedCallback,userContext); },
CreateFormSet:function(name,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'CreateFormSet',false,{name:name},succeededCallback,failedCallback,userContext); },
UpdateFormSet:function(formSetId,name,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'UpdateFormSet',false,{formSetId:formSetId,name:name},succeededCallback,failedCallback,userContext); },
CreateForm:function(name,formSetId,documentId,fileName,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'CreateForm',false,{name:name,formSetId:formSetId,documentId:documentId,fileName:fileName},succeededCallback,failedCallback,userContext); },
UpdateForm:function(formId,name,formSetId,documentId,fileName,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'UpdateForm',false,{formId:formId,name:name,formSetId:formSetId,documentId:documentId,fileName:fileName},succeededCallback,failedCallback,userContext); },
CreateNewsletter:function(name,archived,documentId,fileName,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'CreateNewsletter',false,{name:name,archived:archived,documentId:documentId,fileName:fileName},succeededCallback,failedCallback,userContext); },
UpdateNewsletter:function(newsletterId,name,archived,documentId,fileName,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'UpdateNewsletter',false,{newsletterId:newsletterId,name:name,archived:archived,documentId:documentId,fileName:fileName},succeededCallback,failedCallback,userContext); },
CreateBiography:function(category,name,title,location,bio,height,documentId,fileName,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'CreateBiography',false,{category:category,name:name,title:title,location:location,bio:bio,height:height,documentId:documentId,fileName:fileName},succeededCallback,failedCallback,userContext); },
UpdateBiography:function(biographyId,category,name,title,location,bio,height,documentId,fileName,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'UpdateBiography',false,{biographyId:biographyId,category:category,name:name,title:title,location:location,bio:bio,height:height,documentId:documentId,fileName:fileName},succeededCallback,failedCallback,userContext); },
UpdateUser:function(userId,firstName,lastName,username,password,chapterId,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'UpdateUser',false,{userId:userId,firstName:firstName,lastName:lastName,username:username,password:password,chapterId:chapterId},succeededCallback,failedCallback,userContext); },
UpdateContent:function(contentKey,updatedHTML,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'UpdateContent',false,{contentKey:contentKey,updatedHTML:updatedHTML},succeededCallback,failedCallback,userContext); },
UpdateImage:function(imageKey,maxWidth,documentId,fileName,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'UpdateImage',false,{imageKey:imageKey,maxWidth:maxWidth,documentId:documentId,fileName:fileName},succeededCallback,failedCallback,userContext); },
DeleteObject:function(objectType,objectId,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'DeleteObject',false,{objectType:objectType,objectId:objectId},succeededCallback,failedCallback,userContext); },
ReorderObjects:function(chapterId,objectType,orderedIds,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'ReorderObjects',false,{chapterId:chapterId,objectType:objectType,orderedIds:orderedIds},succeededCallback,failedCallback,userContext); }}
NPhA.Web.Services.Ajax.registerClass('NPhA.Web.Services.Ajax',Sys.Net.WebServiceProxy);
NPhA.Web.Services.Ajax._staticInstance = new NPhA.Web.Services.Ajax();
NPhA.Web.Services.Ajax.set_path = function(value) { NPhA.Web.Services.Ajax._staticInstance.set_path(value); }
NPhA.Web.Services.Ajax.get_path = function() { return NPhA.Web.Services.Ajax._staticInstance.get_path(); }
NPhA.Web.Services.Ajax.set_timeout = function(value) { NPhA.Web.Services.Ajax._staticInstance.set_timeout(value); }
NPhA.Web.Services.Ajax.get_timeout = function() { return NPhA.Web.Services.Ajax._staticInstance.get_timeout(); }
NPhA.Web.Services.Ajax.set_defaultUserContext = function(value) { NPhA.Web.Services.Ajax._staticInstance.set_defaultUserContext(value); }
NPhA.Web.Services.Ajax.get_defaultUserContext = function() { return NPhA.Web.Services.Ajax._staticInstance.get_defaultUserContext(); }
NPhA.Web.Services.Ajax.set_defaultSucceededCallback = function(value) { NPhA.Web.Services.Ajax._staticInstance.set_defaultSucceededCallback(value); }
NPhA.Web.Services.Ajax.get_defaultSucceededCallback = function() { return NPhA.Web.Services.Ajax._staticInstance.get_defaultSucceededCallback(); }
NPhA.Web.Services.Ajax.set_defaultFailedCallback = function(value) { NPhA.Web.Services.Ajax._staticInstance.set_defaultFailedCallback(value); }
NPhA.Web.Services.Ajax.get_defaultFailedCallback = function() { return NPhA.Web.Services.Ajax._staticInstance.get_defaultFailedCallback(); }
NPhA.Web.Services.Ajax.set_path("/Services/Ajax.asmx");
NPhA.Web.Services.Ajax.CreateChapter= function(name,zone,info,longitude,latitude,onSuccess,onFailed,userContext) {NPhA.Web.Services.Ajax._staticInstance.CreateChapter(name,zone,info,longitude,latitude,onSuccess,onFailed,userContext); }
NPhA.Web.Services.Ajax.UpdateChapter= function(chapterId,name,zone,info,longitude,latitude,onSuccess,onFailed,userContext) {NPhA.Web.Services.Ajax._staticInstance.UpdateChapter(chapterId,name,zone,info,longitude,latitude,onSuccess,onFailed,userContext); }
NPhA.Web.Services.Ajax.GetChapter= function(ideaId,onSuccess,onFailed,userContext) {NPhA.Web.Services.Ajax._staticInstance.GetChapter(ideaId,onSuccess,onFailed,userContext); }
NPhA.Web.Services.Ajax.CreateGallery= function(name,date,onSuccess,onFailed,userContext) {NPhA.Web.Services.Ajax._staticInstance.CreateGallery(name,date,onSuccess,onFailed,userContext); }
NPhA.Web.Services.Ajax.UpdateGallery= function(galleryId,name,date,onSuccess,onFailed,userContext) {NPhA.Web.Services.Ajax._staticInstance.UpdateGallery(galleryId,name,date,onSuccess,onFailed,userContext); }
NPhA.Web.Services.Ajax.DeleteGallery= function(galleryId,onSuccess,onFailed,userContext) {NPhA.Web.Services.Ajax._staticInstance.DeleteGallery(galleryId,onSuccess,onFailed,userContext); }
NPhA.Web.Services.Ajax.DeletePhoto= function(photoId,onSuccess,onFailed,userContext) {NPhA.Web.Services.Ajax._staticInstance.DeletePhoto(photoId,onSuccess,onFailed,userContext); }
NPhA.Web.Services.Ajax.CreateUser= function(firstName,lastName,username,password,chapterId,onSuccess,onFailed,userContext) {NPhA.Web.Services.Ajax._staticInstance.CreateUser(firstName,lastName,username,password,chapterId,onSuccess,onFailed,userContext); }
NPhA.Web.Services.Ajax.CreateFormSet= function(name,onSuccess,onFailed,userContext) {NPhA.Web.Services.Ajax._staticInstance.CreateFormSet(name,onSuccess,onFailed,userContext); }
NPhA.Web.Services.Ajax.UpdateFormSet= function(formSetId,name,onSuccess,onFailed,userContext) {NPhA.Web.Services.Ajax._staticInstance.UpdateFormSet(formSetId,name,onSuccess,onFailed,userContext); }
NPhA.Web.Services.Ajax.CreateForm= function(name,formSetId,documentId,fileName,onSuccess,onFailed,userContext) {NPhA.Web.Services.Ajax._staticInstance.CreateForm(name,formSetId,documentId,fileName,onSuccess,onFailed,userContext); }
NPhA.Web.Services.Ajax.UpdateForm= function(formId,name,formSetId,documentId,fileName,onSuccess,onFailed,userContext) {NPhA.Web.Services.Ajax._staticInstance.UpdateForm(formId,name,formSetId,documentId,fileName,onSuccess,onFailed,userContext); }
NPhA.Web.Services.Ajax.CreateNewsletter= function(name,archived,documentId,fileName,onSuccess,onFailed,userContext) {NPhA.Web.Services.Ajax._staticInstance.CreateNewsletter(name,archived,documentId,fileName,onSuccess,onFailed,userContext); }
NPhA.Web.Services.Ajax.UpdateNewsletter= function(newsletterId,name,archived,documentId,fileName,onSuccess,onFailed,userContext) {NPhA.Web.Services.Ajax._staticInstance.UpdateNewsletter(newsletterId,name,archived,documentId,fileName,onSuccess,onFailed,userContext); }
NPhA.Web.Services.Ajax.CreateBiography= function(category,name,title,location,bio,height,documentId,fileName,onSuccess,onFailed,userContext) {NPhA.Web.Services.Ajax._staticInstance.CreateBiography(category,name,title,location,bio,height,documentId,fileName,onSuccess,onFailed,userContext); }
NPhA.Web.Services.Ajax.UpdateBiography= function(biographyId,category,name,title,location,bio,height,documentId,fileName,onSuccess,onFailed,userContext) {NPhA.Web.Services.Ajax._staticInstance.UpdateBiography(biographyId,category,name,title,location,bio,height,documentId,fileName,onSuccess,onFailed,userContext); }
NPhA.Web.Services.Ajax.UpdateUser= function(userId,firstName,lastName,username,password,chapterId,onSuccess,onFailed,userContext) {NPhA.Web.Services.Ajax._staticInstance.UpdateUser(userId,firstName,lastName,username,password,chapterId,onSuccess,onFailed,userContext); }
NPhA.Web.Services.Ajax.UpdateContent= function(contentKey,updatedHTML,onSuccess,onFailed,userContext) {NPhA.Web.Services.Ajax._staticInstance.UpdateContent(contentKey,updatedHTML,onSuccess,onFailed,userContext); }
NPhA.Web.Services.Ajax.UpdateImage= function(imageKey,maxWidth,documentId,fileName,onSuccess,onFailed,userContext) {NPhA.Web.Services.Ajax._staticInstance.UpdateImage(imageKey,maxWidth,documentId,fileName,onSuccess,onFailed,userContext); }
NPhA.Web.Services.Ajax.DeleteObject= function(objectType,objectId,onSuccess,onFailed,userContext) {NPhA.Web.Services.Ajax._staticInstance.DeleteObject(objectType,objectId,onSuccess,onFailed,userContext); }
NPhA.Web.Services.Ajax.ReorderObjects= function(chapterId,objectType,orderedIds,onSuccess,onFailed,userContext) {NPhA.Web.Services.Ajax._staticInstance.ReorderObjects(chapterId,objectType,orderedIds,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
Type.registerNamespace('NPhA.Model.Util.JSON');
if (typeof(NPhA.Model.Util.JSON.JsonDomElement) === 'undefined') {
NPhA.Model.Util.JSON.JsonDomElement=gtc("NPhA.Model.Util.JSON.JsonDomElement");
NPhA.Model.Util.JSON.JsonDomElement.registerClass('NPhA.Model.Util.JSON.JsonDomElement');
}
if (typeof(NPhA.Model.Util.JSON.JsonChapter) === 'undefined') {
NPhA.Model.Util.JSON.JsonChapter=gtc("NPhA.Model.Util.JSON.JsonChapter");
NPhA.Model.Util.JSON.JsonChapter.registerClass('NPhA.Model.Util.JSON.JsonChapter');
}
if (typeof(NPhA.Model.Util.JSON.JsonGallery) === 'undefined') {
NPhA.Model.Util.JSON.JsonGallery=gtc("NPhA.Model.Util.JSON.JsonGallery");
NPhA.Model.Util.JSON.JsonGallery.registerClass('NPhA.Model.Util.JSON.JsonGallery');
}
if (typeof(NPhA.Model.Util.JSON.JsonFormSet) === 'undefined') {
NPhA.Model.Util.JSON.JsonFormSet=gtc("NPhA.Model.Util.JSON.JsonFormSet");
NPhA.Model.Util.JSON.JsonFormSet.registerClass('NPhA.Model.Util.JSON.JsonFormSet');
}
if (typeof(NPhA.Model.Util.JSON.JsonForm) === 'undefined') {
NPhA.Model.Util.JSON.JsonForm=gtc("NPhA.Model.Util.JSON.JsonForm");
NPhA.Model.Util.JSON.JsonForm.registerClass('NPhA.Model.Util.JSON.JsonForm');
}
if (typeof(NPhA.Model.Util.JSON.JsonNewsletter) === 'undefined') {
NPhA.Model.Util.JSON.JsonNewsletter=gtc("NPhA.Model.Util.JSON.JsonNewsletter");
NPhA.Model.Util.JSON.JsonNewsletter.registerClass('NPhA.Model.Util.JSON.JsonNewsletter');
}
if (typeof(NPhA.Model.Util.JSON.JsonBiography) === 'undefined') {
NPhA.Model.Util.JSON.JsonBiography=gtc("NPhA.Model.Util.JSON.JsonBiography");
NPhA.Model.Util.JSON.JsonBiography.registerClass('NPhA.Model.Util.JSON.JsonBiography');
}
if (typeof(NPhA.Model.Util.JSON.JsonPerson) === 'undefined') {
NPhA.Model.Util.JSON.JsonPerson=gtc("NPhA.Model.Util.JSON.JsonPerson");
NPhA.Model.Util.JSON.JsonPerson.registerClass('NPhA.Model.Util.JSON.JsonPerson');
}
if (typeof(NPhA.Model.Util.JSON.JsonImage) === 'undefined') {
NPhA.Model.Util.JSON.JsonImage=gtc("NPhA.Model.Util.JSON.JsonImage");
NPhA.Model.Util.JSON.JsonImage.registerClass('NPhA.Model.Util.JSON.JsonImage');
}
Type.registerNamespace('NPhA.Model.Util');
if (typeof(NPhA.Model.Util.ChapterZone) === 'undefined') {
NPhA.Model.Util.ChapterZone = function() { throw Error.invalidOperation(); }
NPhA.Model.Util.ChapterZone.prototype = {Zone1: 0,Zone2: 1,Zone3: 2,Zone4: 3,Zone5: 4}
NPhA.Model.Util.ChapterZone.registerEnum('NPhA.Model.Util.ChapterZone', true);
}
if (typeof(NPhA.Model.Util.OfficerCategory) === 'undefined') {
NPhA.Model.Util.OfficerCategory = function() { throw Error.invalidOperation(); }
NPhA.Model.Util.OfficerCategory.prototype = {Administrative: 0,ZoneDirector: 1,SpeakerOfTheHouse: 2,DirectorAtLarge: 3,Parliamentarian: 4,Affiliate: 5}
NPhA.Model.Util.OfficerCategory.registerEnum('NPhA.Model.Util.OfficerCategory', true);
}
