Files
2024-07-05 21:36:15 +03:30

49 lines
1.8 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using _0_Framework.Application;
using _0_Framework.Domain;
using Company.Domain.GroupPlanAgg;
using Company.Domain.WorkshopPlanEmployeeAgg;
namespace Company.Domain.WorkshopPlanAgg
{
public class WorkshopPlan : EntityBase
{
public WorkshopPlan(string executionDateFa, string includingDateFa, string designer, string designerPhone, long workshopId)
{
ExecutionDateGr = executionDateFa.ToGeorgianDateTime();
ExecutionDateFa = executionDateFa;
IncludingDateGr = includingDateFa.ToGeorgianDateTime();
IncludingDateFa = includingDateFa;
Designer = designer;
DesignerPhone = designerPhone;
WorkshopId = workshopId;
}
public DateTime IncludingDateGr { get; private set; }
public string IncludingDateFa { get; private set; }
public DateTime ExecutionDateGr { get; private set; }
public string ExecutionDateFa { get; private set; }
public string Designer { get; private set; }
public string DesignerPhone { get; private set; }
public long WorkshopId { get; private set; }
public List<GroupPlan> GroupPlans { get; set; }
public List<WorkshopPlanEmployee> WorkshopPlanEmployees { get; set; }
public void Edit(string executionDateFa, string includingDateFa, string designer, string designerPhone)
{
ExecutionDateGr = executionDateFa.ToGeorgianDateTime();
ExecutionDateFa = executionDateFa;
IncludingDateGr = includingDateFa.ToGeorgianDateTime();
IncludingDateFa = includingDateFa;
Designer = designer;
DesignerPhone = designerPhone;
}
}
}