invoicepays component
This commit is contained in:
81
TaxPayerFull/CUSComponent/InvoicePays.razor
Normal file
81
TaxPayerFull/CUSComponent/InvoicePays.razor
Normal file
@@ -0,0 +1,81 @@
|
||||
@using Shared.DTOs
|
||||
|
||||
<Grid @ref="grid"
|
||||
TItem="InvoicePaymentDTO"
|
||||
Class="table table-hover table-bordered table-striped mt-3"
|
||||
Data="payments">
|
||||
|
||||
<GridColumns>
|
||||
<GridColumn TItem="InvoicePaymentDTO" HeaderText="شناسه" PropertyName="ID">
|
||||
@context.ID
|
||||
</GridColumn>
|
||||
<GridColumn TItem="InvoicePaymentDTO" HeaderText="شماره سوییچ پرداخت" PropertyName="iinn">
|
||||
@context.iinn
|
||||
</GridColumn>
|
||||
<GridColumn TItem="InvoicePaymentDTO" HeaderText="شماره پذیرنده فروشگاهی" PropertyName="acn">
|
||||
@context.acn
|
||||
</GridColumn>
|
||||
<GridColumn TItem="InvoicePaymentDTO" HeaderText="شماره پایانه" PropertyName="trmn">
|
||||
@context.trmn
|
||||
</GridColumn>
|
||||
<GridColumn TItem="InvoicePaymentDTO" HeaderText="روش پرداخت" PropertyName="pmt">
|
||||
@context.pmt
|
||||
</GridColumn>
|
||||
<GridColumn TItem="InvoicePaymentDTO" HeaderText="شماره پیگیری/شماره مرجع" PropertyName="trn">
|
||||
@context.trn
|
||||
</GridColumn>
|
||||
<GridColumn TItem="InvoicePaymentDTO" HeaderText="شماره کارت پرداخت کننده" PropertyName="pcn">
|
||||
@context.pcn
|
||||
</GridColumn>
|
||||
<GridColumn TItem="InvoicePaymentDTO" HeaderText="شماره/شناسه ملی/کد فراگیر اتباع غیر ایرانی پرداخت کننده" PropertyName="pid">
|
||||
@context.pid
|
||||
</GridColumn>
|
||||
<GridColumn TItem="InvoicePaymentDTO" HeaderText="تاریخ" PropertyName="PaymentDateTime">
|
||||
@context.PaymentDateTime
|
||||
</GridColumn>
|
||||
<GridColumn TItem="InvoicePaymentDTO" HeaderText="مبلغ" PropertyName="pv">
|
||||
@context.pv??.ToString("N0")
|
||||
</GridColumn>
|
||||
</GridColumns>
|
||||
|
||||
</Grid>
|
||||
|
||||
@code {
|
||||
[Parameter] public ICollection<InvoicePaymentDTO> payments { get; set; }
|
||||
Grid<InvoicePaymentDTO> grid = default!;
|
||||
|
||||
|
||||
protected override void OnInitialized()
|
||||
{
|
||||
// payments = new List<InvoicePaymentDTO>();
|
||||
}
|
||||
|
||||
// private async Task AddEmployee()
|
||||
// {
|
||||
// // for the same employees collection, we are adding an object
|
||||
// // explicit grid refresh required
|
||||
// employees!.Add(CreateEmployee());
|
||||
// await grid.RefreshDataAsync();
|
||||
// }
|
||||
|
||||
// private void AddEmployee2()
|
||||
// {
|
||||
// // creates a shallow copy
|
||||
// var emps = employees!.GetRange(0, employees.Count);
|
||||
// emps.Add(CreateEmployee());
|
||||
// // now employees variable has a new reference. So no need to refresh the grid explicitly
|
||||
// // explicit grid refresh is not required
|
||||
// employees = emps;
|
||||
// }
|
||||
|
||||
// private Employee1 CreateEmployee()
|
||||
// {
|
||||
// var emp = new Employee1();
|
||||
// emp.Id = employees!.Max(x => x.Id) + 1;
|
||||
// emp.Name = $"Employee {emp.Id}";
|
||||
// emp.Designation = $"QA Engineer {emp.Id}";
|
||||
// emp.DOJ = new DateOnly(new Random().Next(1970, 2000), new Random().Next(1, 12), new Random().Next(1, 25));
|
||||
// emp.IsActive = true;
|
||||
// return emp;
|
||||
// }
|
||||
}
|
Reference in New Issue
Block a user