This commit is contained in:
mmrbnjd
2024-08-09 23:20:25 +03:30
parent 3a4eb0a4de
commit 42ce2a29e7
6 changed files with 29 additions and 46 deletions

View File

@@ -127,33 +127,36 @@ else
if (item.eName.ToLower() == "inty")
{
var bill = BillTypes.Where(w => w.ID == Convert.ToInt32(item.Value)).Select(s => s.Title).FirstOrDefault();
if (bill != null)
{
item.Value = bill;
}
<input value="@bill" style="text-align:center;" class="form-control" type="text" placeholder="@item.fName" disabled />
}
else if (item.eName.ToLower() == "inp")
{
var patt = Patterns.Where(w => w.ID == Convert.ToInt32(item.Value)).Select(s => s.Title).FirstOrDefault();
if (patt != null)
{
item.Value = patt;
}
patt=item.Value;
var _patt = Patterns.Where(w => w.ID == Convert.ToInt32(item.Value)).Select(s => s.Title).FirstOrDefault();
<input value="@_patt" style="text-align:center;" class="form-control" type="text" placeholder="@item.fName" disabled />
}
else if (item.eName.ToLower() == "ins")
{
InvoiceType foo = (InvoiceType)Enum.Parse(typeof(InvoiceType), item.Value);
item.Value = foo.GetEnumDisplayName();
<input value="@foo.GetEnumDisplayName()" style="text-align:center;" class="form-control" type="text" placeholder="@item.fName" disabled />
}
else if (item.eName.ToLower() == "tob")
{
CustomerType foo = (CustomerType)Enum.Parse(typeof(CustomerType), item.Value);
item.Value = foo.GetEnumDisplayName();
<input value="@foo.GetEnumDisplayName()" style="text-align:center;" class="form-control" type="text" placeholder="@item.fName" disabled />
}
else
{
<input @bind-value="item.Value" style="text-align:center;" class="form-control" type="text" placeholder="@item.fName" disabled />
}
<input @bind-value="item.Value" style="text-align:center;" class="form-control" type="text" placeholder="@item.fName" disabled />
@@ -244,12 +247,9 @@ else
}
else if (itemB.InputBox == "autofild")
else if (itemB.InputBox == "autofild" || (itemB.eName.ToLower() == "_cfee" && patt != "2"))
{
<input @bind-value="itemB.Value" style="text-align:center;" class="form-control" type="text" placeholder="@itemB.fName" disabled />
}
else
{
@@ -307,6 +307,7 @@ else
@code {
string patt = "";
private List<IdName<int>>? Patterns = new List<IdName<int>>();
private List<IdName<int>>? BillTypes = new List<IdName<int>>();
private Modal modal = default!;