CRUDEditPageModelTService, TEntity, TKey, TInput, TFilter Class

用来编辑/添加实体的页面的基类。

Definition

Namespace: QuickAdmin.RCL
Assembly: QuickAdmin.Net (in QuickAdmin.Net.dll) Version: 1.0.122
C#
public class CRUDEditPageModel<TService, TEntity, TKey, TInput, TFilter> : QAdminBasePageModel
where TService : object, ICRUDService<TEntity, TKey, TInput, TFilter>
where TEntity : class, object, IEntityWithIdKey<TKey>
where TInput : class
Inheritance
object    PageModel    QAdminBasePageModel    CRUDEditPageModelTService, TEntity, TKey, TInput, TFilter

Type Parameters

TService
实体服务类型。必须是一个 ICRUDServiceTEntity, TKey, TInput, TFilter 类型。
TEntity
实体类型。必须是一个 IEntityWithIdKeyTKey 类型。
TKey
主键数据类型。
TInput
输入类型。
TFilter
过滤器类型。

Constructors

CRUDEditPageModelTService, TEntity, TKey, TInput, TFilterInitializes a new instance of the CRUDEditPageModelTService, TEntity, TKey, TInput, TFilter class

Properties

Public Properties

AllowAnonymousAccess 指示页面是否允许匿名访问,即不登录就可访问。
(Inherited from QAdminBasePageModel)
AllowRedirectFromLogin 指示页面是否允许从登录页跳转过来。
(Inherited from QAdminBasePageModel)
currentEntity 当前实体数据。
currentEntityCreatedDesc 获取当前实体的对录入审计信息的描述。只适用于审计类实体。
currentEntityUpdatedDesc 获取当前实体的对更新审计信息的描述。只适用于审计类实体。
currentInput 当前输入数据。
id 主键值。
isAdding 指示是否正在添加数据。
isEditing 指示是否正在编辑数据。
IsPostBack 指示是否是页面回发。
(Inherited from QAdminBasePageModel)
PageCssUrl 页面 css 资源 Url。
(Inherited from QAdminBasePageModel)
PageJsUrl 页面 js 资源 Url。
(Inherited from QAdminBasePageModel)
PagePath 页面的路径。
(Inherited from QAdminBasePageModel)
PageResFileName 页面对应的静态资源文件的名称。
(Inherited from QAdminBasePageModel)
PageRights 打开此页面所需的权限。
(Inherited from QAdminBasePageModel)
PageTitle 页面标题。
(Overrides QAdminBasePageModelPageTitle)
QFObject 页面 JSQFObject 对象。
(Overrides QAdminBasePageModelQFObject)
RenderPageCss 指示是否自动引入页面 css 资源。
(Inherited from QAdminBasePageModel)
RenderPageJs 指示是否自动引入页面 js 资源。
(Inherited from QAdminBasePageModel)
RootBizDeptId 依据 PageRights 权限设置,获取数据对当前登录用户可见的最高层级部门的 Id。
(Inherited from QAdminBasePageModel)
service 实体服务。
ViewBag 添加页面对 ViewBag 的支持。
(Inherited from QAdminBasePageModel)
ViewportMetaContent 页面 viewport meta 标记内容。
(Inherited from QAdminBasePageModel)

Protected Properties

authService 认证服务。
(Inherited from QAdminBasePageModel)
exService 异常日志服务。
(Inherited from QAdminBasePageModel)

Methods

Public Methods

