Upload project.
This commit is contained in:
14
ThAmCo-Stock/ThAmCo.Stock/Models/Dto/ProductDto.cs
Normal file
14
ThAmCo-Stock/ThAmCo.Stock/Models/Dto/ProductDto.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ThAmCo.Stock.Models.Dto
|
||||
{
|
||||
public class ProductDto
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string Name { get; set; }
|
||||
public string Description { get; set; }
|
||||
}
|
||||
}
|
||||
17
ThAmCo-Stock/ThAmCo.Stock/Models/Dto/ProductOrderDto.cs
Normal file
17
ThAmCo-Stock/ThAmCo.Stock/Models/Dto/ProductOrderDto.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using System;
|
||||
|
||||
namespace ThAmCo.Stock.Models.Dto
|
||||
{
|
||||
public class ProductOrderDto
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string AccountName { get; set; }
|
||||
public string CardNumber { get; set; }
|
||||
public int ProductId { get; set; }
|
||||
public int Quantity { get; set; }
|
||||
public DateTime? When { get; set; }
|
||||
public string ProductName { get; set; }
|
||||
public string ProductEan { get; set; }
|
||||
public double TotalPrice { get; set; }
|
||||
}
|
||||
}
|
||||
10
ThAmCo-Stock/ThAmCo.Stock/Models/Dto/ProductOrderPostDto.cs
Normal file
10
ThAmCo-Stock/ThAmCo.Stock/Models/Dto/ProductOrderPostDto.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
namespace ThAmCo.Stock.Models.Dto
|
||||
{
|
||||
public class ProductOrderPostDto
|
||||
{
|
||||
public string AccountName { get; set; }
|
||||
public string CardNumber { get; set; }
|
||||
public int ProductId { get; set; }
|
||||
public int Quantity { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ThAmCo.Stock.Models.Dto
|
||||
{
|
||||
public class ProductStockDetailsDto
|
||||
{
|
||||
public int ProductID { get; set; }
|
||||
public int Stock { get; set; }
|
||||
public double Price { get; set; }
|
||||
}
|
||||
}
|
||||
10
ThAmCo-Stock/ThAmCo.Stock/Models/Dto/ProductStockDto.cs
Normal file
10
ThAmCo-Stock/ThAmCo.Stock/Models/Dto/ProductStockDto.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
using ThAmCo.Stock.Data;
|
||||
|
||||
namespace ThAmCo.Stock.Models.Dto
|
||||
{
|
||||
public class ProductStockDto
|
||||
{
|
||||
public ProductStock ProductStock { get; set; }
|
||||
public Price Price { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using ThAmCo.Stock.Data;
|
||||
|
||||
namespace ThAmCo.Stock.Models.Dto
|
||||
{
|
||||
public class ProductStockPricingHistoryDto
|
||||
{
|
||||
public int ProductID { get; set; }
|
||||
public int Stock { get; set; }
|
||||
public List<Price> Prices { get; set; }
|
||||
}
|
||||
}
|
||||
19
ThAmCo-Stock/ThAmCo.Stock/Models/Dto/VendorProductDto.cs
Normal file
19
ThAmCo-Stock/ThAmCo.Stock/Models/Dto/VendorProductDto.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using System;
|
||||
|
||||
namespace ThAmCo.Stock.Models.Dto
|
||||
{
|
||||
public class VendorProductDto
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string Ean { get; set; }
|
||||
public int CategoryId { get; set; }
|
||||
public string CategoryName { get; set; }
|
||||
public int BrandId { get; set; }
|
||||
public string BrandName { get; set; }
|
||||
public string Name { get; set; }
|
||||
public string Description { get; set; }
|
||||
public double Price { get; set; }
|
||||
public bool InStock { get; set; }
|
||||
public DateTime? ExpectedRestock { get; set; }
|
||||
}
|
||||
}
|
||||
11
ThAmCo-Stock/ThAmCo.Stock/Models/ErrorViewModel.cs
Normal file
11
ThAmCo-Stock/ThAmCo.Stock/Models/ErrorViewModel.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
using System;
|
||||
|
||||
namespace ThAmCo.Stock.Models
|
||||
{
|
||||
public class ErrorViewModel
|
||||
{
|
||||
public string RequestId { get; set; }
|
||||
|
||||
public bool ShowRequestId => !string.IsNullOrEmpty(RequestId);
|
||||
}
|
||||
}
|
||||
13
ThAmCo-Stock/ThAmCo.Stock/Models/LoginModel.cs
Normal file
13
ThAmCo-Stock/ThAmCo.Stock/Models/LoginModel.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ThAmCo.Stock.Models
|
||||
{
|
||||
public class LoginModel
|
||||
{
|
||||
public string Email { get; set; }
|
||||
public string Password { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
namespace ThAmCo.Stock.Models.ViewModel
|
||||
{
|
||||
public class AdjustCostViewModel
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public double Cost { get; set; }
|
||||
public string Name { get; set; }
|
||||
public string Description { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
namespace ThAmCo.Stock.Models.ViewModel
|
||||
{
|
||||
public class OrderRequestModel
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string Name { get; set; }
|
||||
public string Description { get; set; }
|
||||
public string Supplier { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
namespace ThAmCo.Stock.Models.ViewModel
|
||||
{
|
||||
public class OrderRequestReviewModel
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string Name { get; set; }
|
||||
public string Description { get; set; }
|
||||
public int Quantity { get; set; }
|
||||
public double Price { get; set; }
|
||||
public string Supplier { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
using System.Collections.Generic;
|
||||
using ThAmCo.Stock.Models.Dto;
|
||||
|
||||
namespace ThAmCo.Stock.Models.ViewModel
|
||||
{
|
||||
public class VendorProductIndexModel
|
||||
{
|
||||
public IEnumerable<VendorProductDto> Products { get; set; }
|
||||
public string Name { get; set; }
|
||||
public string Description { get; set; }
|
||||
public string Vendor { get; set; }
|
||||
public int? BrandId { get; set; }
|
||||
public int? CategoryId { get; set; }
|
||||
public double? PriceLow { get; set; }
|
||||
public double? PriceHigh { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user