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