Box modifications

This commit is contained in:
2016-10-18 11:10:01 -04:00
parent 3caf0bd766
commit fdc34c4ef7
109 changed files with 11033 additions and 2442 deletions
@@ -7,16 +7,19 @@ namespace InventoryTraker.Web.Models
{
public class TransactionViewModel
{
[Required]
public int Id { get; set; }
public int InventoryId { get; set; }
public string Name { get; set; }
public int UnitsPerCase { get; set; }
public string ContainerType { get; set; }
public DateTime ExpirationDate { get; set; }
public string InventoryId { get; set; }
public string ProgramName { get; set; }
public string ProgramSubtype { get; set; }
public string Description { get; set; }
public DateTime ShredReadyDate { get; set; }
public DateTime AddedDate { get; set; }
public double WeightPerCase { get; set; }
public string TransactionType { get; set; }
@@ -32,8 +35,6 @@ namespace InventoryTraker.Web.Models
public string Memo { get; set; }
public string Destination { get; set; }
public DateTime Timestamp { get; set; }
public class AutoMapperProfile : Profile
@@ -43,18 +44,16 @@ namespace InventoryTraker.Web.Models
CreateMap<Transaction, TransactionViewModel>()
.ForMember(d => d.InventoryId,
opt => opt.MapFrom(s => s.Inventory.Id))
.ForMember(d => d.Name,
opt => opt.MapFrom(s => s.Inventory.InventoryType.Name))
.ForMember(d => d.ExpirationDate,
opt => opt.MapFrom(s => s.Inventory.ExpirationDate))
.ForMember(d => d.ProgramName,
opt => opt.MapFrom(s => s.Inventory.ProgramName))
.ForMember(d => d.ProgramSubtype,
opt => opt.MapFrom(s => s.Inventory.ProgramSubtype))
.ForMember(d => d.Description,
opt => opt.MapFrom(s => s.Inventory.Description))
.ForMember(d => d.ShredReadyDate,
opt => opt.MapFrom(s => s.Inventory.ShredReadyDate))
.ForMember(d => d.AddedDate,
opt => opt.MapFrom(s => s.Inventory.AddedDate))
.ForMember(d => d.UnitsPerCase,
opt => opt.MapFrom(s => s.Inventory.InventoryType.UnitsPerCase))
.ForMember(d => d.ContainerType,
opt => opt.MapFrom(s => s.Inventory.InventoryType.ContainerType))
.ForMember(d => d.WeightPerCase,
opt => opt.MapFrom(s => s.Inventory.InventoryType.WeightPerCase))
.ForMember(d => d.TransactionType,
opt => opt.MapFrom(s => s.TransactionType.ToString()))
.ForMember(d => d.PreviousQuantity,