You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
1.2 KiB
Plaintext

using BP.DA;
using BP.Sys;
namespace BP.WF.HttpHandler
{
/// <summary>
/// 页面功能实体
/// </summary>
public class WF_Admin_AttrNode_AccepterRole : BP.WF.HttpHandler.DirectoryPageBase
{
/// <summary>
/// 构造函数
/// </summary>
public WF_Admin_AttrNode_AccepterRole()
{
}
#region 界面 .
/// <summary>
/// 清空缓存
/// </summary>
/// <returns></returns>
public string AccepterRole_ClearStartFlowsCache()
{
if (Glo.CCBPMRunModel == CCBPMRunModel.Single)
DBAccess.RunSQL("UPDATE WF_Emp SET StartFlows=''");
else
DBAccess.RunSQL("UPDATE WF_Emp SET StartFlows='' WHERE OrgNo='" + BP.Web.WebUser.OrgNo + "'");
return "执行成功 ";
}
/// <summary>
/// 清楚所有组织的缓存,用于多组织.
/// </summary>
/// <returns></returns>
public string AccepterRole_ClearAllOrgStartFlowsCache()
{
DBAccess.RunSQL("UPDATE WF_Emp SET StartFlows=''");
return "执行成功 ";
}
#endregion 界面方法.
}
}