Table of Contents

Class DoBiz

Namespace
PHCBusinessLayer
Assembly
PHCBusinessLayer.dll
public class DoBiz : BizObjectOfType<DoVO>, IPnp, ISDKBiz, ISDKBaseBiz, ISDKContextAwareness, ITypedWS<DoVO>
Inheritance
DoBiz

Constructors

DoBiz()

public DoBiz()

DoBiz(ContextVO)

public DoBiz(ContextVO contextItem)

Parameters

Nome Tipo Descrição
contextItem ContextVO

Properties

entityDataManager

public DoDataManager entityDataManager { get; }

Property Value

DoDataManager

Methods

AfterSave(DoVO)

public override List<MessageVO> AfterSave(DoVO itemVO)

Parameters

Nome Tipo Descrição
itemVO DoVO

Returns

List<MessageVO>

BalanceLinesTotals(DoVO)

public void BalanceLinesTotals(DoVO doVO)

Parameters

Nome Tipo Descrição
doVO DoVO

CalculateDoTotals(DoVO)

public void CalculateDoTotals(DoVO doVO)

Parameters

Nome Tipo Descrição
doVO DoVO

CopyFromAccountingMovementsOrphansLines(ref DoVO, List<MlVO>, List<string>)

public List<MessageVO> CopyFromAccountingMovementsOrphansLines(ref DoVO target, List<MlVO> sourceOrphansLines, List<string> targetFieldsToCopy)

Parameters

Nome Tipo Descrição
target DoVO
sourceOrphansLines List<MlVO>
targetFieldsToCopy List<string>

Returns

List<MessageVO>

CopyOrphansLinesToDocument(DoVO, List<MlVO>, List<string>)

public List<MessageVO> CopyOrphansLinesToDocument(DoVO itemFo, List<MlVO> orphanslines, List<string> targetFieldsToCopy)

Parameters

Nome Tipo Descrição
itemFo DoVO
orphanslines List<MlVO>
targetFieldsToCopy List<string>

Returns

List<MessageVO>

ExecuteAccountingDiagnosticProcess(bool, ProcessVO<AccountingDiagnosticConfig>)

public PHCResult ExecuteAccountingDiagnosticProcess(bool useAsync, ProcessVO<AccountingDiagnosticConfig> task)

Parameters

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

Returns

PHCResult

ExistsDo(IAccountYear, params FilterItem[])

public static bool ExistsDo(IAccountYear itemVo, params FilterItem[] filters)

Parameters

Nome Tipo Descrição
itemVo IAccountYear
filters FilterItem[]

Returns

bool

ExistsDoMl(IAccountYear, params FilterItem[])

public static bool ExistsDoMl(IAccountYear itemVo, params FilterItem[] filters)

Parameters

Nome Tipo Descrição
itemVo IAccountYear
filters FilterItem[]

Returns

bool

FeatureAvailable(DoVO)

public override List<MessageVO> FeatureAvailable(DoVO itemVO)

Parameters

Nome Tipo Descrição
itemVO DoVO

Returns

List<MessageVO>

FinishDocument(DoVO, bool)

public PHCResult FinishDocument(DoVO doRow, bool runWarningRules)

Parameters

Nome Tipo Descrição
doRow DoVO
runWarningRules bool

Returns

PHCResult

GenerateDoHash(DoVO, bool)

public static string GenerateDoHash(DoVO doRow, bool withLines = false)

Parameters

Nome Tipo Descrição
doRow DoVO
withLines bool

Returns

string

GetDataManager()

public override BizDataManagerOfType<DoVO> GetDataManager()

Returns

BizDataManagerOfType<DoVO>

GetParentOrigin(string)

public static PHCResult GetParentOrigin(string doStamp)

Parameters

Nome Tipo Descrição
doStamp string

Returns

PHCResult

GetSHA1Hash(string)

public static string GetSHA1Hash(string strToHash)

Parameters

Nome Tipo Descrição
strToHash string

Returns

string

GetSqlCommand()

public static PHCCmdSql GetSqlCommand()

Returns

PHCCmdSql

HasPrimaryKeyError(List<MessageVO>)

public bool HasPrimaryKeyError(List<MessageVO> messages)

Parameters

