Beispiel #1
0
        /// <summary> 转换为输出类型 </summary>
        public TaskModel_2C ConvertTo()
        {
            TaskModel_2C model = new TaskModel_2C();

            model.AnalystID     = this.Analyst.ID;
            model.TaskEndTime   = this.EndDate;
            model.TaskStartTime = this.StartDate;
            //model.StartSiteID = this.StartSite?.ID;
            //model.EndSiteID = this.EndSite?.ID;

            //model.ID = int.Parse(this.TaskID);
            model.ProcessType = (int)this.TaskTypeEnum;
            //model.SeriaNumber = this.SeriaNumber;
            //model.Progress = this.Progress;
            model.TaskEndTime = this._endDate;
            model.StartPoleID = this.StartLine?.ID;
            model.EndPoleID   = this.EndLine?.ID;
            return(model);
        }
        /// <summary> 转换为输出类型 </summary>
        public TaskModel_2C ConvertTo()
        {
            TaskModel_2C model = new TaskModel_2C();

            model.AnalystID     = this.Analyst.ID;
            model.TaskEndTime   = this.EndDate;
            model.TaskStartTime = this.StartDate;
            //model.StartSiteID = this.StartSite?.ID;
            //model.EndSiteID = this.EndSite?.ID;

            //model.ID = int.Parse(this.TaskID);
            model.ProcessType = (int)this.TaskTypeEnum;
            //model.SeriaNumber = this.SeriaNumber;
            //model.Progress = this.Progress;
            model.TaskEndTime = this._endDate;
            model.StartPoleID = this.StartLine?.ID;
            model.EndPoleID   = this.EndLine?.ID;
            model.Remark      = this.Lines?.Select(l => l.Name).Aggregate((l, k) => l + "," + k);
            return(model);
        }