ปรับปรุงรายงานแบบประเมิน และแก้ไข bug จากผล unit test
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user