FineUICore 16.0.0
.NET 企业级全栈 UI 框架
载入中...
搜索中...
未找到
FineUICore.UIHelper类 参考

辅助器 更多...

静态 Public 成员函数

static AjaxResult Result ()
 响应Ajax请求
static AjaxResult Result (bool checkModelState)
 响应Ajax请求
static IActionResult AbortPage (string message)
 中止本次请求:不渲染业务页面,改渲染一个零控件的极简页面,把消息用标准对话框呈现给用户。 在页面处理器(如 OnGet)里 return UIHelper.AbortPage("无效参数!"); 即可。
static IActionResult AbortPage (string message, string okScript)
 中止本次请求,并指定点击「确定」按钮后执行的客户端脚本。 本页被窗体以 IFrame 弹出时,常用 ActiveWindow.GetHideReference() 让用户确定后顺手关掉窗体。
static IActionResult AbortPage (string message, MessageBoxIcon icon)
 中止本次请求,并指定提示图标。
static IActionResult AbortPage (string message, MessageBoxIcon icon, string okScript)
 中止本次请求,并指定提示图标与点击「确定」按钮后执行的客户端脚本。
static bool IsFineUIAjaxPostBack ()
 是否处于AJAX回发过程
static PageManagerAjaxHelper PageManager (string id)
 页面管理器辅助
static ButtonAjaxHelper Button (string id)
 按钮控件辅助
static LinkButtonAjaxHelper LinkButton (string id)
 链接按钮控件辅助
static ButtonGroupAjaxHelper ButtonGroup (string id)
 按钮分组控件辅助
static MenuAjaxHelper Menu (string id)
 菜单控件辅助
static MenuButtonAjaxHelper MenuButton (string id)
 菜单项按钮控件辅助
static MenuCheckBoxAjaxHelper MenuCheckBox (string id)
 菜单项复选框控件辅助
static MenuHyperLinkAjaxHelper MenuHyperLink (string id)
 菜单项超链接控件辅助
static MenuSeparatorAjaxHelper MenuSeparator (string id)
 菜单项分隔符控件辅助
static MenuTextAjaxHelper MenuText (string id)
 菜单项文本控件辅助
static HtmlEditorAjaxHelper HtmlEditor (string id)
 HTML编辑框控件辅助
static LabelAjaxHelper Label (string id)
 文本控件辅助
static HyperLinkAjaxHelper HyperLink (string id)
 超链接控件辅助
static ImageAjaxHelper Image (string id)
 图片控件辅助
static DataListAjaxHelper DataList (string id)
 列表控件辅助
static ToolbarAjaxHelper Toolbar (string id)
 工具条控件辅助
static ToolbarFillAjaxHelper ToolbarFill (string id)
 工具栏左右分隔符控件辅助
static ToolbarSeparatorAjaxHelper ToolbarSeparator (string id)
 工具栏分隔符控件辅助
static ToolbarTextAjaxHelper ToolbarText (string id)
 工具栏文本控件辅助
static CalendarAjaxHelper Calendar (string id)
 日期控件辅助
static ToolAjaxHelper Tool (string id)
 工具图标控件辅助
static CheckBoxAjaxHelper CheckBox (string id)
 复选框控件辅助
static CheckBoxListAjaxHelper CheckBoxList (string id)
 复选框列表控件辅助
static RadioButtonAjaxHelper RadioButton (string id)
 单选框控件辅助
static RadioButtonListAjaxHelper RadioButtonList (string id)
 单选框列表控件辅助
static DropDownBoxAjaxHelper DropDownBox (string id)
 下拉框控件辅助
static DropDownListAjaxHelper DropDownList (string id)
 下拉列表控件辅助
static DatePickerAjaxHelper DatePicker (string id)
 日期选择框控件辅助
static FileUploadAjaxHelper FileUpload (string id)
 文件上传控件辅助
static HiddenFieldAjaxHelper HiddenField (string id)
 隐藏表单控件辅助
static NumberBoxAjaxHelper NumberBox (string id)
 数字输入框控件辅助
static TextAreaAjaxHelper TextArea (string id)
 多行文本框控件辅助
static TextBoxAjaxHelper TextBox (string id)
 文本框控件辅助
static TimePickerAjaxHelper TimePicker (string id)
 时间选择框控件辅助
static TriggerBoxAjaxHelper TriggerBox (string id)
 辅助文本框控件辅助
