Table of Contents

Class Saft

Namespace
PHCBusinessLayer
Assembly
PHCBusinessLayer.dll
public class Saft : BizObject, IPnp, ISDKBaseBiz, ISDKContextAwareness
Inheritance
Saft

Constructors

Saft()

public Saft()

Properties

GetCorrectionTypes

public static List<string> GetCorrectionTypes { get; }

Property Value

List<string>

GetCreditTypes

public static List<string> GetCreditTypes { get; }

Property Value

List<string>

GetDebitTypes

public static List<string> GetDebitTypes { get; }

Property Value

List<string>

GetInvoiceInsuranceTypes

public static List<string> GetInvoiceInsuranceTypes { get; }

Property Value

List<string>

GetInvoiceTypes

public static List<string> GetInvoiceTypes { get; }

Property Value

List<string>

GetInvoicesAsMovementOfGoods

public static List<string> GetInvoicesAsMovementOfGoods { get; }

Property Value

List<string>

GetMovementOfGoodsTypes

public static List<string> GetMovementOfGoodsTypes { get; }

Property Value

List<string>

GetNotSafTypes

public static List<string> GetNotSafTypes { get; }

Property Value

List<string>

GetObsoleteSaftTypes

public static List<string> GetObsoleteSaftTypes { get; }

Property Value

List<string>

GetPaymentsTypes

public static List<string> GetPaymentsTypes { get; }

Property Value

List<string>

GetPurchasesTypes

public static List<string> GetPurchasesTypes { get; }

Property Value

List<string>

GetSaftTypes

public static List<string> GetSaftTypes { get; }

Property Value

List<string>

GetSalesInvoicesTypes

public static List<string> GetSalesInvoicesTypes { get; }

Property Value

List<string>

GetWorkingDocumentsTypes

public static List<string> GetWorkingDocumentsTypes { get; }

Property Value

List<string>

IsIntegrated

public bool IsIntegrated { get; set; }

Property Value

bool

XInvoices

protected Saft.SalesInvoice XInvoices { get; set; }

Property Value

Saft.SalesInvoice

Year

public int Year { get; set; }

Property Value

int

allMessages

public List<MessageVO> allMessages { get; }

Property Value

List<MessageVO>

boManager

public BoDataManager boManager { get; }

Property Value

BoDataManager

e1Item

public E1VO e1Item { get; }

Property Value

E1VO

errorMessages

public List<MessageVO> errorMessages { get; set; }

Property Value

List<MessageVO>

flItem

public FlVO flItem { get; }

Property Value

FlVO

flManager

public FlDataManager flManager { get; }

Property Value

FlDataManager

ftManager

public FtDataManager ftManager { get; }

Property Value

FtDataManager

fxdfBiz

public FXDFBiz fxdfBiz { get; }

Property Value

FXDFBiz

nContGeneric

public string nContGeneric { get; set; }

Property Value

string

stManager

public StDataManager stManager { get; }

Property Value

StDataManager

tabelasIVA

public List<TaxasIVAVO> tabelasIVA { get; }

Property Value

List<TaxasIVAVO>

warningMessages

public List<MessageVO> warningMessages { get; set; }

Property Value

List<MessageVO>

xMovement

protected Saft.MovementOfGoods xMovement { get; set; }

Property Value

Saft.MovementOfGoods

xPayments

protected Saft.Payment xPayments { get; set; }

Property Value

Saft.Payment

xWorking

protected Saft.WorkingDocuments xWorking { get; set; }

Property Value

Saft.WorkingDocuments

Methods

ChangeDocStatusToAT(GenericVO)

Change the document status to AT web service

public bool ChangeDocStatusToAT(GenericVO itemVO)

Parameters

Nome Tipo Descrição
itemVO GenericVO

Returns

bool

ComunicaSerieAT(AtcudVO)

public RespostaSeriesAT ComunicaSerieAT(AtcudVO itemAtcud)

Parameters

Nome Tipo Descrição
itemAtcud AtcudVO

Returns

RespostaSeriesAT

DeleteDocToAT(GenericVO)

Change the document status to AT web service

public bool DeleteDocToAT(GenericVO itemVO)

Parameters

Nome Tipo Descrição
itemVO GenericVO

Returns

bool

GetAccountingSaft(GetSaftVO)

public PHCResult GetAccountingSaft(GetSaftVO switche)

Parameters

Nome Tipo Descrição
switche GetSaftVO

Returns

PHCResult

GetClassDocAT(string)

public static string GetClassDocAT(string tipoSaft)

Parameters

Nome Tipo Descrição
tipoSaft string

Returns

string

GetSaft(GetSaftVO)

public PHCResult GetSaft(GetSaftVO switche)

Parameters

Nome Tipo Descrição
switche GetSaftVO

Returns

PHCResult

ImportCustomers(GetSaftVO, IEnumerable<XElement>)

public List<ClVO> ImportCustomers(GetSaftVO switche, IEnumerable<XElement> eMaster)

Parameters

Nome Tipo Descrição
switche GetSaftVO
eMaster IEnumerable<XElement>

Returns

