This commit is contained in:
mmrbnjd
2024-08-09 19:35:50 +03:30
parent 70df7d48b4
commit 3a4eb0a4de
5 changed files with 41 additions and 20 deletions

View File

@@ -1,6 +1,7 @@
@page "/TaxPayerInvoiceItem/{InvoiceID:int}"
@page "/FullInvoiceItem/{InvoiceID:int}"
@using Front.Services
@using Shared
@using Shared.DTOs
@layout PanelLayout
@inject HttpClientController hc;
@@ -130,8 +131,6 @@ else
{
item.Value = bill;
}
<input @bind-value="item.Value" style="text-align:center;" class="form-control" type="text" placeholder="@item.fName" disabled />
}
else if (item.eName.ToLower() == "inp")
{
@@ -140,28 +139,23 @@ else
{
item.Value = patt;
}
<input @bind-value="item.Value" style="text-align:center;" class="form-control" type="text" placeholder="@item.fName" disabled />
}
else if (item.eName.ToLower() == "ins")
{
var patt = Patterns.Where(w => w.ID == Convert.ToInt32(item.Value)).Select(s => s.Title).FirstOrDefault();
if (patt != null)
{
item.Value = patt;
}
<input @bind-value="item.Value" style="text-align:center;" class="form-control" type="text" placeholder="@item.fName" disabled />
InvoiceType foo = (InvoiceType)Enum.Parse(typeof(InvoiceType), item.Value);
item.Value = foo.GetEnumDisplayName();
}
else
else if (item.eName.ToLower() == "tob")
{
CustomerType foo = (CustomerType)Enum.Parse(typeof(CustomerType), item.Value);
item.Value = foo.GetEnumDisplayName();
}
<input @bind-value="item.Value" style="text-align:center;" class="form-control" type="text" placeholder="@item.fName" disabled />
}