Table of Contents

Class BizObject

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

Constructors

BizObject()

public BizObject()

BizObject(ContextVO)

public BizObject(ContextVO contextItem)

Parameters

Nome Tipo Descrição
contextItem ContextVO

Fields

_allActionsByCompany

protected static Dictionary<string, Dictionary<Type, List<ActionVO>>> _allActionsByCompany

Field Value

Dictionary<string, Dictionary<Type, List<ActionVO>>>

_saveFlags

protected BizSaveFlags _saveFlags

Field Value

BizSaveFlags

Properties

ActiveBizMethod

public BizObject.BizMethods ActiveBizMethod { get; }

Property Value

BizObject.BizMethods

BizMethodsStack

public List<BizObject.BizMethods> BizMethodsStack { get; set; }

Property Value

List<BizObject.BizMethods>

BusinessRules

public RulesController BusinessRules { get; }

Property Value

RulesController

CodPais

public string CodPais { get; }

Property Value

string

ConnectionString

public string ConnectionString { get; set; }

Property Value

string

DefaultsManager

public FXDFBiz DefaultsManager { get; }

Property Value

FXDFBiz

FavoritesManager

public FavoriteBiz FavoritesManager { get; }

Property Value

FavoriteBiz

SaveFlags

These flags will allow specific biz to change their behavior without having to receive extra save parameters

public BizSaveFlags SaveFlags { get; set; }

Property Value

BizSaveFlags

updateConcurrencyType

public UpdateConcurrencyTypes updateConcurrencyType { get; set; }

Property Value

UpdateConcurrencyTypes

Methods

ClearAllActionsCache()

Clear actions cache of all entities

public static void ClearAllActionsCache()

GetDefaultContext()

public override ContextVO GetDefaultContext()

Returns

ContextVO

PopBizMethod()

public void PopBizMethod()

PushBizMethod(BizMethods)

public void PushBizMethod(BizObject.BizMethods method)

Parameters

Nome Tipo Descrição
method BizObject.BizMethods

RaiseOnAction(Type, ActionVO, ActionFilterVO, BusinessVO)

protected void RaiseOnAction(Type entityType, ActionVO actionItem, ActionFilterVO filter, BusinessVO recordItem)

Parameters

Nome Tipo Descrição
entityType Type
actionItem ActionVO
filter ActionFilterVO
recordItem BusinessVO

RaiseOnAdding(BusinessVO, bool, List<MessageVO>)

protected void RaiseOnAdding(BusinessVO itemVO, bool duplicating, List<MessageVO> lstMsg)

Parameters

Nome Tipo Descrição
itemVO BusinessVO
duplicating bool
lstMsg List<MessageVO>

RaiseOnAfterSave(BusinessVO, List<BusinessVO>)

protected void RaiseOnAfterSave(BusinessVO itemVO, List<BusinessVO> triggersVOs)

Parameters

Nome Tipo Descrição
itemVO BusinessVO
triggersVOs List<BusinessVO>

RaiseOnDelete(BusinessVO, bool, List<MessageVO>)

protected void RaiseOnDelete(BusinessVO itemVO, bool runWarningRules, List<MessageVO> lstMsg)

Parameters

Nome Tipo Descrição
itemVO BusinessVO
runWarningRules bool
lstMsg List<MessageVO>

RaiseOnDuplicating(BusinessVO, List<MessageVO>)

protected void RaiseOnDuplicating(BusinessVO itemVO, List<MessageVO> lstMsg)

Parameters

Nome Tipo Descrição
itemVO BusinessVO
lstMsg List<MessageVO>

RaiseOnEditing(BusinessVO, bool, List<MessageVO>)

protected void RaiseOnEditing(BusinessVO itemVO, bool runWarningRules, List<MessageVO> lstMsg)

Parameters

Nome Tipo Descrição
itemVO BusinessVO
runWarningRules bool
lstMsg List<MessageVO>

RaiseOnFromReference(BusinessVO, object, InstanceFromReference, List<MessageVO>)

protected void RaiseOnFromReference(BusinessVO itemVO, object oriItemVO, InstanceFromReference valuesItem, List<MessageVO> lstMsg)

Parameters

Nome Tipo Descrição
itemVO BusinessVO
oriItemVO object
valuesItem InstanceFromReference
lstMsg List<MessageVO>

RaiseOnRequery(BusinessVO)

protected void RaiseOnRequery(BusinessVO itemVO)

Parameters

Nome Tipo Descrição
itemVO BusinessVO

RaiseOnSave(BusinessVO, bool, List<MessageVO>)

protected void RaiseOnSave(BusinessVO itemVO, bool runWarningRules, List<MessageVO> lstMsg)

Parameters

Nome Tipo Descrição
itemVO BusinessVO
runWarningRules bool
lstMsg List<MessageVO>

RestoreConnectionString()

public string RestoreConnectionString()

Returns

string

Events

OnActionEvent

public static event BizObject.OnActionEventEventHandler OnActionEvent

Event Type

BizObject.OnActionEventEventHandler

OnAddingEvent

public static event BizObject.OnAddingEventEventHandler OnAddingEvent

Event Type

BizObject.OnAddingEventEventHandler

OnAfterSaveEvent

public static event BizObject.OnAfterSaveEventEventHandler OnAfterSaveEvent

Event Type

BizObject.OnAfterSaveEventEventHandler

OnDeleteEvent

public static event BizObject.OnDeleteEventEventHandler OnDeleteEvent

Event Type

BizObject.OnDeleteEventEventHandler

OnDuplicatingEvent

public static event BizObject.OnDuplicatingEventEventHandler OnDuplicatingEvent

Event Type

BizObject.OnDuplicatingEventEventHandler

OnEditingEvent

public static event BizObject.OnEditingEventEventHandler OnEditingEvent

Event Type

BizObject.OnEditingEventEventHandler

OnFromReferenceEvent

public static event BizObject.OnFromReferenceEventEventHandler OnFromReferenceEvent

Event Type

BizObject.OnFromReferenceEventEventHandler

OnRequeryEvent

public static event BizObject.OnRequeryEventEventHandler OnRequeryEvent

Event Type

BizObject.OnRequeryEventEventHandler

OnSaveEvent

public static event BizObject.OnSaveEventEventHandler OnSaveEvent

Event Type

BizObject.OnSaveEventEventHandler

Explicit Interface Implementations

GetPHCCmdSql(string)

Returns an sql command that respect user and application filters. do not SwitchOn() on tsql.Context, because the Me.Context may be modified, that is to say be different from the lazyloading initialization, and we must respect the parameterization contained in that modification.

PHCCmdSql GetPHCCmdSql(string tablename)

Parameters

Nome Tipo Descrição
tablename string

Returns

PHCCmdSql

GetRawPHCCmdSql(string)

Returns an sql command that does not respect user or application filters,

PHCCmdSql GetRawPHCCmdSql(string tablename)

Parameters

Nome Tipo Descrição
tablename string

Returns

PHCCmdSql