136 lines
4.5 KiB
C#
136 lines
4.5 KiB
C#
using _0_Framework.Application;
|
||
using System.Collections.Generic;
|
||
using System.Threading.Tasks;
|
||
|
||
|
||
namespace CompanyManagment.App.Contracts.PersonalContractingParty;
|
||
|
||
public interface IPersonalContractingPartyApp
|
||
{
|
||
OperationResult Create(CreatePersonalContractingParty command);
|
||
OperationResult Edit(EditPersonalContractingParty command);
|
||
|
||
OperationResult Edit2(EditPersonalContractingParty command);
|
||
|
||
OperationResult CreateLegals(CreatePersonalContractingParty command);
|
||
OperationResult EditLegal(EditPersonalContractingParty command);
|
||
|
||
EditPersonalContractingParty GetDetails(long id);
|
||
string IsBlockByEmployerId(long employerId);
|
||
EditPersonalContractingParty GetDetailsToEdit(long id);
|
||
string GetFullName(long id);
|
||
List<PersonalContractingPartyViewModel> GetPersonalContractingParties();
|
||
|
||
List<PersonalContractingPartyViewModel> Search(PersonalContractingPartySearchModel searchModel2);
|
||
int GetLastArchiveCode();
|
||
#region Mahan
|
||
List<string> SearchByName(string name);
|
||
#endregion
|
||
#region ForClient
|
||
|
||
ContractingPartyAndStatmentIdViewModel GetContractingpartyIdByAccountId(long accountId);
|
||
|
||
#endregion
|
||
|
||
#region NewByHeydari
|
||
List<PersonalContractingPartyViewModel> GetPersonalContractingPartiesForNationalcode(string searchText);
|
||
List<PersonalContractingPartyViewModel> SearchForMain(PersonalContractingPartySearchModel searchModel2);
|
||
OperationResult DeletePersonalContractingParties(long id);
|
||
OperationResult Active(long id);
|
||
OperationResult DeActive(long id);
|
||
bool GetHasContract(long id);
|
||
OperationResult Block(long id);
|
||
OperationResult DisableBlock(long id);
|
||
#endregion
|
||
|
||
#region Insurance
|
||
|
||
/// <summary>
|
||
/// چک میکند که آیا طرف حساب بلاک است یا خیر
|
||
/// با دریافت آی دی کارگاه
|
||
/// </summary>
|
||
/// <param name="workshopId"></param>
|
||
/// <returns></returns>
|
||
bool IsBlockCheckByWorkshopId(long workshopId);
|
||
|
||
#endregion
|
||
|
||
|
||
#region Api
|
||
/// <summary>
|
||
/// لیست طرف حساب ها
|
||
/// </summary>
|
||
/// <param name="searchModel"></param>
|
||
/// <returns></returns>
|
||
Task<ICollection<ContractingPartyGetListViewModel>> GetList(ContractingPartyGetListSearchModel searchModel);
|
||
|
||
/// <summary>
|
||
/// لیست طرف حساب برای سلکت لیست سرچ
|
||
/// </summary>
|
||
/// <param name="search"></param>
|
||
/// <param name="id"></param>
|
||
/// <returns></returns>
|
||
Task<List<ContractingPartySelectListViewModel>> GetSelectList(string search, long id);
|
||
|
||
/// <summary>
|
||
/// ایجاد طرف حساب حقیقی
|
||
/// </summary>
|
||
/// <param name="command"></param>
|
||
/// <returns></returns>
|
||
Task<OperationResult> CreateReal(CreateRealContractingParty command);
|
||
|
||
/// <summary>
|
||
/// ایجاد ظرف حساب حقوقی
|
||
/// </summary>
|
||
/// <param name="command"></param>
|
||
/// <returns></returns>
|
||
Task<OperationResult> CreateLegal(CreateLegalContractingParty command);
|
||
|
||
|
||
/// <summary>
|
||
/// لیستی از شماره ملی یا شناسه ملی بر اساس حقیقی یا حقوقی بودن
|
||
/// </summary>
|
||
/// <returns></returns>
|
||
Task<List<GetContractingPartyNationalCodeOrNationalIdViewModel>> GetNationalCodeOrNationalId();
|
||
|
||
|
||
/// <summary>
|
||
/// حذف طرف حساب. در صورتی که طرف حساب دارای قرارداد مالی یا دارای کارفرما باشد غیرفعال میشود
|
||
/// </summary>
|
||
/// <param name="id"></param>
|
||
/// <returns></returns>
|
||
Task<OperationResult<string>> Delete(long id);
|
||
|
||
/// <summary>
|
||
/// ویرایش طرف حساب حقیقی
|
||
/// </summary>
|
||
/// <param name="command"></param>
|
||
/// <returns></returns>
|
||
OperationResult EditRealApi(EditRealContractingParty command);
|
||
|
||
|
||
/// <summary>
|
||
/// ویرایش طرف حساب حقوقی
|
||
/// </summary>
|
||
/// <param name="command"></param>
|
||
/// <returns></returns>
|
||
OperationResult EditLegal(EditLegalContractingParty command);
|
||
|
||
/// <summary>
|
||
/// گرفتن جزئیات طرف حساب حقوقی
|
||
/// </summary>
|
||
/// <param name="id"></param>
|
||
/// <returns></returns>
|
||
Task<GetRealContractingPartyDetailsViewModel> GetRealDetails(long id);
|
||
|
||
/// <summary>
|
||
/// گرفتن جزئیات طرف حساب حقوقی
|
||
/// </summary>
|
||
/// <param name="id"></param>
|
||
/// <returns></returns>
|
||
Task<GetLegalContractingPartyDetailsViewModel> GetLegalDetails(long id);
|
||
|
||
#endregion
|
||
|
||
Task<long> GetRepresentativeIdByNationalCode(string nationalCode);
|
||
} |