126 lines
3.9 KiB
C#
126 lines
3.9 KiB
C#
using System.Collections.Generic;
|
||
using System.Threading.Tasks;
|
||
using _0_Framework.Application;
|
||
using CompanyManagment.App.Contracts.Checkout;
|
||
|
||
|
||
namespace CompanyManagment.App.Contracts.Employer;
|
||
|
||
public interface IEmployerApplication
|
||
{
|
||
OperationResult Create(CreateEmployer command);
|
||
OperationResult Edit(EditEmployer command);
|
||
|
||
OperationResult EditEmployerNo(EditEmployer command);
|
||
OperationResult CreateLegals(CreateEmployer command);
|
||
OperationResult EditLegal(EditEmployer command);
|
||
|
||
EditEmployer GetDetails(long id);
|
||
|
||
OperationResult Active(long id);
|
||
OperationResult DeActive(long id);
|
||
OperationResult Remove(long id);
|
||
|
||
List<EmployerViewModel> GetEmployers();
|
||
List<EmployerViewModel> Search(EmployerSearchModel searchModel);
|
||
List<EmprViewModel> GetEmployerByWorkshopId(long workshopId);
|
||
List<EmployerViewModel> GetEmployerByContracrtingPartyID(long id);
|
||
List<EmprViewModel> GetEmployerByEmployerIds(List<long> employerIds);
|
||
OperationResult CreateForClient(CreateEmployer command);
|
||
List<EmployerViewModel> SearchForClient(EmployerSearchModel searchModel);
|
||
List<EmployerViewModel> GetEmployersForClient(long acountID);
|
||
OperationResult CreateLegalsForClient(CreateEmployer command);
|
||
|
||
OperationResult EditForClient(EditEmployer command);
|
||
OperationResult EditLegalForClient(EditEmployer command);
|
||
#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 ActiveAll(long id);
|
||
List<EmployerViewModel> GetAllEmployers();
|
||
|
||
#endregion
|
||
|
||
#region Insurance
|
||
|
||
(string employerName, bool isLegal) InsuranceEmployerByWorkshopId(long workshopId);
|
||
|
||
#endregion
|
||
|
||
#region Api
|
||
|
||
/// <summary>
|
||
/// لیست کارفرما ها
|
||
/// </summary>
|
||
/// <returns></returns>
|
||
Task<List<GetEmployerListViewModel>> GetEmployerList(GetEmployerSearchModel searchModel);
|
||
|
||
/// <summary>
|
||
/// جزئیات کارفرما حقوقی
|
||
/// </summary>
|
||
/// <param name="id"></param>
|
||
/// <returns></returns>
|
||
Task<GetLegalEmployerDetailViewModel> GetLegalEmployerDetail(long id);
|
||
|
||
/// <summary>
|
||
/// جزئیات کارفرما حقیقی
|
||
/// </summary>
|
||
/// <param name="id"></param>
|
||
/// <returns></returns>
|
||
Task<GetRealEmployerDetailViewModel> GetRealEmployerDetail(long id);
|
||
|
||
/// <summary>
|
||
/// ایجاد کارفرمای حقیقی
|
||
/// </summary>
|
||
/// <param name="command"></param>
|
||
/// <returns></returns>
|
||
Task<OperationResult> CreateReal(CreateRealEmployer command);
|
||
|
||
/// <summary>
|
||
/// ایجاد کارفرمای حقوقی
|
||
/// </summary>
|
||
/// <param name="command"></param>
|
||
/// <returns></returns>
|
||
Task<OperationResult> CreateLegal(CreateLegalEmployer command);
|
||
|
||
/// <summary>
|
||
/// ویرایش کارفرمای حقیقی
|
||
/// </summary>
|
||
/// <param name="command"></param>
|
||
/// <returns></returns>
|
||
Task<OperationResult> EditReal(EditRealEmployer command);
|
||
|
||
|
||
/// <summary>
|
||
/// ویرایش کارفرمای حقوقی
|
||
/// </summary>
|
||
/// <param name="command"></param>
|
||
/// <returns></returns>
|
||
Task<OperationResult> EditLegal(EditLegalEmployer command);
|
||
|
||
///// <summary>
|
||
///// لیست نام کارفرما ها برای جستجو
|
||
///// </summary>
|
||
///// <param name="search"></param>
|
||
///// <returns></returns>
|
||
//public Task<List<EmployerSelectListViewModel>> GetSelectList(string search);
|
||
|
||
/// <summary>
|
||
/// حذف کارفرما - درصورت داشتن کارگاه کارفرما غیرفعال میشود
|
||
/// </summary>
|
||
/// <param name="id"></param>
|
||
/// <returns></returns>
|
||
public Task<OperationResult<string>> RemoveApi(long id);
|
||
|
||
#endregion
|
||
}
|
||
|