Merge branch 'master' of http://git2.aycode.com/Adam/TourIAm
This commit is contained in:
commit
c9984d4cf5
|
|
@ -19,8 +19,8 @@
|
|||
<PageTitle>User permissions</PageTitle>
|
||||
|
||||
<div class="text-center m-5">
|
||||
<h1>User permissions</h1>
|
||||
<h2 style="font-size:small">Manage transfers here!</h2>
|
||||
<h1>Partner prices</h1>
|
||||
<h2 style="font-size:small">Set partner prices here!</h2>
|
||||
</div>
|
||||
|
||||
|
||||
|
|
@ -30,13 +30,7 @@
|
|||
<Animation Effect="@Effect.FadeInUp" Speed="@Speed.Fast" Delay="@TimeSpan.FromMilliseconds(250)">
|
||||
<div class="card">
|
||||
<div class="d-flex flex-column mb-4 pb-2">
|
||||
<div class="align-self-end pl-2 pb-2">
|
||||
<DxButton Text="Column Chooser"
|
||||
RenderStyle="ButtonRenderStyle.Secondary"
|
||||
IconCssClass="btn-column-chooser"
|
||||
Click="ColumnChooserButton_Click" />
|
||||
</div>
|
||||
|
||||
|
||||
<TransferDestinationToProductGridComponent DetailExpandButtonDisplayMode="GridDetailExpandButtonDisplayMode.Auto"></TransferDestinationToProductGridComponent>
|
||||
|
||||
</div>
|
||||
|
|
@ -58,19 +52,9 @@
|
|||
|
||||
bool PopupVisible { get; set; }
|
||||
|
||||
IGrid Grid { get; set; }
|
||||
//object? MasterGridData { get; set; }
|
||||
|
||||
bool AutoCollapseDetailRow { get; set; }
|
||||
|
||||
public List<string> IgnoreList =
|
||||
[
|
||||
"ReceiverEmailAddress",
|
||||
"ReceiverId",
|
||||
"SenderEmailAddress",
|
||||
"SenderId",
|
||||
"ContextId"
|
||||
];
|
||||
|
||||
|
||||
|
||||
void Grid_CustomizeElement(GridCustomizeElementEventArgs e)
|
||||
|
|
@ -159,10 +143,6 @@
|
|||
|
||||
base.OnInitialized();
|
||||
}
|
||||
|
||||
void ColumnChooserButton_Click()
|
||||
{
|
||||
Grid.ShowColumnChooser();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -30,7 +30,6 @@
|
|||
</div>
|
||||
<TransferDestinationGridComponent DetailExpandButtonDisplayMode="GridDetailExpandButtonDisplayMode.Auto" GetAllTag="SignalRTags.GetAllTransferDestinations"></TransferDestinationGridComponent>
|
||||
|
||||
|
||||
</div>
|
||||
</Animation>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -47,7 +47,7 @@
|
|||
|
||||
<DxTabs>
|
||||
<DxTabPage Text="Partner">
|
||||
|
||||
<ProductDetailGridComponent DetailExpandButtonDisplayMode="GridDetailExpandButtonDisplayMode.Auto" GetAllTag="SignalRTags.GetProductsById" ContextId="((TransferDestinationToProduct)context.DataItem).ProductId" ParentData="(Company)context.DataItem" KeyboardNavigationEnabled="true" />
|
||||
</DxTabPage>
|
||||
|
||||
</DxTabs>
|
||||
|
|
|
|||
|
|
@ -21,6 +21,7 @@ using TIAMWebApp.Shared.Application.Models.ClientSide;
|
|||
using AyCode.Core.Extensions;
|
||||
using TIAM.Entities.Users;
|
||||
using TIAMSharedUI.Shared.Components.Grids;
|
||||
using AyCode.Core.Helpers;
|
||||
|
||||
namespace TIAMWebApp.Server.Controllers
|
||||
{
|
||||
|
|
@ -136,6 +137,7 @@ namespace TIAMWebApp.Server.Controllers
|
|||
return result ? transferDestination : null;
|
||||
}
|
||||
|
||||
|
||||
|
||||
//[AllowAnonymous]
|
||||
//[HttpPost]
|
||||
|
|
@ -258,27 +260,29 @@ namespace TIAMWebApp.Server.Controllers
|
|||
|
||||
//}
|
||||
|
||||
//[AllowAnonymous]
|
||||
//[HttpGet]
|
||||
//[Route(APIUrls.GetTransferDestinationsRouteName)]
|
||||
//TransferDestinationToProduct
|
||||
|
||||
[AllowAnonymous]
|
||||
[HttpGet]
|
||||
[Route(APIUrls.GetAllTransferDestinationToProductsRouteName)]
|
||||
[SignalR(SignalRTags.GetAllTransferDestinationToProducts)]
|
||||
public async Task<List<TransferDestinationToProduct>> GetAllTransferDestinationToProducts()
|
||||
{
|
||||
return await _adminDal.GetTransferDestinationToProducts();
|
||||
}
|
||||
|
||||
//[AllowAnonymous]
|
||||
//[HttpGet]
|
||||
//[Route(APIUrls.GetTransferDestinationsRouteName)]
|
||||
[AllowAnonymous]
|
||||
[HttpGet]
|
||||
[Route(APIUrls.GetTransferDestinationToProductsByProductIdRouteName)]
|
||||
[SignalR(SignalRTags.GetTransferDestinationToProductsByProductId)]
|
||||
public async Task<List<TransferDestinationToProduct>> GetTransferDestinationToProductsByProductId(Guid productId)
|
||||
{
|
||||
return await _adminDal.GetTransferDestinationToProductsByProductId(productId);
|
||||
}
|
||||
|
||||
//[AllowAnonymous]
|
||||
//[HttpGet]
|
||||
//[Route(APIUrls.GetTransferDestinationsRouteName)]
|
||||
[AllowAnonymous]
|
||||
[HttpGet]
|
||||
[Route(APIUrls.GetTransferDestinationToProductsByTransferDestinationIdRouteName)]
|
||||
[SignalR(SignalRTags.GetTransferDestinationToProductsByTransferDestinationId)]
|
||||
public async Task<List<TransferDestinationToProduct>> GetTransferDestinationToProductsByTransferDestinationId(Guid transferDestinationId)
|
||||
{
|
||||
|
|
@ -287,7 +291,8 @@ namespace TIAMWebApp.Server.Controllers
|
|||
|
||||
//[Authorize]
|
||||
//[HttpGet]
|
||||
//[Route(APIUrls.GetTransferDriversByTransferIdRouteName)]
|
||||
//[Route(APIUrls.GetTransferDestinationToProductById)]
|
||||
[NonAction]
|
||||
[SignalR(SignalRTags.GetTransferDestinationToProductById)]
|
||||
public async Task<TransferDestinationToProduct?> GetTransferDestinationToProductById(Guid transferDestinationToProductId)
|
||||
{
|
||||
|
|
@ -297,7 +302,7 @@ namespace TIAMWebApp.Server.Controllers
|
|||
|
||||
[AllowAnonymous]
|
||||
[HttpPost]
|
||||
[Route(APIUrls.CreateTransferDestinationRouteName)]
|
||||
[Route(APIUrls.CreateTransferDestinationToProductRouteName)]
|
||||
[SignalR(SignalRTags.CreateTransferDestinationToProduct)]
|
||||
public async Task<TransferDestinationToProduct?> CreateTransferDestinationToProduct([FromBody] TransferDestinationToProduct transferDestinationToProduct)
|
||||
{
|
||||
|
|
@ -320,9 +325,9 @@ namespace TIAMWebApp.Server.Controllers
|
|||
return isSuccess ? transferDestinationToProduct : null;
|
||||
}
|
||||
|
||||
//[AllowAnonymous]
|
||||
//[HttpPost]
|
||||
//[Route(APIUrls.UpdateTransferDestinationRouteName)]
|
||||
[AllowAnonymous]
|
||||
[HttpPost]
|
||||
[Route(APIUrls.UpdateTransferDestinationToProductRouteName)]
|
||||
[SignalR(SignalRTags.UpdateTransferDestinationToProduct)]
|
||||
public async Task<TransferDestinationToProduct?> UpdateTransferDestinationToProduct([FromBody] TransferDestinationToProduct transferDestinationToProduct)
|
||||
{
|
||||
|
|
@ -341,9 +346,9 @@ namespace TIAMWebApp.Server.Controllers
|
|||
|
||||
}
|
||||
|
||||
//[Authorize]
|
||||
//[HttpGet]
|
||||
//[Route(APIUrls.GetTransferDriversByTransferIdRouteName)]
|
||||
[Authorize]
|
||||
[HttpGet]
|
||||
[Route(APIUrls.RemoveTransferDestinationToProductRouteName)]
|
||||
[SignalR(SignalRTags.RemoveTransferDestinationToProduct)]
|
||||
public async Task<TransferDestinationToProduct?> RemoveTransferDestinationToProduct([FromBody] TransferDestinationToProduct transferDestinationToProduct)
|
||||
{
|
||||
|
|
@ -351,6 +356,8 @@ namespace TIAMWebApp.Server.Controllers
|
|||
return result ? transferDestinationToProduct : null;
|
||||
}
|
||||
|
||||
//transfer
|
||||
|
||||
[AllowAnonymous]
|
||||
[HttpPost]
|
||||
[Route(APIUrls.CreateTransferRouteName)]
|
||||
|
|
|
|||
|
|
@ -81,6 +81,24 @@ namespace TIAMWebApp.Shared.Application.Models
|
|||
public const string CreateTransferDestinationRouteName = "CreateTransferDestination";
|
||||
public const string CreateTransferDestination = TransferDataAPI + CreateTransferDestinationRouteName;
|
||||
|
||||
public const string GetAllTransferDestinationToProductsRouteName = "GetAllTransferDestinationToProducts";
|
||||
public const string GetAllTransferDestinationToProducts = TransferDataAPI + GetAllTransferDestinationToProductsRouteName;
|
||||
|
||||
public const string GetTransferDestinationToProductsByProductIdRouteName = "GetTransferDestinationToProductsByProductId";
|
||||
public const string GetTransferDestinationToProductsByProductId = TransferDataAPI + GetTransferDestinationToProductsByProductIdRouteName;
|
||||
|
||||
public const string GetTransferDestinationToProductsByTransferDestinationIdRouteName = "GetTransferDestinationToProductsByTransferDestinationId";
|
||||
public const string GetTransferDestinationToProductsByTransferDestinationId = TransferDataAPI + GetTransferDestinationToProductsByTransferDestinationIdRouteName;
|
||||
|
||||
public const string CreateTransferDestinationToProductRouteName = "CreateTransferDestinationToProduct";
|
||||
public const string CreateTransferDestinationToProduct = TransferDataAPI + CreateTransferDestinationToProductRouteName;
|
||||
|
||||
public const string UpdateTransferDestinationToProductRouteName = "UpdateTransferDestinationToProduct";
|
||||
public const string UpdateTransferDestinationToProduct = TransferDataAPI + UpdateTransferDestinationToProductRouteName;
|
||||
|
||||
public const string RemoveTransferDestinationToProductRouteName = "RemoveTransferDestinationToProduct";
|
||||
public const string RemoveTransferDestinationToProduct = TransferDataAPI + RemoveTransferDestinationToProductRouteName;
|
||||
|
||||
public const string GetTransfersRouteName = "GetTransfers";
|
||||
public const string GetTransfers = TransferDataAPI + GetTransfersRouteName;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue