Files
Backend-Api/Company.Domain/InsurancWorkshopInfoAgg/InsurancWorkshopInfo.cs
2024-07-05 21:36:15 +03:30

49 lines
1.6 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using _0_Framework.Domain;
using Company.Domain.WorkshopAgg;
namespace Company.Domain.InsurancWorkshopInfoAgg;
public class InsuranceWorkshopInfo : EntityBase
{
public InsuranceWorkshopInfo(long workshopId, string workshopName, string insuranceCode, string agreementNumber, string employerName, string address , string listNumber)
{
WorkshopId = workshopId;
WorkshopName = workshopName;
InsuranceCode = insuranceCode;
AgreementNumber = agreementNumber;
EmployerName = employerName;
Address = address;
ListNumber = listNumber;
}
//آی دی کارگاه
public long WorkshopId { get; private set; }
//نام کارگاه
public string WorkshopName { get; private set; }
//کد کارگاهی بیمه
public string InsuranceCode { get; private set; }
//ردیف پیمان
public string AgreementNumber { get; private set; }
// نام کارفرما
public string EmployerName { get; private set; }
//آدرس کارگاه
public string Address { get; private set; }
public string ListNumber { get; private set; }
public Workshop Workshop { get; set; }
public void Edit(string workshopName, string insuranceCode, string agreementNumber, string employerName, string address, string listNumber)
{
WorkshopName = workshopName;
InsuranceCode = insuranceCode;
AgreementNumber = agreementNumber;
EmployerName = employerName;
Address = address;
ListNumber = listNumber;
}
}