using System.Collections.Generic; using System.Threading.Tasks; using _0_Framework.Application; using _0_Framework.Domain; using CompanyManagment.App.Contracts.Contract; using CompanyManagment.App.Contracts.PersonalContractingParty; using CompanyManagment.App.Contracts.Workshop; using CompanyManagment.App.Contracts.Workshop.DTOs; namespace Company.Domain.WorkshopAgg; public interface IWorkshopRepository : IRepository { List GetWorkshop(); List GetWorkshopAll(); List GetWorkshopAccount(); EditWorkshop GetDetails(long id); List GetRelation(long workshopid); List GetWorkshopAccountRelation(long workshopid); void EmployerWorkshop(long workshopid, long employerid); void WorkshopAccounts(List AccountIds, long workshopId); WorkshopViewModel GetWorkshopInfo(long id); void RemoveOldRelation(long workshopid); List Search(WorkshopSearchModel searchModel); List GetWorkshopsByEmployerId(List emloyerIds); List GetConnectedPersonnels(long workshopId); List GetPersonnelInfo(long workshopId); int PersonnnelCount(long workshopId); #region client bool Remove(long id); List GetWorkshopByTextSearchForClient(string textSearch); List SearchForClient(WorkshopSearchModel searchModel); void CreateWorkshopAccounts(List accountIds, long id); bool GetWorkshopAccountByAcountID(long acountId); void RemoveEmployerWorkshop(long workshopid); bool ExistsWorkshopAccountInsuranceCode(string insuranceCode); bool ExistsWorkshopAccountInsuranceCodeByworkshopId(long workshopId, string insuranceCode); bool ExistsWorkshopAccountArchiveCodeByWorkshopId(long commandId, string commandArchiveCode); bool ExistsWorkshopAccountArchiveCode(string commandArchiveCode); bool CheckAccountWorkshop(long workshopId); List SearchForClientRollCall(); #endregion #region NewByHeydari //List GetWorkshopByWorkshopIds(List workshopIds); List WorkshopEmployers(); List GetWorkshopByTextSearch(string searchText); List SearchForMain(WorkshopSearchModel searchModel); OperationResult DeActiveAll(long id); OperationResult ActiveAll(long id); #endregion #region Vafa List PrintWorkshopList(WorkshopSearchModel searchModel); #endregion #region Mahan PersonalContractingPartyViewModel GetPersonalContractingPartyByWorkshopId(long workshopId); List GetWorkshopsByClientAccountId(long clientAccountId); Task> GetWorkshopsForEmployeeStartWork(long accountId); Task GetWorkshopsForEmployeeStartWorkCount(long accountId); Task> GetWorkshopsForLeftWorkTemp(long accountId); Task GetWorkshopsForLeftWorkTempCount(long accountId); Task> GetSelectList(string search, long id); int GetLastArchiveCode(); #endregion #region Insurance /// /// لیست انتخاب کارگاه در مودال ایجاد بیمه /// /// List GetWorkshopSelectListInsuransce(); #endregion /// /// ایجاد دسترسی برای کاربران ادمین در زمان ایجاد کارگاه /// /// /// /// OperationResult CreateAccountLeftWorkAndWorkshopAccounts(List accountIds, long workshopId); /// /// ویرایش دسترسی کاربران ادمین به کارگاه در زمان ویرایش کارگاه /// /// /// /// OperationResult EditAccountLeftWorkAndWorkshopAccounts(List accountIds, long workshopId); #region Pooya List GetPersonnelInfoRemastered(long searchModelWorkshopId); #endregion }