...
This commit is contained in:
@@ -2,7 +2,9 @@
|
||||
<Modal @ref="modal" />
|
||||
|
||||
<Grid TItem="InvoiceItemDTO"
|
||||
Class="table table-hover table-bordered table-striped"
|
||||
AllowRowClick="true"
|
||||
AllowSorting="true"
|
||||
Class="table table-hover"
|
||||
DataProvider="DataProvider"
|
||||
AllowPaging="true"
|
||||
PageSize="10"
|
||||
@@ -12,35 +14,35 @@
|
||||
<GridColumn TItem="InvoiceItemDTO" HeaderText="شناسه">
|
||||
@context.ID
|
||||
</GridColumn>
|
||||
<GridColumn TItem="InvoiceItemDTO" HeaderText="کد">
|
||||
@* <GridColumn TItem="InvoiceItemDTO" HeaderText="کد">
|
||||
@context.CODID
|
||||
</GridColumn>
|
||||
</GridColumn> *@
|
||||
<GridColumn TItem="InvoiceItemDTO" HeaderText="کالا">
|
||||
@context.sstt
|
||||
</GridColumn>
|
||||
<GridColumn TItem="InvoiceItemDTO" HeaderText="واحد">
|
||||
@context.mu
|
||||
</GridColumn>
|
||||
<GridColumn TItem="InvoiceItemDTO" HeaderText="تعداد/مقدار">
|
||||
@context.am
|
||||
<GridColumn TItem="InvoiceItemDTO" HeaderText="تعداد">
|
||||
@context.am.ToString().Split('٫')[0]
|
||||
</GridColumn>
|
||||
<GridColumn TItem="InvoiceItemDTO" HeaderText="مبلغ واحد">
|
||||
@context.fee
|
||||
@context.fee.ToString("N0")
|
||||
</GridColumn>
|
||||
<GridColumn TItem="InvoiceItemDTO" HeaderText="نرخ مالیات">
|
||||
@context.vra
|
||||
</GridColumn>
|
||||
<GridColumn TItem="InvoiceItemDTO" HeaderText="مبلغ مالیات">
|
||||
@context.vam
|
||||
@context.vam?.ToString("N0")
|
||||
</GridColumn>
|
||||
<GridColumn TItem="InvoiceItemDTO" HeaderText="تخفیف">
|
||||
@context.dis
|
||||
@context.dis?.ToString("N0")
|
||||
</GridColumn>
|
||||
@* <GridColumn TItem="InvoiceItemDTO" HeaderText="مبلغ بعد از تخفیف">
|
||||
@context.adis
|
||||
</GridColumn> *@
|
||||
<GridColumn TItem="InvoiceItemDTO" HeaderText="مبلغ کل">
|
||||
@context.tsstam
|
||||
@context.tsstam?.ToString("N0")
|
||||
</GridColumn>
|
||||
</Grid>
|
||||
|
||||
@@ -88,11 +90,11 @@
|
||||
if (result.Status == ComponentStatus.success)
|
||||
msg="آیتم با موفقیت حذف شد";
|
||||
}
|
||||
|
||||
await OnMultipleOfThree.InvokeAsync(msg);
|
||||
// if (result.Status == ComponentStatus.success)
|
||||
// await LoadCod(1);
|
||||
|
||||
await modal.HideAsync();
|
||||
// await modal.HideAsync();
|
||||
}
|
||||
private IEnumerable<InvoiceItemDTO> GetInvoiceItems()
|
||||
{
|
||||
|
@@ -44,7 +44,17 @@
|
||||
|
||||
if (property.CustomAttributes.Any(w => w.AttributeType.Name == "DisplayAttribute"))
|
||||
{
|
||||
<td>@property.GetValue(item, null)</td>
|
||||
if (property.PropertyType == typeof(Nullable<System.Decimal>) || property.PropertyType == typeof(System.Decimal))
|
||||
{
|
||||
<td>
|
||||
@decimal.Parse(property.GetValue(item, null).ToString()).ToString("N0") ريال
|
||||
</td>
|
||||
}
|
||||
else
|
||||
{
|
||||
<td>@property.GetValue(item, null)</td>
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user