-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #246 from bcgov/feature/9229-Project-info-to-be-st…
…ored-in-Unity Feature/9229 project info to be stored in unity
- Loading branch information
Showing
36 changed files
with
3,865 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
...rantManager/src/Unity.GrantManager.Application.Contracts/Locality/CensusSubdivisionDto.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
using System; | ||
using Volo.Abp.Application.Dtos; | ||
|
||
namespace Unity.GrantManager.Locality; | ||
|
||
[Serializable] | ||
public class CensusSubdivisionDto : EntityDto<Guid> | ||
{ | ||
public string CensusSubdivisionName { get; set; } = string.Empty; | ||
public string Type { get; set; } = string.Empty; | ||
public string RegionalDistrictCode { get; set; } = string.Empty; | ||
|
||
} |
11 changes: 11 additions & 0 deletions
11
...anager/src/Unity.GrantManager.Application.Contracts/Locality/ICensusSubdivisionService.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
using System.Collections.Generic; | ||
using System.Threading.Tasks; | ||
using Volo.Abp.Application.Services; | ||
|
||
namespace Unity.GrantManager.Locality; | ||
|
||
public interface ICensusSubdivisionService : IApplicationService | ||
{ | ||
Task<IList<CensusSubdivisionDto>> GetListAsync(); | ||
} | ||
|
11 changes: 11 additions & 0 deletions
11
...Manager/src/Unity.GrantManager.Application.Contracts/Locality/IRegionalDistrictService.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
using System.Collections.Generic; | ||
using System.Threading.Tasks; | ||
using Volo.Abp.Application.Services; | ||
|
||
namespace Unity.GrantManager.Locality; | ||
|
||
public interface IRegionalDistrictService : IApplicationService | ||
{ | ||
Task<IList<RegionalDistrictDto>> GetListAsync(); | ||
} | ||
|
13 changes: 13 additions & 0 deletions
13
...GrantManager/src/Unity.GrantManager.Application.Contracts/Locality/RegionalDistrictDto.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
using System; | ||
using Volo.Abp.Application.Dtos; | ||
|
||
namespace Unity.GrantManager.Locality; | ||
|
||
[Serializable] | ||
public class RegionalDistrictDto : EntityDto<Guid> | ||
{ | ||
public string RegionalDistrictName { get; set; } = string.Empty; | ||
|
||
public string RegionalDistrictCode { get; set; } = string.Empty; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
...ty.GrantManager/src/Unity.GrantManager.Application/Locality/CensusSubdivisionAppServic.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Threading.Tasks; | ||
using Microsoft.AspNetCore.Authorization; | ||
using Volo.Abp.Application.Services; | ||
using Volo.Abp.DependencyInjection; | ||
namespace Unity.GrantManager.Locality | ||
{ | ||
[Authorize] | ||
[Dependency(ReplaceServices = true)] | ||
[ExposeServices(typeof(CensusSubdivisionAppService), typeof(ICensusSubdivisionService))] | ||
public class CensusSubdivisionAppService : ApplicationService, ICensusSubdivisionService | ||
{ | ||
private readonly ICensusSubdivisionRepository _censusSubdivisionRepository; | ||
public CensusSubdivisionAppService(ICensusSubdivisionRepository censusSubdivisionRepository) | ||
{ | ||
_censusSubdivisionRepository = censusSubdivisionRepository; | ||
} | ||
|
||
public async Task<IList<CensusSubdivisionDto>> GetListAsync() | ||
{ | ||
|
||
var censusSubdivision = await _censusSubdivisionRepository.GetListAsync(); | ||
|
||
return ObjectMapper.Map<List<CensusSubdivision>, List<CensusSubdivisionDto>>(censusSubdivision.OrderBy(c => c.CensusSubdivisionName).ToList()); | ||
} | ||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
...y.GrantManager/src/Unity.GrantManager.Application/Locality/RegionalDistrictsAppService.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Threading.Tasks; | ||
using Microsoft.AspNetCore.Authorization; | ||
using Volo.Abp.Application.Services; | ||
using Volo.Abp.DependencyInjection; | ||
|
||
namespace Unity.GrantManager.Locality | ||
{ | ||
[Authorize] | ||
[Dependency(ReplaceServices = true)] | ||
[ExposeServices(typeof(RegionalDistrictAppService), typeof(IRegionalDistrictService))] | ||
public class RegionalDistrictAppService : ApplicationService, IRegionalDistrictService | ||
{ | ||
private readonly IRegionalDistrictRepository _regionalDistrictRepository; | ||
public RegionalDistrictAppService(IRegionalDistrictRepository regionalDistricRepository) | ||
{ | ||
_regionalDistrictRepository = regionalDistricRepository; | ||
} | ||
|
||
public async Task<IList<RegionalDistrictDto>> GetListAsync() | ||
{ | ||
var regionalDistrict = await _regionalDistrictRepository.GetListAsync(); | ||
|
||
return ObjectMapper.Map<List<RegionalDistrict>, List<RegionalDistrictDto>>(regionalDistrict.OrderBy(r => r.RegionalDistrictCode).ToList()); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
applications/Unity.GrantManager/src/Unity.GrantManager.Domain/Locality/CensusSubdivision.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
using System; | ||
using Volo.Abp.Domain.Entities.Auditing; | ||
|
||
namespace Unity.GrantManager.Locality; | ||
|
||
public class CensusSubdivision : AuditedAggregateRoot<Guid> | ||
{ | ||
public string CensusSubdivisionName { get; set; } = string.Empty; | ||
public string Type { get; set; } = string.Empty; | ||
public string RegionalDistrictCode { get; set; } = string.Empty; | ||
|
||
} |
9 changes: 9 additions & 0 deletions
9
...Unity.GrantManager/src/Unity.GrantManager.Domain/Locality/ICensusSubdivisionRepository.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
using System; | ||
using Volo.Abp.Domain.Repositories; | ||
|
||
namespace Unity.GrantManager.Locality; | ||
|
||
public interface ICensusSubdivisionRepository : IRepository<CensusSubdivision, Guid> | ||
{ | ||
} | ||
|
9 changes: 9 additions & 0 deletions
9
.../Unity.GrantManager/src/Unity.GrantManager.Domain/Locality/IRegionalDistrictRepository.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
using System; | ||
using Volo.Abp.Domain.Repositories; | ||
|
||
namespace Unity.GrantManager.Locality; | ||
|
||
public interface IRegionalDistrictRepository : IRepository<RegionalDistrict, Guid> | ||
{ | ||
} | ||
|
12 changes: 12 additions & 0 deletions
12
applications/Unity.GrantManager/src/Unity.GrantManager.Domain/Locality/RegionalDistrict.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
using System; | ||
using Volo.Abp.Domain.Entities.Auditing; | ||
|
||
namespace Unity.GrantManager.Locality; | ||
|
||
public class RegionalDistrict : AuditedAggregateRoot<Guid> | ||
{ | ||
public string RegionalDistrictName { get; set; } = string.Empty; | ||
|
||
public string RegionalDistrictCode { get; set; } = string.Empty; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.