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.

56 lines
1.7 KiB
C#

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 DTSCheckFlowAll : Method
{
/// <summary>
/// 不带有参数的方法
/// </summary>
public DTSCheckFlowAll()
{
this.Title = "体检全部流程";
this.Help = "只能功能与单独体检流程相同,体检流程不会伤害数据。";
this.Help += "<br>1修复节点表单、流程报表物理表。";
this.Help += "<br>2生成预先流程与节点计算数据从而优化流程执行速度。";
this.Help += "<br>3修复流程报表数据。";
this.Help += "<br>4系统不会提示体检结果。";
this.Help += "<br>5体检的时间长度与流程数量节点数量表单字段多少有关系请耐心等待。";
}
/// <summary>
/// 设置执行变量
/// </summary>
/// <returns></returns>
public override void Init()
{
}
/// <summary>
/// 当前的操纵员是否可以执行这个方法
/// </summary>
public override bool IsCanDo
{
get
{
return true;
}
}
/// <summary>
/// 执行
/// </summary>
/// <returns>返回执行结果</returns>
public override object Do()
{
Flows fls = new Flows();
fls.RetrieveAllFromDBSource();
foreach (Flow fl in fls)
{
fl.DoCheck();
}
return "提示:"+fls.Count+"个流程参与了体检。";
}
}
}