List<ClVO>

ImportProducts(GetSaftVO, IEnumerable<XElement>, STCategory)

public List<StVO> ImportProducts(GetSaftVO switche, IEnumerable<XElement> eMaster, STCategory preconfigCategory)

Parameters

Nome Tipo Descrição
switche GetSaftVO
eMaster IEnumerable<XElement>
preconfigCategory STCategory

Returns

List<StVO>

ImportSuppliers(GetSaftVO, IEnumerable<XElement>)

public List<FlVO> ImportSuppliers(GetSaftVO switche, IEnumerable<XElement> eMaster)

Parameters

Nome Tipo Descrição
switche GetSaftVO
eMaster IEnumerable<XElement>

Returns

List<FlVO>

SendDocToAt(GenericVO, string)

Function to send the doument to AT Webservice

public bool SendDocToAt(GenericVO itemVO, string tipoSaft)

Parameters

Nome Tipo Descrição
itemVO GenericVO
tipoSaft string

Returns

bool

ValidaSerieAT(AtcudVO)

public RespostaSeriesAT ValidaSerieAT(AtcudVO itemAtcud)

Parameters

Nome Tipo Descrição
itemAtcud AtcudVO

Returns

RespostaSeriesAT

appIsValidToBeIncludeInSAFT()

public static List<MessageVO> appIsValidToBeIncludeInSAFT()

Returns

List<MessageVO>

checkConfigBo()

public bool checkConfigBo()

Returns

bool

documentCanBeIncludeInSAFT(BoVO, SourceDocumentsTypes)

public static List<MessageVO> documentCanBeIncludeInSAFT(BoVO item, SourceDocumentsTypes sourceDocumentsType)

Parameters

Nome Tipo Descrição
item BoVO
sourceDocumentsType SourceDocumentsTypes

Returns

List<MessageVO>

documentCanBeIncludeInSAFT(FoVO, SourceDocumentsTypes)

public static List<MessageVO> documentCanBeIncludeInSAFT(FoVO item, SourceDocumentsTypes sourceDocumentsType)

Parameters

Nome Tipo Descrição
item FoVO
sourceDocumentsType SourceDocumentsTypes

Returns

List<MessageVO>

documentCanBeIncludeInSAFT(FtVO, SourceDocumentsTypes)

public static List<MessageVO> documentCanBeIncludeInSAFT(FtVO item, SourceDocumentsTypes sourceDocumentsType)

Parameters

Nome Tipo Descrição
item FtVO
sourceDocumentsType SourceDocumentsTypes

Returns

List<MessageVO>

documentCanBeIncludeInSAFT(RdVO, SourceDocumentsTypes)

public static List<MessageVO> documentCanBeIncludeInSAFT(RdVO item, SourceDocumentsTypes sourceDocumentsType)

Parameters

Nome Tipo Descrição
item RdVO
sourceDocumentsType SourceDocumentsTypes

Returns

List<MessageVO>

documentIsToBeIncludeInSAFT(BoVO, SourceDocumentsTypes)

public static List<MessageVO> documentIsToBeIncludeInSAFT(BoVO item, SourceDocumentsTypes sourceDocumentsType)

Parameters

Nome Tipo Descrição
item BoVO
sourceDocumentsType SourceDocumentsTypes

Returns

List<MessageVO>

documentIsToBeIncludeInSAFT(FtVO, SourceDocumentsTypes)

public static List<MessageVO> documentIsToBeIncludeInSAFT(FtVO item, SourceDocumentsTypes sourceDocumentsType)

Parameters

Nome Tipo Descrição
item FtVO
sourceDocumentsType SourceDocumentsTypes

Returns

List<MessageVO>

documentIsToBeIncludeInSAFT(RdVO, SourceDocumentsTypes)

public static List<MessageVO> documentIsToBeIncludeInSAFT(RdVO item, SourceDocumentsTypes sourceDocumentsType)

Parameters

Nome Tipo Descrição
item RdVO
sourceDocumentsType SourceDocumentsTypes

Returns

List<MessageVO>

getCodPost(string)

public string getCodPost(string value)

Parameters

Nome Tipo Descrição
value string

Returns

string

importSaftDT(string)

public PHCResult importSaftDT(string fileName)

Parameters

Nome Tipo Descrição
fileName string

Returns

PHCResult

invoiceToAtChanged(FtVO)

public static bool invoiceToAtChanged(FtVO itemVO)

Parameters

Nome Tipo Descrição
itemVO FtVO

Returns

bool

transportGuideToAtChanged(BoVO)

public static bool transportGuideToAtChanged(BoVO itemVO)

Parameters

Nome Tipo Descrição
itemVO BoVO

Returns

bool

transportGuideToAtChanged(FtVO)

public static bool transportGuideToAtChanged(FtVO itemVO)

Parameters

Nome Tipo Descrição
itemVO FtVO

Returns

bool

validateSAFT(GetSaftVO)

validateSAFT

public PHCResult validateSAFT(GetSaftVO switche)

Parameters

Nome Tipo Descrição
switche GetSaftVO

Returns

PHCResult

ALL messages