Nome Tipo Descrição
messages List<MessageVO>

Returns

bool

OnActionAvailable(ActionVO, ActionFilterVO, DoVO)

protected override bool OnActionAvailable(ActionVO actionItem, ActionFilterVO filter, DoVO recordItem)

Parameters

Nome Tipo Descrição
actionItem ActionVO
filter ActionFilterVO
recordItem DoVO

Returns

bool

onAdding(DoVO, bool)

public override List<MessageVO> onAdding(DoVO itemVO, bool duplicating)

Parameters

Nome Tipo Descrição
itemVO DoVO
duplicating bool

Returns

List<MessageVO>

onDelete(DoVO, bool)

public override List<MessageVO> onDelete(DoVO doRow, bool runWarningRules)

Parameters

Nome Tipo Descrição
doRow DoVO
runWarningRules bool

Returns

List<MessageVO>

onDuplicating(DoVO)

public override List<MessageVO> onDuplicating(DoVO itemVO)

Parameters

Nome Tipo Descrição
itemVO DoVO

Returns

List<MessageVO>

onEditing(DoVO, bool)

public override List<MessageVO> onEditing(DoVO itemVO, bool runWarningRules)

Parameters

Nome Tipo Descrição
itemVO DoVO
runWarningRules bool

Returns

List<MessageVO>

OnExecuteAction(ActionVO, ActionFilterVO, DoVO)

protected override PHCResult OnExecuteAction(ActionVO actionItem, ActionFilterVO filter, DoVO recordItem)

Parameters

Nome Tipo Descrição
actionItem ActionVO
filter ActionFilterVO
recordItem DoVO

Returns

PHCResult

OnGenericActionAvailable(ActionVO, ActionFilterVO, DoVO)

protected override bool OnGenericActionAvailable(ActionVO actionItem, ActionFilterVO filter, DoVO recordItem)

Parameters

Nome Tipo Descrição
actionItem ActionVO
filter ActionFilterVO
recordItem DoVO

Returns

bool

OnGetActions()

protected override List<ActionVO> OnGetActions()

Returns

List<ActionVO>

onSave(DoVO, bool)

public override List<MessageVO> onSave(DoVO itemVO, bool runWarningRules)

Parameters

Nome Tipo Descrição
itemVO DoVO
runWarningRules bool

Returns

List<MessageVO>

PreviewAccountingDiagnosticProcess(ProcessVO<AccountingDiagnosticConfig>)

public PHCResult PreviewAccountingDiagnosticProcess(ProcessVO<AccountingDiagnosticConfig> task)

Parameters

Nome Tipo Descrição
task ProcessVO<AccountingDiagnosticConfig>

Returns

PHCResult

RevokeDocument(DoVO)

public PHCResult RevokeDocument(DoVO doRow)

Parameters

Nome Tipo Descrição
doRow DoVO

Returns

PHCResult

RunValidations(DoVO, bool, List<MessageVO>)

public void RunValidations(DoVO doRow, bool runWarningRules, List<MessageVO> listMsg)

Parameters

Nome Tipo Descrição
doRow DoVO
runWarningRules bool
listMsg List<MessageVO>

SetAccount(MlVO, string)

public List<MessageVO> SetAccount(MlVO mlVO, string accountId)

Parameters

Nome Tipo Descrição
mlVO MlVO
accountId string

Returns

List<MessageVO>

SetAccount(MlVO, ref string, ref string, bool)

public List<MessageVO> SetAccount(MlVO mlVO, ref string accountId, ref string description, bool HasVatLines = true)

Parameters

Nome Tipo Descrição
mlVO MlVO
accountId string
description string
HasVatLines bool

Returns

List<MessageVO>

SetDefaults(DoVO, bool)

public void SetDefaults(DoVO doRow, bool duplicating = false)

Parameters

Nome Tipo Descrição
doRow DoVO
duplicating bool

SetDocState(DocState)

public DoBiz.DocState SetDocState(DoBiz.DocState state = DocState.None)

Parameters

Nome Tipo Descrição
state DoBiz.DocState

Returns

DoBiz.DocState

SetDocument(DoVO, decimal)

public void SetDocument(DoVO doVO, decimal documentId)

