63 lines
2.0 KiB
C#
63 lines
2.0 KiB
C#
using System.Collections.Generic;
|
|
using System.Runtime.InteropServices;
|
|
using _0_Framework.Application;
|
|
using AccountManagement.Application.Contracts.Account;
|
|
|
|
namespace CompanyManagment.App.Contracts.Workshop;
|
|
|
|
public interface IWorkshopApplication
|
|
{
|
|
OperationResult Create(CreateWorkshop command);
|
|
|
|
OperationResult Edit(EditWorkshop command);
|
|
|
|
EditWorkshop GetDetails(long id);
|
|
List<WorkshopViewModel> GetWorkshop();
|
|
List<WorkshopViewModel> GetWorkshopAll();
|
|
List<WorkshopViewModel> GetWorkshopAccount();
|
|
List<WorkshopViewModel> GetWorkshopsByEmployerId(List<long> emloyerIds);
|
|
List<ConnectedPersonnelViewModel> GetConnectedPersonnels(long workshopId);
|
|
List<PersonnelInfoViewModel> GetPersonnelInfo(PersonnelInfoSearchModel searchModel);
|
|
int PersonnelCount(long workshopId);
|
|
|
|
List<WorkshopViewModel> Search(WorkshopSearchModel searchModel);
|
|
|
|
OperationResult Active(long id);
|
|
OperationResult DeActive(long id);
|
|
|
|
WorkshopViewModel GetWorkshopInfo(long id);
|
|
OperationResult Err();
|
|
|
|
OperationResult ExistErr();
|
|
|
|
//client
|
|
|
|
#region client
|
|
OperationResult Remove(long id);
|
|
List<WorkshopViewModel> GetWorkshopByTextSearchForClient(string textSearch);
|
|
List<WorkshopViewModel> SearchForClient(WorkshopSearchModel searchModel);
|
|
OperationResult CreateForClient(CreateWorkshop command);
|
|
OperationResult EditForClient(EditWorkshop command);
|
|
bool GetWorkshopAccountByAcountID(long acountID);
|
|
bool CheckAccountWorkshop(long workshopId);
|
|
List<WorkshopViewModel> SearchForClientRollCall();
|
|
|
|
#endregion
|
|
|
|
#region NewByHeydari
|
|
|
|
List<WorkshopViewModel> GetWorkshopByTextSearch(string searchText);
|
|
List<WorkshopViewModel> SearchForMain(WorkshopSearchModel searchModel);
|
|
OperationResult DeleteWorkshop(long id);
|
|
OperationResult ActiveAll(long id);
|
|
|
|
#endregion
|
|
|
|
#region Vafa
|
|
|
|
List<PrintListWorkshop> PrintWorkshopList(WorkshopSearchModel searchModel);
|
|
|
|
#endregion
|
|
|
|
AccountViewModel GetClientAccountByWorkshopId(long workshopId);
|
|
} |