This commit is contained in:
mmrbnjd
2025-01-24 19:18:17 +03:30
parent 505adf6ab2
commit 48072d6e00
14 changed files with 389 additions and 67 deletions

View File

@@ -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)