Parameters

Nome Tipo Descrição
doVO DoVO
documentId decimal

SetJournalAndPeriod(DoVO, decimal)

public void SetJournalAndPeriod(DoVO doRow, decimal journalId)

Parameters

Nome Tipo Descrição
doRow DoVO
journalId decimal

SetLastJournalAndDocument(DoVO)

public void SetLastJournalAndDocument(DoVO doVO)

Parameters

Nome Tipo Descrição
doVO DoVO

SetOriginFields(DoVO, string, string)

public void SetOriginFields(DoVO doRow, string entityName, string entityStamp)

Parameters

Nome Tipo Descrição
doRow DoVO
entityName string
entityStamp string

SetOriginUnaccountedOnDelete(DoVO)

public void SetOriginUnaccountedOnDelete(DoVO doRow)

Parameters

Nome Tipo Descrição
doRow DoVO

SetPeriodAndDocNumber(DoVO)

public void SetPeriodAndDocNumber(DoVO doVO)

Parameters

Nome Tipo Descrição
doVO DoVO

SetReverseCharge(ref MlVO, ref PvVO)

public static void SetReverseCharge(ref MlVO mlRow, ref PvVO pvRow)

Parameters

Nome Tipo Descrição
mlRow MlVO
pvRow PvVO

SetThirdPartyFields(DoVO, ThirdPartyEnum, long, int)

public void SetThirdPartyFields(DoVO doRow, DoBiz.ThirdPartyEnum type, long no, int estab)

Parameters

Nome Tipo Descrição
doRow DoVO
type DoBiz.ThirdPartyEnum
no long
estab int

SetThirdPartyFields(DoVO, ThirdPartyEnum, long, int, string)

public void SetThirdPartyFields(DoVO doRow, DoBiz.ThirdPartyEnum type, long no, int estab, string vatNumber)

Parameters

Nome Tipo Descrição
doRow DoVO
type DoBiz.ThirdPartyEnum
no long
estab int
vatNumber string

SetThirdPartyFields(DoVO, ThirdPartyEnum, string)

public void SetThirdPartyFields(DoVO doRow, DoBiz.ThirdPartyEnum type, string thirdPartyStamp)

Parameters

Nome Tipo Descrição
doRow DoVO
type DoBiz.ThirdPartyEnum
thirdPartyStamp string

SetVatPlan(MlVO, PvVO)

public static bool SetVatPlan(MlVO mlRow, PvVO pvRow)

Parameters

Nome Tipo Descrição
mlRow MlVO
pvRow PvVO

Returns

bool

SyncAfter(DoVO)

public override List<MessageVO> SyncAfter(DoVO masterVO)

Parameters

Nome Tipo Descrição
masterVO DoVO

Returns

List<MessageVO>

SyncOnChange(DoVO, List<EntityChangeOperation>)

public override List<MessageVO> SyncOnChange(DoVO masterVO, List<EntityChangeOperation> changedItems)

Parameters

Nome Tipo Descrição
masterVO DoVO
changedItems List<EntityChangeOperation>

Returns

List<MessageVO>

SyncOnDelete(DoVO, List<EntityChangeOperation>)

public override List<MessageVO> SyncOnDelete(DoVO masterVO, List<EntityChangeOperation> changedItems)

Parameters

Nome Tipo Descrição
masterVO DoVO
changedItems List<EntityChangeOperation>

Returns

List<MessageVO>

ValidateMandatoryDimensions(DoVO)

public List<MessageVO> ValidateMandatoryDimensions(DoVO doRow)

Parameters

Nome Tipo Descrição
doRow DoVO

Returns

List<MessageVO>

GetTriggers(DoVO)

public override void GetTriggers(DoVO itemVO)

Parameters

Nome Tipo Descrição
itemVO DoVO

OnAfterTriggers(DoVO)

public override List<MessageVO> OnAfterTriggers(DoVO itemVO)

Parameters

Nome Tipo Descrição
itemVO DoVO

Returns

List<MessageVO>

OnBeforeTriggers(DoVO)

public override List<MessageVO> OnBeforeTriggers(DoVO itemVO)

Parameters

Nome Tipo Descrição
itemVO DoVO

Returns

List<MessageVO>