работает

This commit is contained in:
ityurner02@mail.ru 2023-04-28 21:47:01 +04:00
parent a150273330
commit f19965f37b
4 changed files with 4 additions and 4 deletions

View File

@ -45,7 +45,7 @@ namespace PlumbingRepair
Id = _id ?? 0, Id = _id ?? 0,
StoreName = NameTextBox.Text, StoreName = NameTextBox.Text,
StoreAdress = AdressTextBox.Text, StoreAdress = AdressTextBox.Text,
OpeningDate = OpeningDatePicker.Value.Date, OpeningDate = DateTime.SpecifyKind(OpeningDatePicker.Value.Date, DateTimeKind.Utc),
WorkMaxCount = (int)VolumeNumericUpDown.Value, WorkMaxCount = (int)VolumeNumericUpDown.Value,
StoreWorks = _listStores StoreWorks = _listStores
}; };

View File

@ -7,7 +7,7 @@ namespace PlumbingRepairContracts.BindingModels
public string StoreName { get; set; } = string.Empty; public string StoreName { get; set; } = string.Empty;
public string StoreAdress { get; set; } = string.Empty; public string StoreAdress { get; set; } = string.Empty;
public DateTime OpeningDate { get; set; } = DateTime.SpecifyKind(DateTime.Now, DateTimeKind.Utc); public DateTime OpeningDate { get; set; }
public Dictionary<int, (IWorkModel, int)> StoreWorks { get; set; } = new(); public Dictionary<int, (IWorkModel, int)> StoreWorks { get; set; } = new();

View File

@ -13,7 +13,7 @@ namespace PlumbingRepairContracts.ViewModels
[DisplayName("Адрес магазина")] [DisplayName("Адрес магазина")]
public string StoreAdress { get; set; } = string.Empty; public string StoreAdress { get; set; } = string.Empty;
[DisplayName("Дата открытия")] [DisplayName("Дата открытия")]
public DateTime OpeningDate { get; set; } = DateTime.Now; public DateTime OpeningDate { get; set; }
[DisplayName("Вместимость магазина")] [DisplayName("Вместимость магазина")]
public int WorkMaxCount { get; set; } public int WorkMaxCount { get; set; }
} }