添加项目文件。
This commit is contained in:
1 parent
05e131ca4e
commit
514d6f5255
1162 files changed
+81255
No files matched your search
@@ -0,0 +1,48 @@
|
||||
// WTM默认页面 Wtm buidin page
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Linq;
|
||||
using WalkingTec.Mvvm.Core;
|
||||
using WalkingTec.Mvvm.Core.Extensions;
|
||||
|
||||
namespace WalkingTec.Mvvm.Mvc.Admin.ViewModels.FrameworkMenuVMs
|
||||
{
|
||||
public class FrameworkMenuBatchVM : BaseBatchVM<FrameworkMenu, FrameworkMenu_BatchEdit>
|
||||
{
|
||||
public FrameworkMenuBatchVM()
|
||||
{
|
||||
}
|
||||
protected override void InitVM()
|
||||
{
|
||||
}
|
||||
|
||||
public override bool DoBatchDelete()
|
||||
{
|
||||
if (Ids != null)
|
||||
{
|
||||
foreach (var item in Ids)
|
||||
{
|
||||
FrameworkMenu f = new FrameworkMenu { ID = Guid.Parse(item) };
|
||||
DC.CascadeDelete(f);
|
||||
}
|
||||
}
|
||||
DC.SaveChanges();
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public class FrameworkMenu_BatchEdit : BaseVM
|
||||
{
|
||||
public List<Guid> IDs { get; set; }
|
||||
[Display(Name = "_Admin.ShowOnMenu")]
|
||||
public bool ShowOnMenu { get; set; }
|
||||
|
||||
[Display(Name = "_Admin.ParentFolder")]
|
||||
public Guid? ParentID { get; set; }
|
||||
public List<ComboSelectListItem> AllParents { get; set; }
|
||||
[Display(Name = "_Admin.Icon")]
|
||||
public string Icon { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user