...
This commit is contained in:
@@ -59,10 +59,10 @@
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="col-auto">
|
||||
<Button Disabled="SpinnerVisible" Type="ButtonType.Submit" Color="ButtonColor.Primary" @onclick="()=>Item(-1)">رسید جدید</Button>
|
||||
<Button Disabled="SpinnerVisible" Type="ButtonType.Submit" Color="ButtonColor.Primary" @onclick="()=>Item(new CirculationDto(){Type=TypeCirculation.Receipt})">رسید جدید</Button>
|
||||
</div>
|
||||
<div class="col-auto">
|
||||
<Button Disabled="SpinnerVisible" Type="ButtonType.Submit" Color="ButtonColor.Primary" @onclick="()=>Item(-2)">حواله جدید</Button>
|
||||
<Button Disabled="SpinnerVisible" Type="ButtonType.Submit" Color="ButtonColor.Primary" @onclick="()=>Item(new CirculationDto(){Type=TypeCirculation.Remittance})">حواله جدید</Button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -80,7 +80,7 @@
|
||||
@* data *@
|
||||
@if (request != null)
|
||||
{
|
||||
<LTable ModelinComponent="request?.list" OnMultipleOfThree="EventCallback.Factory.Create<int>(this,Item)" />
|
||||
<LTable ModelinComponent="request?.list" OnMultipleOfThreeGeneric="EventCallback.Factory.Create<CirculationDto>(this,Item)" />
|
||||
@* pagination *@
|
||||
<p style="color:red">@request?.RowCount آیتم یافت شد</p>
|
||||
<nav aria-label="Page navigation">
|
||||
@@ -185,22 +185,35 @@
|
||||
{
|
||||
|
||||
}
|
||||
public async Task Item(int ID)
|
||||
public async Task Item(CirculationDto circulationDto)
|
||||
{
|
||||
//رسید جدید
|
||||
if (ID == -1)
|
||||
//رسید
|
||||
if (circulationDto.Type == TypeCirculation.Receipt)
|
||||
{
|
||||
|
||||
//جدید
|
||||
if (circulationDto.CODID==0)
|
||||
{
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
//حواله جدید
|
||||
if (ID == -2)
|
||||
//حواله
|
||||
if (circulationDto.Type == TypeCirculation.Remittance)
|
||||
{
|
||||
//جدید
|
||||
if (circulationDto.CODID == 0)
|
||||
{
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
if (ID >0)
|
||||
{
|
||||
request.list.Where(w=>w.i)
|
||||
}
|
||||
|
||||
// var parameters = new Dictionary<string, object>();
|
||||
|
||||
// if (ID == 0) parameters.Add("Cus", new RCustomer() { ID = 0 });
|
||||
|
Reference in New Issue
Block a user