예제 #1
0
파일: PlanHistory.cs 프로젝트: unicloud/FRP
        /// <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;
        }
예제 #2
0
파일: Plan.cs 프로젝트: unicloud/FRP
        /// <summary>
        ///     设置计划年度
        /// </summary>
        /// <param name="annual">计划年度</param>
        public void SetAnnual(Annual annual)
        {
            if (annual == null || annual.IsTransient())
            {
                throw new ArgumentException("计划年度参数为空!");
            }

            Annual = annual;
            AnnualId = annual.Id;
        }