обновки до дев #16

Merged
mfnefd merged 23 commits from registration into dev 2024-06-22 19:03:01 +04:00
10 changed files with 157 additions and 0 deletions
Showing only changes of commit 147ed7ad07 - Show all commits

View File

@ -0,0 +1,17 @@
using Contracts.BindingModels;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Contracts.BusinessLogicContracts
{
public interface IProductLogic
{
bool Create(ProductBindingModel model);
bool Update(ProductBindingModel model);
bool Delete(ProductBindingModel model);
}
}

View File

@ -0,0 +1,14 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Contracts.SearchModels
{
public class MediaFileSearchModel
{
public Guid? Id { get; set; }
public Guid? ProductId { get; set; }
}
}

View File

@ -0,0 +1,16 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Contracts.SearchModels
{
public class SupplierSearchModel
{
public Guid? Id { get; set; }
public string? Name { get; set; }
public List<ProductSearchModel>? AvailibleProducts { get; set; }
public int? Deals { get; set; }
}
}

View File

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Contracts.SearchModels
{
public class SupplyDocSearchModel
{
public Guid? Id { get; set; }
public string? Name { get; set; }
public Guid? SupplyId { get; set; }
}
}

View File

@ -0,0 +1,16 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Contracts.SearchModels
{
public class SupplySearchModel
{
public Guid? Id { get; set; }
public List<ProductSearchModel>? Products { get; set; }
public DateTime? DateStart { get; set; }
public DateTime? DateEnd { get; set; }
}
}

View File

@ -0,0 +1,14 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Contracts.ViewModels
{
public class MediaFileViewModel
{
public Guid Id { get; set; }
public string Location { get; set; } = string.Empty;
}
}

View File

@ -0,0 +1,17 @@
using DataModels.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Contracts.ViewModels
{
public class ProductViewModel
{
public Guid Id { get; set; }
public string Name { get; set; } = string.Empty;
public int Price { get; set; }
public List<MediaFileViewModel> MediaFiles { get; set; } = new();
}
}

View File

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Contracts.ViewModels
{
public class SupplierViewModel
{
public Guid Id { get; set; }
public string Name { get; set; } = string.Empty;
public Dictionary<string, int> AvailibleProducts = new();
}
}

View File

@ -0,0 +1,14 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Contracts.ViewModels
{
public class SupplyDocViewModel
{
public Guid Id { get; set; }
public string Name { get; set; } = string.Empty;
}
}

View File

@ -0,0 +1,19 @@
using DataModels.Enums;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Contracts.ViewModels
{
public class SupplyViewModel
{
public Guid Id { get; set; }
public string SupplierName { get; set; } = string.Empty;
public double Price { get; set; }
public Dictionary<Guid, string> Products { get; set; } = new();
public DateTime Date { get; set; }
public SupplyStatus Status { get; set; }
}
}