Upload project.

This commit is contained in:
StevenJW
2020-06-09 21:21:37 +01:00
parent 251cec2dac
commit 15556e92aa
196 changed files with 86759 additions and 0 deletions

View 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; }
}
}

View 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; }
}
}

View 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; }
}
}

View 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 ProductStockDetailsDto
{
public int ProductID { get; set; }
public int Stock { get; set; }
public double Price { get; set; }
}
}

View 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; }
}
}

View File

@@ -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; }
}
}

View 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; }
}
}

View 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);
}
}

View 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; }
}
}

View File

@@ -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; }
}
}

View File

@@ -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; }
}
}

View File

@@ -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; }
}
}

View File

@@ -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; }
}
}