Add project files.
This commit is contained in:
18
Company.Domain/InsuranceAgg/IInsuranceRepository.cs
Normal file
18
Company.Domain/InsuranceAgg/IInsuranceRepository.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using System.Collections.Generic;
|
||||
using _0_Framework.Domain;
|
||||
using CompanyManagment.App.Contracts.Insurance;
|
||||
|
||||
namespace Company.Domain.InsuranceAgg;
|
||||
|
||||
public interface IInsuranceRepository : IRepository<long, Insurance>
|
||||
{
|
||||
//List<InsuranceViewModel> GetInsurance();
|
||||
//EditInsurance GetDetails(long id);
|
||||
//void Remove(long id);
|
||||
//List<JobViewModel> GetJob();
|
||||
|
||||
|
||||
InsuranceViewModel GetDetails(long id);
|
||||
void Remove(long id);
|
||||
IEnumerable<InsuranceViewModel> Search(InsuranceSearchModel searchModel);
|
||||
}
|
||||
44
Company.Domain/InsuranceAgg/Insurane.cs
Normal file
44
Company.Domain/InsuranceAgg/Insurane.cs
Normal file
@@ -0,0 +1,44 @@
|
||||
using _0_Framework.Domain;
|
||||
using Company.Domain.WorkshopAgg;
|
||||
|
||||
namespace Company.Domain.InsuranceAgg;
|
||||
|
||||
public class Insurance : EntityBase
|
||||
{
|
||||
public Insurance(int year, int month, string employerStr, string workShopStr, long workShopId, string address, string listNumber)
|
||||
{
|
||||
Year = year;
|
||||
Month = month;
|
||||
EmployerStr = employerStr;
|
||||
WorkShopStr = workShopStr;
|
||||
WorkShopId = workShopId;
|
||||
Address = address;
|
||||
ListNumber = listNumber;
|
||||
}
|
||||
public int Year { get; private set; }
|
||||
|
||||
public int Month { get; private set; }
|
||||
public string EmployerStr { get; private set; } //نام کارفرما
|
||||
public string WorkShopStr { get; private set; } //نام کارگاه
|
||||
public long WorkShopId { get; private set; } //Id کارگاه
|
||||
public string Address { get; private set; }
|
||||
public string ListNumber { get; private set; }
|
||||
|
||||
public Workshop Workshop { get; private set; }
|
||||
|
||||
public Insurance()
|
||||
{
|
||||
}
|
||||
public void Edit(int year, int month, string employerStr, string workShopStr, long workShopId, string address, string listNumber)
|
||||
{
|
||||
Year = year;
|
||||
Month = month;
|
||||
EmployerStr = employerStr;
|
||||
WorkShopStr = workShopStr;
|
||||
WorkShopId = workShopId;
|
||||
Address = address;
|
||||
ListNumber = listNumber;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user