6 Commits

Author SHA1 Message Date
ddb8b2673e Add support for five new RESULT_REFERENCE parameters
Added pRESULT_REFERENCE1 through pRESULT_REFERENCE5 to the stored procedure call, mapping them to the corresponding Reference1–Reference5 properties in request.Result. This allows passing additional reference data with the procedure execution.
2026-04-14 20:43:43 +02:00
a70aee6e28 Add Reference1-5 properties to UpdateResultDto
Added five optional string properties (Reference1 through Reference5) to UpdateResultDto for storing additional reference information related to update results. This enhances the DTO's flexibility for carrying extra context as needed.
2026-04-14 20:43:01 +02:00
f329543793 Add support for five new RESULT_REFERENCE parameters
Added pRESULT_REFERENCE1 through pRESULT_REFERENCE5 to the procedure handler, mapping them from the corresponding Reference1-5 properties in request.Result. This enables passing additional reference data to the stored procedure.
2026-04-14 20:42:41 +02:00
645891150c Add Reference1-5 properties to InsertResultCommand
Added five optional string properties (Reference1-5) to the InsertResultCommand record to support storing additional reference information with each command instance. This enhances flexibility for passing extra data as needed.
2026-04-14 20:41:53 +02:00
95cb34394c Add ProfileTypeName property to RecActionView
Added the ProfileTypeName string property to RecActionView, mapped to the "PROFILE_TYPE" column, to store the profile type name alongside the existing ProfileType property.
2026-04-14 20:40:16 +02:00
83d6832236 Add InfoId and Reference fields to ResultView model
Added InfoId and Reference1–Reference5 properties to the ResultView class, each mapped to corresponding database columns. These fields enable storage and retrieval of additional result-related information and references.
2026-04-14 20:40:00 +02:00
6 changed files with 42 additions and 1 deletions

View File

@@ -83,6 +83,11 @@ public class InsertObjectProcedureHandler(IRepository repo, IOptionsMonitor<SqlE
.Add("pRESULT_INFO", request.Result?.Info) .Add("pRESULT_INFO", request.Result?.Info)
.Add("pRESULT_INFO_DETAIL", request.Result?.InfoDetail) .Add("pRESULT_INFO_DETAIL", request.Result?.InfoDetail)
.Add("pRESULT_ERROR", request.Result?.Error) .Add("pRESULT_ERROR", request.Result?.Error)
.Add("pRESULT_REFERENCE1", request.Result?.Reference1)
.Add("pRESULT_REFERENCE2", request.Result?.Reference2)
.Add("pRESULT_REFERENCE3", request.Result?.Reference3)
.Add("pRESULT_REFERENCE4", request.Result?.Reference4)
.Add("pRESULT_REFERENCE5", request.Result?.Reference5)
.Add("pENDPOINT_PARAMS_ACTIVE", request.EndpointParams?.Active) .Add("pENDPOINT_PARAMS_ACTIVE", request.EndpointParams?.Active)
.Add("pENDPOINT_PARAMS_DESCRIPTION", request.EndpointParams?.Description) .Add("pENDPOINT_PARAMS_DESCRIPTION", request.EndpointParams?.Description)
.Add("pENDPOINT_PARAMS_GROUP_ID", request.EndpointParams?.GroupId, SqlDbType.SmallInt) .Add("pENDPOINT_PARAMS_GROUP_ID", request.EndpointParams?.GroupId, SqlDbType.SmallInt)

View File

@@ -9,4 +9,9 @@ public record UpdateResultDto
public string? Info { get; set; } public string? Info { get; set; }
public string? InfoDetail { get; set; } public string? InfoDetail { get; set; }
public string? Error { get; set; } public string? Error { get; set; }
public string? Reference1 { get; set; }
public string? Reference2 { get; set; }
public string? Reference3 { get; set; }
public string? Reference4 { get; set; }
public string? Reference5 { get; set; }
} }

View File

@@ -91,7 +91,12 @@ public class UpdateObjectProcedureHandler(IRepository repo, IOptionsMonitor<SqlE
.Add("pRESULT_BODY", request.Result.Body) .Add("pRESULT_BODY", request.Result.Body)
.Add("pRESULT_INFO", request.Result.Info) .Add("pRESULT_INFO", request.Result.Info)
.Add("pRESULT_INFO_DETAIL", request.Result.InfoDetail) .Add("pRESULT_INFO_DETAIL", request.Result.InfoDetail)
.Add("pRESULT_ERROR", request.Result.Error); .Add("pRESULT_ERROR", request.Result.Error)
.Add("pRESULT_REFERENCE1", request.Result.Reference1)
.Add("pRESULT_REFERENCE2", request.Result.Reference2)
.Add("pRESULT_REFERENCE3", request.Result.Reference3)
.Add("pRESULT_REFERENCE4", request.Result.Reference4)
.Add("pRESULT_REFERENCE5", request.Result.Reference5);
try try
{ {

View File

@@ -14,6 +14,11 @@ public record InsertResultCommand : IInsertProcedure
public string? InfoDetail { get; set; } public string? InfoDetail { get; set; }
public string? Error { get; set; } public string? Error { get; set; }
public required ResultType Type { get; set; } public required ResultType Type { get; set; }
public string? Reference1 { get; set; }
public string? Reference2 { get; set; }
public string? Reference3 { get; set; }
public string? Reference4 { get; set; }
public string? Reference5 { get; set; }
} }
public class InsertResultProcedureHandler(ISender sender) : IRequestHandler<InsertResultCommand, long> public class InsertResultProcedureHandler(ISender sender) : IRequestHandler<InsertResultCommand, long>

View File

@@ -33,6 +33,9 @@ public class RecActionView
[Column("PROFILE_TYPE_ID")] [Column("PROFILE_TYPE_ID")]
public ProfileType? ProfileType { get; set; } public ProfileType? ProfileType { get; set; }
[Column("PROFILE_TYPE")]
public string? ProfileTypeName { get; set; }
[Column("SEQUENCE")] [Column("SEQUENCE")]
public byte? Sequence { get; set; } public byte? Sequence { get; set; }

View File

@@ -44,6 +44,9 @@ public class ResultView
[Column("RESULT_BODY")] [Column("RESULT_BODY")]
public string? Body { get; set; } public string? Body { get; set; }
[Column("RESULT_INFO_ID")]
public short? InfoId { get; set; }
[Column("RESULT_INFO")] [Column("RESULT_INFO")]
public string? Info { get; set; } public string? Info { get; set; }
@@ -53,6 +56,21 @@ public class ResultView
[Column("RESULT_ERROR")] [Column("RESULT_ERROR")]
public string? Error { get; set; } public string? Error { get; set; }
[Column("REFERENCE1")]
public string? Reference1 { get; set; }
[Column("REFERENCE2")]
public string? Reference2 { get; set; }
[Column("REFERENCE3")]
public string? Reference3 { get; set; }
[Column("REFERENCE4")]
public string? Reference4 { get; set; }
[Column("REFERENCE5")]
public string? Reference5 { get; set; }
[Column("ADDED_WHO")] [Column("ADDED_WHO")]
public string? AddedWho { get; set; } public string? AddedWho { get; set; }