static TwinTriggerBoxAjaxHelper TwinTriggerBox (string id)
 辅助文本框控件辅助
static AccordionAjaxHelper Accordion (string id)
 手风琴控件辅助
static AccordionPaneAjaxHelper AccordionPane (string id)
 手风琴面板控件辅助
static FormAjaxHelper Form (string id)
 表单面板控件辅助
static FormRowAjaxHelper FormRow (string id)
 表单行控件辅助
static GroupPanelAjaxHelper GroupPanel (string id)
 分组面板控件辅助
static PanelAjaxHelper Panel (string id)
 面板控件辅助
static SimpleFormAjaxHelper SimpleForm (string id)
 简单的表单容器控件辅助
static TreeAjaxHelper Tree (string id)
 树控件辅助
static WindowAjaxHelper Window (string id)
 窗体控件辅助
static GridAjaxHelper Grid (string id)
 表格控件辅助
static GroupFieldAjaxHelper GroupField (string id)
 表格分组列辅助
static RowNumberFieldAjaxHelper RowNumberField (string id)
 表格数据绑定列辅助
static RenderCheckFieldAjaxHelper RenderCheckField (string id)
 表格复选框列辅助
static RenderFieldAjaxHelper RenderField (string id)
 表格列辅助
static RegionPanelAjaxHelper RegionPanel (string id)
 区域面板控件辅助
static RegionAjaxHelper Region (string id)
 区域控件辅助
static TabStripAjaxHelper TabStrip (string id)
 选项卡面板控件辅助
static TabAjaxHelper Tab (string id)
 选项卡控件辅助

详细描述

辅助器

成员函数说明

◆ AbortPage() [1/4]

IActionResult FineUICore.UIHelper.AbortPage ( string message)
static

中止本次请求:不渲染业务页面,改渲染一个零控件的极简页面,把消息用标准对话框呈现给用户。 在页面处理器(如 OnGet)里 return UIHelper.AbortPage("无效参数!"); 即可。

⚠️ 需要回显用户输入时先做 HTML 编码(如 AbortPage("无效参数:" + HtmlEncoder.Default.Encode(Request.Query["id"])))。 全局配置项 AllowDangerousScriptTag 开着时(默认开,兼容存量代码),message 里的 <script> 段 会作为脚本执行——此时把未编码的用户输入拼进去会构成 XSS。设为 false 可关闭整条通道。

主题与语言:本方法不渲染任何视图,所以页面级的主题/语言初始化(如从 Cookie 读取后设置 PageManager)不会执行,中止页使用应用级默认值。需要跟随用户偏好时,请在调用本方法之前 自行设置 PageManager.Instance.Theme(...) / Language(...)

参数
message提示消息(固定文案;勿拼接用户输入)
返回
可直接从页面处理器返回的结果

◆ AbortPage() [2/4]

IActionResult FineUICore.UIHelper.AbortPage ( string message,
MessageBoxIcon icon )
static

中止本次请求,并指定提示图标。

参数
message提示消息(固定文案;勿拼接用户输入,见单参重载的说明)
icon提示图标
返回
可直接从页面处理器返回的结果

◆ AbortPage() [3/4]

IActionResult FineUICore.UIHelper.AbortPage ( string message,
MessageBoxIcon icon,
string okScript )
static

中止本次请求,并指定提示图标与点击「确定」按钮后执行的客户端脚本。

参数
message提示消息(固定文案;勿拼接用户输入,见单参重载的说明)
icon提示图标
okScript点击确定按钮执行的客户端脚本。必须由服务端代码提供(它会被当作脚本执行), 不要让用户输入流入本参数
返回
可直接从页面处理器返回的结果

◆ AbortPage() [4/4]

IActionResult FineUICore.UIHelper.AbortPage ( string message,
string okScript )
static

中止本次请求,并指定点击「确定」按钮后执行的客户端脚本。 本页被窗体以 IFrame 弹出时,常用 ActiveWindow.GetHideReference() 让用户确定后顺手关掉窗体。

参数
message提示消息(固定文案;勿拼接用户输入,见单参重载的说明)
okScript点击确定按钮执行的客户端脚本。必须由服务端代码提供(它会被当作脚本执行), 不要让用户输入流入本参数
返回
可直接从页面处理器返回的结果

◆ Accordion()

AccordionAjaxHelper FineUICore.UIHelper.Accordion ( string id)
static

