Files
Backend-Api/CompanyManagment.App.Contracts/Employer/IEmployerApplication.cs

181 lines
5.8 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
using System.Collections.Generic;
using System.Threading.Tasks;
using System.Transactions;
using _0_Framework.Application;
using _0_Framework.Application.Enums;
using CompanyManagment.App.Contracts.Checkout;
using CompanyManagment.App.Contracts.Employee;
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_Old(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();
/// <summary>
/// لیست نام کارفرما ها برای جستجو
/// </summary>
/// <param name="search"></param>
/// <param name="id"></param>
/// <returns></returns>
Task<List<EmployerSelectListViewModel>> GetSelectList(string search, long id);
#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="id"></param>
/// <returns></returns>
public Task<OperationResult<string>> Remove(long id);
#endregion
Task<OperationResult> CreateWorkflowRegistration(CreateEmployerWorkflowRegistration command);
}
public class CreateEmployerWorkflowRegistration
{
public CreateRealEmployerWorkflowRegistration RealEmployer { get; set; }
public CreateLegalEmployerWorkflowRegistration LegalEmployer { get; set; }
public LegalType LegalType { get; set; }
public long InstitutionWorkshopDetailsId { get; set; }
public long InstitutionContractId { get; set; }
public long ContractingPartyId { get; set; }
}
public class CreateLegalEmployerWorkflowRegistration
{
public string CompanyName { get; set; }
public string RegisterId { get; set; }
public string NationalId { get; set; }
public Gender Gender { get; set; }
public bool IsAuth { get; set; }
public string CeoNationalCode { get; set; }
public string CeoIdNumber { get; set; }
public string CeoFName { get; set; }
public string CeoLName { get; set; }
public string CeoFatherName { get; set; }
public string CeoDateOfBirth { get; set; }
public string CeoPlaceOfIssue { get; set; }
public string CeoDateOfIssue { get; set; }
public string PhoneNumber { get; set; }
public string TelephoneNumber { get; set; }
public GovernmentSystemInfo GovernmentSystemInfo { get; set; }
}
public class CreateRealEmployerWorkflowRegistration
{
public Gender Gender { get; set; }
public bool IsAuth { get; set; }
public string NationalCode { get; set; }
public string IdNumber { get; set; }
public string FName { get; set; }
public string LName { get; set; }
public string FatherName { get; set; }
public string DateOfBirth { get; set; }
public string PhoneNumber { get; set; }
public string PlaceOfIssue { get; set; }
public string DateOfIssue { get; set; }
public string TelephoneNumber { get; set; }
public GovernmentSystemInfo GovernmentSystemInfo { get; set; }
public string Telephone { get; set; }
}