revert Lab3_Main
This commit is contained in:
PIbd-21_Spasskyi_Artem 2023-05-30 23:54:26 +04:00
parent 7b6d7fdfae
commit a17275a135
3 changed files with 7 additions and 11 deletions

View File

@ -2,25 +2,21 @@
using CarpentryWorkshopContracts.ViewModels;
using CarpentryWorkshopDataModels.Enums;
using CarpentryWorkshopDataModels.Models;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace CarpentryWorkshopDatabaseImplement.Models
{
public class Order : IOrderModel
{
public int Id { get; set; }
[ForeignKey("WoodId")]
public int WoodId { get; set; }
[Required]
public string WoodName { get; set; } = string.Empty;
[Required]
public int Count { get; set; }
[Required]
public double Sum { get; set; }
[Required]
public OrderStatus Status { get; set; }
[Required]
public DateTime DateCreate { get; set; }
public DateTime? DateImplement { get; set; }

View File

@ -97,7 +97,7 @@
this.Controls.Add(this.ButtonAdd);
this.Controls.Add(this.dataGridView);
this.Name = "FormComponents";
this.Text = "Компонент";
this.Text = "Экипировка";
this.Load += new System.EventHandler(this.FormComponents_Load);
((System.ComponentModel.ISupportInitialize)(this.dataGridView)).EndInit();
this.ResumeLayout(false);

View File

@ -43,7 +43,7 @@
this.labelComponent.Name = "labelComponent";
this.labelComponent.Size = new System.Drawing.Size(76, 15);
this.labelComponent.TabIndex = 0;
this.labelComponent.Text = "Компонент:";
this.labelComponent.Text = "Экипировка:";
//
// labelCount
//
@ -102,7 +102,7 @@
this.Controls.Add(this.labelCount);
this.Controls.Add(this.labelComponent);
this.Name = "FormWoodComponent";
this.Text = "компонент набора";
this.Text = "экипировка набора";
this.ResumeLayout(false);
this.PerformLayout();