Table of Contents

Class BudgetAccountingBiz

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

Constructors

BudgetAccountingBiz()

public BudgetAccountingBiz()

BudgetAccountingBiz(ContextVO)

public BudgetAccountingBiz(ContextVO contextItem)

Parameters

Nome Tipo Descrição
contextItem ContextVO

Properties

entityDataManager

public BudgetAccountingDataManager entityDataManager { get; }

Property Value

BudgetAccountingDataManager

Methods

AddBudgetAccountings(BudgetAccountingVO, List<BudgetAccountingVO>, bool, int, int, string, string, decimal)

public PHCResult AddBudgetAccountings(BudgetAccountingVO item, List<BudgetAccountingVO> budgetaccountings, bool neednewline, int periodbegin, int periodend, string accountidbegin, string accountidend, decimal percentage)

Parameters

Nome Tipo Descrição
item BudgetAccountingVO
budgetaccountings List<BudgetAccountingVO>
neednewline bool
periodbegin int
periodend int
accountidbegin string
accountidend string
percentage decimal

Returns

PHCResult

AddValueBudgetAccounting(BudgetAccountingVO, BudgetAddValueType, decimal, decimal, int, int, string, string)

public PHCResult AddValueBudgetAccounting(BudgetAccountingVO item, BudgetAccountingBiz.BudgetAddValueType budgetaddvaluetype, decimal percentage, decimal value, int periodbegin, int periodend, string accountidbegin, string accountidend)

Parameters

Nome Tipo Descrição
item BudgetAccountingVO
budgetaddvaluetype BudgetAccountingBiz.BudgetAddValueType
percentage decimal
value decimal
periodbegin int
periodend int
accountidbegin string
accountidend string

Returns

PHCResult

AddValueBudgetAccountingLines(List<BudgetAccountingLineVO>, BudgetAddValueType, decimal, decimal, int, int, string, string)

public void AddValueBudgetAccountingLines(List<BudgetAccountingLineVO> lines, BudgetAccountingBiz.BudgetAddValueType budgetaddvaluetype, decimal percentage, decimal value, int periodbegin, int periodend, string accountidbegin, string accountidend)

Parameters

Nome Tipo Descrição
lines List<BudgetAccountingLineVO>
budgetaddvaluetype BudgetAccountingBiz.BudgetAddValueType
percentage decimal
value decimal
periodbegin int
periodend int
accountidbegin string
accountidend string

CopyFromAccountingMovementsOrphansLines(ref BudgetAccountingVO, List<BudgetAccountingLineVO>, List<string>)

public List<MessageVO> CopyFromAccountingMovementsOrphansLines(ref BudgetAccountingVO target, List<BudgetAccountingLineVO> sourceOrphansLines, List<string> targetFieldsToCopy)

Parameters

Nome Tipo Descrição
target BudgetAccountingVO
sourceOrphansLines List<BudgetAccountingLineVO>
targetFieldsToCopy List<string>

Returns

List<MessageVO>

CopyMonthsToLine(BudgetAccountingLineVO, BudgetAccountingLineVO, int, int)

public void CopyMonthsToLine(BudgetAccountingLineVO tochange, BudgetAccountingLineVO from, int periodbegin, int periodend)

Parameters

Nome Tipo Descrição
tochange BudgetAccountingLineVO
from BudgetAccountingLineVO
periodbegin int
periodend int

CopyOrphansLinesToDocument(BudgetAccountingVO, List<BudgetAccountingLineVO>, List<string>)

public List<MessageVO> CopyOrphansLinesToDocument(BudgetAccountingVO itemFo, List<BudgetAccountingLineVO> orphanslines, List<string> targetFieldsToCopy)

Parameters

Nome Tipo Descrição
itemFo BudgetAccountingVO
orphanslines List<BudgetAccountingLineVO>
targetFieldsToCopy List<string>

Returns

List<MessageVO>

CopyPCSAToBudgetAccountings(BudgetAccountingVO, int, int, int, string, string, decimal)

public PHCResult CopyPCSAToBudgetAccountings(BudgetAccountingVO item, int year, int periodbegin, int periodend, string accountidbegin, string accountidend, decimal percentage)

Parameters

Nome Tipo Descrição
item BudgetAccountingVO
year int
periodbegin int
periodend int
accountidbegin string
accountidend string
percentage decimal

Returns

PHCResult

GetAllBudgetAccounting(string)

public List<BudgetAccountingVO> GetAllBudgetAccounting(string searchTerm)

Parameters

Nome Tipo Descrição
searchTerm string

Returns

List<BudgetAccountingVO>

GetDataManager()

public override BizDataManagerOfType<BudgetAccountingVO> GetDataManager()

Returns

BizDataManagerOfType<BudgetAccountingVO>

onAdding(BudgetAccountingVO, bool)

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

Parameters

Nome Tipo Descrição
itemVO BudgetAccountingVO
duplicating bool

Returns

List<MessageVO>

onDuplicating(BudgetAccountingVO)

public override List<MessageVO> onDuplicating(BudgetAccountingVO itemVO)

Parameters

Nome Tipo Descrição
itemVO BudgetAccountingVO

Returns

List<MessageVO>

onSave(BudgetAccountingVO, bool)

public override List<MessageVO> onSave(BudgetAccountingVO budgetaccountingRow, bool runWarningRules)

Parameters

Nome Tipo Descrição
budgetaccountingRow BudgetAccountingVO
runWarningRules bool

Returns

List<MessageVO>

RecalculateCreditorDebit(BudgetAccountingLineVO)

public void RecalculateCreditorDebit(BudgetAccountingLineVO item)

Parameters

Nome Tipo Descrição
item BudgetAccountingLineVO

SyncOnChange(BudgetAccountingVO, List<EntityChangeOperation>)

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

Parameters

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

Returns

List<MessageVO>

SyncOnDelete(BudgetAccountingVO, List<EntityChangeOperation>)

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

Parameters

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

Returns

List<MessageVO>

cleanLines(BudgetAccountingVO)

public PHCResult cleanLines(BudgetAccountingVO item)

Parameters

Nome Tipo Descrição
item BudgetAccountingVO

Returns

PHCResult

copyLinesToBudget(BudgetAccountingVO, List<BudgetAccountingLineVO>, bool, int, int, string, string, decimal)

public void copyLinesToBudget(BudgetAccountingVO item, List<BudgetAccountingLineVO> lines, bool neednewline, int periodbegin, int periodend, string accountidbegin, string accountidend, decimal percentage)

Parameters

Nome Tipo Descrição
item BudgetAccountingVO
lines List<BudgetAccountingLineVO>
neednewline bool
periodbegin int
periodend int
accountidbegin string
accountidend string
percentage decimal

setValueBudgetAccounting(BudgetAccountingLineVO, string, BudgetAddValueType, decimal, decimal)

public void setValueBudgetAccounting(BudgetAccountingLineVO line, string month, BudgetAccountingBiz.BudgetAddValueType budgetaddvaluetype, decimal percentage, decimal value)

Parameters

Nome Tipo Descrição
line BudgetAccountingLineVO
month string
budgetaddvaluetype BudgetAccountingBiz.BudgetAddValueType
percentage decimal
value decimal