Beispiel #1
0
        Task <Table> GetLimitUsers(long p_atvdid, WfdAtvExecLimit p_execLimit)
        {
            string key;

            switch (p_execLimit)
            {
            case WfdAtvExecLimit.前一活动的执行者:
                // 前一活动执行者
                key = "流程-前一活动执行者";
                break;

            case WfdAtvExecLimit.前一活动的同部门执行者:
                // 前一活动的同部门执行者
                key = "流程-前一活动的同部门执行者";
                break;

            case WfdAtvExecLimit.已完成活动的执行者:
                // 已完成活动执行者
                key = "流程-已完成活动执行者";
                break;

            default:
                // 已完成活动同部门执行者
                key = "流程-已完成活动同部门执行者";
                break;
            }
            return(AtCm.Query(key, new { prciId = _info.PrcInst.ID, atvdid = p_atvdid }));
        }
Beispiel #2
0
 public WfdAtv(
     long ID,
     long PrcID                = default,
     string Name               = default,
     WfdAtvType Type           = default,
     WfdAtvExecScope ExecScope = default,
     WfdAtvExecLimit ExecLimit = default,
     long?ExecAtvID            = default,
     bool AutoAccept           = default,
     bool CanDelete            = default,
     bool CanTerminate         = default,
     bool CanJumpInto          = default,
     WfdAtvTransKind TransKind = default,
     WfdAtvJoinKind JoinKind   = default,
     DateTime Ctime            = default,
     DateTime Mtime            = default)
 {
     AddCell("ID", ID);
     AddCell("PrcID", PrcID);
     AddCell("Name", Name);
     AddCell("Type", Type);
     AddCell("ExecScope", ExecScope);
     AddCell("ExecLimit", ExecLimit);
     AddCell("ExecAtvID", ExecAtvID);
     AddCell("AutoAccept", AutoAccept);
     AddCell("CanDelete", CanDelete);
     AddCell("CanTerminate", CanTerminate);
     AddCell("CanJumpInto", CanJumpInto);
     AddCell("TransKind", TransKind);
     AddCell("JoinKind", JoinKind);
     AddCell("Ctime", Ctime);
     AddCell("Mtime", Mtime);
     IsAdded = true;
     AttachHook();
 }