a5fcb46e04
Transaction updates
28 lines
662 B
C#
28 lines
662 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace InventoryTraker.Web.Models
|
|
{
|
|
public class InventoryQuantityForm
|
|
{
|
|
[Required]
|
|
public int InventoryId { get; set; }
|
|
|
|
[Required, Range(1, int.MaxValue, ErrorMessage = "Quantity must be greater than 0")]
|
|
public int Quantity { get; set; }
|
|
}
|
|
|
|
public class InventoryDistributeForm
|
|
{
|
|
public IList<InventoryQuantityForm> InventoryQuantities { get; set; }
|
|
|
|
[Required]
|
|
public string Destination { get; set; }
|
|
|
|
[Required, Display(Name = "Distributed Date")]
|
|
public DateTime DistributedDate { get; set; }
|
|
|
|
public string Memo { get; set; }
|
|
}
|
|
} |