48 lines
1.3 KiB
C#
48 lines
1.3 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Core.DTO
|
|
{
|
|
|
|
// <Auto-Generated>
|
|
// This is here so CodeMaid doesn't reorganize this document
|
|
// </Auto-Generated>
|
|
public class ReleaseReqDTO : AuthDataDTO
|
|
{
|
|
/// <summary>
|
|
/// CodApp Richiesta
|
|
/// </summary>
|
|
public string CodApp { get; set; } = "";
|
|
|
|
/// <summary>
|
|
/// Versione minima richiesta
|
|
/// </summary>
|
|
public string VersMin { get; set; } = "";
|
|
|
|
/// <summary>
|
|
/// Versione MAX richiesta
|
|
/// </summary>
|
|
public string VersMax { get; set; } = "";
|
|
|
|
/// <summary>
|
|
/// Numero di Impieghi attivi (es num di IOB relativi)
|
|
/// </summary>
|
|
public int NumImp { get; set; } = 1;
|
|
|
|
/// <summary>
|
|
/// Verifica complessiva validità richiesta:
|
|
/// CodApp presente
|
|
/// - MainKey oppure CodImp + AppKey presenti
|
|
/// </summary>
|
|
[NotMapped]
|
|
public override bool IsValid
|
|
{
|
|
get => !string.IsNullOrEmpty(CodApp) && (!string.IsNullOrEmpty(MastKey) || (!string.IsNullOrEmpty(CodImp) && !string.IsNullOrEmpty(AppKey)));
|
|
}
|
|
}
|
|
}
|