diff --git a/插件库/Lskj.ProductSched/FrmProductSched.cs b/插件库/Lskj.ProductSched/FrmProductSched.cs index 0bb6066..4a85337 100644 --- a/插件库/Lskj.ProductSched/FrmProductSched.cs +++ b/插件库/Lskj.ProductSched/FrmProductSched.cs @@ -838,7 +838,7 @@ namespace Lskj.ProductiSched string colName = dayValue.ToString("yyyy-MM-dd"); if (dayValue >= startDate && dayValue <= endDate && dataMain.Columns.Contains(colName)) { - Decimal.TryParse(dayRow["amount"] + "", out decimal amountValue); + decimal.TryParse(dayRow["amount"] + "", out decimal amountValue); dataMap[key][colName] = amountValue; } } @@ -909,7 +909,8 @@ namespace Lskj.ProductiSched string colName = dayValue.ToString("yyyy-MM-dd"); if (dayValue >= startDate && dayValue <= endDate && focusedRow.Table.Columns.Contains(colName)) { - dataMap[key][colName] = Convert.ToDecimal(dayRow["amount"]); + decimal.TryParse(dayRow["amount"] + "", out decimal amountValue); + dataMap[key][colName] = amountValue; } } }