Table of Contents

Class BoWS

Namespace
PHCWS
Assembly
PHCWS.dll

url = urlBase."REST/BoWS/"

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

Methods

DeleteProcess(ProcessID)

[WebMethod]
public PHCResult DeleteProcess(ProcessID taskId)

Parameters

Nome Tipo Descrição
taskId ProcessID

Returns

PHCResult

ExecuteProcess(bool, ProcessVO<BoIssuanceConfig>)

[WebMethod]
public PHCResult ExecuteProcess(bool useAsync, ProcessVO<BoIssuanceConfig> task)

Parameters

Nome Tipo Descrição
useAsync bool
task ProcessVO<BoIssuanceConfig>

Returns

PHCResult

GetLots(int, int, string, string, string)

Obtains a list of Lots of a given Reference, ordered by its method of recovery (FIFO, FEFO or LIFO). This methods is suitable to be used with Internal Document Entity

[WebMethod]
public PHCResult GetLots(int offset, int limit, string expression, string bostamp, string bistamp)

Parameters

Nome Tipo Descrição
offset int
limit int
expression string
bostamp string
bistamp string

Returns

PHCResult

PreviewProcess(ProcessVO<BoIssuanceConfig>)

[WebMethod]
public PHCResult PreviewProcess(ProcessVO<BoIssuanceConfig> task)

Parameters

Nome Tipo Descrição
task ProcessVO<BoIssuanceConfig>

Returns

PHCResult

PreviewProcessLines(string, ProcessVO<BoIssuanceConfig>)

[WebMethod]
public PHCResult PreviewProcessLines(string stampID, ProcessVO<BoIssuanceConfig> task)

Parameters

Nome Tipo Descrição
stampID string
task ProcessVO<BoIssuanceConfig>

Returns

PHCResult

SynchronizeProcess(ProcessVO<BoIssuanceConfig>)

[WebMethod]
public PHCResult SynchronizeProcess(ProcessVO<BoIssuanceConfig> task)

Parameters

Nome Tipo Descrição
task ProcessVO<BoIssuanceConfig>

Returns

PHCResult

anularDocumento(string, string, bool)

Cancels a BoVO.

[WebMethod]
public PHCResult anularDocumento(string boStamp, string nullifyReason, bool runWarningRules)

Parameters

Nome Tipo Descrição
boStamp string

Identifies an internal document to cancel, corresponding to the value kept in the field bostamp of the internal document.

nullifyReason string
runWarningRules bool

Indicates if it is to run the 'warning' rules of user/system when saving. There are rules that must be rendered as questions of answers of the type Yes/No. In case the user responds Yes to all, we should call this method again with this parameter set to False .

There are a set of user/system rules that are considered as rules of type fatal, that run always despite the value of this parameter, for example the rule that doesn't allow to save the document with the same number of an existing one in the database. .

Returns

PHCResult

PHCResult containing the BoVO in the property result, or MessageVO in the property messages produced by the server in this process.

Remarks

Cancels a BoVO, marking the property anulada with the value True. .

An internal document cancelled, by tax reasons, will be kept in database with all records and totals. Only the movements created by the internal document creation, for example stock movements, will be reser as if the internal document don't exist and as if was erased in the database.

closeDocument(string)

Closes an Internal Document.

[WebMethod]
public PHCResult closeDocument(string bostamp)

Parameters

Nome Tipo Descrição
bostamp string

Identifica qual o Dossier Interno to close.

Returns

PHCResult

PHCResult contains internal document in the property result, or error messages in the property messages produced in the server by this process.

Remarks

Closes an Internal Document.

generateSerialNumbers(List<BiMaVO>, string, int, string, int)

Geração de numeros de série

[WebMethod]
public PHCResult generateSerialNumbers(List<BiMaVO> bimas, string bistamp, int startNumber, string preFix, int qttNumber)

Parameters

Nome Tipo Descrição
bimas List<BiMaVO>
bistamp string
startNumber int
preFix string
qttNumber int

Returns

PHCResult

openDocument(string)

Opens an Internal Document.

[WebMethod]
public PHCResult openDocument(string bostamp)

Parameters

Nome Tipo Descrição
bostamp string

Identifies which BoVO to open.

Returns

PHCResult

PHCResult containing the dossier in the property result, or error messages in the property messages produced by the server in this process.

Remarks

Opens an Internal Document.

runValidationsFileImportLines(string, BoVO, List<ImportSampleVO>, bool)

Validações na importação do ficheiro csv

[WebMethod]
public PHCResult runValidationsFileImportLines(string fileName, BoVO itemVO, List<ImportSampleVO> rowsCsv, bool haveHeaders)

Parameters

Nome Tipo Descrição
fileName string
itemVO BoVO
rowsCsv List<ImportSampleVO>
haveHeaders bool

Returns

PHCResult

signDocument(string)

Signs an Internal Document.

[WebMethod]
public PHCResult signDocument(string bostamp)

Parameters

Nome Tipo Descrição
bostamp string

Identifies which BoVO to sign.

Returns

PHCResult

PHCResult containing the BoVO in the property
result, or MessageVO in the property
messages produced by the server in this process.

Remarks

Digitally signs an Internal Document.