...
This commit is contained in:
@@ -29,12 +29,12 @@
|
||||
<label class="col-sm-4 col-form-label" style="color:red" for="inputTitle">نام کالا</label>
|
||||
@if (Cod.ID == 0 || !_UsedInTheInvoice)
|
||||
{
|
||||
<InputText dir="rtl" @bind-Value="Cod.Title" type="text" class="form-control" id="inputTitle" placeholder="نام کالا"
|
||||
<InputText style="text-align:center" @bind-Value="Cod.Title" type="text" class="form-control" id="inputTitle" placeholder="نام کالا"
|
||||
/>
|
||||
}
|
||||
else
|
||||
{
|
||||
<InputText dir="rtl" @bind-Value="Cod.Title" type="text" class="form-control" id="inputTitle" placeholder="نام کالا" readonly />
|
||||
<InputText style="text-align:center" @bind-Value="Cod.Title" type="text" class="form-control" id="inputTitle" placeholder="نام کالا" readonly />
|
||||
}
|
||||
|
||||
</div>
|
||||
@@ -73,19 +73,19 @@
|
||||
<div class="row g-3">
|
||||
<div class="col-md-6">
|
||||
<label class="col-sm-5 col-form-label">شناسه مالیاتی کالا</label>
|
||||
<InputText dir="rtl" @bind-Value="Cod.TaxID" type="text" class="form-control" id="inputTaxID" placeholder="شناسه مالیاتی کالا" />
|
||||
<InputText dir="ltr" style="text-align:center" @bind-Value="Cod.TaxID" type="text" class="form-control" id="inputTaxID" placeholder="شناسه مالیاتی کالا" />
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<label style="color:red" class="col-sm-5 col-form-label">% نرخ مالیات کالا</label>
|
||||
<NumberInput dir="rtl" @bind-Value="Cod.TaxRate" type="text" class="form-control" id="inputTaxRate" placeholder="نرخ مالیات کالا" />
|
||||
<NumberInput dir="ltr" style="text-align:center" @bind-Value="Cod.TaxRate" type="number" class="form-control" id="inputTaxRate" placeholder="نرخ مالیات کالا" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<Spinner Visible="SpinnerVisible" Color="SpinnerColor.Primary" />
|
||||
|
||||
|
||||
</form>
|
||||
|
||||
|
||||
<div class="row g-3">
|
||||
<div class="col-md-10">
|
||||
@if (Cod.ID == 0)
|
||||
{
|
||||
<Button class="mt-3" Color="ButtonColor.Success" @onclick="OnClickAdd" Type="ButtonType.Button">
|
||||
@@ -108,8 +108,11 @@ else
|
||||
</Button>
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
</div>
|
||||
<div class="col-md-2" style="align-content:center">
|
||||
<Spinner Visible="SpinnerVisible" Color="SpinnerColor.Primary" />
|
||||
</div>
|
||||
</div>
|
||||
@code {
|
||||
public bool SpinnerVisible { get; set; } = false;
|
||||
private ConfirmDialog dialog = default!;
|
||||
@@ -226,7 +229,7 @@ else
|
||||
public async Task OnClickAdd()
|
||||
{
|
||||
SpinnerVisible = true;
|
||||
if (Cod.UnitID > 0 && Cod.TaxRate > 0 && !string.IsNullOrEmpty(Cod.Title))
|
||||
if (Cod.UnitID > 0 && Cod.TaxRate >= 0 && !string.IsNullOrEmpty(Cod.Title))
|
||||
{
|
||||
|
||||
var rsp = await hc.Post<RCOD>("Cod/Add", Cod);
|
||||
|
@@ -6,7 +6,7 @@
|
||||
@inject HttpClientController hc;
|
||||
@inject Fixedvalues fv;
|
||||
<PageTitle>کالا</PageTitle>
|
||||
<Modal Size="ModalSize.ExtraLarge" @ref="modal" />
|
||||
<Modal @ref="modal" />
|
||||
<Preload LoadingText="در حال بارگذاری..." />
|
||||
@* search *@
|
||||
<div class="row">
|
||||
@@ -21,7 +21,7 @@
|
||||
<li class="list-group-item" data-toggle="modal" data-target="#issue">
|
||||
<div class="row g-3">
|
||||
<div class="col-md-1">
|
||||
<input @bind-value="itemsearch.CODID" placeholder="شناسه" style="text-align:center;" class="form-control" type="text" >
|
||||
<input @bind-value="itemsearch.CODID" placeholder="شناسه" style="text-align:center;" dir="ltr" class="form-control" type="text">
|
||||
</div>
|
||||
<div class="col-md-2">
|
||||
<input @bind-value="itemsearch.Title" placeholder="نام کالا" style="text-align:center;" class="form-control" type="text">
|
||||
@@ -39,7 +39,7 @@
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-md-2">
|
||||
<input @bind-value="itemsearch.ItemTaxID" placeholder="شناسه مالیاتی" style="text-align:center;" class="form-control" type="text">
|
||||
<input @bind-value="itemsearch.ItemTaxID" placeholder="شناسه مالیاتی" dir="ltr" style="text-align:center;" class="form-control" type="text">
|
||||
</div>
|
||||
|
||||
<div class="col-auto">
|
||||
@@ -67,11 +67,15 @@
|
||||
|
||||
</div>
|
||||
<div class="col-auto" >
|
||||
|
||||
<Button Color="ButtonColor.Info" @onclick="Showstuff" Type="ButtonType.Button">
|
||||
<a href="https://stuffid.tax.gov.ir/" target="_blank" rel="noopener noreferrer">
|
||||
<Button Color="ButtonColor.Info" Type="ButtonType.Button">
|
||||
دریافت شناسه کالا
|
||||
</Button>
|
||||
|
||||
</a>
|
||||
@* <Button Color="ButtonColor.Info" @onclick="Showstuff" Type="ButtonType.Button">
|
||||
دریافت شناسه کالا
|
||||
</Button>
|
||||
*@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -166,7 +170,7 @@
|
||||
}
|
||||
public async Task LoadCod(int pi)
|
||||
{
|
||||
|
||||
if (itemsearch.UnitID == 0) itemsearch.UnitID = null;
|
||||
itemsearch.PageSize = 10;
|
||||
itemsearch.PageIndex = pi;
|
||||
PreloadService.Show(SpinnerColor.Dark);
|
||||
@@ -213,7 +217,7 @@
|
||||
public async Task CodItem(int ID)
|
||||
{
|
||||
var parameters = new Dictionary<string, object>();
|
||||
|
||||
modal.Size = ModalSize.Regular;
|
||||
if(ID == 0) parameters.Add("Cod", new RCOD(){ID=0});
|
||||
else parameters.Add("Cod", request.list.Where(w=>w.ID==ID).First().Clone());
|
||||
parameters.Add("Unitrequest", Unitrequest);
|
||||
@@ -225,6 +229,7 @@
|
||||
public async Task Showstuff()
|
||||
{
|
||||
var parameters = new Dictionary<string, object>();
|
||||
modal.Size = ModalSize.ExtraLarge;
|
||||
await modal.ShowAsync<Front.CUSComponent.Taxstuff>(title: "دریافت شناسه کالا", parameters: parameters);
|
||||
|
||||
|
||||
|
@@ -380,29 +380,19 @@
|
||||
<div class="row">
|
||||
@if (fv.dashBoard == null)
|
||||
{
|
||||
<div class="col-auto" >
|
||||
<Spinner Visible="fv.dashBoard == null" Color="SpinnerColor.Primary" />
|
||||
|
||||
</div> <div class="col-auto">
|
||||
<p>در حال بارگذاری...</p>
|
||||
</div>
|
||||
}
|
||||
@if (fv.dashBoard != null)
|
||||
else
|
||||
{
|
||||
<!-- Order Statistics -->
|
||||
<LastActivityServices dashBoard="fv.dashBoard" />
|
||||
<!--/ Order Statistics -->
|
||||
}
|
||||
<!-- MostInvoicedCustomer -->
|
||||
@if (fv.dashBoard != null)
|
||||
{
|
||||
<MostInvoicedCustomer model="fv.dashBoard?.MostInvoicedCustomer" />
|
||||
|
||||
}
|
||||
<!--/ MostInvoicedCustomer -->
|
||||
<!-- MostInvoicedProduct -->
|
||||
@if (fv.dashBoard != null)
|
||||
{
|
||||
<MostInvoicedProduct model="fv.dashBoard?.MostInvoicedProduct" />
|
||||
|
||||
}
|
||||
|
||||
<!--/ MostInvoicedProduct -->
|
||||
</div>
|
||||
|
||||
|
@@ -165,3 +165,13 @@ code {
|
||||
|
||||
|
||||
|
||||
input::-webkit-outer-spin-button,
|
||||
input::-webkit-inner-spin-button {
|
||||
/* display: none; <- Crashes Chrome on hover */
|
||||
-webkit-appearance: none;
|
||||
margin: 0; /* <-- Apparently some margin are still there even though it's hidden */
|
||||
}
|
||||
|
||||
input[type=number] {
|
||||
-moz-appearance: textfield; /* Firefox */
|
||||
}
|
Reference in New Issue
Block a user