添加项目文件。
This commit is contained in:
1 parent
05e131ca4e
commit
514d6f5255
1162 files changed
+81255
No files matched your search
@@ -0,0 +1,90 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using WalkingTec.Mvvm.Core;
|
||||
|
||||
namespace WalkingTec.Mvvm.Core
|
||||
{
|
||||
/// <summary>
|
||||
/// ISearcher
|
||||
/// </summary>
|
||||
public interface ISearcher
|
||||
{
|
||||
#region Property
|
||||
|
||||
#region 分页相关
|
||||
/// <summary>
|
||||
/// 当前页
|
||||
/// </summary>
|
||||
int Page { get; set; }
|
||||
/// <summary>
|
||||
/// 每页数
|
||||
/// </summary>
|
||||
int Limit { get; set; }
|
||||
/// <summary>
|
||||
/// 记录数
|
||||
/// </summary>
|
||||
long Count { get; set; }
|
||||
/// <summary>
|
||||
/// 分页数
|
||||
/// </summary>
|
||||
int PageCount { get; set; }
|
||||
#endregion
|
||||
|
||||
/// <summary>
|
||||
/// 记录 Controller 中的表单数据
|
||||
/// </summary>
|
||||
Dictionary<string, object> FC { get; set; }
|
||||
|
||||
IDataContext DC { get; set; }
|
||||
/// <summary>
|
||||
/// VMFullName
|
||||
/// </summary>
|
||||
string VMFullName { get; }
|
||||
|
||||
ISessionService Session { get; }
|
||||
|
||||
LoginUserInfo LoginUserInfo { get; }
|
||||
/// <summary>
|
||||
/// 排序信息
|
||||
/// </summary>
|
||||
SortInfo SortInfo { get; set; }
|
||||
/// <summary>
|
||||
/// 用于框架判断列表页是否全局刷新
|
||||
/// </summary>
|
||||
|
||||
#endregion
|
||||
|
||||
#region Event
|
||||
|
||||
/// <summary>
|
||||
/// InitVM 完成后触发的事件
|
||||
/// </summary>
|
||||
event Action<ISearcher> OnAfterInit;
|
||||
/// <summary>
|
||||
/// ReInitVM 完成后触发的事件
|
||||
/// </summary>
|
||||
event Action<ISearcher> OnAfterReInit;
|
||||
|
||||
#endregion
|
||||
|
||||
#region Method
|
||||
/// <summary>
|
||||
/// 将源 VM 的 FC 等内容复制到本VM中
|
||||
/// </summary>
|
||||
/// <param name="vm"></param>
|
||||
void CopyContext(IBaseVM vm);
|
||||
|
||||
/// <summary>
|
||||
/// 调用 InitVM 并触发 OnAfterInit 事件
|
||||
/// </summary>
|
||||
void DoInit();
|
||||
|
||||
/// <summary>
|
||||
/// 调用 ReInitVM 并触发 OnAfterReInit 事件
|
||||
/// </summary>
|
||||
void DoReInit();
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user