50 lines
1.6 KiB
C#
50 lines
1.6 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using _0_Framework.Application;
|
|
using CompanyManagment.App.Contracts.PersonalContractingParty;
|
|
|
|
namespace CompanyManagment.App.Contracts.Representative;
|
|
|
|
public interface IRepresentativeApplication
|
|
{
|
|
OperationResult CreateReal(CreateRepresentative command);
|
|
OperationResult EditReal(EditRepresentative command);
|
|
OperationResult CreateLegal(CreateRepresentative command);
|
|
OperationResult EditLegal(EditRepresentative command);
|
|
List<RepresentativeViewModel> GetRepresentatives();
|
|
EditRepresentative GetDetails(long id);
|
|
List<RepresentativeViewModel> Search(RepresentativeSearchModel searchModel);
|
|
List<PersonalContractingPartyViewModel> GetContractingParties(long id);
|
|
|
|
#region NewByHeydari
|
|
List<RepresentativeViewModel> GetRepresentativeListForSearchText(string searchText);
|
|
OperationResult DeleteRepresentative(long id);
|
|
OperationResult Active(long id);
|
|
OperationResult DeActive(long id);
|
|
#endregion
|
|
|
|
#region Api
|
|
|
|
Task<List<RepresentativeGetListViewModel>> GetList(RepresentativeGetListSearchModel searchModel);
|
|
|
|
bool HasAnyContractingParty(long id);
|
|
|
|
|
|
OperationResult CreateReal(CreateRealRepresentative command);
|
|
OperationResult CreateLegal(CreateLegalRepresentative command);
|
|
OperationResult EditReal(EditRealRepresentative command);
|
|
OperationResult EditLegal(EditLegalRepresentative command);
|
|
|
|
/// <summary>
|
|
/// لیست نام های معرف برای سلکت لیست
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
Task<List<GetSelectListRepresentativeViewModel>> GetSelectList();
|
|
|
|
#endregion
|
|
|
|
|
|
} |