Ejemplo n.º 1
0
 public SkyLandDeveloper(wfConfig wfent, string userId, IDbTransaction args)
 {
     ent = wfent;
     userid = userId;
     if (ent.recivers != null)
     {
         if (ent.recivers.Count > 0)
         {
             ent.recivers = ent.recivers.Distinct().ToList();
         }
     }
     tran = args;
 }
Ejemplo n.º 2
0
        string userid; //用户

        #endregion Fields

        #region Constructors

        /// <summary>
        /// 初始化工作流组件
        /// </summary>
        /// <param name="wfsetting">工作流设置,客户端发送过来的</param>
        /// <param name="userId">当前用户</param>
        /// <param name="args">数据库事务</param>
        public SkyLandDeveloper(string wfsetting, string userId, IDbTransaction args)
        {
            ent = JsonConvert.DeserializeObject<wfConfig>(wfsetting);
            userid = userId;
            if (ent.recivers != null)
            {
                if (ent.recivers.Count > 0)
                {
                    ent.recivers = ent.recivers.Distinct().ToList();
                }
            }
            tran = args;
        }