Napol
This commit is contained in:
47
EveryThing/Models/CodeTable/CodeTablePrePostTextLink.cs
Normal file
47
EveryThing/Models/CodeTable/CodeTablePrePostTextLink.cs
Normal file
@@ -0,0 +1,47 @@
|
||||
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; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user