Tasks 184281, 184799, 184800, 184801 and 184802
Align .editorconfig files Move Controller logic to DMO classes GlobalVars.AppSettings = Models.AppSettings.GetFromConfigurationManager(); Question EditorConfig Project level editorconfig Format White Spaces AppSetting when EnvironmentVariable not set Corrective Actions Tests Schedule Actions Tests DMO Tests Controller Tests Get ready to use VSCode IDE
This commit is contained in:
@ -1,68 +1,56 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
|
||||
namespace Fab2ApprovalSystem.Models
|
||||
{
|
||||
public class ProductViewModel
|
||||
{
|
||||
[ScaffoldColumn(false)]
|
||||
public int ProductID
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
namespace Fab2ApprovalSystem.Models;
|
||||
|
||||
[Required]
|
||||
[DisplayName("Product name")]
|
||||
public string ProductName
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
public class ProductViewModel {
|
||||
[ScaffoldColumn(false)]
|
||||
public int ProductID {
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
[Required]
|
||||
[DisplayName("Unit price")]
|
||||
[DataType(DataType.Currency)]
|
||||
[Range(0, int.MaxValue)]
|
||||
public decimal UnitPrice
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
[Required]
|
||||
[DisplayName("Product name")]
|
||||
public string ProductName {
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
[Required]
|
||||
[DisplayName("Units in stock")]
|
||||
[DataType("Integer")]
|
||||
[Range(0, int.MaxValue)]
|
||||
public int UnitsInStock
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
[Required]
|
||||
[DisplayName("Unit price")]
|
||||
[DataType(DataType.Currency)]
|
||||
[Range(0, int.MaxValue)]
|
||||
public decimal UnitPrice {
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
public bool Discontinued
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
[Required]
|
||||
[DisplayName("Units in stock")]
|
||||
[DataType("Integer")]
|
||||
[Range(0, int.MaxValue)]
|
||||
public int UnitsInStock {
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
[DisplayName("Last supply")]
|
||||
[DataType(DataType.Date)]
|
||||
public DateTime LastSupply
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
public bool Discontinued {
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
[DataType("Integer")]
|
||||
public int UnitsOnOrder
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
[DisplayName("Last supply")]
|
||||
[DataType(DataType.Date)]
|
||||
public DateTime LastSupply {
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
[DataType("Integer")]
|
||||
public int UnitsOnOrder {
|
||||
get;
|
||||
set;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user