48 lines
1.2 KiB
C#
48 lines
1.2 KiB
C#
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace EveryThing.Models.CodeTable
|
|
{
|
|
public class CodeTablePrePostTextLink
|
|
{
|
|
public enum TypeEnum
|
|
{
|
|
[Display(Name = "Uvodni")]
|
|
PreText = 1,
|
|
[Display(Name = "Zaključni")]
|
|
PostText = 2
|
|
}
|
|
|
|
public enum LinkEnum
|
|
{
|
|
[Display(Name = "Nalog za naklad")]
|
|
TransportLoadingOrder = 1,
|
|
[Display(Name = "Fakturiranje računi")]
|
|
InvoicesBills = 2,
|
|
[Display(Name = "Fakturiranje naročila dobaviteljem")]
|
|
InvoicesSuppliersOrders = 3,
|
|
[Display(Name = "Fakturiranje naročila kupcev")]
|
|
InvoicesBuyersOrders = 4
|
|
}
|
|
|
|
[Key]
|
|
public int IdPrePostTextLink { get; set; }
|
|
|
|
[Required]
|
|
[ForeignKey("CodeTablePrePostText")]
|
|
public int IdPrePostTextFk { get; set; }
|
|
|
|
[Required]
|
|
[Display(Name = "Vrsta")]
|
|
public TypeEnum Type { get; set; }
|
|
|
|
[Required]
|
|
[Display(Name = "Veza")]
|
|
public LinkEnum Link { get; set; }
|
|
|
|
|
|
// ForeingKey
|
|
public CodeTablePrePostText CodeTablePrePostText { get; set; }
|
|
}
|
|
}
|