Table of Contents

Class FoWS

Namespace
PHCWS
Assembly
PHCWS.dll

url = urlBase."REST/FoWS/"

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

Methods

DeleteProcess(ProcessID)

[WebMethod]
public PHCResult DeleteProcess(ProcessID taskId)

Parameters

Nome Tipo Descrição
taskId ProcessID

Returns

PHCResult

ExecuteProcess(bool, ProcessVO<FoPurchaseConfig>)

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

Parameters

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

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 Purchase Entity

[WebMethod]
public PHCResult GetLots(int offset, int limit, string expression, string fostamp, string fnstamp)

Parameters

Nome Tipo Descrição
offset int
limit int
expression string
fostamp string
fnstamp string

Returns

PHCResult

PreviewProcess(ProcessVO<FoPurchaseConfig>)

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

Parameters

Nome Tipo Descrição
task ProcessVO<FoPurchaseConfig>

Returns

PHCResult

PreviewProcessLines(string, ProcessVO<FoPurchaseConfig>)

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

Parameters

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

Returns

PHCResult

SynchronizeProcess(ProcessVO<FoPurchaseConfig>)

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

Parameters

Nome Tipo Descrição
task ProcessVO<FoPurchaseConfig>

Returns

PHCResult

addNewFOPDsByFC(string, int, int, List<string>)

Add new lines from the FcVO.

[WebMethod]
public PHCResult addNewFOPDsByFC(string IdFoStamp, int no, int estab, List<string> fcstamps)

Parameters

Nome Tipo Descrição
IdFoStamp string

Identifies the FoVO to which belong the records we want to add, corresponding to the value kept in the field fostamp of FoVO.

no int

Identifies the FlVO, corresponding to the field no.

estab int

Identifies the branch of FlVO, corresponding to the field estab.

fcstamps List<string>

It's a list of identifiers of account payable/receivable transactions of suppliers that we want to add, each item list corresponding to the value kept in the field fcstamp of FopdVO.

Returns

PHCResult

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

applyQRDocument(string, int, QRDocumentVO)

[WebMethod]
public PHCResult applyQRDocument(string IdFoStamp, int ndos, QRDocumentVO document)

Parameters

Nome Tipo Descrição
IdFoStamp string
ndos int
document QRDocumentVO

Returns

PHCResult

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

Geração de numeros de série

[WebMethod]
public PHCResult generateSerialNumbers(List<FnMaVO> fnmas, string fnstamp, int startNumber, string preFix, int qttNumber)

Parameters

Nome Tipo Descrição
fnmas List<FnMaVO>
fnstamp string
startNumber int
preFix string
qttNumber int

Returns

PHCResult

getCodes4041List()

Get codes 4041 for invoices

[WebMethod]
public PHCResult getCodes4041List()

Returns

PHCResult

newPaymentConditions(string, PaymentConditionVO)

Calculates the new method of payment considering the indicated options in the parameter PaymentConditions.

[WebMethod]
public PHCResult newPaymentConditions(string IdFoStamp, PaymentConditionVO PaymentConditions)

Parameters

Nome Tipo Descrição
IdFoStamp string

Identifies the record you want to update, corresponds to the value stored in the field fostamp of FoVO.

PaymentConditions PaymentConditionVO

Indica as novas condições de pagamento que desejamos aplicar ao documento.

Returns

PHCResult

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

Remarks

The update is stored in memory, the final recording in the database should be done by the 'Save' service.

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

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

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

Parameters

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

Returns

PHCResult