添加项目文件。
This commit is contained in:
1 parent
05e131ca4e
commit
514d6f5255
1162 files changed
+81255
No files matched your search
@@ -0,0 +1,55 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using HHWMS.Web.Models;
|
||||
using WalkingTec.Mvvm.Core;
|
||||
|
||||
namespace HHWMS.Web
|
||||
{
|
||||
public partial class SysDictDataListVM2 : BasePagedListVM<SysDictData_View, SysDictDataSearcher>
|
||||
{
|
||||
protected override List<GridAction> InitGridAction()
|
||||
{
|
||||
return new List<GridAction>
|
||||
{
|
||||
this.MakeAction("SysDictData","Create2",Localizer["Sys.Create"],Localizer["Sys.Create"],GridActionParameterTypesEnum.NoId,"system").SetOnClickScript("CreateDictData"),
|
||||
this.MakeStandardAction("SysDictData", GridActionStandardTypesEnum.Edit, Localizer["Sys.Edit"], "system", dialogWidth: 800),
|
||||
this.MakeStandardAction("SysDictData", GridActionStandardTypesEnum.Delete, Localizer["Sys.Delete"], "system", dialogWidth: 800),
|
||||
};
|
||||
}
|
||||
|
||||
protected override IEnumerable<IGridColumn<SysDictData_View>> InitGridHeader()
|
||||
{
|
||||
return new List<GridColumn<SysDictData_View>>{
|
||||
this.MakeGridHeader(x => x.DictName_view),
|
||||
this.MakeGridHeader(x => x.DictSort),
|
||||
this.MakeGridHeader(x => x.DictLabel),
|
||||
this.MakeGridHeader(x => x.DictLabelUs),
|
||||
this.MakeGridHeader(x => x.DictValue),
|
||||
this.MakeGridHeader(x => x.DictType),
|
||||
this.MakeGridHeader(x => x.CssClass),
|
||||
this.MakeGridHeader(x => x.Remark),
|
||||
this.MakeGridHeaderAction(width: 200)
|
||||
};
|
||||
}
|
||||
|
||||
public override IOrderedQueryable<SysDictData_View> GetSearchQuery()
|
||||
{
|
||||
var query = DC.Set<SysDictData>()
|
||||
.Where(x => x.SysDictTypeId == Searcher.SysDictTypeId)
|
||||
.Select(x => new SysDictData_View
|
||||
{
|
||||
ID = x.ID,
|
||||
DictName_view = x.SysDictType.DictName,
|
||||
DictSort = x.DictSort,
|
||||
DictLabel = x.DictLabel,
|
||||
DictLabelUs = x.DictLabelUs,
|
||||
DictValue = x.DictValue,
|
||||
DictType = x.DictType,
|
||||
CssClass = x.CssClass,
|
||||
Remark = x.Remark,
|
||||
})
|
||||
.OrderBy(x => x.ID);
|
||||
return query;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user