Test.EIImageViewer
parent
d51a605f54
commit
ec4b1c58ef
|
@ -51,6 +51,8 @@ namespace IRaCIS.Core.Application.ViewModel
|
|||
public class DefaultShortcutKeyQuery
|
||||
{
|
||||
public int ImageToolType { get; set; }
|
||||
|
||||
public int? ShortcutKeyEnum { get; set; }
|
||||
}
|
||||
|
||||
///<summary> DefaultShortcutKeyAddOrEdit 列表查询参数模型</summary>
|
||||
|
|
|
@ -37,7 +37,8 @@ namespace IRaCIS.Core.Application.Service
|
|||
public async Task<List<DefaultShortcutKeyView>> GetDefaultShortcutKeyList(DefaultShortcutKeyQuery inQuery)
|
||||
{
|
||||
var defaultShortcutKey = await _defaultShortcutKeyRepository.Where(x => x.ImageToolType == inQuery.ImageToolType).ToListAsync();
|
||||
var shortcutKeydic = await _dictionaryRepository.Where(x => x.Parent.Code == "ShortcutKey").ToListAsync();
|
||||
var shortcutKeydic = await _dictionaryRepository.Where(x => x.Parent.Code == "ShortcutKey")
|
||||
.WhereIf(inQuery.ShortcutKeyEnum!=null,x=>x.Code==inQuery.ShortcutKeyEnum.ToString()).ToListAsync();
|
||||
|
||||
|
||||
List<DefaultShortcutKeyView> result = new List<DefaultShortcutKeyView>();
|
||||
|
|
Loading…
Reference in New Issue