PIbd-22_Chernyshev_Shabunov.../ComputerShopContracts/ViewModels/RequestViewModel.cs

38 lines
1.0 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using ComputerShopDataModels.Models;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ComputerShopContracts.ViewModels
{
public class RequestViewModel : IRequestModel
{
[DisplayName("Номер")]
public int Id { get; set; }
//!!!ТУТ МБ НЕ НУЖЕН DisplayName
[DisplayName("Номер пользователя")]
public int UserId { get; set; }
//!!!МБ ДОБАВИТЬ НИК ПОЛЬЗОВАТЕЛЯ, СОЗДАВШЕГО ЗАЯВКУ
public int AssemblyId { get; set; }
public Dictionary<int, IOrderModel> RequestOrders { get; set; } = new();
//!!!МБ НЕ НУЖНО DateTime.Now
[DisplayName("Дата оформления")]
public DateTime DateMake { get; set; } = DateTime.Now;
//!!!МБ НЕ НУЖЕН string.Empty
[DisplayName("ФИО клиента")]
public string ClientFIO { get; set; } = string.Empty;
//!!!ЧТО-ТО СДЕЛАТЬ СО СТАТУСОМ (МБ УБРАТЬ ИЗ ER)
}
}