手风琴控件辅助

返回

◆ AccordionPane()

AccordionPaneAjaxHelper FineUICore.UIHelper.AccordionPane ( string id)
static

手风琴面板控件辅助

返回

◆ Button()

ButtonAjaxHelper FineUICore.UIHelper.Button ( string id)
static

按钮控件辅助

返回

◆ ButtonGroup()

ButtonGroupAjaxHelper FineUICore.UIHelper.ButtonGroup ( string id)
static

按钮分组控件辅助

返回

◆ Calendar()

CalendarAjaxHelper FineUICore.UIHelper.Calendar ( string id)
static

日期控件辅助

返回

◆ CheckBox()

CheckBoxAjaxHelper FineUICore.UIHelper.CheckBox ( string id)
static

复选框控件辅助

返回

◆ CheckBoxList()

CheckBoxListAjaxHelper FineUICore.UIHelper.CheckBoxList ( string id)
static

复选框列表控件辅助

返回

◆ DataList()

DataListAjaxHelper FineUICore.UIHelper.DataList ( string id)
static

列表控件辅助

返回

◆ DatePicker()

DatePickerAjaxHelper FineUICore.UIHelper.DatePicker ( string id)
static

日期选择框控件辅助

返回

◆ DropDownBox()

DropDownBoxAjaxHelper FineUICore.UIHelper.DropDownBox ( string id)
static

下拉框控件辅助

返回

◆ DropDownList()

DropDownListAjaxHelper FineUICore.UIHelper.DropDownList ( string id)
static

下拉列表控件辅助

返回

◆ FileUpload()

FileUploadAjaxHelper FineUICore.UIHelper.FileUpload ( string id)
static

文件上传控件辅助

返回

◆ Form()

FormAjaxHelper FineUICore.UIHelper.Form ( string id)
static

表单面板控件辅助

返回

◆ FormRow()

FormRowAjaxHelper FineUICore.UIHelper.FormRow ( string id)
static

表单行控件辅助

返回

◆ Grid()

GridAjaxHelper FineUICore.UIHelper.Grid ( string id)
static

表格控件辅助

返回

◆ GroupField()

GroupFieldAjaxHelper FineUICore.UIHelper.GroupField ( string id)
static

表格分组列辅助

返回

◆ GroupPanel()

GroupPanelAjaxHelper FineUICore.UIHelper.GroupPanel ( string id)
static

分组面板控件辅助

返回

◆ HiddenField()

HiddenFieldAjaxHelper FineUICore.UIHelper.HiddenField ( string id)
static

隐藏表单控件辅助

返回

◆ HtmlEditor()

HtmlEditorAjaxHelper FineUICore.UIHelper.HtmlEditor ( string id)
static

HTML编辑框控件辅助

返回

◆ HyperLink()

HyperLinkAjaxHelper FineUICore.UIHelper.HyperLink ( string id)
static

超链接控件辅助

返回

◆ Image()

ImageAjaxHelper FineUICore.UIHelper.Image ( string id)
static

图片控件辅助

返回

◆ IsFineUIAjaxPostBack()

bool FineUICore.UIHelper.IsFineUIAjaxPostBack ( )
static

是否处于AJAX回发过程

◆ Label()

LabelAjaxHelper FineUICore.UIHelper.Label ( string id)
static

文本控件辅助

返回

◆ LinkButton()

LinkButtonAjaxHelper FineUICore.UIHelper.LinkButton ( string id)
static

链接按钮控件辅助

返回

◆ Menu()

MenuAjaxHelper FineUICore.UIHelper.Menu ( string id)
static

菜单控件辅助

返回

◆ MenuButton()

MenuButtonAjaxHelper FineUICore.UIHelper.MenuButton ( string id)
static

菜单项按钮控件辅助

返回

◆ MenuCheckBox()

MenuCheckBoxAjaxHelper FineUICore.UIHelper.MenuCheckBox ( string id)
static

菜单项复选框控件辅助

返回

◆ MenuHyperLink()

MenuHyperLinkAjaxHelper FineUICore.UIHelper.MenuHyperLink ( string id)
static

菜单项超链接控件辅助

返回

◆ MenuSeparator()

MenuSeparatorAjaxHelper FineUICore.UIHelper.MenuSeparator ( string id)
static

菜单项分隔符控件辅助

返回

◆ MenuText()

