Финал
This commit is contained in:
parent
113cd58d30
commit
c8d6fef874
@ -29,7 +29,7 @@ namespace ProjectOpticsSalon.Forms
|
|||||||
comboBoxClient.ValueMember = "Id";
|
comboBoxClient.ValueMember = "Id";
|
||||||
|
|
||||||
ColumnProduct.DataSource = productRepository.ReadProducts();
|
ColumnProduct.DataSource = productRepository.ReadProducts();
|
||||||
ColumnProduct.DisplayMember = "ProductType";
|
ColumnProduct.DisplayMember = "Id";
|
||||||
ColumnProduct.ValueMember = "Id";
|
ColumnProduct.ValueMember = "Id";
|
||||||
|
|
||||||
foreach (var elem in Enum.GetValues(typeof(OrderStatus)))
|
foreach (var elem in Enum.GetValues(typeof(OrderStatus)))
|
||||||
|
@ -32,7 +32,7 @@ namespace ProjectOpticsSalon.Forms
|
|||||||
|
|
||||||
maskedTextBoxComponentsPrice.Text = production.ComponentsPrice.ToString();
|
maskedTextBoxComponentsPrice.Text = production.ComponentsPrice.ToString();
|
||||||
maskedTextBoxWorkPrice.Text = production.WorkPrice.ToString();
|
maskedTextBoxWorkPrice.Text = production.WorkPrice.ToString();
|
||||||
comboBoxProduct.SelectedItem = production.ProductId;
|
comboBoxProduct.SelectedValue = production.ProductId;
|
||||||
|
|
||||||
_productionId = value;
|
_productionId = value;
|
||||||
}
|
}
|
||||||
@ -48,7 +48,7 @@ namespace ProjectOpticsSalon.Forms
|
|||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
_productionRepository = productionRepository ?? throw new ArgumentNullException(nameof(productionRepository));
|
_productionRepository = productionRepository ?? throw new ArgumentNullException(nameof(productionRepository));
|
||||||
comboBoxProduct.DataSource = productRepository.ReadProducts();
|
comboBoxProduct.DataSource = productRepository.ReadProducts();
|
||||||
comboBoxProduct.DisplayMember = "FrameMaterial";
|
comboBoxProduct.DisplayMember = "Id";
|
||||||
comboBoxProduct.ValueMember = "Id";
|
comboBoxProduct.ValueMember = "Id";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user