예제 #1
0
 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());
 }
예제 #2
0
 public IBookParty GetPositionParty(IBookIndex element)
 {
     if (__positionNode == true)
     {
         return(element.GetNewPositionParty(element.Code(), element.CodeOrder()));
     }
     return(null);
 }
예제 #3
0
 public IBookParty GetContractParty(IBookIndex element)
 {
     if (__positionNode == false && __contractNode == true)
     {
         return(element.GetNewContractParty(element.Code(), element.CodeOrder()));
     }
     return(null);
 }
예제 #4
0
            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);
            }