提交代码

This commit is contained in:
2024-08-07 09:33:26 +08:00
parent 6feffba060
commit 9b45d40fa2
5 changed files with 17 additions and 4 deletions
@@ -663,6 +663,19 @@ namespace FineUIPro.Web.common
result = Convert.ToDouble(ndtList.TotalRate);
}
}
else
{
var hjglData = (from x in db.HJGL_FL_Data where x.ProjectId == ProjectId orderby x.CompileDate descending select x).FirstOrDefault();
if (hjglData != null)
{
a = Funs.GetNewDecimalOrZero(hjglData.OneTimeFilmQualifiedAmount);
b = Funs.GetNewDecimalOrZero(hjglData.OneTimeFilmAmount);
if (a > 0 && b > 0)
{
result = Convert.ToDouble(Convert.ToDecimal(100.0) * b / a);
}
}
}
if (b > 0)
{
hjallNumber = b.ToString();