Type.registerNamespace('BMDB.Web.Service');
BMDB.Web.Service.Contact=function() {
BMDB.Web.Service.Contact.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
BMDB.Web.Service.Contact.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return BMDB.Web.Service.Contact._staticInstance.get_path();},
Get:function(contactID,succeededCallback, failedCallback, userContext) {
/// <param name="contactID" type="Number">System.Int32</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'Get',false,{contactID:contactID},succeededCallback,failedCallback,userContext); },
GetName:function(contactID,succeededCallback, failedCallback, userContext) {
/// <param name="contactID" type="Number">System.Int32</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'GetName',false,{contactID:contactID},succeededCallback,failedCallback,userContext); },
AutoCompleteWithAccount:function(prefixText,count,succeededCallback, failedCallback, userContext) {
/// <param name="prefixText" type="String">System.String</param>
/// <param name="count" type="Number">System.Int32</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'AutoCompleteWithAccount',false,{prefixText:prefixText,count:count},succeededCallback,failedCallback,userContext); },
AutoCompleteWithAccountAndList:function(prefixText,count,contextKey,succeededCallback, failedCallback, userContext) {
/// <param name="prefixText" type="String">System.String</param>
/// <param name="count" type="Number">System.Int32</param>
/// <param name="contextKey" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'AutoCompleteWithAccountAndList',false,{prefixText:prefixText,count:count,contextKey:contextKey},succeededCallback,failedCallback,userContext); },
SendContact:function(obj,succeededCallback, failedCallback, userContext) {
/// <param name="obj" type="BMLibrary.BLL.Contact_NEW">BMLibrary.BLL.Contact_NEW</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'SendContact',false,{obj:obj},succeededCallback,failedCallback,userContext); },
GetByAccountForDropDownList:function(accountID,succeededCallback, failedCallback, userContext) {
/// <param name="accountID" type="Number">System.Int32</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'GetByAccountForDropDownList',false,{accountID:accountID},succeededCallback,failedCallback,userContext); },
GetByAccount:function(accountID,succeededCallback, failedCallback, userContext) {
/// <param name="accountID" type="Number">System.Int32</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'GetByAccount',false,{accountID:accountID},succeededCallback,failedCallback,userContext); },
AddContact:function(contact,saveAddresses,succeededCallback, failedCallback, userContext) {
/// <param name="contact" type="BMLibrary.BLL.Contact_NEW">BMLibrary.BLL.Contact_NEW</param>
/// <param name="saveAddresses" type="Boolean">System.Boolean</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'AddContact',false,{contact:contact,saveAddresses:saveAddresses},succeededCallback,failedCallback,userContext); },
AssociateEmailContact:function(contactName,emailID,noTickets,discountPrice,contactListID,deleteFunctionName,succeededCallback, failedCallback, userContext) {
/// <param name="contactName" type="String">System.String</param>
/// <param name="emailID" type="Number">System.Int32</param>
/// <param name="noTickets" type="Number">System.Int32</param>
/// <param name="discountPrice" type="Number">System.Decimal</param>
/// <param name="contactListID" type="Number">System.Int32</param>
/// <param name="deleteFunctionName" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'AssociateEmailContact',false,{contactName:contactName,emailID:emailID,noTickets:noTickets,discountPrice:discountPrice,contactListID:contactListID,deleteFunctionName:deleteFunctionName},succeededCallback,failedCallback,userContext); },
RemoveEmailContactAssociation:function(emailContactExtraID,emailID,contactListID,deleteFunctionName,succeededCallback, failedCallback, userContext) {
/// <param name="emailContactExtraID" type="Number">System.Int32</param>
/// <param name="emailID" type="Number">System.Int32</param>
/// <param name="contactListID" type="Number">System.Int32</param>
/// <param name="deleteFunctionName" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'RemoveEmailContactAssociation',false,{emailContactExtraID:emailContactExtraID,emailID:emailID,contactListID:contactListID,deleteFunctionName:deleteFunctionName},succeededCallback,failedCallback,userContext); },
AssociateContactID:function(subContactID,contactID,typeID,isSenior,deleteFunctionName,succeededCallback, failedCallback, userContext) {
/// <param name="subContactID" type="Number">System.Int32</param>
/// <param name="contactID" type="Number">System.Int32</param>
/// <param name="typeID" type="Number">System.Int32</param>
/// <param name="isSenior" type="String">System.String</param>
/// <param name="deleteFunctionName" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'AssociateContactID',false,{subContactID:subContactID,contactID:contactID,typeID:typeID,isSenior:isSenior,deleteFunctionName:deleteFunctionName},succeededCallback,failedCallback,userContext); },
RemoveContactID:function(contactRelatedID,contactID,deleteFunctionName,succeededCallback, failedCallback, userContext) {
/// <param name="contactRelatedID" type="Number">System.Int32</param>
/// <param name="contactID" type="Number">System.Int32</param>
/// <param name="deleteFunctionName" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'RemoveContactID',false,{contactRelatedID:contactRelatedID,contactID:contactID,deleteFunctionName:deleteFunctionName},succeededCallback,failedCallback,userContext); },
SimpleSearchNameList:function(firstName,surname,email,succeededCallback, failedCallback, userContext) {
/// <param name="firstName" type="String">System.String</param>
/// <param name="surname" type="String">System.String</param>
/// <param name="email" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'SimpleSearchNameList',false,{firstName:firstName,surname:surname,email:email},succeededCallback,failedCallback,userContext); },
SimpleSearch:function(firstName,surname,email,succeededCallback, failedCallback, userContext) {
/// <param name="firstName" type="String">System.String</param>
/// <param name="surname" type="String">System.String</param>
/// <param name="email" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'SimpleSearch',false,{firstName:firstName,surname:surname,email:email},succeededCallback,failedCallback,userContext); }}
BMDB.Web.Service.Contact.registerClass('BMDB.Web.Service.Contact',Sys.Net.WebServiceProxy);
BMDB.Web.Service.Contact._staticInstance = new BMDB.Web.Service.Contact();
BMDB.Web.Service.Contact.set_path = function(value) {
BMDB.Web.Service.Contact._staticInstance.set_path(value); }
BMDB.Web.Service.Contact.get_path = function() { 
/// <value type="String" mayBeNull="true">The service url.</value>
return BMDB.Web.Service.Contact._staticInstance.get_path();}
BMDB.Web.Service.Contact.set_timeout = function(value) {
BMDB.Web.Service.Contact._staticInstance.set_timeout(value); }
BMDB.Web.Service.Contact.get_timeout = function() { 
/// <value type="Number">The service timeout.</value>
return BMDB.Web.Service.Contact._staticInstance.get_timeout(); }
BMDB.Web.Service.Contact.set_defaultUserContext = function(value) { 
BMDB.Web.Service.Contact._staticInstance.set_defaultUserContext(value); }
BMDB.Web.Service.Contact.get_defaultUserContext = function() { 
/// <value mayBeNull="true">The service default user context.</value>
return BMDB.Web.Service.Contact._staticInstance.get_defaultUserContext(); }
BMDB.Web.Service.Contact.set_defaultSucceededCallback = function(value) { 
 BMDB.Web.Service.Contact._staticInstance.set_defaultSucceededCallback(value); }
BMDB.Web.Service.Contact.get_defaultSucceededCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default succeeded callback.</value>
return BMDB.Web.Service.Contact._staticInstance.get_defaultSucceededCallback(); }
BMDB.Web.Service.Contact.set_defaultFailedCallback = function(value) { 
BMDB.Web.Service.Contact._staticInstance.set_defaultFailedCallback(value); }
BMDB.Web.Service.Contact.get_defaultFailedCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default failed callback.</value>
return BMDB.Web.Service.Contact._staticInstance.get_defaultFailedCallback(); }
BMDB.Web.Service.Contact.set_path("/WebServices/Contact.svc");
BMDB.Web.Service.Contact.Get= function(contactID,onSuccess,onFailed,userContext) {
/// <param name="contactID" type="Number">System.Int32</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
BMDB.Web.Service.Contact._staticInstance.Get(contactID,onSuccess,onFailed,userContext); }
BMDB.Web.Service.Contact.GetName= function(contactID,onSuccess,onFailed,userContext) {
/// <param name="contactID" type="Number">System.Int32</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
BMDB.Web.Service.Contact._staticInstance.GetName(contactID,onSuccess,onFailed,userContext); }
BMDB.Web.Service.Contact.AutoCompleteWithAccount= function(prefixText,count,onSuccess,onFailed,userContext) {
/// <param name="prefixText" type="String">System.String</param>
/// <param name="count" type="Number">System.Int32</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
BMDB.Web.Service.Contact._staticInstance.AutoCompleteWithAccount(prefixText,count,onSuccess,onFailed,userContext); }
BMDB.Web.Service.Contact.AutoCompleteWithAccountAndList= function(prefixText,count,contextKey,onSuccess,onFailed,userContext) {
/// <param name="prefixText" type="String">System.String</param>
/// <param name="count" type="Number">System.Int32</param>
/// <param name="contextKey" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
BMDB.Web.Service.Contact._staticInstance.AutoCompleteWithAccountAndList(prefixText,count,contextKey,onSuccess,onFailed,userContext); }
BMDB.Web.Service.Contact.SendContact= function(obj,onSuccess,onFailed,userContext) {
/// <param name="obj" type="BMLibrary.BLL.Contact_NEW">BMLibrary.BLL.Contact_NEW</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
BMDB.Web.Service.Contact._staticInstance.SendContact(obj,onSuccess,onFailed,userContext); }
BMDB.Web.Service.Contact.GetByAccountForDropDownList= function(accountID,onSuccess,onFailed,userContext) {
/// <param name="accountID" type="Number">System.Int32</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
BMDB.Web.Service.Contact._staticInstance.GetByAccountForDropDownList(accountID,onSuccess,onFailed,userContext); }
BMDB.Web.Service.Contact.GetByAccount= function(accountID,onSuccess,onFailed,userContext) {
/// <param name="accountID" type="Number">System.Int32</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
BMDB.Web.Service.Contact._staticInstance.GetByAccount(accountID,onSuccess,onFailed,userContext); }
BMDB.Web.Service.Contact.AddContact= function(contact,saveAddresses,onSuccess,onFailed,userContext) {
/// <param name="contact" type="BMLibrary.BLL.Contact_NEW">BMLibrary.BLL.Contact_NEW</param>
/// <param name="saveAddresses" type="Boolean">System.Boolean</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
BMDB.Web.Service.Contact._staticInstance.AddContact(contact,saveAddresses,onSuccess,onFailed,userContext); }
BMDB.Web.Service.Contact.AssociateEmailContact= function(contactName,emailID,noTickets,discountPrice,contactListID,deleteFunctionName,onSuccess,onFailed,userContext) {
/// <param name="contactName" type="String">System.String</param>
/// <param name="emailID" type="Number">System.Int32</param>
/// <param name="noTickets" type="Number">System.Int32</param>
/// <param name="discountPrice" type="Number">System.Decimal</param>
/// <param name="contactListID" type="Number">System.Int32</param>
/// <param name="deleteFunctionName" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
BMDB.Web.Service.Contact._staticInstance.AssociateEmailContact(contactName,emailID,noTickets,discountPrice,contactListID,deleteFunctionName,onSuccess,onFailed,userContext); }
BMDB.Web.Service.Contact.RemoveEmailContactAssociation= function(emailContactExtraID,emailID,contactListID,deleteFunctionName,onSuccess,onFailed,userContext) {
/// <param name="emailContactExtraID" type="Number">System.Int32</param>
/// <param name="emailID" type="Number">System.Int32</param>
/// <param name="contactListID" type="Number">System.Int32</param>
/// <param name="deleteFunctionName" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
BMDB.Web.Service.Contact._staticInstance.RemoveEmailContactAssociation(emailContactExtraID,emailID,contactListID,deleteFunctionName,onSuccess,onFailed,userContext); }
BMDB.Web.Service.Contact.AssociateContactID= function(subContactID,contactID,typeID,isSenior,deleteFunctionName,onSuccess,onFailed,userContext) {
/// <param name="subContactID" type="Number">System.Int32</param>
/// <param name="contactID" type="Number">System.Int32</param>
/// <param name="typeID" type="Number">System.Int32</param>
/// <param name="isSenior" type="String">System.String</param>
/// <param name="deleteFunctionName" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
BMDB.Web.Service.Contact._staticInstance.AssociateContactID(subContactID,contactID,typeID,isSenior,deleteFunctionName,onSuccess,onFailed,userContext); }
BMDB.Web.Service.Contact.RemoveContactID= function(contactRelatedID,contactID,deleteFunctionName,onSuccess,onFailed,userContext) {
/// <param name="contactRelatedID" type="Number">System.Int32</param>
/// <param name="contactID" type="Number">System.Int32</param>
/// <param name="deleteFunctionName" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
BMDB.Web.Service.Contact._staticInstance.RemoveContactID(contactRelatedID,contactID,deleteFunctionName,onSuccess,onFailed,userContext); }
BMDB.Web.Service.Contact.SimpleSearchNameList= function(firstName,surname,email,onSuccess,onFailed,userContext) {
/// <param name="firstName" type="String">System.String</param>
/// <param name="surname" type="String">System.String</param>
/// <param name="email" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
BMDB.Web.Service.Contact._staticInstance.SimpleSearchNameList(firstName,surname,email,onSuccess,onFailed,userContext); }
BMDB.Web.Service.Contact.SimpleSearch= function(firstName,surname,email,onSuccess,onFailed,userContext) {
/// <param name="firstName" type="String">System.String</param>
/// <param name="surname" type="String">System.String</param>
/// <param name="email" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
BMDB.Web.Service.Contact._staticInstance.SimpleSearch(firstName,surname,email,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
Type.registerNamespace('BMLibrary.BLL');
if (typeof(BMLibrary.BLL.Contact_NEW) === 'undefined') {
BMLibrary.BLL.Contact_NEW=gtc("Contact_NEW:http://schemas.datacontract.org/2004/07/BMLibrary.BLL");
BMLibrary.BLL.Contact_NEW.registerClass('BMLibrary.BLL.Contact_NEW');
}
if (typeof(BMLibrary.BLL._EntityBase) === 'undefined') {
BMLibrary.BLL._EntityBase=gtc("_EntityBase:http://schemas.datacontract.org/2004/07/BMLibrary.BLL");
BMLibrary.BLL._EntityBase.registerClass('BMLibrary.BLL._EntityBase');
}
if (typeof(BMLibrary.BLL.Address) === 'undefined') {
BMLibrary.BLL.Address=gtc("Address:http://schemas.datacontract.org/2004/07/BMLibrary.BLL");
BMLibrary.BLL.Address.registerClass('BMLibrary.BLL.Address');
}
if (typeof(BMLibrary.BLL.StaticType) === 'undefined') {
BMLibrary.BLL.StaticType=gtc("StaticType:http://schemas.datacontract.org/2004/07/BMLibrary.BLL");
BMLibrary.BLL.StaticType.registerClass('BMLibrary.BLL.StaticType');
}
Type.registerNamespace('BMLibrary.Core');
if (typeof(BMLibrary.Core.DropDownListOptions) === 'undefined') {
BMLibrary.Core.DropDownListOptions=gtc("DropDownListOptions:http://schemas.datacontract.org/2004/07/BMLibrary.Core");
BMLibrary.Core.DropDownListOptions.registerClass('BMLibrary.Core.DropDownListOptions');
}
Type.registerNamespace('BMDB.WebServices');
if (typeof(BMDB.WebServices.ContactNameItem) === 'undefined') {
BMDB.WebServices.ContactNameItem=gtc("ContactNameItem:http://schemas.datacontract.org/2004/07/BMDB.WebServices");
BMDB.WebServices.ContactNameItem.registerClass('BMDB.WebServices.ContactNameItem');
}

