2023-05-02 14:50:43 +04:00
|
|
|
|
using JewelryStoreContracts.Attributes;
|
|
|
|
|
using JewelryStoreDataModels.Models;
|
2023-02-05 18:55:08 +04:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.ComponentModel;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace JewelryStoreContracts.ViewModels
|
|
|
|
|
{
|
|
|
|
|
public class ComponentViewModel : IComponentModel
|
|
|
|
|
{
|
2023-05-02 14:50:43 +04:00
|
|
|
|
[Column(visible: false)]
|
|
|
|
|
public int Id { get; set; }
|
|
|
|
|
[Column("Название компонента", gridViewAutoSize: GridViewAutoSize.Fill, isUseAutoSize: true)]
|
|
|
|
|
public string ComponentName { get; set; } = string.Empty;
|
|
|
|
|
[Column("Цена", width: 80)]
|
|
|
|
|
public double Cost { get; set; }
|
2023-02-05 18:55:08 +04:00
|
|
|
|
}
|
|
|
|
|
}
|