Кажись сделал, хоп хей лалалей

This commit is contained in:
Programmist73 2023-04-30 12:56:03 +04:00
parent ea70ee1e69
commit 840586d422
4 changed files with 2 additions and 15 deletions

View File

@ -200,7 +200,6 @@ namespace BlacksmithWorkshop
{
MessageBox.Show(ex.Message, "Ошибка", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
}
}

View File

@ -15,7 +15,7 @@ namespace BlacksmithWorkshopContracts.ViewModels
[Column(visible: false)]
public int Id { get; set; }
[Column(title: "Навание изделия", width: 150)]
[Column(title: "Навание изделия", gridViewAutoSize: GridViewAutoSize.Fill, isUseAutoSize: true)]
public string ManufactureName { get; set; } = string.Empty;
[Column(title: "Цена", width: 150)]

View File

@ -11,19 +11,15 @@ namespace BlacksmithWorkshopDatabaseImplement.Models
[DataContract]
public class ManufactureWorkPiece
{
[DataMember]
public int Id { get; set; }
[Required]
[DataMember]
public int ManufactureId { get; set; }
[Required]
[DataMember]
public int WorkPieceId { get; set; }
[Required]
[DataMember]
public int Count { get; set; }
public virtual WorkPiece WorkPiece { get; set; } = new();

View File

@ -14,7 +14,7 @@ namespace BlacksmithWorkshopDatabaseImplement.Models
[DataContract]
public class MessageInfo : IMessageInfoModel
{
public int Id { get; set; }
public int Id => throw new NotImplementedException();
[Key]
[DataMember]
@ -22,20 +22,12 @@ namespace BlacksmithWorkshopDatabaseImplement.Models
public int? ClientId { get; set; }
[Required]
[DataMember]
public string SenderName { get; set; } = string.Empty;
[Required]
[DataMember]
public DateTime DateDelivery { get; set; } = DateTime.Now;
[Required]
[DataMember]
public string Subject { get; set; } = string.Empty;
[Required]
[DataMember]
public string Body { get; set; } = string.Empty;
public virtual Client? Client { get; set; }