-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PSP-8315 : Add Lease and License Checklist (#4062)
Co-authored-by: Herrera <eduardo.herrera@quartech.com>
- Loading branch information
1 parent
29129d9
commit 078f185
Showing
45 changed files
with
1,556 additions
and
22 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
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
21 changes: 21 additions & 0 deletions
21
source/backend/apimodels/CodeTypes/LeaseChecklistItemSectionTypes.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,21 @@ | ||
using System.Runtime.Serialization; | ||
using System.Text.Json.Serialization; | ||
|
||
namespace Pims.Api.Models.CodeTypes | ||
{ | ||
[JsonConverter(typeof(JsonStringEnumMemberConverter))] | ||
public enum LeaseChecklistItemSectionTypes | ||
{ | ||
[EnumMember(Value = "AGREEPREP")] | ||
AGREEPREP, | ||
|
||
[EnumMember(Value = "FILEINIT")] | ||
FILEINIT, | ||
|
||
[EnumMember(Value = "LLCOMPLTN")] | ||
LLCOMPLTN, | ||
|
||
[EnumMember(Value = "REFERAPPR")] | ||
REFERAPPR, | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
source/backend/apimodels/CodeTypes/LeaseChecklistItemStatusTypes.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,18 @@ | ||
using System.Runtime.Serialization; | ||
using System.Text.Json.Serialization; | ||
|
||
namespace Pims.Api.Models.CodeTypes | ||
{ | ||
[JsonConverter(typeof(JsonStringEnumMemberConverter))] | ||
public enum LeaseChecklistItemStatusTypes | ||
{ | ||
[EnumMember(Value = "COMPLT")] | ||
COMPLT, | ||
|
||
[EnumMember(Value = "INCOMP")] | ||
INCOMP, | ||
|
||
[EnumMember(Value = "NA")] | ||
NA, | ||
} | ||
} |
27 changes: 27 additions & 0 deletions
27
source/backend/apimodels/Models/Concepts/Lease/LeaseChecklistItemMap.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,27 @@ | ||
using Mapster; | ||
using Pims.Api.Models.Base; | ||
using Pims.Api.Models.Concepts.File; | ||
using Entity = Pims.Dal.Entities; | ||
|
||
namespace Pims.Api.Models.Models.Concepts.Lease | ||
{ | ||
public class LeaseChecklistItemMap : IRegister | ||
{ | ||
public void Register(TypeAdapterConfig config) | ||
{ | ||
config.NewConfig<Entity.PimsLeaseChecklistItem, FileChecklistItemModel>() | ||
.Map(dest => dest.Id, src => src.LeaseChecklistItemId) | ||
.Map(dest => dest.FileId, src => src.LeaseId) | ||
.Map(dest => dest.ItemType, src => src.LeaseChklstItemTypeCodeNavigation) | ||
.Map(dest => dest.StatusTypeCode, src => src.LeaseChklstItemStatusTypeCodeNavigation) | ||
.Inherits<Entity.IBaseAppEntity, BaseAuditModel>(); | ||
|
||
config.NewConfig<FileChecklistItemModel, Entity.PimsLeaseChecklistItem>() | ||
.Map(dest => dest.LeaseChecklistItemId, src => src.Id) | ||
.Map(dest => dest.LeaseId, src => src.FileId) | ||
.Map(dest => dest.LeaseChklstItemTypeCode, src => src.ItemType.Code) | ||
.Map(dest => dest.LeaseChklstItemStatusTypeCode, src => src.StatusTypeCode.Id) | ||
.Inherits<BaseAuditModel, Entity.IBaseAppEntity>(); | ||
} | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
source/backend/apimodels/Models/Concepts/Lease/LeaseChecklistItemTypeMap.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,22 @@ | ||
using Mapster; | ||
using Pims.Api.Models.Base; | ||
using Pims.Api.Models.Concepts.File; | ||
using Entity = Pims.Dal.Entities; | ||
|
||
namespace Pims.Api.Models.Models.Concepts.Lease | ||
{ | ||
public class LeaseChecklistItemTypeMap : IRegister | ||
{ | ||
public void Register(TypeAdapterConfig config) | ||
{ | ||
config.NewConfig<Entity.PimsLeaseChklstItemType, FileChecklistItemTypeModel>() | ||
.Map(dest => dest.Code, src => src.Id) | ||
.Map(dest => dest.SectionCode, src => src.ParentId) | ||
.Map(dest => dest.Description, src => src.Description) | ||
.Map(dest => dest.Hint, src => src.Hint) | ||
.Map(dest => dest.IsDisabled, src => src.IsDisabled) | ||
.Map(dest => dest.DisplayOrder, src => src.DisplayOrder) | ||
.Inherits<Entity.IBaseEntity, BaseConcurrentModel>(); | ||
} | ||
} | ||
} |
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
Oops, something went wrong.