mirror of https://github.com/EasyAbp/EShop.git
7 changed files with 22 additions and 106 deletions
@ -1,12 +0,0 @@ |
|||
using System.ComponentModel.DataAnnotations; |
|||
using Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.TagHelpers.Form; |
|||
|
|||
namespace EasyAbp.EShop.Products.Web.Pages.EShop.Products.Products.Product.ViewModels |
|||
{ |
|||
public class EditProductDetailViewModel |
|||
{ |
|||
[TextArea(Rows = 4)] |
|||
[Display(Name = "ProductDetailDescription")] |
|||
public string Description { get; set; } |
|||
} |
|||
} |
|||
@ -1,58 +0,0 @@ |
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.ComponentModel.DataAnnotations; |
|||
using EasyAbp.Abp.TagHelperPlus.EasySelector; |
|||
using EasyAbp.EShop.Products.Products; |
|||
using Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.TagHelpers.Form; |
|||
|
|||
namespace EasyAbp.EShop.Products.Web.Pages.EShop.Products.Products.Product.ViewModels |
|||
{ |
|||
public class EditProductViewModel |
|||
{ |
|||
[Required] |
|||
[SelectItems("ProductGroups")] |
|||
[Display(Name = "ProductProductGroupName")] |
|||
public string ProductGroupName { get; set; } |
|||
|
|||
// [SelectItems("Categories")]
|
|||
[EasySelector( |
|||
getListedDataSourceUrl: ProductsConsts.GetCategorySummaryListedDataSourceUrl, |
|||
getSingleDataSourceUrl: ProductsConsts.GetCategorySummarySingleDataSourceUrl, |
|||
keyPropertyName: "id", |
|||
textPropertyName: "displayName")] |
|||
[Display(Name = "ProductCategory")] |
|||
public List<Guid> CategoryIds { get; set; } |
|||
|
|||
[Display(Name = "ProductUniqueName")] |
|||
public string UniqueName { get; set; } |
|||
|
|||
[Required] |
|||
[Display(Name = "ProductDisplayName")] |
|||
public string DisplayName { get; set; } |
|||
|
|||
public EditProductDetailViewModel ProductDetail { get; set; } |
|||
|
|||
[Required] |
|||
[Placeholder("ProductAttributeNamesPlaceholder")] |
|||
[Display(Name = "ProductAttributeNames")] |
|||
public string ProductAttributeNames { get; set; } |
|||
|
|||
[Required] |
|||
[TextArea(Rows = 4)] |
|||
[Placeholder("ProductAttributeOptionNamesPlaceholder")] |
|||
[Display(Name = "ProductAttributeOptionNames")] |
|||
public string ProductAttributeOptionNames { get; set; } |
|||
|
|||
[Display(Name = "ProductInventoryStrategy")] |
|||
public InventoryStrategy InventoryStrategy { get; set; } |
|||
|
|||
[Display(Name = "ProductDisplayOrder")] |
|||
public int DisplayOrder { get; set; } |
|||
|
|||
[Display(Name = "ProductMediaResources")] |
|||
public string MediaResources { get; set; } |
|||
|
|||
[Display(Name = "ProductIsPublished")] |
|||
public bool IsPublished { get; set; } |
|||
} |
|||
} |
|||
Loading…
Reference in new issue