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.

54 lines
1.3 KiB
Plaintext

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

using BP.En;
namespace BP.WF.DTS
{
/// <summary>
/// 创建索引
/// </summary>
public class CreateIndex : Method
{
/// <summary>
/// 创建索引
/// </summary>
public CreateIndex()
{
this.Title = "创建索引(为所有的流程,NDxxxTrack, NDxxRpt, 创建索引.";
this.Help = "创建索引字段,调高流程的运行效率.";
}
/// <summary>
/// 设置执行变量
/// </summary>
/// <returns></returns>
public override void Init()
{
}
/// <summary>
/// 当前的操纵员是否可以执行这个方法
/// </summary>
public override bool IsCanDo
{
get
{
if (BP.Web.WebUser.No.Equals("admin")==true)
return true;
return false;
}
}
/// <summary>
/// 执行
/// </summary>
/// <returns>返回执行结果</returns>
public override object Do()
{
string info = "开始为Track表创建索引.";
Flows fls = new Flows();
foreach (Flow fl in fls)
{
info += fl.CreateIndex();
}
return info;
}
}
}