71 lines
2.6 KiB
C#
71 lines
2.6 KiB
C#
using System.Collections.Generic;
|
|
using System.Threading.Tasks;
|
|
using _0_Framework.Application;
|
|
using _0_Framework.Domain;
|
|
using CompanyManagment.App.Contracts.Checkout;
|
|
using CompanyManagment.App.Contracts.Employer;
|
|
|
|
namespace Company.Domain.empolyerAgg;
|
|
|
|
public interface IEmployerRepository : IRepository<long, Employer>
|
|
{
|
|
List<EmployerViewModel> GetEmployers();
|
|
List<EmployerViewModel> GetEmployers(List<long> id);
|
|
EditEmployer GetDetails(long id);
|
|
|
|
List<EmprViewModel> GetEmployerByWorkshopId(long workshopId);
|
|
List<EmployerViewModel> GetEmployerByContracrtingPartyID(long contractingPartyId);
|
|
List<EmployerViewModel> Search(EmployerSearchModel searchModel);
|
|
List<EmprViewModel> GetEmployerByEmployerIds(List<long> employerIds);
|
|
////client
|
|
bool Remove(long id);
|
|
bool CreateForClient(Employer command);
|
|
List<EmployerViewModel> SearchForClient(EmployerSearchModel searchModel);
|
|
List<EmployerViewModel> GetEmployersForClient(long acountID);
|
|
bool CreateLegalsForClient(Employer legalEmployerData);
|
|
bool ExistsEmployerAccount(string commandNationalcode);
|
|
bool ExistsEmployerAccountNationalId(string commandNationalId);
|
|
bool ExistsEmployerAccountById(string nationalcode, long commandId);
|
|
bool ExistsEmployerAccountNationalIdEmployerId(string nationalId, long commandId);
|
|
bool ExistsEmployerAccountRegisterId(string commandRegisterId);
|
|
bool ExistsEmployerAccountLName(string commandLName);
|
|
|
|
#region Mahan
|
|
|
|
List<EmployerViewModel> GetEmployersHasWorkshop();
|
|
|
|
Task<List<EmployerSelectListViewModel>> GetSelectList(string search);
|
|
|
|
|
|
#endregion
|
|
|
|
#region NewByHeydari
|
|
OperationResult DeleteEmployer(long id);
|
|
List<EmployerViewModel> GetEmployerWithFNameOrLName(string searchText);
|
|
List<EmployerViewModel> GetEmployerWithIdNumberOrRegisterId(string searchText);
|
|
List<EmployerViewModel> GetEmployerWithNationalcodeOrNationalId(string searchText);
|
|
OperationResult DeActiveAll(long id);
|
|
OperationResult ActiveAll(long id);
|
|
List<EmployerViewModel> GetAllEmployers();
|
|
|
|
#endregion
|
|
|
|
#region Insurance
|
|
|
|
(string employerName, bool isLegal) InsuranceEmployerByWorkshopId(long workshopId);
|
|
|
|
#endregion
|
|
|
|
#region Api
|
|
Task<List<GetEmployerListViewModel>> GetEmployerList(GetEmployerSearchModel searchModel);
|
|
|
|
Task<GetLegalEmployerDetailViewModel> GetLegalEmployerDetail(long id);
|
|
Task<GetRealEmployerDetailViewModel> GetRealEmployerDetail(long id);
|
|
//Task<List<EmployerSelectListViewModel>> GetSelectList(string search);
|
|
Task<OperationResult<string>> DeactivateWithSubordinates(long id);
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
} |