работает
This commit is contained in:
parent
a150273330
commit
f19965f37b
@ -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
|
||||||
};
|
};
|
||||||
|
@ -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();
|
||||||
|
|
||||||
|
@ -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; }
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user