AlertError(string, bool, string, bool) 在客户端浏览器弹出错误对话框。
(Inherited from QAdminBasePageModel)
AlertError(string, string, bool, string, bool) 在客户端浏览器弹出错误对话框,可指定标题。
(Inherited from QAdminBasePageModel)
AlertMessage(string, bool, string, bool) 在客户端浏览器弹出消息对话框。
(Inherited from QAdminBasePageModel)
AlertMessage(string, string, bool, string, bool) 在客户端浏览器弹出消息对话框,可指定标题。
(Inherited from QAdminBasePageModel)
AlertServiceResultMessage 根据指定的 IServiceResult 服务调用结果,在客户端弹出一个对话框。
(Inherited from QAdminBasePageModel)
CreateAutoRedirectContent 创建一个让浏览器自动跳转到指定 url 的 ContentResult 响应结果。
(Inherited from QAdminBasePageModel)
CreateHtmlContent 创建一个用来在客户端浏览器显示一段 HTML 内容的 ContentResult 响应结果。
(Inherited from QAdminBasePageModel)
GetAlertErrorJs(string, bool, string, bool) 获取用来在客户端浏览器弹出错误对话框的客户端脚本。
(Inherited from QAdminBasePageModel)
GetAlertErrorJs(string, string, bool, string, bool) 获取用来在客户端浏览器弹出错误对话框的客户端脚本,可指定标题。
(Inherited from QAdminBasePageModel)
GetAlertMessageJs(string, bool, string, bool) 获取用来在客户端浏览器弹出消息对话框的客户端脚本。
(Inherited from QAdminBasePageModel)
GetAlertMessageJs(string, string, bool, string, bool) 获取用来在客户端浏览器弹出消息对话框的客户端脚本,可指定标题。
(Inherited from QAdminBasePageModel)
GetEntityInputData 获取实体输入数据。
GetRequestEventArgument 用于在 WebForms 开发模式下获取回发的参数。
(Inherited from QAdminBasePageModel)
GetRequestEventArguments 用于在 WebForms 开发模式下获取回发的参数列表。
(Inherited from QAdminBasePageModel)
GetShowConfirmJs(string, string, string, bool, bool) 获取用来在客户端浏览器弹出确认对话框的客户端脚本。
(Inherited from QAdminBasePageModel)
GetShowConfirmJs(string, string, string, string, bool, bool) 获取用来在客户端浏览器弹出确认对话框的客户端脚本,可指定标题。
(Inherited from QAdminBasePageModel)
GetShowErrorJs(string, bool, Position, Position, int, bool) 获取用来在客户端浏览器显示错误提示的客户端脚本。
(Inherited from QAdminBasePageModel)
GetShowErrorJs(string, string, bool, Position, Position, int, bool) 获取用来在客户端浏览器显示错误提示的客户端脚本,可指定标题。
(Inherited from QAdminBasePageModel)
GetShowMessageJs(string, bool, Position, Position, int, bool) 获取用来在客户端浏览器显示消息提示的客户端脚本。
(Inherited from QAdminBasePageModel)
GetShowMessageJs(string, string, bool, Position, Position, int, bool) 获取用来在客户端浏览器显示消息提示的客户端脚本,可指定标题。
(Inherited from QAdminBasePageModel)
OnGet GET 处理方法。
OnPageHandlerExecuting 在页面执行处理程序方法之前、模型绑定完成后调用的方法。
(Inherited from QAdminBasePageModel)
OnPostExecCommand 执行一个命令的 POST 处理方法。
OnPostSaveData 保存数据 POST 处理方法。
RegisterQFObjectCustomData(IDictionarystring, object) 用指定的字典数据往客户端 QF 对象中注册自定义属性。
(Inherited from QAdminBasePageModel)
RegisterQFObjectCustomData(string, object) 往客户端 QF 对象中注册自定义属性。
(Inherited from QAdminBasePageModel)
RegisterStartupScript 用来注册页面脚本。
(Inherited from QAdminBasePageModel)
ShowConfirm(string, string, string, bool, bool) 在客户端浏览器弹出确认对话框。
(Inherited from QAdminBasePageModel)
ShowConfirm(string, string, string, string, bool, bool) 在客户端浏览器弹出确认对话框,可指定标题。
(Inherited from QAdminBasePageModel)
ShowError(string, bool, Position, Position, int, bool) 在客户端浏览器显示错误提示。
(Inherited from QAdminBasePageModel)
ShowError(string, string, bool, Position, Position, int, bool) 在客户端浏览器显示错误提示,可指定标题。
(Inherited from QAdminBasePageModel)
ShowMessage(string, bool, Position, Position, int, bool) 在客户端浏览器显示消息提示。
(Inherited from QAdminBasePageModel)
ShowMessage(string, string, bool, Position, Position, int, bool) 在客户端浏览器显示消息提示,可指定标题。
(Inherited from QAdminBasePageModel)
ShowServiceResultMessage 根据指定的 IServiceResult 服务调用结果,在客户端显示一个提示框。
(Inherited from QAdminBasePageModel)

Protected Methods

AddData 添加数据方法。
AfterAddData 添加数据并保存成功后执行的方法。
AfterEditData 编辑数据并保存成功后执行的方法。
BeforeSaveData 保存数据前执行的方法。
BreakPageHandlerExecuting 检查是否要中止当前页面的 OnPageHandlerExecuting(PageHandlerExecutingContext) 的执行。
(Inherited from QAdminBasePageModel)
CheckRights 检查当前登录用户是否有权访问此页面。
(Inherited from QAdminBasePageModel)
CreateFineUINotify(string, MessageBoxIcon, Target, Position, Position, int, bool) 创建 FineUI 提示框对象。
(Inherited from QAdminBasePageModel)
CreateFineUINotify(string, string, MessageBoxIcon, Target, Position, Position, int, bool) 创建 FineUI 提示框对象,可指定标题。
(Inherited from QAdminBasePageModel)
GetKeepOnArgForJSFunc 获取为客户端 afterAddData 方法提供的 keepOnArg 参数。
OnAccessDenied 无权访问页面时调用的方法。
(Inherited from QAdminBasePageModel)
OnCheckRequestHash 检查页面请求哈希值。
(Inherited from QAdminBasePageModel)
OnPasswordExpired 当前登录用户密码已过期时调用的方法。
(Inherited from QAdminBasePageModel)
OnRequiresLogin 需要登录时调用的方法。
(Inherited from QAdminBasePageModel)
TryGetDropDownListUserInputText 当某属性对应的界面上的下拉框为可输入状态时,需要调用此方法来获取下拉框的值。
TryGetFineUIDropDownListUserInputText 当某属性对应的界面上的下拉框为可输入状态时,可调用此方法来获取下拉框的值。
(Inherited from QAdminBasePageModel)
UpdateData 更新数据方法。

See Also