fix: replace ریال with تومان across all 30 admin UI files
Build and Deploy to Kubernetes / build-and-deploy (push) Successful in 7m55s

This commit is contained in:
masoodafar-web
2026-02-22 21:30:47 +03:30
parent 7a62e3caac
commit 8f29fbaf71
30 changed files with 69 additions and 69 deletions
@@ -41,11 +41,11 @@
</tr> </tr>
<tr> <tr>
<td><strong>ارزش هر بالانس:</strong></td> <td><strong>ارزش هر بالانس:</strong></td>
<td>@Payout.ValuePerBalance.ToString("N0") ریال</td> <td>@Payout.ValuePerBalance.ToString("N0") تومان</td>
</tr> </tr>
<tr> <tr>
<td><strong>مبلغ کل:</strong></td> <td><strong>مبلغ کل:</strong></td>
<td><strong>@Payout.TotalAmount.ToString("N0") ریال</strong></td> <td><strong>@Payout.TotalAmount.ToString("N0") تومان</strong></td>
</tr> </tr>
<tr> <tr>
<td><strong>وضعیت:</strong></td> <td><strong>وضعیت:</strong></td>
@@ -2,7 +2,7 @@
<DialogContent> <DialogContent>
<MudStack Spacing="3"> <MudStack Spacing="3">
<MudAlert Severity="Severity.Warning" Dense="true"> <MudAlert Severity="Severity.Warning" Dense="true">
درخواست برداشت @Amount.ToString("N0") ریال برای @UserName رد خواهد شد. درخواست برداشت @Amount.ToString("N0") تومان برای @UserName رد خواهد شد.
</MudAlert> </MudAlert>
<MudTextField @bind-Value="_reason" <MudTextField @bind-Value="_reason"
Label="دلیل رد درخواست" Label="دلیل رد درخواست"
@@ -27,7 +27,7 @@
</tr> </tr>
<tr> <tr>
<td><strong>مبلغ:</strong></td> <td><strong>مبلغ:</strong></td>
<td><MudText Color="Color.Primary"><strong>@Request.Amount.ToString("N0") ریال</strong></MudText></td> <td><MudText Color="Color.Primary"><strong>@Request.Amount.ToString("N0") تومان</strong></MudText></td>
</tr> </tr>
<tr> <tr>
<td><strong>روش برداشت:</strong></td> <td><strong>روش برداشت:</strong></td>
@@ -20,7 +20,7 @@
<MudCard Elevation="2"> <MudCard Elevation="2">
<MudCardContent> <MudCardContent>
<MudText Typo="Typo.h6" Color="Color.Primary">استخر هفتگی</MudText> <MudText Typo="Typo.h6" Color="Color.Primary">استخر هفتگی</MudText>
<MudText Typo="Typo.h4">@(_poolData?.TotalPoolAmount.ToString("N0") ?? "0") ریال</MudText> <MudText Typo="Typo.h4">@(_poolData?.TotalPoolAmount.ToString("N0") ?? "0") تومان</MudText>
<MudText Typo="Typo.body2" Color="Color.Secondary">@_currentWeekDisplayText</MudText> <MudText Typo="Typo.body2" Color="Color.Secondary">@_currentWeekDisplayText</MudText>
</MudCardContent> </MudCardContent>
</MudCard> </MudCard>
@@ -40,7 +40,7 @@
<MudCard Elevation="2"> <MudCard Elevation="2">
<MudCardContent> <MudCardContent>
<MudText Typo="Typo.h6" Color="Color.Warning">ارزش هر تعادل</MudText> <MudText Typo="Typo.h6" Color="Color.Warning">ارزش هر تعادل</MudText>
<MudText Typo="Typo.h4">@(_poolData?.ValuePerBalance.ToString("N0") ?? "0") ریال</MudText> <MudText Typo="Typo.h4">@(_poolData?.ValuePerBalance.ToString("N0") ?? "0") تومان</MudText>
<MudText Typo="Typo.body2" Color="Color.Secondary">قیمت واحد تعادل</MudText> <MudText Typo="Typo.body2" Color="Color.Secondary">قیمت واحد تعادل</MudText>
</MudCardContent> </MudCardContent>
</MudCard> </MudCard>
@@ -111,7 +111,7 @@
@if (week.TotalPoolAmount > 0) @if (week.TotalPoolAmount > 0)
{ {
<MudChip T="string" Size="Size.Small" Color="Color.Success" Class="mr-2"> <MudChip T="string" Size="Size.Small" Color="Color.Success" Class="mr-2">
@week.TotalPoolAmount.ToString("N0") ریال @week.TotalPoolAmount.ToString("N0") تومان
</MudChip> </MudChip>
} }
</MudText> </MudText>
@@ -181,7 +181,7 @@
</tr> </tr>
<tr> <tr>
<td><strong>مجموع استخر:</strong></td> <td><strong>مجموع استخر:</strong></td>
<td>@_poolData.TotalPoolAmount.ToString("N0") ریال</td> <td>@_poolData.TotalPoolAmount.ToString("N0") تومان</td>
</tr> </tr>
<tr> <tr>
<td><strong>تعداد تعادل:</strong></td> <td><strong>تعداد تعادل:</strong></td>
@@ -189,7 +189,7 @@
</tr> </tr>
<tr> <tr>
<td><strong>ارزش هر تعادل:</strong></td> <td><strong>ارزش هر تعادل:</strong></td>
<td>@_poolData.ValuePerBalance.ToString("N0") ریال</td> <td>@_poolData.ValuePerBalance.ToString("N0") تومان</td>
</tr> </tr>
<tr> <tr>
<td><strong>وضعیت:</strong></td> <td><strong>وضعیت:</strong></td>
@@ -119,7 +119,7 @@ public partial class UserPayouts
{ {
var confirmed = await DialogService.ShowMessageBox( var confirmed = await DialogService.ShowMessageBox(
"تایید برداشت", "تایید برداشت",
$"آیا از تایید برداشت برای کاربر {payout.UserName} (مبلغ: {payout.TotalAmount:N0} ریال) مطمئن هستید؟", $"آیا از تایید برداشت برای کاربر {payout.UserName} (مبلغ: {payout.TotalAmount:N0} تومان) مطمئن هستید؟",
yesText: "تایید", cancelText: "لغو"); yesText: "تایید", cancelText: "لغو");
if (confirmed == true) if (confirmed == true)
@@ -67,13 +67,13 @@
<PropertyColumn Property="x => x.WeekDisplayName" Title="هفته" /> <PropertyColumn Property="x => x.WeekDisplayName" Title="هفته" />
<PropertyColumn Property="x => x.TotalPoolAmount" Title="مبلغ کل استخر" Format="N0"> <PropertyColumn Property="x => x.TotalPoolAmount" Title="مبلغ کل استخر" Format="N0">
<CellTemplate> <CellTemplate>
<MudText>@context.Item.TotalPoolAmount.ToString("N0") ریال</MudText> <MudText>@context.Item.TotalPoolAmount.ToString("N0") تومان</MudText>
</CellTemplate> </CellTemplate>
</PropertyColumn> </PropertyColumn>
<PropertyColumn Property="x => x.TotalBalances" Title="مجموع موجودی‌ها" /> <PropertyColumn Property="x => x.TotalBalances" Title="مجموع موجودی‌ها" />
<PropertyColumn Property="x => x.ValuePerBalance" Title="ارزش هر موجودی" Format="N0"> <PropertyColumn Property="x => x.ValuePerBalance" Title="ارزش هر موجودی" Format="N0">
<CellTemplate> <CellTemplate>
<MudText>@context.Item.ValuePerBalance.ToString("N0") ریال</MudText> <MudText>@context.Item.ValuePerBalance.ToString("N0") تومان</MudText>
</CellTemplate> </CellTemplate>
</PropertyColumn> </PropertyColumn>
<PropertyColumn Property="x => x.IsCalculated" Title="وضعیت"> <PropertyColumn Property="x => x.IsCalculated" Title="وضعیت">
@@ -128,7 +128,7 @@
<MudPaper Elevation="0" Class="pa-4 text-center"> <MudPaper Elevation="0" Class="pa-4 text-center">
<MudText Typo="Typo.h6" Color="Color.Primary">مجموع استخرها</MudText> <MudText Typo="Typo.h6" Color="Color.Primary">مجموع استخرها</MudText>
<MudText Typo="Typo.h4">@_totalPoolSum.ToString("N0")</MudText> <MudText Typo="Typo.h4">@_totalPoolSum.ToString("N0")</MudText>
<MudText Typo="Typo.caption" Color="Color.Secondary">ریال</MudText> <MudText Typo="Typo.caption" Color="Color.Secondary">تومان</MudText>
</MudPaper> </MudPaper>
</MudItem> </MudItem>
<MudItem xs="12" md="3"> <MudItem xs="12" md="3">
@@ -149,7 +149,7 @@
<MudPaper Elevation="0" Class="pa-4 text-center"> <MudPaper Elevation="0" Class="pa-4 text-center">
<MudText Typo="Typo.h6" Color="Color.Info">میانگین ارزش</MudText> <MudText Typo="Typo.h6" Color="Color.Info">میانگین ارزش</MudText>
<MudText Typo="Typo.h4">@_averageValue.ToString("N0")</MudText> <MudText Typo="Typo.h4">@_averageValue.ToString("N0")</MudText>
<MudText Typo="Typo.caption" Color="Color.Secondary">ریال</MudText> <MudText Typo="Typo.caption" Color="Color.Secondary">تومان</MudText>
</MudPaper> </MudPaper>
</MudItem> </MudItem>
</MudGrid> </MudGrid>
@@ -107,19 +107,19 @@
<MudItem xs="12" md="3"> <MudItem xs="12" md="3">
<MudPaper Elevation="1" Class="pa-4 text-center"> <MudPaper Elevation="1" Class="pa-4 text-center">
<MudText Typo="Typo.subtitle2" Color="Color.Primary">مجموع مبلغ برداشت‌ها</MudText> <MudText Typo="Typo.subtitle2" Color="Color.Primary">مجموع مبلغ برداشت‌ها</MudText>
<MudText Typo="Typo.h5">@_summary.TotalAmount.ToString("N0") ریال</MudText> <MudText Typo="Typo.h5">@_summary.TotalAmount.ToString("N0") تومان</MudText>
</MudPaper> </MudPaper>
</MudItem> </MudItem>
<MudItem xs="12" md="3"> <MudItem xs="12" md="3">
<MudPaper Elevation="1" Class="pa-4 text-center"> <MudPaper Elevation="1" Class="pa-4 text-center">
<MudText Typo="Typo.subtitle2" Color="Color.Success">مبلغ پرداخت شده</MudText> <MudText Typo="Typo.subtitle2" Color="Color.Success">مبلغ پرداخت شده</MudText>
<MudText Typo="Typo.h5">@_summary.TotalPaid.ToString("N0") ریال</MudText> <MudText Typo="Typo.h5">@_summary.TotalPaid.ToString("N0") تومان</MudText>
</MudPaper> </MudPaper>
</MudItem> </MudItem>
<MudItem xs="12" md="3"> <MudItem xs="12" md="3">
<MudPaper Elevation="1" Class="pa-4 text-center"> <MudPaper Elevation="1" Class="pa-4 text-center">
<MudText Typo="Typo.subtitle2" Color="Color.Warning">مبلغ در انتظار</MudText> <MudText Typo="Typo.subtitle2" Color="Color.Warning">مبلغ در انتظار</MudText>
<MudText Typo="Typo.h5">@_summary.TotalPending.ToString("N0") ریال</MudText> <MudText Typo="Typo.h5">@_summary.TotalPending.ToString("N0") تومان</MudText>
</MudPaper> </MudPaper>
</MudItem> </MudItem>
<MudItem xs="12" md="3"> <MudItem xs="12" md="3">
@@ -189,17 +189,17 @@
<PropertyColumn Property="x => x.PendingCount" Title="در انتظار" /> <PropertyColumn Property="x => x.PendingCount" Title="در انتظار" />
<PropertyColumn Property="x => x.TotalAmount" Title="مبلغ کل" Format="N0"> <PropertyColumn Property="x => x.TotalAmount" Title="مبلغ کل" Format="N0">
<CellTemplate> <CellTemplate>
@context.Item.TotalAmount.ToString("N0") ریال @context.Item.TotalAmount.ToString("N0") تومان
</CellTemplate> </CellTemplate>
</PropertyColumn> </PropertyColumn>
<PropertyColumn Property="x => x.PaidAmount" Title="پرداخت شده" Format="N0"> <PropertyColumn Property="x => x.PaidAmount" Title="پرداخت شده" Format="N0">
<CellTemplate> <CellTemplate>
@context.Item.PaidAmount.ToString("N0") ریال @context.Item.PaidAmount.ToString("N0") تومان
</CellTemplate> </CellTemplate>
</PropertyColumn> </PropertyColumn>
<PropertyColumn Property="x => x.PendingAmount" Title="در انتظار پرداخت" Format="N0"> <PropertyColumn Property="x => x.PendingAmount" Title="در انتظار پرداخت" Format="N0">
<CellTemplate> <CellTemplate>
@context.Item.PendingAmount.ToString("N0") ریال @context.Item.PendingAmount.ToString("N0") تومان
</CellTemplate> </CellTemplate>
</PropertyColumn> </PropertyColumn>
</Columns> </Columns>
@@ -431,9 +431,9 @@
sb.AppendLine("خلاصه:"); sb.AppendLine("خلاصه:");
sb.AppendLine($"تعداد کل درخواست‌ها: {_summary.TotalRequests}"); sb.AppendLine($"تعداد کل درخواست‌ها: {_summary.TotalRequests}");
sb.AppendLine($"مبلغ کل برداشت‌ها: {_summary.TotalAmount:N0} ریال"); sb.AppendLine($"مبلغ کل برداشت‌ها: {_summary.TotalAmount:N0} تومان");
sb.AppendLine($"مبلغ پرداخت شده: {_summary.TotalPaid:N0} ریال"); sb.AppendLine($"مبلغ پرداخت شده: {_summary.TotalPaid:N0} تومان");
sb.AppendLine($"مبلغ در انتظار: {_summary.TotalPending:N0} ریال"); sb.AppendLine($"مبلغ در انتظار: {_summary.TotalPending:N0} تومان");
sb.AppendLine($"تعداد کاربران یکتا: {_summary.UniqueUsers}"); sb.AppendLine($"تعداد کاربران یکتا: {_summary.UniqueUsers}");
sb.AppendLine($"نرخ موفقیت: {_summary.SuccessRate:N2}%"); sb.AppendLine($"نرخ موفقیت: {_summary.SuccessRate:N2}%");
sb.AppendLine(); sb.AppendLine();
@@ -69,7 +69,7 @@
<PropertyColumn Property="x => x.Amount" Title="مبلغ"> <PropertyColumn Property="x => x.Amount" Title="مبلغ">
<CellTemplate> <CellTemplate>
<MudText Typo="Typo.body2" Color="Color.Primary"> <MudText Typo="Typo.body2" Color="Color.Primary">
<strong>@context.Item.Amount.ToString("N0") ریال</strong> <strong>@context.Item.Amount.ToString("N0") تومان</strong>
</MudText> </MudText>
</CellTemplate> </CellTemplate>
</PropertyColumn> </PropertyColumn>
@@ -163,7 +163,7 @@ public partial class WithdrawalRequests
{ {
var confirmed = await DialogService.ShowMessageBox( var confirmed = await DialogService.ShowMessageBox(
"تایید درخواست", "تایید درخواست",
$"آیا از تایید درخواست برداشت {request.Amount:N0} ریال برای {request.UserName} مطمئن هستید؟", $"آیا از تایید درخواست برداشت {request.Amount:N0} تومان برای {request.UserName} مطمئن هستید؟",
yesText: "تایید", cancelText: "لغو"); yesText: "تایید", cancelText: "لغو");
if (confirmed == true) if (confirmed == true)
@@ -222,7 +222,7 @@ public partial class WithdrawalRequests
{ {
var confirmed = await DialogService.ShowMessageBox( var confirmed = await DialogService.ShowMessageBox(
"پردازش پرداخت", "پردازش پرداخت",
$"آیا پرداخت {request.Amount:N0} ریال به {request.UserName} انجام شده است؟", $"آیا پرداخت {request.Amount:N0} تومان به {request.UserName} انجام شده است؟",
yesText: "بله، پردازش شد", cancelText: "لغو"); yesText: "بله، پردازش شد", cancelText: "لغو");
if (confirmed == true) if (confirmed == true)
@@ -32,10 +32,10 @@
<MudStack Spacing="1"> <MudStack Spacing="1">
<MudText Typo="Typo.body2" Color="Color.Secondary">مجموع فروش (۷ روز)</MudText> <MudText Typo="Typo.body2" Color="Color.Secondary">مجموع فروش (۷ روز)</MudText>
<MudText Typo="Typo.h5" Color="Color.Primary"> <MudText Typo="Typo.h5" Color="Color.Primary">
@_stats.TotalSalesLast7Days.ToString("N0") ریال @_stats.TotalSalesLast7Days.ToString("N0") تومان
</MudText> </MudText>
<MudText Typo="Typo.caption" Color="Color.Secondary"> <MudText Typo="Typo.caption" Color="Color.Secondary">
امروز: @_stats.TodaySales.ToString("N0") ریال امروز: @_stats.TodaySales.ToString("N0") تومان
</MudText> </MudText>
</MudStack> </MudStack>
</MudItem> </MudItem>
@@ -43,7 +43,7 @@
<MudStack Spacing="1"> <MudStack Spacing="1">
<MudText Typo="Typo.body2" Color="Color.Secondary">میانگین مبلغ هر سفارش</MudText> <MudText Typo="Typo.body2" Color="Color.Secondary">میانگین مبلغ هر سفارش</MudText>
<MudText Typo="Typo.h5"> <MudText Typo="Typo.h5">
@_stats.AverageOrderAmount.ToString("N0") ریال @_stats.AverageOrderAmount.ToString("N0") تومان
</MudText> </MudText>
</MudStack> </MudStack>
</MudItem> </MudItem>
@@ -129,11 +129,11 @@
</MudStack> </MudStack>
</MudTd> </MudTd>
<MudTd>@context.Count</MudTd> <MudTd>@context.Count</MudTd>
<MudTd>@context.UnitPrice.ToString("N0") ریال</MudTd> <MudTd>@context.UnitPrice.ToString("N0") تومان</MudTd>
<MudTd> <MudTd>
<MudChip T="string" Size="Size.Small" Color="Color.Success">@context.MaxDiscountPercent%</MudChip> <MudChip T="string" Size="Size.Small" Color="Color.Success">@context.MaxDiscountPercent%</MudChip>
</MudTd> </MudTd>
<MudTd><strong>@context.FinalPrice.ToString("N0") ریال</strong></MudTd> <MudTd><strong>@context.FinalPrice.ToString("N0") تومان</strong></MudTd>
</RowTemplate> </RowTemplate>
</MudTable> </MudTable>
</MudPaper> </MudPaper>
@@ -148,14 +148,14 @@
<MudText Color="Color.Secondary">مبلغ کل:</MudText> <MudText Color="Color.Secondary">مبلغ کل:</MudText>
</MudItem> </MudItem>
<MudItem xs="6" Class="text-left"> <MudItem xs="6" Class="text-left">
<MudText>@Order.TotalPrice.ToString("N0") ریال</MudText> <MudText>@Order.TotalPrice.ToString("N0") تومان</MudText>
</MudItem> </MudItem>
<MudItem xs="6"> <MudItem xs="6">
<MudText Color="Color.Success">از کیف پول تخفیف:</MudText> <MudText Color="Color.Success">از کیف پول تخفیف:</MudText>
</MudItem> </MudItem>
<MudItem xs="6" Class="text-left"> <MudItem xs="6" Class="text-left">
<MudText Color="Color.Success">@Order.DiscountBalanceUsed.ToString("N0") ریال</MudText> <MudText Color="Color.Success">@Order.DiscountBalanceUsed.ToString("N0") تومان</MudText>
</MudItem> </MudItem>
<MudItem xs="12"><MudDivider /></MudItem> <MudItem xs="12"><MudDivider /></MudItem>
@@ -165,7 +165,7 @@
</MudItem> </MudItem>
<MudItem xs="6" Class="text-left"> <MudItem xs="6" Class="text-left">
<MudText Typo="Typo.h6" Color="Color.Primary"> <MudText Typo="Typo.h6" Color="Color.Primary">
<strong>@Order.GatewayAmount.ToString("N0") ریال</strong> <strong>@Order.GatewayAmount.ToString("N0") تومان</strong>
</MudText> </MudText>
</MudItem> </MudItem>
</MudGrid> </MudGrid>
@@ -70,7 +70,7 @@
Format="N0" Format="N0"
Immediate="true" Immediate="true"
Disabled="_loading" Disabled="_loading"
Label="قیمت (ریال) *" Label="قیمت (تومان) *"
Required="true" Required="true"
Variant="Variant.Outlined" Variant="Variant.Outlined"
Margin="Margin.Dense" /> Margin="Margin.Dense" />
@@ -97,20 +97,20 @@
<TemplateColumn Title="مبلغ کل"> <TemplateColumn Title="مبلغ کل">
<CellTemplate> <CellTemplate>
<MudText>@context.Item.TotalPrice.ToString("N0") ریال</MudText> <MudText>@context.Item.TotalPrice.ToString("N0") تومان</MudText>
</CellTemplate> </CellTemplate>
</TemplateColumn> </TemplateColumn>
<TemplateColumn Title="تخفیف کیف‌پول"> <TemplateColumn Title="تخفیف کیف‌پول">
<CellTemplate> <CellTemplate>
<MudText Color="Color.Success">@context.Item.DiscountBalanceUsed.ToString("N0") ریال</MudText> <MudText Color="Color.Success">@context.Item.DiscountBalanceUsed.ToString("N0") تومان</MudText>
</CellTemplate> </CellTemplate>
</TemplateColumn> </TemplateColumn>
<TemplateColumn Title="پرداخت درگاه"> <TemplateColumn Title="پرداخت درگاه">
<CellTemplate> <CellTemplate>
<MudText Typo="Typo.body2"> <MudText Typo="Typo.body2">
<strong>@context.Item.GatewayAmount.ToString("N0") ریال</strong> <strong>@context.Item.GatewayAmount.ToString("N0") تومان</strong>
</MudText> </MudText>
</CellTemplate> </CellTemplate>
</TemplateColumn> </TemplateColumn>
@@ -116,7 +116,7 @@
<TemplateColumn Title="قیمت" CellStyle="text-wrap: nowrap;"> <TemplateColumn Title="قیمت" CellStyle="text-wrap: nowrap;">
<CellTemplate> <CellTemplate>
<MudText>@context.Item.Price.ToString("N0") ریال</MudText> <MudText>@context.Item.Price.ToString("N0") تومان</MudText>
</CellTemplate> </CellTemplate>
</TemplateColumn> </TemplateColumn>
@@ -113,19 +113,19 @@
<MudItem xs="12" md="3"> <MudItem xs="12" md="3">
<MudPaper Elevation="1" Class="pa-4 text-center"> <MudPaper Elevation="1" Class="pa-4 text-center">
<MudText Typo="Typo.subtitle2" Color="Color.Success">مجموع فروش (مبلغ نهایی)</MudText> <MudText Typo="Typo.subtitle2" Color="Color.Success">مجموع فروش (مبلغ نهایی)</MudText>
<MudText Typo="Typo.h5">@_totalSales.ToString("N0") ریال</MudText> <MudText Typo="Typo.h5">@_totalSales.ToString("N0") تومان</MudText>
</MudPaper> </MudPaper>
</MudItem> </MudItem>
<MudItem xs="12" md="3"> <MudItem xs="12" md="3">
<MudPaper Elevation="1" Class="pa-4 text-center"> <MudPaper Elevation="1" Class="pa-4 text-center">
<MudText Typo="Typo.subtitle2" Color="Color.Warning">مجموع تخفیف</MudText> <MudText Typo="Typo.subtitle2" Color="Color.Warning">مجموع تخفیف</MudText>
<MudText Typo="Typo.h5">@_totalDiscount.ToString("N0") ریال</MudText> <MudText Typo="Typo.h5">@_totalDiscount.ToString("N0") تومان</MudText>
</MudPaper> </MudPaper>
</MudItem> </MudItem>
<MudItem xs="12" md="3"> <MudItem xs="12" md="3">
<MudPaper Elevation="1" Class="pa-4 text-center"> <MudPaper Elevation="1" Class="pa-4 text-center">
<MudText Typo="Typo.subtitle2" Color="Color.Info">میانگین مبلغ سفارش</MudText> <MudText Typo="Typo.subtitle2" Color="Color.Info">میانگین مبلغ سفارش</MudText>
<MudText Typo="Typo.h5">@_averageOrder.ToString("N0") ریال</MudText> <MudText Typo="Typo.h5">@_averageOrder.ToString("N0") تومان</MudText>
</MudPaper> </MudPaper>
</MudItem> </MudItem>
</MudGrid> </MudGrid>
@@ -242,12 +242,12 @@
</TemplateColumn> </TemplateColumn>
<TemplateColumn Title="مبلغ نهایی"> <TemplateColumn Title="مبلغ نهایی">
<CellTemplate> <CellTemplate>
@context.Item.GatewayAmount.ToString("N0") ریال @context.Item.GatewayAmount.ToString("N0") تومان
</CellTemplate> </CellTemplate>
</TemplateColumn> </TemplateColumn>
<TemplateColumn Title="تخفیف"> <TemplateColumn Title="تخفیف">
<CellTemplate> <CellTemplate>
@context.Item.DiscountBalanceUsed.ToString("N0") ریال @context.Item.DiscountBalanceUsed.ToString("N0") تومان
</CellTemplate> </CellTemplate>
</TemplateColumn> </TemplateColumn>
<TemplateColumn Title="وضعیت"> <TemplateColumn Title="وضعیت">
@@ -566,9 +566,9 @@
sb.AppendLine("خلاصه:"); sb.AppendLine("خلاصه:");
sb.AppendLine($"تعداد سفارش‌ها: {_totalOrders}"); sb.AppendLine($"تعداد سفارش‌ها: {_totalOrders}");
sb.AppendLine($"مجموع فروش (مبلغ نهایی): {_totalSales:N0} ریال"); sb.AppendLine($"مجموع فروش (مبلغ نهایی): {_totalSales:N0} تومان");
sb.AppendLine($"مجموع تخفیف: {_totalDiscount:N0} ریال"); sb.AppendLine($"مجموع تخفیف: {_totalDiscount:N0} تومان");
sb.AppendLine($"میانگین مبلغ سفارش: {_averageOrder:N0} ریال"); sb.AppendLine($"میانگین مبلغ سفارش: {_averageOrder:N0} تومان");
sb.AppendLine(); sb.AppendLine();
sb.AppendLine("جزئیات سفارش‌ها:"); sb.AppendLine("جزئیات سفارش‌ها:");
+1 -1
View File
@@ -108,7 +108,7 @@
<MudStack Spacing="0"> <MudStack Spacing="0">
<MudText Typo="Typo.caption" Color="Color.Secondary">مبلغ کل استخر</MudText> <MudText Typo="Typo.caption" Color="Color.Secondary">مبلغ کل استخر</MudText>
<MudText Typo="Typo.h6" Color="Color.Primary"> <MudText Typo="Typo.h6" Color="Color.Primary">
@(_currentPool?.TotalPoolAmount.ToString("N0") ?? "0") ریال @(_currentPool?.TotalPoolAmount.ToString("N0") ?? "0") تومان
</MudText> </MudText>
</MudStack> </MudStack>
</MudItem> </MudItem>
@@ -129,7 +129,7 @@
</PropertyColumn> </PropertyColumn>
<PropertyColumn Property="x => x.PoolContribution" Title="سهم از استخر"> <PropertyColumn Property="x => x.PoolContribution" Title="سهم از استخر">
<CellTemplate> <CellTemplate>
@context.Item.PoolContribution.ToString("N0") ریال @context.Item.PoolContribution.ToString("N0") تومان
</CellTemplate> </CellTemplate>
</PropertyColumn> </PropertyColumn>
<PropertyColumn Property="x => x.IsExpired" Title="وضعیت"> <PropertyColumn Property="x => x.IsExpired" Title="وضعیت">
@@ -254,7 +254,7 @@
<td><strong>کل کمیسیون کسب شده:</strong></td> <td><strong>کل کمیسیون کسب شده:</strong></td>
<td> <td>
<MudText Typo="Typo.body1" Color="Color.Primary"> <MudText Typo="Typo.body1" Color="Color.Primary">
<strong>@_userInfo.TotalEarnedCommission.ToString("N0") ریال</strong> <strong>@_userInfo.TotalEarnedCommission.ToString("N0") تومان</strong>
</MudText> </MudText>
</td> </td>
</tr> </tr>
@@ -262,7 +262,7 @@
<td><strong>کمیسیون پرداخت شده:</strong></td> <td><strong>کمیسیون پرداخت شده:</strong></td>
<td> <td>
<MudText Typo="Typo.body1" Color="Color.Success"> <MudText Typo="Typo.body1" Color="Color.Success">
@_userInfo.TotalPaidCommission.ToString("N0") ریال @_userInfo.TotalPaidCommission.ToString("N0") تومان
</MudText> </MudText>
</td> </td>
</tr> </tr>
@@ -270,7 +270,7 @@
<td><strong>کمیسیون در انتظار:</strong></td> <td><strong>کمیسیون در انتظار:</strong></td>
<td> <td>
<MudText Typo="Typo.body1" Color="Color.Warning"> <MudText Typo="Typo.body1" Color="Color.Warning">
@_userInfo.PendingCommission.ToString("N0") ریال @_userInfo.PendingCommission.ToString("N0") تومان
</MudText> </MudText>
</td> </td>
</tr> </tr>
@@ -83,7 +83,7 @@
<MudText Typo="Typo.h6">جزئیات فعالسازی دستی</MudText> <MudText Typo="Typo.h6">جزئیات فعالسازی دستی</MudText>
<MudText Typo="Typo.body2">شناسه: @Model.Id</MudText> <MudText Typo="Typo.body2">شناسه: @Model.Id</MudText>
<MudText Typo="Typo.body2">کاربر: @Model.UserFullName (@Model.UserId)</MudText> <MudText Typo="Typo.body2">کاربر: @Model.UserFullName (@Model.UserId)</MudText>
<MudText Typo="Typo.body2">مبلغ: @Model.Amount.ToString("N0") ریال</MudText> <MudText Typo="Typo.body2">مبلغ: @Model.Amount.ToString("N0") تومان</MudText>
<MudText Typo="Typo.body2">نوع: @Model.TypeDisplay</MudText> <MudText Typo="Typo.body2">نوع: @Model.TypeDisplay</MudText>
<MudText Typo="Typo.body2">وضعیت: @Model.StatusDisplay</MudText> <MudText Typo="Typo.body2">وضعیت: @Model.StatusDisplay</MudText>
@@ -10,7 +10,7 @@
<MudText Typo="Typo.h6">جزئیات تراکنش</MudText> <MudText Typo="Typo.h6">جزئیات تراکنش</MudText>
<MudText Typo="Typo.body2">شناسه: @Model.Id</MudText> <MudText Typo="Typo.body2">شناسه: @Model.Id</MudText>
<MudText Typo="Typo.body2">RefId: @Model.RefId</MudText> <MudText Typo="Typo.body2">RefId: @Model.RefId</MudText>
<MudText Typo="Typo.body2">مبلغ: @Model.Amount.ToString("N0") ریال</MudText> <MudText Typo="Typo.body2">مبلغ: @Model.Amount.ToString("N0") تومان</MudText>
<MudText Typo="Typo.body2">وضعیت: @StatusText</MudText> <MudText Typo="Typo.body2">وضعیت: @StatusText</MudText>
<MudText Typo="Typo.body2">تاریخ پرداخت: @Model.PaymentDate.ToLocalTime().MiladiToJalaliWithTime()</MudText> <MudText Typo="Typo.body2">تاریخ پرداخت: @Model.PaymentDate.ToLocalTime().MiladiToJalaliWithTime()</MudText>
@@ -257,7 +257,7 @@
{ {
bool? confirm = await DialogService.ShowMessageBox( bool? confirm = await DialogService.ShowMessageBox(
"تایید پرداخت", "تایید پرداخت",
$"آیا از تایید پرداخت دستی #{model.Id} به مبلغ {model.Amount:N0} ریال مطمئن هستید؟", $"آیا از تایید پرداخت دستی #{model.Id} به مبلغ {model.Amount:N0} تومان مطمئن هستید؟",
yesText: "تایید", cancelText: "لغو"); yesText: "تایید", cancelText: "لغو");
if (confirm == true) if (confirm == true)
{ {
+1 -1
View File
@@ -95,7 +95,7 @@
<MudNumericField T="long?" <MudNumericField T="long?"
HideSpinButtons="true" HideSpinButtons="true"
Label="قیمت جدید (ریال)" Label="قیمت جدید (تومان)"
@bind-Value="_newPrice" @bind-Value="_newPrice"
Variant="Variant.Outlined" Variant="Variant.Outlined"
Margin="Margin.Dense" /> Margin="Margin.Dense" />
@@ -51,7 +51,7 @@
<MudTextField T="string" @bind-Value="Model.Title" Disabled="_isLoading" Label="عنوان" Variant="Variant.Outlined" Margin="Margin.Dense" /> <MudTextField T="string" @bind-Value="Model.Title" Disabled="_isLoading" Label="عنوان" Variant="Variant.Outlined" Margin="Margin.Dense" />
</MudItem> </MudItem>
<MudItem xs="6"> <MudItem xs="6">
<MudNumericField T="long" HideSpinButtons="true" @bind-Value="Model.Price" Format="N0" Immediate="true" Disabled="_isLoading" Label="قیمت (ریال)" Variant="Variant.Outlined" Margin="Margin.Dense" /> <MudNumericField T="long" HideSpinButtons="true" @bind-Value="Model.Price" Format="N0" Immediate="true" Disabled="_isLoading" Label="قیمت (تومان)" Variant="Variant.Outlined" Margin="Margin.Dense" />
</MudItem> </MudItem>
</MudStack> </MudStack>
@@ -37,7 +37,7 @@
<MudTextField T="string" @bind-Value="Model.Title" Disabled="_isLoading" Label="عنوان" Variant="Variant.Outlined" Margin="Margin.Dense" /> <MudTextField T="string" @bind-Value="Model.Title" Disabled="_isLoading" Label="عنوان" Variant="Variant.Outlined" Margin="Margin.Dense" />
</MudItem> </MudItem>
<MudItem xs="6"> <MudItem xs="6">
<MudNumericField T="long" HideSpinButtons="true" @bind-Value="Model.Price" Format="N0" Immediate="true" Disabled="_isLoading" Label="قیمت (ریال)" Variant="Variant.Outlined" Margin="Margin.Dense" /> <MudNumericField T="long" HideSpinButtons="true" @bind-Value="Model.Price" Format="N0" Immediate="true" Disabled="_isLoading" Label="قیمت (تومان)" Variant="Variant.Outlined" Margin="Margin.Dense" />
</MudItem> </MudItem>
</MudStack> </MudStack>
@@ -128,7 +128,7 @@
<TemplateColumn Title="قیمت" CellStyle="text-wrap: nowrap;"> <TemplateColumn Title="قیمت" CellStyle="text-wrap: nowrap;">
<CellTemplate> <CellTemplate>
@context.Item.Price.ToString("N0") ریال @context.Item.Price.ToString("N0") تومان
</CellTemplate> </CellTemplate>
</TemplateColumn> </TemplateColumn>
@@ -8,12 +8,12 @@
</MudText> </MudText>
<MudText Typo="Typo.caption" Color="Color.Secondary"> <MudText Typo="Typo.caption" Color="Color.Secondary">
مبلغ تخفیف به‌صورت ریالی وارد شود. مبلغ تخفیف به‌صورت تومانی وارد شود.
</MudText> </MudText>
<MudNumericField T="long?" <MudNumericField T="long?"
@bind-Value="_discountAmount" @bind-Value="_discountAmount"
Label="مبلغ تخفیف (ریال)" Label="مبلغ تخفیف (تومان)"
Variant="Variant.Outlined" Variant="Variant.Outlined"
HideSpinButtons="true" /> HideSpinButtons="true" />
@@ -40,7 +40,7 @@ public partial class ApplyDiscountDialog
if (response.Success) if (response.Success)
{ {
Snackbar.Add($"تخفیف با موفقیت اعمال شد. مبلغ نهایی: {response.FinalAmount.ToString("N0")} ریال", Severity.Success); Snackbar.Add($"تخفیف با موفقیت اعمال شد. مبلغ نهایی: {response.FinalAmount.ToString("N0")} تومان", Severity.Success);
MudDialog.Close(DialogResult.Ok(true)); MudDialog.Close(DialogResult.Ok(true));
} }
else else
@@ -113,13 +113,13 @@
<MudItem xs="12" md="3"> <MudItem xs="12" md="3">
<MudPaper Elevation="1" Class="pa-4 text-center"> <MudPaper Elevation="1" Class="pa-4 text-center">
<MudText Typo="Typo.subtitle2" Color="Color.Success">مجموع فروش</MudText> <MudText Typo="Typo.subtitle2" Color="Color.Success">مجموع فروش</MudText>
<MudText Typo="Typo.h5">@_totalSales.ToString("N0") ریال</MudText> <MudText Typo="Typo.h5">@_totalSales.ToString("N0") تومان</MudText>
</MudPaper> </MudPaper>
</MudItem> </MudItem>
<MudItem xs="12" md="3"> <MudItem xs="12" md="3">
<MudPaper Elevation="1" Class="pa-4 text-center"> <MudPaper Elevation="1" Class="pa-4 text-center">
<MudText Typo="Typo.subtitle2" Color="Color.Info">میانگین مبلغ سفارش</MudText> <MudText Typo="Typo.subtitle2" Color="Color.Info">میانگین مبلغ سفارش</MudText>
<MudText Typo="Typo.h5">@_averageOrder.ToString("N0") ریال</MudText> <MudText Typo="Typo.h5">@_averageOrder.ToString("N0") تومان</MudText>
</MudPaper> </MudPaper>
</MudItem> </MudItem>
<MudItem xs="12" md="3"> <MudItem xs="12" md="3">
@@ -237,7 +237,7 @@
</TemplateColumn> </TemplateColumn>
<TemplateColumn Title="مبلغ"> <TemplateColumn Title="مبلغ">
<CellTemplate> <CellTemplate>
@context.Item.Amount.ToString("N0") ریال @context.Item.Amount.ToString("N0") تومان
</CellTemplate> </CellTemplate>
</TemplateColumn> </TemplateColumn>
<TemplateColumn Title="وضعیت پرداخت"> <TemplateColumn Title="وضعیت پرداخت">
@@ -279,8 +279,8 @@ public partial class OrderSalesReports
sb.AppendLine("خلاصه:"); sb.AppendLine("خلاصه:");
sb.AppendLine($"تعداد سفارش‌ها: {_totalOrders}"); sb.AppendLine($"تعداد سفارش‌ها: {_totalOrders}");
sb.AppendLine($"مجموع فروش: {_totalSales:N0} ریال"); sb.AppendLine($"مجموع فروش: {_totalSales:N0} تومان");
sb.AppendLine($"میانگین مبلغ سفارش: {_averageOrder:N0} ریال"); sb.AppendLine($"میانگین مبلغ سفارش: {_averageOrder:N0} تومان");
sb.AppendLine($"پرداخت شده: {_paidCount}"); sb.AppendLine($"پرداخت شده: {_paidCount}");
sb.AppendLine(); sb.AppendLine();
@@ -33,12 +33,12 @@
<PropertyColumn Property="x => x.UserId" Title="کاربر" /> <PropertyColumn Property="x => x.UserId" Title="کاربر" />
<TemplateColumn Title="موجودی اصلی"> <TemplateColumn Title="موجودی اصلی">
<CellTemplate> <CellTemplate>
<MudText Color="Color.Primary"><strong>@context.Item.Balance.ToString("N0")</strong> ریال</MudText> <MudText Color="Color.Primary"><strong>@context.Item.Balance.ToString("N0")</strong> تومان</MudText>
</CellTemplate> </CellTemplate>
</TemplateColumn> </TemplateColumn>
<TemplateColumn Title="موجودی شبکه"> <TemplateColumn Title="موجودی شبکه">
<CellTemplate> <CellTemplate>
<MudText Color="Color.Success">@context.Item.NetworkBalance.ToString("N0") ریال</MudText> <MudText Color="Color.Success">@context.Item.NetworkBalance.ToString("N0") تومان</MudText>
</CellTemplate> </CellTemplate>
</TemplateColumn> </TemplateColumn>
<TemplateColumn Title="عملیات" Sortable="false"> <TemplateColumn Title="عملیات" Sortable="false">