demo20230512/Models/LCA/FabSurveyForm/Transport.cs
2023-05-12 10:20:28 +08:00

44 lines
1.3 KiB
C#

using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Runtime.Serialization;
using System.Web;
using Weee.Models.Paramemter;
using Weee.Models.Survey_form_metadata;
namespace Weee.Models
{
#region Transport
[Table("ProductLCAFabSurveyForm_Transports")]
public class Transport : SheetData
{
public int ID { get; set; }
public DateTime TransportDate { get; set; }
public string JourneyNO { get; set; }
public string StartLocation { get; set; }
public string EndLocation { get; set; }
public decimal TransportDistance { get; set; }
public decimal TransportQuantity { get; set; }
public decimal TransportWeight { get; set; }
public decimal Scalar { get; set; }
public decimal KgCO2e { get; set; }
public DQI DQI { get; set; }
public string Description { get; set; }
public int? ParameterID { get; set; }
[ForeignKey("ParameterID")]
[JsonIgnore]
[IgnoreDataMember]
public virtual NonYearlyParameter Parameter { get; set; }
public int LCAID { get; set; }
[ForeignKey("LCAID")]
[JsonIgnore]
[IgnoreDataMember]
public virtual ProductLCA OwnerLCA { get; set; }
}
#endregion
}