Table of Contents

Class MapYBiz

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

Constructors

MapYBiz()

public MapYBiz()

MapYBiz(ContextVO)

public MapYBiz(ContextVO contextItem)

Parameters

Nome Tipo Descrição
contextItem ContextVO

Properties

entityDataManager

public MapYDataManager entityDataManager { get; }

Property Value

MapYDataManager

Methods

CountNewAccountsToMap(string, int)

Counts movement accounts that didn't exist in the previous year.

public int CountNewAccountsToMap(string searchTerm, int year)

Parameters

Nome Tipo Descrição
searchTerm string
year int

Returns

int

GenerateMapping(int, bool, bool)

Creates rows in GT and GTD for each account/journal that needs mapping.

public PHCResult GenerateMapping(int year, bool hasImportedYear, bool clean = false)

Parameters

Nome Tipo Descrição
year int
hasImportedYear bool
clean bool

Returns

PHCResult

GetDataManager()

public override BizDataManagerOfType<MapYVO> GetDataManager()

Returns

BizDataManagerOfType<MapYVO>

GetJournalMappingQuery(int)

public string GetJournalMappingQuery(int year)

Parameters

Nome Tipo Descrição
year int

Returns

string

GetMappingQuery(int, bool, int)

public string GetMappingQuery(int year, bool compareBalance = false, int importedYear = 0)

Parameters

Nome Tipo Descrição
year int
compareBalance bool
importedYear int

Returns

string

GetNewAccountsToMap(int, int, string, string, OrderTypes, int)

Returns movement accounts that didn't exist in the previous year.

public List<PcVO> GetNewAccountsToMap(int start, int size, string searchTerm, string sortColumn, OrderTypes sortDirection, int year)

Parameters

Nome Tipo Descrição
start int
size int
searchTerm string
sortColumn string
sortDirection OrderTypes
year int

Returns

List<PcVO>

IsMappingDone(int, MappingSource)

Returns false if at least one account or journal needs mapping.

public bool IsMappingDone(int year, MapYBiz.MappingSource source)

Parameters

Nome Tipo Descrição
year int
source MapYBiz.MappingSource

Returns

bool

OnActionAvailable(ActionVO, ActionFilterVO, MapYVO)

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

Parameters

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

Returns

bool

onDelete(MapYVO, bool)

public override List<MessageVO> onDelete(MapYVO itemVO, bool runWarningRules)

Parameters

Nome Tipo Descrição
itemVO MapYVO
runWarningRules bool

Returns

List<MessageVO>

OnExecuteAction(ActionVO, ActionFilterVO, MapYVO)

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

Parameters

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

Returns

PHCResult

OnGetActions()

protected override List<ActionVO> OnGetActions()

Returns

List<ActionVO>

SyncOnChange(MapYVO, List<EntityChangeOperation>)

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

Parameters

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

Returns

List<MessageVO>