...
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
@using System.Reflection
|
||||
@using System.ComponentModel.DataAnnotations
|
||||
@using Shared.DTOs
|
||||
@using Shared.DTOs.Warehouse
|
||||
@typeparam T
|
||||
|
||||
<div class="row">
|
||||
@@ -79,7 +80,26 @@
|
||||
}
|
||||
|
||||
}
|
||||
else if (property.Name.ToLower() == "msgtype" && item.ToString() == "Shared.DTOs.Warehouse.CirculationDto")
|
||||
{
|
||||
var convertmodel = (CirculationDto)Convert.ChangeType(item, typeof(CirculationDto));
|
||||
switch (convertmodel.Type)
|
||||
{
|
||||
case TypeCirculation.Receipt:
|
||||
<td style="background-color:#ffab00">@property.GetValue(item, null)</td>
|
||||
break;
|
||||
|
||||
case TypeCirculation.Remittance:
|
||||
<td style="background-color:#66c732">@property.GetValue(item, null)</td>
|
||||
break;
|
||||
|
||||
|
||||
|
||||
default:
|
||||
<td>@property.GetValue(item, null)</td>
|
||||
break;
|
||||
}
|
||||
}
|
||||
else if (property.Name.ToLower() == "id" && item.ToString() != "Shared.DTOs.SentTaxDto")
|
||||
{
|
||||
if (id > 0)
|
||||
|
Reference in New Issue
Block a user