示例#1
0
        public ProcessStepDTO(ProcessStep entity)
        {
            Id           = entity.Id;
            Title        = entity.Title;
            IsCompleted  = entity.IsCompleted;
            Description  = entity.Description;
            DisplayOrder = entity.DisplayOrder;
            ProcessId    = entity.ProcessId;
            TemplateId   = entity.TemplateId;
            TargetDate   = entity.TargetDate;
            ForecastDate = entity.ForecastDate;
            RealizedDate = entity.RealizedDate;
            IsApproved   = entity.IsApproved;
            ApproveDate  = entity.ApproveDate;

            Initiliazing(entity);
        }
示例#2
0
        public virtual ProcessStep ToProcessStep()
        {
            var entity = new ProcessStep();

            entity.Id           = Id;
            entity.Title        = Title;
            entity.IsCompleted  = IsCompleted;
            entity.Description  = Description;
            entity.DisplayOrder = DisplayOrder;
            entity.ProcessId    = ProcessId;
            entity.TemplateId   = TemplateId;
            entity.TargetDate   = TargetDate;
            entity.ForecastDate = ForecastDate;
            entity.RealizedDate = RealizedDate;
            entity.IsApproved   = IsApproved;
            entity.ApproveDate  = ApproveDate;

            Converting(entity);

            return(entity);
        }
示例#3
0
 partial void Converting(ProcessStep entity);
示例#4
0
 partial void Initiliazing(ProcessStep entity);
示例#5
0
 // Use below function in a partial class file (eg. ProcessStep.part.cs)
 // to add more complexity to clone
 partial void Cloning(ProcessStep clone);