Table of Contents

Class ClWS

Namespace
PHCWS
Assembly
PHCWS.dll

url = urlBase."REST/ClWS/"

[WebService(Namespace = "http://www.phcgo.net/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
[DesignerGenerated]
public class ClWS : PHCTypedWS<ClVO>, IComponent, IDisposable, IServiceProvider
Inheritance
ClWS

Methods

RequeryByNoEstab(int, int)

Find a record of the database.

[WebMethod]
public PHCResult RequeryByNoEstab(int no, int estab)

Parameters

Nome Tipo Descrição
no int

It is a DecimalVO that identifies the customer number, corresponds to the value stored in the field no of ClVO.

estab int

Indicates the customer branch corresponds to the value stored in the estab of ClVO.

Returns

PHCResult

PHCResult containing the ClVO request or error messages produced by this query process.

Remarks

This service allows you to return an entity record ClVO without performing validations of access to the entity or log in log any activity, as it does for example the service Requery, so it should be used only in situations where we are working with another entity but need information ClVo, only for some business logic, such as example when working with the entity FtVO need to consult the CL in order to update the record of this.

SendDebtsByEmail(string, string, EmailVO)

[WebMethod]
public PHCResult SendDebtsByEmail(string clstamp, string clname, EmailVO emailVO)

Parameters

Nome Tipo Descrição
clstamp string
clname string
emailVO EmailVO

Returns

PHCResult

createBranch(string)

Creates a new branch for a given client.

[WebMethod]
public PHCResult createBranch(string clstamp)

Parameters

Nome Tipo Descrição
clstamp string

It is a DecimalVO that identifies the customer number, corresponds to the value stored in the field no of ClVO.

Returns

PHCResult

A PHCResult containing the ClVO request or error messages produced by this query process.

Remarks

This service allows you to create a new ClVO that represents a client's branch.

getBranches(int)

Get Branches from client number

[WebMethod]
public PHCResult getBranches(int no)

Parameters

Nome Tipo Descrição
no int

Returns

PHCResult

getContacts(string, string)

Get Contacts from client

[WebMethod]
public PHCResult getContacts(string searchTerm, string clstamp)

Parameters

Nome Tipo Descrição
searchTerm string
clstamp string

Returns

PHCResult

getHeadquarters(int)

Get Headquarter of a given customer

[WebMethod]
public PHCResult getHeadquarters(int no)

Parameters

Nome Tipo Descrição
no int

Returns

PHCResult