代码拉取完成,页面将自动刷新
同步操作将从 Sunday/BoYuanCore 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
using System;
using System.Collections.Generic;
using System.Dynamic;
using System.Text;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.ViewFeatures;
namespace FineUICore
{
public partial class FineUICoreExtensions
{
public class FineUICoreController : Controller
{
#region Alert 或 页面跳转
/// <summary>
/// 提示信息(弹层用),并指定父页面跳转
/// </summary>
/// <param name="message">内容</param>
/// <param name="url">跳转地址</param>
/// <param name="js">显示消息后 执行的js</param>
protected void AlertInforAndRedirect(string message, string url, string js = "")
{
FineUICore.Alert aa = new FineUICore.Alert();
aa.AlertInforAndRedirect(message, url, js);
}
/// <summary>
/// 提示信息(弹层用)
/// </summary>
/// <param name="message">内容</param>
/// <param name="isPostBackReference">是否回发刷新页面</param>
/// <param name="js">显示消息后 执行的js</param>
protected void AlertInfor(string message, bool isPostBackReference = true, string js = "")
{
FineUICore.Alert aa = new FineUICore.Alert();
aa.AlertInfor(message, isPostBackReference, js);
}
/// <summary>
/// 提示信息(单页用 并刷新当前页)
/// </summary>
/// <param name="message">内容</param>
/// <param name="isPostBackReference">是否回发刷新页面</param>
/// <param name="js">显示消息后 执行的js</param>
protected void AlertInforBySingerPage(string message, bool isPostBackReference = true, string js = "")
{
FineUICore.Alert aa = new FineUICore.Alert();
aa.AlertInforBySingerPage(message, isPostBackReference, js);
}
/// <summary>
/// 报错信息
/// </summary>
/// <param name="message">内容</param>
/// <param name="isPostBackReference">是否回发刷新页面</param>
/// <param name="js">显示消息后 执行的js</param>
protected void AlertError(string message, bool isPostBackReference = true, string js = "")
{
FineUICore.Alert aa = new FineUICore.Alert();
aa.AlertError(message, isPostBackReference, js);
}
/// <summary>
/// 成功信息
/// </summary>
/// <param name="message">内容</param>
/// <param name="isPostBackReference">是否回发刷新页面</param>
/// <param name="js">显示消息后 执行的js</param>
protected void AlertSuccess(string message, bool isPostBackReference = true, string js = "")
{
FineUICore.Alert aa = new FineUICore.Alert();
aa.AlertSuccess(message, isPostBackReference, js);
}
/// <summary>
/// 疑问信息
/// </summary>
/// <param name="message">内容</param>
/// <param name="isPostBackReference">是否回发刷新页面</param>
/// <param name="js">显示消息后 执行的js</param>
protected void AlertQuestion(string message, bool isPostBackReference = true, string js = "")
{
FineUICore.Alert aa = new FineUICore.Alert();
aa.AlertQuestion(message, isPostBackReference, js);
}
/// <summary>
/// 警告信息
/// </summary>
/// <param name="message">内容</param>
/// <param name="isPostBackReference">是否回发刷新页面</param>
/// <param name="js">显示消息后 执行的js</param>
protected void AlertWarning(string message, bool isPostBackReference = true, string js = "")
{
FineUICore.Alert aa = new FineUICore.Alert();
aa.AlertWarning(message, isPostBackReference, js);
}
#endregion
#region Notify 消息框
/// <summary>
/// 信息消息框
/// </summary>
/// <param name="message">警告信息</param>
/// <param name="js">然后执行的js代码</param>
public void NotifyInformation(string message, string js = null)
{
NotifyBase(message, js, MessageBoxIcon.Information);
}
/// <summary>
/// 问题消息框
/// </summary>
/// <param name="message">警告信息</param>
/// <param name="js">然后执行的js代码</param>
public void NotifyQuestion(string message, string js = null)
{
NotifyBase(message, js, MessageBoxIcon.Question);
}
/// <summary>
/// 警告消息框
/// </summary>
/// <param name="message">警告信息</param>
/// <param name="js">然后执行的js代码</param>
public void NotifyWarning(string message, string js = null)
{
NotifyBase(message, js, MessageBoxIcon.Warning);
}
/// <summary>
/// 错误消息框
/// </summary>
/// <param name="message">错误信息</param>
/// <param name="js">然后执行的js代码</param>
public void NotifyError(string message, string js = null)
{
NotifyBase(message, js, MessageBoxIcon.Error);
}
/// <summary>
/// 成功消息框
/// </summary>
/// <param name="message">错误信息</param>
/// <param name="js">然后执行的js代码</param>
public void NotifySuccess(string message, string js = null)
{
NotifyBase(message, js, MessageBoxIcon.Success);
}
private void NotifyBase(string message, string js = null, FineUICore.MessageBoxIcon icon = MessageBoxIcon.Information)
{
Notify nf = new Notify();
nf.GetShowNotify();
nf.Message = message;
nf.MessageBoxIcon = icon;
if (!string.IsNullOrEmpty(js)) nf.HideScript = js;
nf.Show();
}
#endregion
}
}
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。