From a5c191f9ea87f76ab7b10fdc9c7fcf5eb63e2bc6 Mon Sep 17 00:00:00 2001 From: mmrbnjd Date: Sun, 13 Oct 2024 22:37:05 +0330 Subject: [PATCH] ... --- TaxPayerFull/CUSComponent/CodItem.razor | 23 +++++++++++++---------- TaxPayerFull/Pages/UserPanel/COD.razor | 23 ++++++++++++++--------- TaxPayerFull/Pages/UserPanel/Panel.razor | 22 ++++++---------------- TaxPayerFull/wwwroot/css/app.css | 10 ++++++++++ 4 files changed, 43 insertions(+), 35 deletions(-) diff --git a/TaxPayerFull/CUSComponent/CodItem.razor b/TaxPayerFull/CUSComponent/CodItem.razor index a12307e..7edbc35 100644 --- a/TaxPayerFull/CUSComponent/CodItem.razor +++ b/TaxPayerFull/CUSComponent/CodItem.razor @@ -29,12 +29,12 @@ @if (Cod.ID == 0 || !_UsedInTheInvoice) { - } else { - + } @@ -73,19 +73,19 @@
- +
- +
- + - - +
+
@if (Cod.ID == 0) { } } - - +
+
+ +
+
@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("Cod/Add", Cod); diff --git a/TaxPayerFull/Pages/UserPanel/COD.razor b/TaxPayerFull/Pages/UserPanel/COD.razor index 2ffbccb..d15ec1f 100644 --- a/TaxPayerFull/Pages/UserPanel/COD.razor +++ b/TaxPayerFull/Pages/UserPanel/COD.razor @@ -6,7 +6,7 @@ @inject HttpClientController hc; @inject Fixedvalues fv; کالا - + @* search *@
@@ -21,7 +21,7 @@
  • - +
    @@ -39,7 +39,7 @@
    - +
    @@ -66,12 +66,16 @@
    -
    - - + + @* - + *@
    @@ -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(); - + 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(); + modal.Size = ModalSize.ExtraLarge; await modal.ShowAsync(title: "دریافت شناسه کالا", parameters: parameters); diff --git a/TaxPayerFull/Pages/UserPanel/Panel.razor b/TaxPayerFull/Pages/UserPanel/Panel.razor index d906ac5..46ec90e 100644 --- a/TaxPayerFull/Pages/UserPanel/Panel.razor +++ b/TaxPayerFull/Pages/UserPanel/Panel.razor @@ -380,29 +380,19 @@
    @if (fv.dashBoard == null) { +
    - -

    در حال بارگذاری...

    +
    +

    در حال بارگذاری...

    +
    } - @if (fv.dashBoard != null) + else { - - - } - - @if (fv.dashBoard != null) - { - - } - - - @if (fv.dashBoard != null) - { - } +
    diff --git a/TaxPayerFull/wwwroot/css/app.css b/TaxPayerFull/wwwroot/css/app.css index f233989..7c285cf 100644 --- a/TaxPayerFull/wwwroot/css/app.css +++ b/TaxPayerFull/wwwroot/css/app.css @@ -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 */ +} \ No newline at end of file