Files
Backend-Api/Company.Domain/ContarctingPartyAgg/IPersonalContractingPartyRepository.cs

78 lines
2.9 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 CompanyManagment.App.Contracts.PersonalContractingParty;
using System.Collections.Generic;
using _0_Framework.Application;
using _0_Framework.Domain;
using AccountManagement.Application.Contracts.Account;
using System.Threading.Tasks;
namespace Company.Domain.ContarctingPartyAgg;
public interface IPersonalContractingPartyRepository :IRepository<long, PersonalContractingParty>
{
List<PersonalContractingPartyViewModel> GetPersonalContractingParties();
EditPersonalContractingParty GetDetails(long id);
string IsBlockByEmployerId(long employerId);
EditPersonalContractingParty GetDetailsToEdit(long id);
string GetFullName(long id);
List<PersonalContractingPartyViewModel> Search(PersonalContractingPartySearchModel searchModel2);
int GetLastNewArchiveCode();
#region Mahan
List<string> SearchByName(string name);
AccountViewModel GetAccountByPersonalContractingParty(long contractingPartyId);
#endregion
#region ForClient
ContractingPartyAndStatmentIdViewModel GetContractingpartyIdByAccountId(long accountId);
#endregion
#region NewByHeydari
List<PersonalContractingPartyViewModel> GetPersonalContractingPartiesForNationalcode(string searchText);
List<PersonalContractingPartyViewModel> SearchForMain(PersonalContractingPartySearchModel searchModel2);
OperationResult DeletePersonalContractingParties(long id);
bool GetHasContract(long id);
OperationResult DeActiveAll(long id);
OperationResult ActiveAll(long id);
#endregion
#region Insurance
bool IsBlockCheckByWorkshopId(long workshopId);
#endregion
/// <summary>
/// لیست طرف حساب ها
/// </summary>
/// <param name="searchModel"></param>
/// <returns></returns>
Task<ICollection<ContractingPartyGetListViewModel>> GetList(ContractingPartyGetListSearchModel searchModel);
/// <summary>
/// لیست طرف حساب برای سلکت لیست سرچ
/// </summary>
/// <param name="search"></param>
/// <returns></returns>
Task<List<ContractingPartySelectListViewModel>> GetSelectList(string search,long id);
/// <summary>
/// لیستی از شماره ملی یا شناسه ملی بر اساس حقیقی یا حقوقی بودن
/// </summary>
/// <returns></returns>
Task<List<GetContractingPartyNationalCodeOrNationalIdViewModel>> GetNationalCodeOrNationalId();
/// <summary>
/// غیرفعال کردن طرف حساب و زیرمجموعه های آن
/// </summary>
/// <param name="id"></param>
/// <returns></returns>
Task<OperationResult<string>> DeactivateWithSubordinates(long id);
void Remove(PersonalContractingParty entity);
Task<GetRealContractingPartyDetailsViewModel> GetRealDetails(long id);
Task<GetLegalContractingPartyDetailsViewModel> GetLegalDetails(long id);
Task<PersonalContractingParty> GetByNationalCode(string nationalCode);
}