} //END Create web method. //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ #endregion #region Private Methods. // ===================================================================================== // ------------------------------------------------------------------------------------- // ===================================================================================== /// <summary> /// This method updates the TokenUserProfile object in the database. /// </summary> /// <param name="UserProfile">EusTokenUserProfile object</param> /// <returns>EvEventCodes enumerated value.</returns> // ------------------------------------------------------------------------------------- private EvEventCodes UpdateTokenUserProfile(EusTokenUserProfile UserProfile) { this.LogMethod("UpdateTokenUserProfile"); // // initialise the methods variables and objects. // EvUserProfileBase serviceUserProfile = new EvUserProfileBase( ); serviceUserProfile.UserId = "TokenService"; serviceUserProfile.CommonName = "Token Service"; // // Set the device client service session state. // IntegrationServices integrationServices = new IntegrationServices( Global.ServiceVersion, Global.GlobalObjectList, Global.ApplicationPath, serviceUserProfile, Global.UniForm_BinaryFilePath, Global.UniForm_BinaryServiceUrl); integrationServices.LoggingLevel = 5; integrationServices.EventLogSource = Global.EventLogSource; // // Update the token user profile. // EvEventCodes result = integrationServices.UpdateTokenUserProfile(UserProfile); this.LogClass(integrationServices.Log); this.LogMethodEnd("UpdateTokenUserProfile"); return(result); }
/// <summary> /// This method initialises the class and passs in the user profile. /// </summary> public EuUserRegistration ( EuGlobalObjects ApplicationObjects, EvUserProfileBase ServiceUserProfile, EuSession SessionObjects, String UniFormBinaryFilePath, EvClassParameters Settings ) { this.AdapterObjects = ApplicationObjects; this.ServiceUserProfile = ServiceUserProfile; this.Session = SessionObjects; this.UniForm_BinaryFilePath = UniFormBinaryFilePath; this.ClassParameters = Settings; this.LoggingLevel = Settings.LoggingLevel; this.ClassNameSpace = "Evado.UniForm.Clinical.EuDemoUserRegistration."; this.LogInitMethod ( "EuDemoUserRegistration initialisation" ); this.LogInit ( "ServiceUserProfile.UserId: " + ServiceUserProfile.UserId ); this.LogInit ( "SessionObjects.UserProfile.Userid: " + this.Session.UserProfile.UserId ); this.LogInit ( "SessionObjects.UserProfile.CommonName: " + this.Session.UserProfile.CommonName ); this.LogInit ( "UniFormBinaryFilePath: " + this.UniForm_BinaryFilePath ); this.LogInit ( "Settings:" ); this.LogInit ( "-PlatformId: " + this.ClassParameters.PlatformId ); this.LogInit ( "-ApplicationGuid: " + this.ClassParameters.AdapterGuid ); this.LogInit ( "-LoggingLevel: " + Settings.LoggingLevel ); this.LogInit ( "-UserId: " + Settings.UserProfile.UserId ); this.LogInit ( "-UserCommonName: " + Settings.UserProfile.CommonName ); this._Bll_UserProfiles = new Evado.Digital.Bll.EdUserprofiles ( this.ClassParameters ); }//END Method
/// <summary> /// This method initialises the class and passs in the user profile. /// </summary> public EuAncillaryRecords ( EuApplicationObjects ApplicationObjects, EvUserProfileBase ServiceUserProfile, EuSession SessionObjects, String UniFormBinaryFilePath, String UniFormServiceBinaryUrl, String FileRepositoryPath, EvClassParameters Settings ) { this.ApplicationObjects = ApplicationObjects; this.ServiceUserProfile = ServiceUserProfile; this.Session = SessionObjects; this.UniForm_BinaryFilePath = UniFormBinaryFilePath; this.UniForm_BinaryServiceUrl = UniFormServiceBinaryUrl; this._FileRepositoryPath = FileRepositoryPath; this.ClassParameters = Settings; this.ClassNameSpace = "Evado.UniForm.Clinical.EuAncillaryRecords."; this.LogInitMethod ( "EuAncilliaryRecords initialisation" ); this.LogInit ( "ServiceUserProfile.UserId: " + ServiceUserProfile.UserId ); this.LogInit ( "SessionObjects.Project.ProjectId: " + this.Session.Trial.TrialId ); this.LogInit ( "SessionObjects.UserProfile.Userid: " + this.Session.UserProfile.UserId ); this.LogInit ( "SessionObjects.UserProfile.CommonName: " + this.Session.UserProfile.CommonName ); this.LogInit ( "UniFormBinaryFilePath: " + this.UniForm_BinaryFilePath ); this.LogInit ( "UniFormBinaryServiceUrl: " + this.UniForm_BinaryServiceUrl ); this.LogInit ( "RepositoryFilePath: " + this._FileRepositoryPath ); ; this.LogInit ( "Settings.LoggingLevel: " + Settings.LoggingLevel ); this.LogInit ( "Settings.UserProfile.UserId: " + Settings.UserProfile.UserId ); this.LogInit ( "Settings.UserProfile.CommonName: " + Settings.UserProfile.CommonName ); }//END Method
/// <summary> /// This method initialises the class and passs in the user profile. /// </summary> public EuAlerts ( EuApplicationObjects ApplicationObjects, EvUserProfileBase ServiceUserProfile, EuSession SessionObjects, String UniFormBinaryFilePath, EvClassParameters Settings ) { this.ClassNameSpace = "Evado.UniForm.Clinical.EuAlerts."; this.ApplicationObjects = ApplicationObjects; this.ServiceUserProfile = ServiceUserProfile; this.Session = SessionObjects; this.UniForm_BinaryFilePath = UniFormBinaryFilePath; this.ClassParameters = Settings; this.LogInitMethod ( "EuAlerts initialisation" ); this.LogInit ( "ServiceUserProfile.UserId: " + ServiceUserProfile.UserId ); this.LogInit ( "SessionObjects.Project.ProjectId: " + this.Session.Application.ApplicationId ); this.LogInit ( "SessionObjects.UserProfile.Userid: " + this.Session.UserProfile.UserId ); this.LogInit ( "SessionObjects.UserProfile.CommonName: " + this.Session.UserProfile.CommonName ); this.LogInit ( "UniFormBinaryFilePath: " + this.UniForm_BinaryFilePath ); this.LogInit ( "Settings:" ); this.LogInit ( "-LoggingLevel: " + Settings.LoggingLevel ); this.LogInit ( "-UserId: " + Settings.UserProfile.UserId ); this.LogInit ( "-UserCommonName: " + Settings.UserProfile.CommonName ); this._Bll_Alerts = new EvAlerts ( Settings ); }//END Method
// ================================================================================== /// <summary> /// The class initialisation method. /// </summary> /// <param name="SessionState">HttpSessionState object from the web service or layer.</param> /// <param name="GlobalObjects">Hasthtable collection of all the global objects.</param> /// <param name="ServiceUserProfile">The user Id of the current user.</param> // ---------------------------------------------------------------------------------- public CommandHistory ( Hashtable GlobalObjects, EvUserProfileBase ServiceUserProfile ) { this.LogInitialMethod ( "CommandHistory class initialisation method" ); this.LogInitialDebug ( "ServiceUserProfile.UserId: " + ServiceUserProfile.UserId ); // // Initialise the sesion and Global object stores. // this._GlobalObjects = GlobalObjects; this._GlobalKey = ServiceUserProfile.UserId + Evado.UniForm.Model.EuStatics.GLOBAL_COMMAND_HISTORY; this._GlobalKey = this._GlobalKey.ToUpper ( ); this.LogInitialDebug ( "GlobalKey: " + this._GlobalKey ); this.LogInitialDebug ( "Attempting to load from Global object store." ); if ( this._GlobalObjects [ this._GlobalKey ] != null ) { this._CommandHistoryList = (List<Command>) this._GlobalObjects [ this._GlobalKey ]; this.LogInitialDebug ( "History loaded from Global Object store." ); } this.LogInitialDebug ( "Session CommandHistory count:" + this._CommandHistoryList.Count ); if ( this._CommandHistoryList.Count == 0 ) { this._CommandHistoryList.Add ( Command.getLogoutCommand ( ) ); } this.LogInitialDebug ( "CommandHistory count:" + this._CommandHistoryList.Count ); }
/// <summary> /// This method initialises the class and passs in the user profile. /// </summary> public EuOrganisations ( EuGlobalObjects AdapterObjects, EvUserProfileBase ServiceUserProfile, EuSession SessionObjects, String UniFormBinaryFilePath, String UniForm_BinaryServiceUrl, EvClassParameters Settings ) { this.ClassNameSpace = "Evado.UniForm.Digital.EuOrganisations."; this.AdapterObjects = AdapterObjects; this.ServiceUserProfile = ServiceUserProfile; this.Session = SessionObjects; this.UniForm_BinaryFilePath = UniFormBinaryFilePath; this.UniForm_BinaryServiceUrl = UniForm_BinaryServiceUrl; this.ClassParameters = Settings; this.LogInitMethod ( "EuOrganisations initialisation" ); this.LogInit ( "ServiceUserProfile.UserId: " + ServiceUserProfile.UserId ); this.LogInit ( "Session.UserProfile.Userid: " + this.Session.UserProfile.UserId ); this.LogInit ( "Session.UserProfile.CommonName: " + this.Session.UserProfile.CommonName ); this.LogInit ( "UniFormBinaryFilePath: " + this.UniForm_BinaryFilePath ); this.LogInit ( "UniForm BinaryServiceUrl: " + this.UniForm_BinaryServiceUrl ); this.LogInit ( "Settings:" ); this.LogInit ( "-PlatformId: " + this.ClassParameters.PlatformId ); this.LogInit ( "-ApplicationGuid: " + this.ClassParameters.AdapterGuid ); this.LogInit ( "-LoggingLevel: " + Settings.LoggingLevel ); this.LogInit ( "-UserId: " + Settings.UserProfile.UserId ); this.LogInit ( "-CommonName: " + Settings.UserProfile.CommonName ); this._Bll_Organisations = new Evado.Digital.Bll.EdOrganisations ( this.ClassParameters ); if ( this.Session.AdminOrganisation == null ) { this.Session.AdminOrganisation = new EdOrganisation ( ); } if ( this.Session.AdminOrganisationList == null ) { this.Session.AdminOrganisationList = new List<EdOrganisation> ( ); } if ( this.Session.SelectedOrganisationType == null ) { this.Session.SelectedOrganisationType = String.Empty; } }//END Method
// ================================================================================== /// <summary> /// The class initialisation method that also initialises the classes core properties. /// </summary> /// <param name="ClientVersion">the version of the current client.</param> /// <param name="GlobalObjects">Hashtable: containing global objects.</param> /// <param name="SessionState">HttpSessionState object from the web service or layer.</param> /// <param name="ApplicationPath">The web services application path.</param> /// <param name="ServiceUserProfile">User id of the curretn user.</param> /// <param name="UniForm_BinaryFilePath">The path to binary files to be accessed by the device clients.</param> /// <param name="UniForm_ServiceBinaryUrl">The URL to access a binary files from a device client.</param> // ---------------------------------------------------------------------------------- public IntegrationServices ( float ClientVersion, Hashtable GlobalObjects, String ApplicationPath, EvUserProfileBase ServiceUserProfile, String UniForm_BinaryFilePath, String UniForm_ServiceBinaryUrl ) { this._ClientVersion = ClientVersion; this._GlobalObjects = GlobalObjects; this._ServiceUserProfile = ServiceUserProfile; this._ApplicationPath = ApplicationPath; this._ServiceUserProfile = ServiceUserProfile; this._UniForm_BinaryFilePath = UniForm_BinaryFilePath; this._UniForm_BinaryServiceUrl = UniForm_ServiceBinaryUrl; this.LogInitMethod ( "Initialisation method. " ); this.logInitValue ( "- ClientVersion: " + this._ClientVersion ); this.logInitValue ( "- ServiceUserProfile.UserId: " + this._ServiceUserProfile.UserId ); this.logInitValue ( "- ServiceUserProfile New Authentication: " + this._ServiceUserProfile.NewAuthentication ); this.logInitValue ( "- GlobalObjects count: " + this._GlobalObjects.Count ); this.logInitValue ( "- ApplicationPath: " + this._ApplicationPath ); this.logInitValue ( "- UniForm_BinaryFilePath: " + this._UniForm_BinaryFilePath ); this.logInitValue ( "- UniForm_BinaryServiceUrl: " + this._UniForm_BinaryServiceUrl ); // // Reset the exit method for the object. // this._ExitCommand = Command.getLogoutCommand ( ); //this._CommandHistory.DebugOn = true; // // Initialise the command history object. // this._CommandHistory = new CommandHistory ( this._GlobalObjects, this._ServiceUserProfile ); this.logInitValue ( "Command History list: " + this._CommandHistory.listCommandHistory ( true ) ); this.logInitValue ( "Global Objects:" ); foreach ( System.Collections.DictionaryEntry entry in this._GlobalObjects ) { this.logInitValue ( "Item: " + entry.Key + " , type: " + entry.Value.GetType() ); } }//END Initialisation Method
/// <summary> /// This method initialises the class and passs in the user profile. /// </summary> public EuStaticContentTemplates ( EuGlobalObjects ApplicationObjects, EvUserProfileBase ServiceUserProfile, EuSession SessionObjects, String UniFormBinaryFilePath ) { this.AdapterObjects = ApplicationObjects; this.ServiceUserProfile = ServiceUserProfile; this.Session = SessionObjects; this.UniForm_BinaryFilePath = UniFormBinaryFilePath; this.ClassNameSpace = "Evado.UniForm.Clinical.EuStaticContentTemplates."; this.LogInitMethod ( "EuStaticContentTemplates initialisation" ); this.LogInit ( "ServiceUserProfile.UserId: " + ServiceUserProfile.UserId ); this.LogInit ( "SessionObjects.UserProfile.Userid: " + this.Session.UserProfile.UserId ); this.LogInit ( "SessionObjects.UserProfile.CommonName: " + this.Session.UserProfile.CommonName ); }//END Method
/// <summary> /// This method initialises the class and passs in the user profile. /// </summary> public EuApplicationEvents ( EuGlobalObjects ApplicationObjects, EvUserProfileBase ServiceUserProfile, EuSession SessionObjects, String UniFormBinaryFilePath, EvClassParameters Settings ) { this.ClassNameSpace = "Evado.UniForm.Clinical.EuAPplicationEvents. "; this.AdapterObjects = ApplicationObjects; this.ServiceUserProfile = ServiceUserProfile; this.Session = SessionObjects; this.UniForm_BinaryFilePath = UniFormBinaryFilePath; this.ClassParameters = Settings; this._Bll_ApplicationEvents = new Evado.Digital.Bll.EvApplicationEvents ( this.ClassParameters ); this.LogInitMethod ( "EuApplicationEvents initialisation" ); this.LogInit ( "ServiceUserProfile.UserId: " + ServiceUserProfile.UserId ); this.LogInit ( "SessionObjects.UserProfile.Userid: " + this.Session.UserProfile.UserId ); this.LogInit ( "SessionObjects.UserProfile.CommonName: " + this.Session.UserProfile.CommonName ); this.LogInit ( "UniFormBinaryFilePath: " + this.UniForm_BinaryFilePath ); this.LogInit ( "Settings:" ); this.LogInit ( "-LoggingLevel: " + Settings.LoggingLevel ); this.LogInit ( "-UserId: " + Settings.UserProfile.UserId ); this.LogInit ( "-UserCommonName: " + Settings.UserProfile.CommonName ); if ( this.Session.ApplicationEventList == null ) { this.Session.ApplicationEventList = new List<EvApplicationEvent> ( ); } if ( this.AdapterObjects.EventCodeSelectionList == null ) { this.AdapterObjects.EventCodeSelectionList = new List<EvOption> ( ); } }//END Method
/// <summary> /// This method initialises the class and passs in the user profile. /// </summary> public EuMenus ( EuGlobalObjects ApplicationObject, EvUserProfileBase ServiceUserProfile, EuSession SessionObjects, String UniFormBinaryFilePath, EvClassParameters Settings ) { this.ClassNameSpace = "Evado.UniForm.Clinical.EuMenus."; this.AdapterObjects = ApplicationObject; this.ServiceUserProfile = ServiceUserProfile; this.Session = SessionObjects; this.UniForm_BinaryFilePath = UniFormBinaryFilePath; this.ClassParameters = Settings; this.LogInitMethod ( "Menu initialisation" ); this.LogInit ( "ServiceUserProfile.UserId: " + ServiceUserProfile.UserId ); this.LogInit ( "SessionObjects.UserProfile.Userid: " + this.Session.UserProfile.UserId ); this.LogInit ( "SessionObjects.UserProfile.CommonName: " + this.Session.UserProfile.CommonName ); this.LogInit ( "UniFormBinaryFilePath: " + this.UniForm_BinaryFilePath ); this._Bll_Menus = new EvMenus ( this.ClassParameters ); }//END Method