Add project files.

This commit is contained in:
samsys
2024-07-05 21:36:15 +03:30
parent 7d8d80b770
commit 75bc2360ea
6029 changed files with 1453374 additions and 0 deletions

View 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);
}

View 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;
}
}