Table of Contents

Class PreferenciasWS

Namespace
PHCWS
Assembly
PHCWS.dll

Entities management services Preferencias.PreferenciaVO and UserVO que representing User Preferences and Users.

[WebService(Namespace = "http://www.phcgo.net/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
[DesignerGenerated]
public class PreferenciasWS : PHCGenericWS, IComponent, IDisposable, IServiceProvider
Inheritance
PreferenciasWS

Methods

definirEmail(string)

Update the email of the logged user.

[WebMethod]
public PHCResult definirEmail(string novoemail)

Parameters

Nome Tipo Descrição
novoemail string

Indicates the new email of the user.

Returns

PHCResult

PHCResult containing UserVO recorded in the database of user information in session over the changes of user rules / system that may exist and are set to run when recording, or error / warning messages produced by user rules / system and / or errors returned the database engine that may have been generated in the recording process.

getCurrentUserVO()

Returns the user to the corresponding current login

public PHCResult getCurrentUserVO()

Returns

PHCResult

resetUserPass(bool)

Performs reestablishment password process for the current user.

[WebMethod]
public PHCResult resetUserPass(bool runWarnings)

Parameters

Nome Tipo Descrição
runWarnings bool

Indicates whether to run the rules of 'warning' user / system when recording. Are rules that must be rendered in response to questions such as Yes / No. If the user responds Yes to all of them, we should call this method again with this parameter False

There is another set of user rules / system which is considered as fatal type rules, which always run regardless of the value of this parameter, for example the rule that does not save a document with the same number of other existing in the database. .

Returns

PHCResult

saveCurrentUserVOData(string, string, string, string)

Stores the user data for trial purposes

public PHCResult saveCurrentUserVOData(string username, string email, string codpais, string tlmvl)

Parameters

Nome Tipo Descrição
username string

User Name

email string

Email

codpais string

Country code

tlmvl string

Mobile number

Returns

PHCResult