MenuTextAjaxHelper FineUICore.UIHelper.MenuText ( string id)
static

菜单项文本控件辅助

返回

◆ NumberBox()

NumberBoxAjaxHelper FineUICore.UIHelper.NumberBox ( string id)
static

数字输入框控件辅助

返回

◆ PageManager()

PageManagerAjaxHelper FineUICore.UIHelper.PageManager ( string id)
static

页面管理器辅助

返回

◆ Panel()

PanelAjaxHelper FineUICore.UIHelper.Panel ( string id)
static

面板控件辅助

返回

◆ RadioButton()

RadioButtonAjaxHelper FineUICore.UIHelper.RadioButton ( string id)
static

单选框控件辅助

返回

◆ RadioButtonList()

RadioButtonListAjaxHelper FineUICore.UIHelper.RadioButtonList ( string id)
static

单选框列表控件辅助

返回

◆ Region()

RegionAjaxHelper FineUICore.UIHelper.Region ( string id)
static

区域控件辅助

返回

◆ RegionPanel()

RegionPanelAjaxHelper FineUICore.UIHelper.RegionPanel ( string id)
static

区域面板控件辅助

返回

◆ RenderCheckField()

RenderCheckFieldAjaxHelper FineUICore.UIHelper.RenderCheckField ( string id)
static

表格复选框列辅助

返回

◆ RenderField()

RenderFieldAjaxHelper FineUICore.UIHelper.RenderField ( string id)
static

表格列辅助

返回

◆ Result() [1/2]

AjaxResult FineUICore.UIHelper.Result ( )
static

响应Ajax请求

返回

◆ Result() [2/2]

AjaxResult FineUICore.UIHelper.Result ( bool checkModelState)
static

响应Ajax请求

参数
checkModelState是否检查模型状态(如果模型状态验证失败,则弹出提示对话框)
返回

◆ RowNumberField()

RowNumberFieldAjaxHelper FineUICore.UIHelper.RowNumberField ( string id)
static

表格数据绑定列辅助

返回

◆ SimpleForm()

SimpleFormAjaxHelper FineUICore.UIHelper.SimpleForm ( string id)
static

简单的表单容器控件辅助

返回

◆ Tab()

TabAjaxHelper FineUICore.UIHelper.Tab ( string id)
static

选项卡控件辅助

返回

◆ TabStrip()

TabStripAjaxHelper FineUICore.UIHelper.TabStrip ( string id)
static

选项卡面板控件辅助

返回

◆ TextArea()

TextAreaAjaxHelper FineUICore.UIHelper.TextArea ( string id)
static

多行文本框控件辅助

返回

◆ TextBox()

TextBoxAjaxHelper FineUICore.UIHelper.TextBox ( string id)
static

文本框控件辅助

返回

◆ TimePicker()

TimePickerAjaxHelper FineUICore.UIHelper.TimePicker ( string id)
static

时间选择框控件辅助

返回

◆ Tool()

ToolAjaxHelper FineUICore.UIHelper.Tool ( string id)
static

工具图标控件辅助

返回

◆ Toolbar()

ToolbarAjaxHelper FineUICore.UIHelper.Toolbar ( string id)
static

工具条控件辅助

返回

◆ ToolbarFill()

ToolbarFillAjaxHelper FineUICore.UIHelper.ToolbarFill ( string id)
static

工具栏左右分隔符控件辅助

返回

◆ ToolbarSeparator()

ToolbarSeparatorAjaxHelper FineUICore.UIHelper.ToolbarSeparator ( string id)
static

工具栏分隔符控件辅助

返回

◆ ToolbarText()

ToolbarTextAjaxHelper FineUICore.UIHelper.ToolbarText ( string id)
static

工具栏文本控件辅助

返回

◆ Tree()

TreeAjaxHelper FineUICore.UIHelper.Tree ( string id)
static

树控件辅助

返回

◆ TriggerBox()

TriggerBoxAjaxHelper FineUICore.UIHelper.TriggerBox ( string id)
static

辅助文本框控件辅助

返回

◆ TwinTriggerBox()

TwinTriggerBoxAjaxHelper FineUICore.UIHelper.TwinTriggerBox ( string id)
static

辅助文本框控件辅助

返回

◆ Window()

WindowAjaxHelper FineUICore.UIHelper.Window ( string id)
static

窗体控件辅助

返回

该类的文档由以下文件生成:
  • UIHelper.cs