From a4b90b5142d12179cb9fa20badd6dc04b6f677f7 Mon Sep 17 00:00:00 2001 From: mmrbnjd Date: Tue, 21 Jan 2025 19:06:37 +0330 Subject: [PATCH] ... --- Back/Services/Warehouse/WarehouseService.cs | 2 - Shared/DTOs/Warehouse/CirculationDto.cs | 1 - TaxPayerFull/Layout/LTable.razor | 60 ++++++++++++++++---- TaxPayerFull/Pages/UserPanel/Warehouse.razor | 39 ++++++++----- 4 files changed, 74 insertions(+), 28 deletions(-) diff --git a/Back/Services/Warehouse/WarehouseService.cs b/Back/Services/Warehouse/WarehouseService.cs index 44572a0..5ca641c 100644 --- a/Back/Services/Warehouse/WarehouseService.cs +++ b/Back/Services/Warehouse/WarehouseService.cs @@ -28,7 +28,6 @@ namespace Back.Services.Warehouse var RequestRemittance = _RemittanceRepo.Get(w => w.cODItem.CompanyID == CompanyID && !w.Deleted) .Select(s=>new CirculationDto { - ID= s.ID, CODID=s.CODID, CODTitle=s.cODItem.Title, Date=s.Date, @@ -46,7 +45,6 @@ namespace Back.Services.Warehouse var RequestReceipt = _ReceiptRepo.Get(w => w.cODItem.CompanyID == CompanyID && !w.Deleted) .Select(s => new CirculationDto { - ID = s.ID, CODID = s.CODID, CODTitle = s.cODItem.Title, Date = s.Date, diff --git a/Shared/DTOs/Warehouse/CirculationDto.cs b/Shared/DTOs/Warehouse/CirculationDto.cs index 683c0dd..1319dba 100644 --- a/Shared/DTOs/Warehouse/CirculationDto.cs +++ b/Shared/DTOs/Warehouse/CirculationDto.cs @@ -18,7 +18,6 @@ namespace Shared.DTOs.Warehouse } public class CirculationDto { - public int ID { get; set; } public int CODID { get; set; } [Display(Name = "کالا")] public string? CODTitle { get; set; } diff --git a/TaxPayerFull/Layout/LTable.razor b/TaxPayerFull/Layout/LTable.razor index ff1efc8..3a9f537 100644 --- a/TaxPayerFull/Layout/LTable.razor +++ b/TaxPayerFull/Layout/LTable.razor @@ -54,7 +54,14 @@ { if (id > 0) { - + if (OnMultipleOfThree.HasValue) + { + + } + else if (OnMultipleOfThreeGeneric.HasValue) + { + + } } else { @@ -67,7 +74,7 @@ var convertmodel = (SentTaxDto)Convert.ChangeType(item, typeof(SentTaxDto)); switch (convertmodel.SentStatus) { - case SentStatus.Send: + case SentStatus.Send: @property.GetValue(item, null) break; @@ -75,15 +82,15 @@ @property.GetValue(item, null) break; - case SentStatus.Unsuccessful: + case SentStatus.Unsuccessful: @property.GetValue(item, null) break; - case SentStatus.pending : + case SentStatus.pending: @property.GetValue(item, null) break; - case SentStatus.IN_PROGRESS : + case SentStatus.IN_PROGRESS: @property.GetValue(item, null) break; @@ -112,14 +119,32 @@ { var convertmodel = (SentTaxDto)Convert.ChangeType(item, typeof(SentTaxDto)); if (convertmodel.SentStatus == SentStatus.Send - || convertmodel.SentStatus == SentStatus.pending + || convertmodel.SentStatus == SentStatus.pending || convertmodel.SentStatus == SentStatus.IN_PROGRESS) { - + if (OnMultipleOfThree.HasValue) + { + + + } + else if (OnMultipleOfThreeGeneric.HasValue) + { + + + } } else if (convertmodel.SentStatus == SentStatus.Unsuccessful) { - + if (OnMultipleOfThree.HasValue) + { + + + } + else if (OnMultipleOfThreeGeneric.HasValue) + { + + + } } else { @@ -128,16 +153,25 @@ } else { - if (id > 0) + if (id > 0 /* || item.ToString() == "Shared.DTOs.Warehouse.CirculationDto" */) { - + if (OnMultipleOfThree.HasValue) + { + + + } + else if (OnMultipleOfThreeGeneric.HasValue) + { + + + } } else { } } - + } @@ -159,5 +193,7 @@ @code { [Parameter] public List ModelinComponent { get; set; } = new List(); - [Parameter] public EventCallback OnMultipleOfThree { get; set; } + [Parameter] public EventCallback? OnMultipleOfThree { get; set; } + [Parameter] public EventCallback? OnMultipleOfThreeGeneric { get; set; } + } diff --git a/TaxPayerFull/Pages/UserPanel/Warehouse.razor b/TaxPayerFull/Pages/UserPanel/Warehouse.razor index 9f125cb..88db301 100644 --- a/TaxPayerFull/Pages/UserPanel/Warehouse.razor +++ b/TaxPayerFull/Pages/UserPanel/Warehouse.razor @@ -59,10 +59,10 @@
- +
- +
@@ -80,7 +80,7 @@ @* data *@ @if (request != null) { - + @* pagination *@

@request?.RowCount آیتم یافت شد