...
This commit is contained in:
@@ -44,12 +44,42 @@
|
||||
|
||||
if (property.CustomAttributes.Any(w => w.AttributeType.Name == "DisplayAttribute"))
|
||||
{
|
||||
if (property.PropertyType == typeof(Nullable<System.Decimal>) || property.PropertyType == typeof(System.Decimal))
|
||||
|
||||
if (property.PropertyType == typeof(Nullable<System.Decimal>)
|
||||
|| property.PropertyType == typeof(System.Decimal) && item.ToString() != "Shared.DTOs.Warehouse.CirculationDto")
|
||||
{
|
||||
<td>
|
||||
@decimal.Parse(property.GetValue(item, null).ToString()).ToString("N0") ريال
|
||||
</td>
|
||||
}
|
||||
else if (property.PropertyType == typeof(Nullable<System.Boolean>)
|
||||
|| property.PropertyType == typeof(System.Boolean))
|
||||
{
|
||||
var res = property.GetValue(item, null);
|
||||
if (res == null)
|
||||
{
|
||||
<td>
|
||||
...
|
||||
</td>
|
||||
}
|
||||
else
|
||||
{
|
||||
if (res.ToString().ToLower()=="true")
|
||||
{
|
||||
<td>
|
||||
دارد
|
||||
</td>
|
||||
}
|
||||
else
|
||||
{
|
||||
<td>
|
||||
ندارد
|
||||
</td>
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
else if (property.Name.ToLower() == "id" && item.ToString() != "Shared.DTOs.SentTaxDto")
|
||||
{
|
||||
if (id > 0)
|
||||
|
Reference in New Issue
Block a user