erp-platform/api/src/Erp.Platform.Domain/Entities/Tenant/Maintenance/Plan.cs

31 lines
995 B
C#
Raw Normal View History

2025-11-20 14:55:13 +00:00
using System;
using System.Collections.Generic;
using Volo.Abp.Domain.Entities.Auditing;
using Volo.Abp.MultiTenancy;
namespace Erp.Platform.Entities;
2025-12-02 13:03:18 +00:00
public class Plan : FullAuditedEntity<Guid>, IMultiTenant
2025-11-20 14:55:13 +00:00
{
public Guid? TenantId { get; set; }
public string Code { get; set; }
public Guid? WorkcenterId { get; set; }
public Workcenter Workcenter { get; set; }
2025-11-20 14:55:13 +00:00
public string PlanType { get; set; }
public string Priority { get; set; }
public string Description { get; set; }
public int Frequency { get; set; }
public string FrequencyUnit { get; set; }
public int EstimatedDuration { get; set; }
public string Instructions { get; set; }
public DateTime NextDue { get; set; }
public bool IsActive { get; set; }
public DateTime? LastExecuted { get; set; }
// Collections
public string RequiredSkillsJson { get; set; }
2025-12-02 13:03:18 +00:00
public List<PlanMaterial> Materials { get; set; }
public List<PlanEmployee> Employees { get; set; }
2025-11-20 14:55:13 +00:00
}