...
This commit is contained in:
@@ -7,7 +7,6 @@
|
||||
@inject Fixedvalues fv;
|
||||
<PageTitle>کالا</PageTitle>
|
||||
<Modal @ref="modal" />
|
||||
|
||||
<Preload LoadingText="در حال بارگذاری..." />
|
||||
@* search *@
|
||||
<div class="row">
|
||||
@@ -60,10 +59,18 @@
|
||||
<div class="col-md-12">
|
||||
<div class="mb-2">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-10">
|
||||
<div class="col-auto">
|
||||
<button type="submit" @onclick="()=>CodItem(0)" class="btn btn-primary">جدید</button>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="col-md-2">
|
||||
<div class="col-auto">
|
||||
<Button Color="ButtonColor.Info" @onclick="Showstuff" Type="ButtonType.Button">
|
||||
دریافت شناسه کالا
|
||||
</Button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -110,7 +117,7 @@
|
||||
|
||||
@layout PanelLayout
|
||||
@code {
|
||||
|
||||
//private Modal stuffmodal = default!;
|
||||
[Inject] protected PreloadService PreloadService { get; set; } = default!;
|
||||
ItemSerchGetCOD itemsearch = new ItemSerchGetCOD();
|
||||
[Parameter, SupplyParameterFromQuery]
|
||||
@@ -201,7 +208,6 @@
|
||||
}
|
||||
public async Task CodItem(int ID)
|
||||
{
|
||||
|
||||
var parameters = new Dictionary<string, object>();
|
||||
|
||||
if(ID == 0) parameters.Add("Cod", new RCOD(){ID=0});
|
||||
@@ -211,5 +217,14 @@
|
||||
await modal.ShowAsync<CodItem>(title: ID == 0 ? "کالا جدید" : "ویرایش اطلاعات", parameters: parameters);
|
||||
|
||||
|
||||
}
|
||||
public async Task Showstuff()
|
||||
{
|
||||
var parameters = new Dictionary<string, object>();
|
||||
modal.Size = ModalSize.ExtraLarge;
|
||||
|
||||
await modal.ShowAsync<Front.CUSComponent.Taxstuff>(title: "دریافت شناسه کالا", parameters: parameters);
|
||||
|
||||
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user