-
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-7247 : View disposition file (offers and sale) (#3669)
Co-authored-by: Eduardo Herrera <Eduardo.Herrera@quartech.com>
- Loading branch information
1 parent
e230d02
commit 81d77b5
Showing
47 changed files
with
3,557 additions
and
57 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
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
34 changes: 34 additions & 0 deletions
34
source/backend/apimodels/Models/Concepts/DispositionFile/DispositionFileOfferMap.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,34 @@ | ||
using Mapster; | ||
using Pims.Api.Models.Base; | ||
using Entity = Pims.Dal.Entities; | ||
|
||
namespace Pims.Api.Models.Models.Concepts.DispositionFile | ||
{ | ||
public class DispositionFileOfferMap : IRegister | ||
{ | ||
public void Register(TypeAdapterConfig config) | ||
{ | ||
config.NewConfig<Entity.PimsDispositionOffer, DispositionFileOfferModel>() | ||
.Map(dest => dest.Id, src => src.DispositionOfferId) | ||
.Map(dest => dest.DispositionFileId, src => src.DispositionFileId) | ||
.Map(dest => dest.DispositionOfferStatusTypeCode, src => src.DispositionOfferStatusTypeCode) | ||
.Map(dest => dest.DispositionOfferStatusType, src => src.DispositionOfferStatusTypeCodeNavigation) | ||
.Map(dest => dest.OfferName, src => src.OfferName) | ||
.Map(dest => dest.OfferDate, src => src.OfferDt) | ||
.Map(dest => dest.OfferExpiryDate, src => src.OfferExpiryDt) | ||
.Map(dest => dest.OfferAmount, src => src.OfferAmt) | ||
.Map(dest => dest.OfferNote, src => src.OfferNote) | ||
.Inherits<Entity.IBaseEntity, BaseConcurrentModel>(); | ||
|
||
config.NewConfig<DispositionFileOfferModel, Entity.PimsDispositionOffer>() | ||
.Map(dest => dest.DispositionOfferId, src => src.Id) | ||
.Map(dest => dest.DispositionFileId, src => src.DispositionFileId) | ||
.Map(dest => dest.DispositionOfferStatusTypeCode, src => src.DispositionOfferStatusTypeCode) | ||
.Map(dest => dest.OfferName, src => src.OfferName) | ||
.Map(dest => dest.OfferDt, src => src.OfferDate) | ||
.Map(dest => dest.OfferExpiryDt, src => src.OfferExpiryDate) | ||
.Map(dest => dest.OfferAmt, src => src.OfferAmount) | ||
.Inherits<BaseConcurrentModel, Entity.IBaseEntity>(); | ||
} | ||
} | ||
} |
53 changes: 53 additions & 0 deletions
53
source/backend/apimodels/Models/Concepts/DispositionFile/DispositionFileOfferModel.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,53 @@ | ||
using System; | ||
using Pims.Api.Models.Base; | ||
|
||
namespace Pims.Api.Models.Models.Concepts.DispositionFile | ||
{ | ||
public class DispositionFileOfferModel : BaseConcurrentModel | ||
{ | ||
/// <summary> | ||
/// get/set - The relationship id. | ||
/// </summary> | ||
public long Id { get; set; } | ||
|
||
/// <summary> | ||
/// Parent Disposition File. | ||
/// </summary> | ||
public long DispositionFileId { get; set; } | ||
|
||
/// <summary> | ||
/// Disposition Offer Status Code. | ||
/// </summary> | ||
public string DispositionOfferStatusTypeCode { get; set; } | ||
|
||
/// <summary> | ||
/// Disposition Offer Status Object. | ||
/// </summary> | ||
public TypeModel<string> DispositionOfferStatusType { get; set; } | ||
|
||
/// <summary> | ||
/// Disposition Offer Name. | ||
/// </summary> | ||
public string OfferName { get; set; } | ||
|
||
/// <summary> | ||
/// Disposition Offer Date. | ||
/// </summary> | ||
public DateTime OfferDate { get; set; } | ||
|
||
/// <summary> | ||
/// Disposition Offer Expiration Date. | ||
/// </summary> | ||
public DateTime? OfferExpiryDate { get; set; } | ||
|
||
/// <summary> | ||
/// Disposition Offer Amount. | ||
/// </summary> | ||
public decimal OfferAmount { get; set; } | ||
|
||
/// <summary> | ||
/// Disposition Offer Note. | ||
/// </summary> | ||
public string OfferNote { get; set; } | ||
} | ||
} |
51 changes: 51 additions & 0 deletions
51
source/backend/apimodels/Models/Concepts/DispositionFile/DispositionFileSaleMap.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,51 @@ | ||
using Mapster; | ||
using Entity = Pims.Dal.Entities; | ||
|
||
namespace Pims.Api.Models.Models.Concepts.DispositionFile | ||
{ | ||
public class DispositionFileSaleMap : IRegister | ||
{ | ||
public void Register(TypeAdapterConfig config) | ||
{ | ||
config.NewConfig<Entity.PimsDispositionSale, DispositionFileSaleModel>() | ||
.Map(dest => dest.Id, src => src.DispositionSaleId) | ||
.Map(dest => dest.DispositionFileId, src => src.DispositionFileId) | ||
.Map(dest => dest.FinalConditionRemovalDate, src => src.FinalConditionRemovalDt) | ||
.Map(dest => dest.SaleCompletionDate, src => src.SaleCompletionDt) | ||
.Map(dest => dest.SaleFiscalYear, src => src.SaleFiscalYear) | ||
.Map(dest => dest.FinalSaleAmount, src => src.FinalSaleAmt) | ||
.Map(dest => dest.RealtorCommissionAmount, src => src.RealtorCommisissionAmt) | ||
.Map(dest => dest.IsGstRequired, src => src.IsGstRequired) | ||
.Map(dest => dest.GstCollectedAmount, src => src.GstCollectedAmt) | ||
.Map(dest => dest.NetBookAmount, src => src.NetBookAmt) | ||
.Map(dest => dest.TotalCostAmount, src => src.TotalCostAmt) | ||
.Map(dest => dest.NetProceedsBeforeSppAmount, src => src.NetProceedsBeforeSppAmt) | ||
.Map(dest => dest.NetProceedsAfterSppAmount, src => src.NetProceedsAfterSppAmt) | ||
.Map(dest => dest.SppAmount, src => src.SppAmt) | ||
.Map(dest => dest.RemediationAmount, src => src.RemediationAmt) | ||
.Map(dest => dest.DispositionPurchasers, src => src.PimsDispositionPurchasers) | ||
.Map(dest => dest.DispositionPurchaserAgents, src => src.PimsDspPurchAgents) | ||
.Map(dest => dest.DispositionPurchaserSolicitors, src => src.PimsDspPurchSolicitors); | ||
|
||
config.NewConfig<DispositionFileSaleModel, Entity.PimsDispositionSale>() | ||
.Map(dest => dest.DispositionSaleId, src => src.Id) | ||
.Map(dest => dest.DispositionFileId, src => src.DispositionFileId) | ||
.Map(dest => dest.FinalConditionRemovalDt, src => src.FinalConditionRemovalDate) | ||
.Map(dest => dest.SaleCompletionDt, src => src.SaleCompletionDate) | ||
.Map(dest => dest.SaleFiscalYear, src => src.SaleFiscalYear) | ||
.Map(dest => dest.FinalSaleAmt, src => src.FinalSaleAmount) | ||
.Map(dest => dest.RealtorCommisissionAmt, src => src.RealtorCommissionAmount) | ||
.Map(dest => dest.IsGstRequired, src => src.IsGstRequired) | ||
.Map(dest => dest.GstCollectedAmt, src => src.GstCollectedAmount) | ||
.Map(dest => dest.NetBookAmt, src => src.NetBookAmount) | ||
.Map(dest => dest.TotalCostAmt, src => src.TotalCostAmount) | ||
.Map(dest => dest.NetProceedsBeforeSppAmt, src => src.NetProceedsBeforeSppAmount) | ||
.Map(dest => dest.NetProceedsAfterSppAmt, src => src.NetProceedsAfterSppAmount) | ||
.Map(dest => dest.SppAmt, src => src.SppAmount) | ||
.Map(dest => dest.RemediationAmt, src => src.RemediationAmount) | ||
.Map(dest => dest.PimsDispositionPurchasers, src => src.DispositionPurchasers) | ||
.Map(dest => dest.PimsDspPurchAgents, src => src.DispositionPurchaserAgents) | ||
.Map(dest => dest.PimsDspPurchSolicitors, src => src.DispositionPurchaserSolicitors); | ||
} | ||
} | ||
} |
Oops, something went wrong.