This commit is contained in:
mmrbnjd
2024-07-22 16:19:42 +03:30
parent a914057557
commit 861acf8bab

View File

@@ -72,16 +72,13 @@ else
<div class="mb-1 col-md-3"> <div class="mb-1 col-md-3">
@if (item.ModeID == 1 && item.InputBox != "autofild") @if (item.ModeID == 1 && item.InputBox != "autofild")
{ {
if (item.Des != null && !FullInvoice) if (item.Des != null && item.Des.Count() > 0 && !FullInvoice)
{ {
<div class="row">
<div class="col-md-2">
<Badge style="cursor: pointer;" @onclick="()=>ShowConditions(item.Des,item.fName)" Color="BadgeColor.Primary" IndicatorType="BadgeIndicatorType.RoundedPill">شرایط خاص</Badge> <Badge style="cursor: pointer;" @onclick="()=>ShowConditions(item.Des,item.fName)" Color="BadgeColor.Primary" IndicatorType="BadgeIndicatorType.RoundedPill">شرایط خاص</Badge>
</div>
<div class="col-md-10">
<label style="color:red;" class="form-label">@item.fName</label> <label style="color:red;" class="form-label">@item.fName</label>
</div>
</div>
} }
else else
{ {
@@ -91,16 +88,12 @@ else
} }
else else
{ {
if (item.Des != null && !FullInvoice) if (item.Des != null && item.Des.Count() > 0 && !FullInvoice)
{ {
<div class="row">
<div class="col-md-2">
<Badge style="cursor: pointer;" @onclick="()=>ShowConditions(item.Des,item.fName)" Color="BadgeColor.Primary" IndicatorType="BadgeIndicatorType.RoundedPill">شرایط خاص</Badge> <Badge style="cursor: pointer;" @onclick="()=>ShowConditions(item.Des,item.fName)" Color="BadgeColor.Primary" IndicatorType="BadgeIndicatorType.RoundedPill">شرایط خاص</Badge>
</div>
<div class="col-md-10">
<label class="form-label">@item.fName</label> <label class="form-label">@item.fName</label>
</div>
</div>
} }
else else
{ {
@@ -172,16 +165,10 @@ else
<div class="mb-1 col-md-3"> <div class="mb-1 col-md-3">
@if (itemB.ModeID == 1 && itemB.InputBox != "autofild") @if (itemB.ModeID == 1 && itemB.InputBox != "autofild")
{ {
if (itemB.Des != null && !FullInvoice) if (itemB.Des != null && itemB.Des.Count() > 0 && !FullInvoice)
{ {
<div class="row">
<div class="col-md-2">
<Badge style="cursor: pointer;" @onclick="()=>ShowConditions(itemB.Des,itemB.fName)" Color="BadgeColor.Primary" IndicatorType="BadgeIndicatorType.RoundedPill">شرایط خاص</Badge> <Badge style="cursor: pointer;" @onclick="()=>ShowConditions(itemB.Des,itemB.fName)" Color="BadgeColor.Primary" IndicatorType="BadgeIndicatorType.RoundedPill">شرایط خاص</Badge>
</div>
<div class="col-md-10">
<label style="color:red;" class="form-label">@itemB.fName</label> <label style="color:red;" class="form-label">@itemB.fName</label>
</div>
</div>
} }
else else
{ {
@@ -190,17 +177,10 @@ else
} }
else else
{ {
if (itemB.Des != null && !FullInvoice) if (itemB.Des != null && itemB.Des.Count() > 0 && !FullInvoice)
{ {
<div class="row">
<div class="col-md-2">
<Badge style="cursor: pointer;" @onclick="()=>ShowConditions(itemB.Des,itemB.fName)" Color="BadgeColor.Primary" IndicatorType="BadgeIndicatorType.RoundedPill">شرایط خاص</Badge> <Badge style="cursor: pointer;" @onclick="()=>ShowConditions(itemB.Des,itemB.fName)" Color="BadgeColor.Primary" IndicatorType="BadgeIndicatorType.RoundedPill">شرایط خاص</Badge>
</div>
<div class="col-md-10">
<label class="form-label">@itemB.fName</label> <label class="form-label">@itemB.fName</label>
</div>
</div>
} }
else else
{ {