目标重量换算问题修复

This commit is contained in:
sc committed 2024-04-18 15:30:34 +08:00
commit 6471eec033
1 file changed
+7 -5
+7 -5
View File
@@ -693,11 +693,11 @@ namespace formula_manage
Name_ = r[0].ItemArray[1].ToString();
Type_ = r[0].ItemArray[2].ToString();
Conc_ = r[0].ItemArray[3].ToString();
if (double.TryParse(list_Weight.Text, out ang))
{
Weight_ = double.Parse(list_Weight.Text) * double.Parse(Conc_) / 100;
}
Conc_ = (double.Parse(Conc_)/100).ToString();
// if (double.TryParse(list_Weight.Text, out ang))
// {
// Weight_ = double.Parse(list_Weight.Text) * double.Parse(Conc_) / 100;
// }
if ((Type_ == "0") || (Type_ == "3"))
{
@@ -860,6 +860,7 @@ namespace formula_manage
Name_ = r[0].ItemArray[1].ToString();
Type_ = r[0].ItemArray[2].ToString();
Conc_ = r[0].ItemArray[3].ToString();
Conc_ = (double.Parse(Conc_)/100).ToString();
if (double.TryParse(list_Weight.Text, out ang))
{
@@ -927,6 +928,7 @@ namespace formula_manage
Code_ = r[0].ItemArray[0].ToString();
Type_ = r[0].ItemArray[2].ToString();
Conc_ = r[0].ItemArray[3].ToString();
Conc_ = (double.Parse(Conc_) / 100).ToString();
if (double.TryParse(list_Weight.Text, out ang))
{