-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathProductActivityVM.cs
50 lines (42 loc) · 1.39 KB
/
ProductActivityVM.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
using Common.Dto;
using Microsoft.AspNetCore.Mvc.Rendering;
using Model.Models;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
namespace Model.ViewModels
{
public class ProductActivityVM : BaseVM
{
public IList<ProductActivity> List { get; set; }
public Product Product { get; set; } = new Product();
public ProductActivityForJson ProductActivityForJson { get; set; } = new ProductActivityForJson();
public IList<Product> Products { get; set; }
public IList<SelectListItem> ActivityTypes { get; set; }
public IList<SelectListItem> WareHouses { get; set; }
public IList<ProductActivityForJson> ProductActivities { get; set; } = new List<ProductActivityForJson>();
public ProductJson ProductJson { get; set; } = new ProductJson();
}
public class ProductActivityForJson : BaseModel
{
[Required]
[Display(Name = "Activity Type")]
public int? ActivityTypeId { get; set; }
public string ActivityType { get; set; }
[Required]
[Display(Name = "WareHouse")]
public int? WareHouseId { get; set; }
public string WareHouse { get; set; }
[Required]
[Display(Name = "Invoice No.")]
public string InvoiceNumber { get; set; }
[Required]
[Display(Name = "Activity Date")]
public DateTime ActivityDate { get; set; }
}
public class ProductJson : BaseModel
{
public int Id { get; set; }
public string ProductName { get; set; }
}
}