Files
2023-06-27 16:55:58 +02:00

94 lines
2.6 KiB
C#

using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
// <Auto-Generated>
// This is here so CodeMaid doesn't reorganize this document
// </Auto-Generated>
namespace WebDoorCreator.Data.DbModels
{
/// <summary>
/// View to retrieve data from multiple tables
/// </summary>
public class OrderStatusViewModel
{
/// <summary>
/// OrderId from Order table
/// </summary>
[Key]
public int OrderId { get; set; } = 0;
/// <summary>
/// CompanyId from Order table
/// </summary>
public int CompanyId { get; set; } = 0;
/// <summary>
/// OrderExtCode from Order table
/// </summary>
public string OrderExtCode { get; set; } = "";
/// <summary>
/// DateIns from Order table
/// </summary>
public DateTime DateIns { get; set; }
/// <summary>
/// UserIdIns from Order table
/// </summary>
public string UserIdIns { get; set; } = "";
/// <summary>
/// UserIdMod from Order table
/// </summary>
public string UserIdMod { get; set; } = "";
/// <summary>
/// OrderStatus from Order table
/// </summary>
public int OrderStatus { get; set; } = 0;
/// <summary>
/// OrderDescript from Order table
/// </summary>
public string OrderDescript { get; set; } = "";
/// <summary>
/// NumType sums all the different types of doors in the order
/// </summary>
public int NumType { get; set; } = 0;
/// <summary>
/// NumDoors sums all the different doors in the order
/// </summary>
public int NumDoors { get; set; } = 0;
/// <summary>
/// TotCost represent the total cost of the order
/// </summary>
public decimal TotCost { get; set; } = 0;
/// <summary>
/// Expected order delivery from DCA
/// </summary>
public DateTime DateProm { get; set; } = DateTime.Now.AddDays(60);
/// <summary>
/// Date Order confirmed by customer from Order table
/// </summary>
public DateTime DateOrd { get; set; }
/// <summary>
/// Effective order delivery date
/// </summary>
public DateTime DateDelivery { get; set; }
/// <summary>
/// Eventuale sconto globale
/// </summary>
public double Discount { get; set; } = 0;
}
}