Beispiel #1
0
        public ProcessStepTemplateDTO(ProcessStepTemplate entity)
        {
            Id                   = entity.Id;
            Title                = entity.Title;
            DisplayOrder         = entity.DisplayOrder;
            ProcessTemplateId    = entity.ProcessTemplateId;
            RequiredWorkDays     = entity.RequiredWorkDays;
            ReqDaysBeforeDueDate = entity.ReqDaysBeforeDueDate;
            IgnoreInRepeat       = entity.IgnoreInRepeat;
            DependedStepId       = entity.DependedStepId;

            Initiliazing(entity);
        }
Beispiel #2
0
        public virtual ProcessStepTemplate ToProcessStepTemplate()
        {
            var entity = new ProcessStepTemplate();

            entity.Id                   = Id;
            entity.Title                = Title;
            entity.DisplayOrder         = DisplayOrder;
            entity.ProcessTemplateId    = ProcessTemplateId;
            entity.RequiredWorkDays     = RequiredWorkDays;
            entity.ReqDaysBeforeDueDate = ReqDaysBeforeDueDate;
            entity.IgnoreInRepeat       = IgnoreInRepeat;
            entity.DependedStepId       = DependedStepId;

            Converting(entity);

            return(entity);
        }
Beispiel #3
0
        /// <summary>
        /// Clones all properties in a new ProcessStepTemplate instance,
        /// except PrimaryKey(s)
        /// </summary>
        /// <returns>New ProcessStepTemplate instance</returns>
        public ProcessStepTemplate Clone()
        {
            var clone = new ProcessStepTemplate();

            clone.Title                = Title;
            clone.DisplayOrder         = DisplayOrder;
            clone.ProcessTemplateId    = ProcessTemplateId;
            clone.RequiredWorkDays     = RequiredWorkDays;
            clone.ReqDaysBeforeDueDate = ReqDaysBeforeDueDate;
            clone.IgnoreInRepeat       = IgnoreInRepeat;
            clone.DependedStepId       = DependedStepId;
            clone.ModifyNr             = ModifyNr;
            clone.ModifyDate           = ModifyDate;
            clone.ModifierId           = ModifierId;
            clone.ModifierIp           = ModifierIp;
            clone.CreateDate           = CreateDate;
            clone.CreatorId            = CreatorId;
            clone.CreatorIp            = CreatorIp;

            Cloning(clone);

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