You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
1.8 KiB
38 lines
1.8 KiB
@page "/customers"
|
|
@using Biskilog_Accounting.Shared.CustomModels;
|
|
@using Biskilog_Accounting.Shared.Interfaces;
|
|
@using Biskilog_Accounting.Client.Pages.Transactions.Elements;
|
|
@using BlazorDateRangePicker;
|
|
@inject ICalculator m_calculator
|
|
@inject ContextMenuService ContextMenuService
|
|
@inject DialogService m_dialogService
|
|
@inject ISearchService m_searchControl
|
|
@implements IDisposable
|
|
@inject IMainInterface m_mainInterface
|
|
@inject ICustomer m_customerService
|
|
<h3>Customers</h3>
|
|
<RadzenDataGrid AllowPaging="true" PageSize="50" AllowSorting="true" Data="@m_customers" TItem="CustomerAccounts"
|
|
GridLines="DataGridGridLines.Horizontal">
|
|
<Columns>
|
|
<RadzenDataGridColumn TItem="CustomerAccounts" Property="Customer.Firstname" Title="Name">
|
|
<Template Context="detail">
|
|
@(detail.Customer.Firstname + " ") @(detail.Customer.Surname)
|
|
</Template>
|
|
</RadzenDataGridColumn>
|
|
<RadzenDataGridColumn TItem="CustomerAccounts" Property="Customer.Telephone" Title="Telephone" />
|
|
<RadzenDataGridColumn TItem="CustomerAccounts" Property="Customer.Address" Title="Address" />
|
|
<RadzenDataGridColumn TItem="CustomerAccounts" Property="Customer.DateAdded" Title="Date Added" />
|
|
<RadzenDataGridColumn TItem="CustomerAccounts" Property="Customer.Status" Title="Status" Width="10%" />
|
|
<RadzenDataGridColumn TItem="CustomerAccounts" Property="Customer.Debt" Title="Balance">
|
|
<Template Context="detail">
|
|
@(
|
|
m_calculator.FormatMoneyWithCurrency((double)detail.Debt)
|
|
)
|
|
</Template>
|
|
</RadzenDataGridColumn>
|
|
<RadzenDataGridColumn TItem="CustomerAccounts" Property="Customer.BranchId" Title="Branch" Resizable Reorderable />
|
|
</Columns>
|
|
</RadzenDataGrid>
|
|
@code {
|
|
|
|
}
|
|
|