using BP.En;
namespace BP.GPM.DTalk.DTS
{
///
/// 钉钉组织结构同步
///
public class OrgInit_Ding : Method
{
///
/// 钉钉组织结构同步
///
public OrgInit_Ding()
{
this.Title = "同步钉钉通讯录到CCGPM";
this.Help = "本功能将首先清空组织结构,然后同步钉钉通讯录。
钉钉相关配置写入Web.config,配置正确才可以被执行";
}
///
/// 设置执行变量
///
///
public override void Init()
{
}
///
/// 当前的操纵员是否可以执行这个方法
///
public override bool IsCanDo
{
get
{
if(BP.WF.Glo.IsEnable_DingDing == true)
return true;
return false;
}
}
///
/// 执行
///
/// 返回执行结果
public override object Do()
{
DingDing ding = new DingDing();
bool result = ding.AnsyOrgToCCGPM();
if (result == true)
return "执行成功...";
else
return "执行失败...";
}
}
}