29 lines
810 B
C#
29 lines
810 B
C#
using Microsoft.AspNetCore.Mvc.Rendering;
|
|
using Nop.Web.Areas.Admin.Models.Orders;
|
|
using Nop.Web.Framework.Mvc.ModelBinding;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Nop.Plugin.Misc.FruitBankPlugin.Areas.Admin.Models.Order
|
|
{
|
|
public partial record OrderSearchModelExtended : OrderSearchModel
|
|
{
|
|
|
|
[NopResourceDisplayName("Admin.Orders.List.BillingCompany")]
|
|
public string BillingCompany { get; set; }
|
|
|
|
public string SortColumn { get; set; }
|
|
public string SortColumnDirection { get; set; }
|
|
|
|
public void SetGridSort(string columnName, string columnDirection = "asc")
|
|
{
|
|
SortColumn = "Id";
|
|
SortColumnDirection = columnDirection;
|
|
}
|
|
|
|
}
|
|
}
|