Class DoBiz
- Namespace
- PHCBusinessLayer
- Assembly
- PHCBusinessLayer.dll
public class DoBiz : BizObjectOfType<DoVO>, IPnp, ISDKBiz, ISDKBaseBiz, ISDKContextAwareness, ITypedWS<DoVO>
- Inheritance
-
DoBiz
Constructors
DoBiz()
DoBiz(ContextVO)
public DoBiz(ContextVO contextItem)
Parameters
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
Returns
- List<MessageVO>
CopyOrphansLinesToDocument(DoVO, List<MlVO>, List<string>)
public List<MessageVO> CopyOrphansLinesToDocument(DoVO itemFo, List<MlVO> orphanslines, List<string> targetFieldsToCopy)
Parameters
Returns
- List<MessageVO>
ExecuteAccountingDiagnosticProcess(bool, ProcessVO<AccountingDiagnosticConfig>)
public PHCResult ExecuteAccountingDiagnosticProcess(bool useAsync, ProcessVO<AccountingDiagnosticConfig> task)
Parameters
Returns
- PHCResult
ExistsDo(IAccountYear, params FilterItem[])
public static bool ExistsDo(IAccountYear itemVo, params FilterItem[] filters)
Parameters
Returns
- bool
ExistsDoMl(IAccountYear, params FilterItem[])
public static bool ExistsDoMl(IAccountYear itemVo, params FilterItem[] filters)
Parameters
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
Returns
- bool
OnActionAvailable(ActionVO, ActionFilterVO, DoVO)
protected override bool OnActionAvailable(ActionVO actionItem, ActionFilterVO filter, DoVO recordItem)
Parameters
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
Returns
- PHCResult
OnGenericActionAvailable(ActionVO, ActionFilterVO, DoVO)
protected override bool OnGenericActionAvailable(ActionVO actionItem, ActionFilterVO filter, DoVO recordItem)
Parameters
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
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
SetAccount(MlVO, string)
public List<MessageVO> SetAccount(MlVO mlVO, string accountId)
Parameters
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
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
Returns
- DoBiz.DocState
SetDocument(DoVO, decimal)
public void SetDocument(DoVO doVO, decimal documentId)
Parameters
SetJournalAndPeriod(DoVO, decimal)
public void SetJournalAndPeriod(DoVO doRow, decimal journalId)
Parameters
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
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
SetThirdPartyFields(DoVO, ThirdPartyEnum, long, int, string)
public void SetThirdPartyFields(DoVO doRow, DoBiz.ThirdPartyEnum type, long no, int estab, string vatNumber)
Parameters
SetThirdPartyFields(DoVO, ThirdPartyEnum, string)
public void SetThirdPartyFields(DoVO doRow, DoBiz.ThirdPartyEnum type, string thirdPartyStamp)
Parameters
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
Returns
- List<MessageVO>
SyncOnDelete(DoVO, List<EntityChangeOperation>)
public override List<MessageVO> SyncOnDelete(DoVO masterVO, List<EntityChangeOperation> changedItems)
Parameters
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>