示例#1
0
        /// <summary>
        /// 按标准日龄每天饲料用量
        /// </summary>
        /// <param name="days"></param>
        /// <returns></returns>
        public string FeedByDay(int from, int to)
        {
            if (from < this.fromDays)
            {
                from = this.fromDays;
            }
            if (to > this.fromDays + this.addDays - 1)
            {
                to = this.fromDays + this.addDays - 1;
            }

            var         num   = this.realNum;
            List <Feed> feeds = FeedHelper.GetFeeds(from, to, num);

            if (feeds.Count == 0)
            {
                return(string.Empty);
            }

            var s = FeedHelper.GetFeedsDetail(feeds, 1);

            return(s);
        }
示例#2
0
        /// <summary>
        /// 发料详细字符串
        /// </summary>
        /// <param name="flag"></param>
        /// <returns></returns>
        public string GetFeedsDetail(int flag = 0)
        {
            var l = FeedHelper.GetFeeds(feeds);

            return(FeedHelper.GetFeedsDetail(l, flag));
        }