diff --git a/Company.Domain/ClassificationSchemeAgg/ClassificationEmployee.cs b/Company.Domain/ClassificationSchemeAgg/ClassificationEmployee.cs new file mode 100644 index 00000000..4830eb2b --- /dev/null +++ b/Company.Domain/ClassificationSchemeAgg/ClassificationEmployee.cs @@ -0,0 +1,88 @@ +using _0_Framework.Domain; +using System; + +namespace Company.Domain.ClassificationSchemeAgg; + +public class ClassificationEmployee : EntityBase +{ + + /// + /// ایجاد پرسنل طرح + /// + /// + /// + /// + /// + /// + /// + /// + public ClassificationEmployee(long workshopId, long employeeId, long classificationSchemeId, long classificationGroupId, long classificationGroupJobId, DateTime? startGroupDate, DateTime? endGroupDate) + { + WorkshopId = workshopId; + EmployeeId = employeeId; + ClassificationSchemeId = classificationSchemeId; + ClassificationGroupId = classificationGroupId; + ClassificationGroupJobId = classificationGroupJobId; + StartGroupDate = startGroupDate; + EndGroupDate = endGroupDate; + } + + /// + /// آی دی کارگاه + /// + public long WorkshopId { get; private set; } + + /// + /// آی دی پرسنل + /// + public long EmployeeId { get; private set; } + + /// + /// آی دی طرح + /// + public long ClassificationSchemeId { get; private set; } + + /// + /// آی دی گروه + /// + public long ClassificationGroupId { get; private set; } + + /// + /// آی دی شغل + /// + public long ClassificationGroupJobId { get; private set; } + + + /// + /// تاریخ شروع استفاده از گروه + /// + public DateTime? StartGroupDate{ get; private set; } + + /// + /// تاریخ پایان استفاده از گروه + /// + public DateTime? EndGroupDate { get; private set; } + + + /// + /// ویرایش پرسنل طرح + /// + /// + /// + /// + /// + /// + /// + /// + public void Edit(long workshopId, long employeeId, long classificationSchemeId, long classificationGroupId, long classificationGroupJobId, DateTime? startGroupDate, DateTime? endGroupDate) + { + WorkshopId = workshopId; + EmployeeId = employeeId; + ClassificationSchemeId = classificationSchemeId; + ClassificationGroupId = classificationGroupId; + ClassificationGroupJobId = classificationGroupJobId; + StartGroupDate = startGroupDate; + EndGroupDate = endGroupDate; + } + +} \ No newline at end of file diff --git a/Company.Domain/ClassificationSchemeAgg/ClassificationGroup.cs b/Company.Domain/ClassificationSchemeAgg/ClassificationGroup.cs new file mode 100644 index 00000000..8177c908 --- /dev/null +++ b/Company.Domain/ClassificationSchemeAgg/ClassificationGroup.cs @@ -0,0 +1,34 @@ +using _0_Framework.Domain; + +namespace Company.Domain.ClassificationSchemeAgg; + + +public class ClassificationGroup : EntityBase +{ + /// + /// ایجاد گروه های بیست گانه طرح طبقه بندی + /// + /// + /// + /// + public ClassificationGroup(string groupNo, long workshopId, long classificationSchemeId) + { + GroupNo = groupNo; + WorkshopId = workshopId; + ClassificationSchemeId = classificationSchemeId; + } + + /// + /// شماره گروه + /// + public string GroupNo { get; private set; } + + /// + /// آی دی کارگاه + /// + public long WorkshopId { get; private set; } + /// + /// آی دی طرح + /// + public long ClassificationSchemeId { get; private set; } +} \ No newline at end of file diff --git a/Company.Domain/ClassificationSchemeAgg/ClassificationGroupJob.cs b/Company.Domain/ClassificationSchemeAgg/ClassificationGroupJob.cs new file mode 100644 index 00000000..759cca01 --- /dev/null +++ b/Company.Domain/ClassificationSchemeAgg/ClassificationGroupJob.cs @@ -0,0 +1,44 @@ +using _0_Framework.Domain; +using _0_Framework_b.Domain; + +namespace Company.Domain.ClassificationSchemeAgg; + +public class ClassificationGroupJob : EntityBaseWithoutCreationDate +{ + /// + /// ایجاد لیست مشغال برای گروه های طرح طبقه بندی + /// + /// + /// + /// + /// + public ClassificationGroupJob(long jobId, string jobName, long classificationGroupId, string groupNo) + { + JobId = jobId; + JobName = jobName; + ClassificationGroupId = classificationGroupId; + GroupNo = groupNo; + } + + /// + /// آی دی شغل + /// + public long JobId { get; private set; } + + /// + /// نام شغل + /// + public string JobName { get; private set; } + + /// + /// آی دی گروه + /// + public long ClassificationGroupId { get; private set; } + + /// + /// شماره گروه + /// + public string GroupNo { get; private set; } + + +} \ No newline at end of file diff --git a/Company.Domain/ClassificationSchemeAgg/ClassificationGroupSalary.cs b/Company.Domain/ClassificationSchemeAgg/ClassificationGroupSalary.cs new file mode 100644 index 00000000..1666b306 --- /dev/null +++ b/Company.Domain/ClassificationSchemeAgg/ClassificationGroupSalary.cs @@ -0,0 +1,77 @@ +using _0_Framework.Domain; +using System; + +namespace Company.Domain.ClassificationSchemeAgg; + +public class ClassificationGroupSalary : EntityBase +{ + + /// + /// ایجاد دستمزد برای گروه + /// + /// + /// + /// + /// + /// + /// + public ClassificationGroupSalary(long classificationGroupId, string groupNo, double groupSalary, DateTime startDate, DateTime endDate, int year) + { + ClassificationGroupId = classificationGroupId; + GroupNo = groupNo; + GroupSalary = groupSalary; + StartDate = startDate; + EndDate = endDate; + Year = year; + } + + /// + /// آی دی گروه + /// + public long ClassificationGroupId { get; private set; } + + /// + /// شماره گروه + /// + public string GroupNo { get; private set; } + + /// + /// دستمزد گروه + /// + public double GroupSalary { get; private set; } + + + /// + /// تاریخ شروع + /// + public DateTime StartDate { get; private set; } + + /// + /// تاریخ پایان + /// + public DateTime EndDate { get; private set; } + + /// + /// سال + /// + public int Year { get; private set; } + + /// + /// ویرایش دستمزد گروه + /// + /// + /// + /// + /// + /// + /// + public void Edit(long classificationGroupId, string groupNo, double groupSalary, DateTime startDate, DateTime endDate, int year) + { + ClassificationGroupId = classificationGroupId; + GroupNo = groupNo; + GroupSalary = groupSalary; + StartDate = startDate; + EndDate = endDate; + Year = year; + } +} \ No newline at end of file diff --git a/Company.Domain/ClassificationSchemeAgg/ClassificationRialCoefficient.cs b/Company.Domain/ClassificationSchemeAgg/ClassificationRialCoefficient.cs new file mode 100644 index 00000000..610569c9 --- /dev/null +++ b/Company.Domain/ClassificationSchemeAgg/ClassificationRialCoefficient.cs @@ -0,0 +1,65 @@ +using System; +using _0_Framework.Domain; + +namespace Company.Domain.ClassificationSchemeAgg; + +public class ClassificationRialCoefficient : EntityBaseWithoutCreationDate +{ + /// + /// ایچاد ضریب ریالی + /// + /// + /// + /// + /// + /// + public ClassificationRialCoefficient(long classificationSchemeId, double rialCoefficient, DateTime startDate, DateTime endDate, int year) + { + ClassificationSchemeId = classificationSchemeId; + RialCoefficient = rialCoefficient; + StartDate = startDate; + EndDate = endDate; + Year = year; + } + + //آی دی طرح + public long ClassificationSchemeId { get; private set; } + + /// + /// ضریب ریالی + /// + public double RialCoefficient { get; private set; } + + /// + /// تاریخ شروع + /// + public DateTime StartDate { get; private set; } + + /// + /// تاریخ پایان + /// + public DateTime EndDate { get; private set; } + + /// + /// سال + /// + public int Year { get; private set; } + + /// + /// ویرایش ضریب ریالی + /// + /// + /// + /// + /// + /// + public void Edit(long classificationSchemeId, double rialCoefficient, DateTime startDate, DateTime endDate, int year) + { + ClassificationSchemeId = classificationSchemeId; + RialCoefficient = rialCoefficient; + StartDate = startDate; + EndDate = endDate; + Year = year; + } + +} \ No newline at end of file diff --git a/Company.Domain/ClassificationSchemeAgg/ClassificationScheme.cs b/Company.Domain/ClassificationSchemeAgg/ClassificationScheme.cs new file mode 100644 index 00000000..c129597e --- /dev/null +++ b/Company.Domain/ClassificationSchemeAgg/ClassificationScheme.cs @@ -0,0 +1,79 @@ +using System; +using _0_Framework.Domain; + +namespace Company.Domain.ClassificationSchemeAgg; + +public class ClassificationScheme : EntityBase +{ + /// + ///ایجاد طرح طبقه بندی مشاغل + /// + /// + /// + /// + /// + /// + public ClassificationScheme(DateTime includingDateGr, DateTime executionDateGr, string designerFullName, string designerPhone, long workshopId, string typeOfCoefficient) + { + IncludingDateGr = includingDateGr; + ExecutionDateGr = executionDateGr; + DesignerFullName = designerFullName; + DesignerPhone = designerPhone; + WorkshopId = workshopId; + TypeOfCoefficient = typeOfCoefficient; + } + + /// + /// تاریخ شمول طرح + /// + public DateTime IncludingDateGr { get; private set; } + + /// + /// تاریخ اجرای طرح + /// + public DateTime ExecutionDateGr { get; private set; } + + /// + /// تاریخ پایان طرح + /// + public DateTime? EndSchemeDateGr { get; private set; } + + + /// + /// نام کامل طراح + /// + public string DesignerFullName { get; private set; } + + /// + /// شماره همراه طراح + /// + public string DesignerPhone { get; private set; } + + /// + /// آی دی کارگاه + /// + public long WorkshopId { get; private set; } + + + /// + /// نوع ضریب + /// + public string TypeOfCoefficient { get; private set; } + + /// + /// ویرایش طرح + /// + /// + /// + /// + /// + /// + public void Edit(DateTime includingDateGr, DateTime executionDateGr,string designerFullName, string designerPhone, long workshopId) + { + IncludingDateGr = includingDateGr; + ExecutionDateGr = executionDateGr; + DesignerFullName = designerFullName; + DesignerPhone = designerPhone; + WorkshopId = workshopId; + } +} \ No newline at end of file