refactor(DocumentReceiverElement): Aktualisiert zur Aufnahme von Common.Entities.DocumentReceiverElement
This commit is contained in:
@@ -12,7 +12,7 @@ Public Class EnvelopeDocumentElement
|
|||||||
Public Property Required As Boolean = False
|
Public Property Required As Boolean = False
|
||||||
Public Property [ReadOnly] As Boolean = False
|
Public Property [ReadOnly] As Boolean = False
|
||||||
Public Property Page As Integer = 1
|
Public Property Page As Integer = 1
|
||||||
Public Property Index As Integer = 0
|
Public Property AnnotationIndex As Integer = 0
|
||||||
|
|
||||||
Public ReadOnly Property Top As Single
|
Public ReadOnly Property Top As Single
|
||||||
Get
|
Get
|
||||||
|
|||||||
@@ -10,10 +10,11 @@ namespace EnvelopeGenerator.Domain.Entities
|
|||||||
[Table("TBSIG_DOCUMENT_RECEIVER_ELEMENT", Schema = "dbo")]
|
[Table("TBSIG_DOCUMENT_RECEIVER_ELEMENT", Schema = "dbo")]
|
||||||
public class DocumentReceiverElement
|
public class DocumentReceiverElement
|
||||||
{
|
{
|
||||||
|
// TODO: * Check the Form App and remove the default value
|
||||||
[Key]
|
[Key]
|
||||||
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||||
[Column("GUID")]
|
[Column("GUID")]
|
||||||
public int Id { get; set; }
|
public int Id { get; set; } = -1;
|
||||||
|
|
||||||
[Required]
|
[Required]
|
||||||
[Column("DOCUMENT_ID")]
|
[Column("DOCUMENT_ID")]
|
||||||
@@ -53,23 +54,26 @@ namespace EnvelopeGenerator.Domain.Entities
|
|||||||
[DefaultValue(1)]
|
[DefaultValue(1)]
|
||||||
public int Page { get; set; }
|
public int Page { get; set; }
|
||||||
|
|
||||||
|
// TODO: * Check the Form App and remove the default value
|
||||||
[Required]
|
[Required]
|
||||||
[Column("REQUIRED")]
|
[Column("REQUIRED")]
|
||||||
[DefaultValue(false)]
|
[DefaultValue(false)]
|
||||||
public bool Required { get; set; }
|
public bool Required { get; set; } = false;
|
||||||
|
|
||||||
[Column("TOOLTIP")]
|
[Column("TOOLTIP")]
|
||||||
public string Tooltip { get; set; }
|
public string Tooltip { get; set; }
|
||||||
|
|
||||||
|
// TODO: * Check the Form App and remove the default value
|
||||||
[Required]
|
[Required]
|
||||||
[Column("READ_ONLY")]
|
[Column("READ_ONLY")]
|
||||||
[DefaultValue(false)]
|
[DefaultValue(false)]
|
||||||
public bool ReadOnly { get; set; }
|
public bool ReadOnly { get; set; } = false;
|
||||||
|
|
||||||
|
// TODO: * Check the Form App and remove the default value
|
||||||
[Required]
|
[Required]
|
||||||
[Column("ANNOTATION_INDEX")]
|
[Column("ANNOTATION_INDEX")]
|
||||||
[DefaultValue(0)]
|
[DefaultValue(0)]
|
||||||
public int AnnotationIndex { get; set; }
|
public int AnnotationIndex { get; set; } = 0;
|
||||||
|
|
||||||
[Required]
|
[Required]
|
||||||
[Column("ADDED_WHEN", TypeName = "datetime")]
|
[Column("ADDED_WHEN", TypeName = "datetime")]
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ namespace EnvelopeGenerator.Web.Controllers.Test
|
|||||||
[HttpGet]
|
[HttpGet]
|
||||||
public IActionResult Index()
|
public IActionResult Index()
|
||||||
{
|
{
|
||||||
return View("Index");
|
return View("AnnotationIndex");
|
||||||
}
|
}
|
||||||
|
|
||||||
[HttpPost]
|
[HttpPost]
|
||||||
@@ -32,13 +32,13 @@ namespace EnvelopeGenerator.Web.Controllers.Test
|
|||||||
if (passwordFromConfig == null)
|
if (passwordFromConfig == null)
|
||||||
{
|
{
|
||||||
ViewData["error"] = "No admin password configured!";
|
ViewData["error"] = "No admin password configured!";
|
||||||
return View("Index");
|
return View("AnnotationIndex");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (password != passwordFromConfig)
|
if (password != passwordFromConfig)
|
||||||
{
|
{
|
||||||
ViewData["error"] = "Wrong Password!";
|
ViewData["error"] = "Wrong Password!";
|
||||||
return View("Index");
|
return View("AnnotationIndex");
|
||||||
}
|
}
|
||||||
|
|
||||||
List<Envelope> envelopes = envelopeOldService.LoadEnvelopes();
|
List<Envelope> envelopes = envelopeOldService.LoadEnvelopes();
|
||||||
@@ -49,7 +49,7 @@ namespace EnvelopeGenerator.Web.Controllers.Test
|
|||||||
{
|
{
|
||||||
_logger.LogError(ex, "Unexpected error");
|
_logger.LogError(ex, "Unexpected error");
|
||||||
ViewData["error"] = "Unknown error!";
|
ViewData["error"] = "Unknown error!";
|
||||||
return View("Index");
|
return View("AnnotationIndex");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user