Type.registerNamespace('CoreSystems.SalesUI');
CoreSystems.SalesUI.LoginService=function() {
CoreSystems.SalesUI.LoginService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
CoreSystems.SalesUI.LoginService.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return CoreSystems.SalesUI.LoginService._staticInstance.get_path();},
GetSorterUrl:function(partnerHome,succeededCallback, failedCallback, userContext) {
/// <param name="partnerHome" 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(), 'GetSorterUrl',false,{partnerHome:partnerHome},succeededCallback,failedCallback,userContext); },
GetRegistrationByRegCode:function(codes,succeededCallback, failedCallback, userContext) {
/// <param name="codes" type="Array">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(), 'GetRegistrationByRegCode',false,{codes:codes},succeededCallback,failedCallback,userContext); },
GetRegistrationByPlan:function(partnerCode,pricePlanId,orgDetails,succeededCallback, failedCallback, userContext) {
/// <param name="partnerCode" type="String">System.String</param>
/// <param name="pricePlanId" type="String">System.String</param>
/// <param name="orgDetails" 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(), 'GetRegistrationByPlan',false,{partnerCode:partnerCode,pricePlanId:pricePlanId,orgDetails:orgDetails},succeededCallback,failedCallback,userContext); },
GetRegistrationPartnerUrl:function(partnerId,succeededCallback, failedCallback, userContext) {
/// <param name="partnerId" 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(), 'GetRegistrationPartnerUrl',false,{partnerId:partnerId},succeededCallback,failedCallback,userContext); },
GetRegistrationUrl:function(succeededCallback, failedCallback, userContext) {
/// <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(), 'GetRegistrationUrl',false,{},succeededCallback,failedCallback,userContext); },
SendMessagetoEnquiries:function(enquirer,emailFrom,message,succeededCallback, failedCallback, userContext) {
/// <param name="enquirer" type="String">System.String</param>
/// <param name="emailFrom" type="String">System.String</param>
/// <param name="message" 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(), 'SendMessagetoEnquiries',false,{enquirer:enquirer,emailFrom:emailFrom,message:message},succeededCallback,failedCallback,userContext); },
SendDataToWebSurvey:function(webSyncIDStr,fullName,emailAddress,onBPMedication,conditions,succeededCallback, failedCallback, userContext) {
/// <param name="webSyncIDStr" type="String">System.String</param>
/// <param name="fullName" type="String">System.String</param>
/// <param name="emailAddress" type="String">System.String</param>
/// <param name="onBPMedication" type="String">System.String</param>
/// <param name="conditions" 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(), 'SendDataToWebSurvey',false,{webSyncIDStr:webSyncIDStr,fullName:fullName,emailAddress:emailAddress,onBPMedication:onBPMedication,conditions:conditions},succeededCallback,failedCallback,userContext); },
CheckCode:function(code,succeededCallback, failedCallback, userContext) {
/// <param name="code" 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(), 'CheckCode',false,{code:code},succeededCallback,failedCallback,userContext); }}
CoreSystems.SalesUI.LoginService.registerClass('CoreSystems.SalesUI.LoginService',Sys.Net.WebServiceProxy);
CoreSystems.SalesUI.LoginService._staticInstance = new CoreSystems.SalesUI.LoginService();
CoreSystems.SalesUI.LoginService.set_path = function(value) {
CoreSystems.SalesUI.LoginService._staticInstance.set_path(value); }
CoreSystems.SalesUI.LoginService.get_path = function() { 
/// <value type="String" mayBeNull="true">The service url.</value>
return CoreSystems.SalesUI.LoginService._staticInstance.get_path();}
CoreSystems.SalesUI.LoginService.set_timeout = function(value) {
CoreSystems.SalesUI.LoginService._staticInstance.set_timeout(value); }
CoreSystems.SalesUI.LoginService.get_timeout = function() { 
/// <value type="Number">The service timeout.</value>
return CoreSystems.SalesUI.LoginService._staticInstance.get_timeout(); }
CoreSystems.SalesUI.LoginService.set_defaultUserContext = function(value) { 
CoreSystems.SalesUI.LoginService._staticInstance.set_defaultUserContext(value); }
CoreSystems.SalesUI.LoginService.get_defaultUserContext = function() { 
/// <value mayBeNull="true">The service default user context.</value>
return CoreSystems.SalesUI.LoginService._staticInstance.get_defaultUserContext(); }
CoreSystems.SalesUI.LoginService.set_defaultSucceededCallback = function(value) { 
 CoreSystems.SalesUI.LoginService._staticInstance.set_defaultSucceededCallback(value); }
CoreSystems.SalesUI.LoginService.get_defaultSucceededCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default succeeded callback.</value>
return CoreSystems.SalesUI.LoginService._staticInstance.get_defaultSucceededCallback(); }
CoreSystems.SalesUI.LoginService.set_defaultFailedCallback = function(value) { 
CoreSystems.SalesUI.LoginService._staticInstance.set_defaultFailedCallback(value); }
CoreSystems.SalesUI.LoginService.get_defaultFailedCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default failed callback.</value>
return CoreSystems.SalesUI.LoginService._staticInstance.get_defaultFailedCallback(); }
CoreSystems.SalesUI.LoginService.set_enableJsonp = function(value) { CoreSystems.SalesUI.LoginService._staticInstance.set_enableJsonp(value); }
CoreSystems.SalesUI.LoginService.get_enableJsonp = function() { 
/// <value type="Boolean">Specifies whether the service supports JSONP for cross domain calling.</value>
return CoreSystems.SalesUI.LoginService._staticInstance.get_enableJsonp(); }
CoreSystems.SalesUI.LoginService.set_jsonpCallbackParameter = function(value) { CoreSystems.SalesUI.LoginService._staticInstance.set_jsonpCallbackParameter(value); }
CoreSystems.SalesUI.LoginService.get_jsonpCallbackParameter = function() { 
/// <value type="String">Specifies the parameter name that contains the callback function name for a JSONP request.</value>
return CoreSystems.SalesUI.LoginService._staticInstance.get_jsonpCallbackParameter(); }
CoreSystems.SalesUI.LoginService.set_path("/LoginService.asmx");
CoreSystems.SalesUI.LoginService.GetSorterUrl= function(partnerHome,onSuccess,onFailed,userContext) {
/// <param name="partnerHome" 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>
CoreSystems.SalesUI.LoginService._staticInstance.GetSorterUrl(partnerHome,onSuccess,onFailed,userContext); }
CoreSystems.SalesUI.LoginService.GetRegistrationByRegCode= function(codes,onSuccess,onFailed,userContext) {
/// <param name="codes" type="Array">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>
CoreSystems.SalesUI.LoginService._staticInstance.GetRegistrationByRegCode(codes,onSuccess,onFailed,userContext); }
CoreSystems.SalesUI.LoginService.GetRegistrationByPlan= function(partnerCode,pricePlanId,orgDetails,onSuccess,onFailed,userContext) {
/// <param name="partnerCode" type="String">System.String</param>
/// <param name="pricePlanId" type="String">System.String</param>
/// <param name="orgDetails" 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>
CoreSystems.SalesUI.LoginService._staticInstance.GetRegistrationByPlan(partnerCode,pricePlanId,orgDetails,onSuccess,onFailed,userContext); }
CoreSystems.SalesUI.LoginService.GetRegistrationPartnerUrl= function(partnerId,onSuccess,onFailed,userContext) {
/// <param name="partnerId" 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>
CoreSystems.SalesUI.LoginService._staticInstance.GetRegistrationPartnerUrl(partnerId,onSuccess,onFailed,userContext); }
CoreSystems.SalesUI.LoginService.GetRegistrationUrl= function(onSuccess,onFailed,userContext) {
/// <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>
CoreSystems.SalesUI.LoginService._staticInstance.GetRegistrationUrl(onSuccess,onFailed,userContext); }
CoreSystems.SalesUI.LoginService.SendMessagetoEnquiries= function(enquirer,emailFrom,message,onSuccess,onFailed,userContext) {
/// <param name="enquirer" type="String">System.String</param>
/// <param name="emailFrom" type="String">System.String</param>
/// <param name="message" 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>
CoreSystems.SalesUI.LoginService._staticInstance.SendMessagetoEnquiries(enquirer,emailFrom,message,onSuccess,onFailed,userContext); }
CoreSystems.SalesUI.LoginService.SendDataToWebSurvey= function(webSyncIDStr,fullName,emailAddress,onBPMedication,conditions,onSuccess,onFailed,userContext) {
/// <param name="webSyncIDStr" type="String">System.String</param>
/// <param name="fullName" type="String">System.String</param>
/// <param name="emailAddress" type="String">System.String</param>
/// <param name="onBPMedication" type="String">System.String</param>
/// <param name="conditions" 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>
CoreSystems.SalesUI.LoginService._staticInstance.SendDataToWebSurvey(webSyncIDStr,fullName,emailAddress,onBPMedication,conditions,onSuccess,onFailed,userContext); }
CoreSystems.SalesUI.LoginService.CheckCode= function(code,onSuccess,onFailed,userContext) {
/// <param name="code" 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>
CoreSystems.SalesUI.LoginService._staticInstance.CheckCode(code,onSuccess,onFailed,userContext); }

