ปรับปรุงรายงานแบบประเมิน และแก้ไข bug จากผล unit test

This commit is contained in:
Nakorn Rientrakrunchai
2020-08-30 11:16:09 +07:00
parent a049fa6d8b
commit 2df3962e59
10 changed files with 160 additions and 96 deletions

View File

@@ -255,6 +255,15 @@ public class MyHelper
+ (d.Month < 10 ? "0" + d.Month.ToString() : d.Month.ToString()) + "-"
+ (d.Day < 10 ? "0" + d.Day.ToString() : d.Day.ToString());
}
if (propertyInfo.PropertyType.ToString().Contains("Decimal")
|| propertyInfo.PropertyType.ToString().Contains("Double")
|| propertyInfo.PropertyType.ToString().Contains("Float"))
{
if(value != null)
{
value = ((decimal)value).ToString("0.#####");
}
}
parameter += propertyInfo.Name + "=" + value;
}
}