Ejemplo n.º 1
0
        public bool Clone(out IBACalendar pVal)
        {
            BAFASCalendar  obj      = new BAFASCalendar();
            IBACycleObject cycleObj = new BAFASCycleObject();
            IBAPersistXML  persist  = new XMLPersistance();
            long           cycleCount;
            int            posi;

            pVal = new BAFASCalendar();
            if (pVal == null)
            {
                return(false);
            }

            cycleCount = m_FYList.Count;

            for (posi = 0; posi < cycleCount; posi++)
            {
                cycleObj = m_FYList[posi];

                IBACalendarManager pDesCalMan = (IBACalendarManager)pVal;
                pDesCalMan.AddCycleEntry(cycleObj.EffectiveDate, cycleObj.CycleType, cycleObj.FYEndMonth, cycleObj.DateOfWeek, cycleObj.YearEndElect, cycleObj.PDCounting);
            }
            return(true);
        }
Ejemplo n.º 2
0
 public BAFASCalendar()
 {
     m_persist     = new XMLPersistance();
     m_FYList      = new List <IBACycleObject>();
     m_yearBuckets = new List <BAFiscalYearHolder>(BUCKETCOUNT);
     for (int i = 0; i < BUCKETCOUNT; i++)
     {
         m_yearBuckets.Add(new BAFiscalYearHolder());
     }
 }