public IBookParty GetNextTargetParty(IBookIndex lastIndex) { if (__positionNode == false && __contractNode == true) { return(lastIndex.GetNewContractParty(lastIndex.Code(), lastIndex.CodeOrder())); } else if (__positionNode == true) { return(lastIndex.GetNewPositionParty(lastIndex.Code(), lastIndex.CodeOrder())); } return(lastIndex.GetParty()); }
public IBookParty GetPositionParty(IBookIndex element) { if (__positionNode == true) { return(element.GetNewPositionParty(element.Code(), element.CodeOrder())); } return(null); }
public IBookParty GetContractParty(IBookIndex element) { if (__positionNode == false && __contractNode == true) { return(element.GetNewContractParty(element.Code(), element.CodeOrder())); } return(null); }
static public IBookTarget BuildTargetFromElement(IBookIndex element, ITargetValues values, IProcessConfig config) { uint articleCode = element.Code(); IPayrollArticle targetArticle = config.FindArticle(articleCode); IPayrollConcept targetConcept = config.FindConcept(targetArticle.ConceptCode()); IBookTarget target = TargetFactory.BuildTargetWithValues(element, targetArticle, targetConcept, values); return(target); }