Кажись сделал, хоп хей лалалей
This commit is contained in:
parent
ea70ee1e69
commit
840586d422
@ -200,7 +200,6 @@ namespace BlacksmithWorkshop
|
||||
{
|
||||
MessageBox.Show(ex.Message, "Ошибка", MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
@ -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)]
|
||||
|
@ -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();
|
||||
|
@ -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; }
|
||||
|
Loading…
Reference in New Issue
Block a user