Пример #1
0
 public void InsertAnnual(AnnualDTO dto)
 {
     var newAnnual = new Annual();
     _annualRepository.Add(newAnnual);
 }
Пример #2
0
        /// <summary>
        ///     设置计划年度
        /// </summary>
        /// <param name="annual">计划年度</param>
        public void SetAnnual(Annual annual)
        {
            if (annual == null || annual.IsTransient())
            {
                throw new ArgumentException("计划年度参数为空!");
            }

            Annual = annual;
            AnnualId = annual.Id;
        }
Пример #3
0
        /// <summary>
        /// 设置执行时间
        /// </summary>
        /// <param name="annual"></param>
        /// <param name="performMonth"></param>
        public void SetPerformDate(Annual annual, int performMonth)
        {
            if (annual == null || annual.IsTransient())
            {
                throw new ArgumentException("执行年度参数为空!");
            }

            PerformAnnualId = annual.Id;
            PerformAnnual = annual;
            PerformMonth = performMonth;
        }