|
@@ -98,7 +98,7 @@ namespace UniformMaterialManagementSystem.Views
|
|
|
sum += qty;
|
|
|
}
|
|
|
|
|
|
- InspQuantityText.Text = sum.ToString();
|
|
|
+ InspQuantityText.Text = Math.Round(sum,1).ToString();
|
|
|
TotalPackageText.Text = DataGridDetail.Items.Count.ToString();
|
|
|
|
|
|
string result = InspectApplyUtil.ReplaceApplyDescription(ApplyDescriptionTextBox.Text, "InspQuantity", "[" + InspQuantityText.Text + (MaterialComboBox.SelectedItem as Material)?.MeasureUnit + "]");
|
|
@@ -176,7 +176,7 @@ namespace UniformMaterialManagementSystem.Views
|
|
|
|
|
|
private void AddButton_Click(object sender, RoutedEventArgs e)
|
|
|
{
|
|
|
- DataGridDetail.CommitEdit(DataGridEditingUnit.Cell, true);
|
|
|
+ DataGridDetail.CommitEdit(DataGridEditingUnit.Row, true);
|
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
@@ -198,5 +198,10 @@ namespace UniformMaterialManagementSystem.Views
|
|
|
}
|
|
|
|
|
|
}
|
|
|
+
|
|
|
+ private void Button_Click(object sender, RoutedEventArgs e)
|
|
|
+ {
|
|
|
+ DataGridDetail.CommitEdit();
|
|
|
+ }
|
|
|
}
|
|
|
}
|