SourceCode/jiouosdp/Models/ProductCrowdModel.cs

(完整代码) 1KB

using RFrameGenerate.BLL;
using RFrameGenerate.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace jiouosdp.Models
{
    public class ProductCrowdModel
    {
        public T_CR_ProductCrowdPeriods CrowdPeriods { get; set; }

        private T_CR_ProductCrowd _crowd = null;
        public T_CR_ProductCrowd Crowd
        {
            get
            {
                if (_crowd != null) return _crowd;

                _crowd = ProductCrowdManage.GetProductCrowd(this.CrowdPeriods.ProductCrowdGuid);

                if (_crowd == null) _crowd = new T_CR_ProductCrowd();

                return _crowd;
            }
        }

        private string _firstTime = null;
        public string FirstTime
        {
            get
            {
                if (!string.IsNullOrEmpty(_firstTime)) return _firstTime;

                var model = CrowdParticipateManage.GetFirstParticipate(this.CrowdPeriods.ProductCrowdPeriodGuid);

                if (model == null) return "";

                return model.CrowdDate.ToString("yyyy-MM-dd HH:mm:ss");
            }
        }

        public static List<ProductCrowdModel> ForList(List<T_CR_ProductCrowdPeriods> list)
        {
            List<ProductCrowdModel> r_list = new List<ProductCrowdModel>();

            foreach (var item in list)
            {
                r_list.Add(new ProductCrowdModel()
                {
                    CrowdPeriods = item
                });
            }
         
            return r_list;
        }
    }
}

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。