public VerifyOper(string FORMULA, AdvWorkFlow advworkflow, IVerifyEntity entity)
        {
            try
            {
                this.Entity = entity;

                var res = entity.GetCurrentNode().GetLinkListStartedBythis();

                var LinkList = (from x in res
                                where (x.FORMULA == FORMULA && x.START_NODE_ID == entity.AUDITSTEP_ID)
                                select x).ToList();
                if (LinkList.Count() <= 0)
                {
                    throw new Exception("没有相关连线,错误操作");
                }
                this.VerifyInfoList = new List <IVerifyInfo>();

                foreach (var _link in LinkList)
                {
                    this.VerifyInfoList.Add(new VerifyInfo(_link, Entity, advworkflow));
                }
                this.VeriName    = LinkList[0].FORMULA;
                this.Advworkflow = advworkflow;
            }
            catch (Exception ex)
            {
                throw new Exception(ex.Message);
            }
        }
        /// <summary>
        /// 审核操作实例初始化
        /// </summary>
        /// <param name="link">同名操作连线</param>
        /// <param name="advworkflow">审核的实体类的流程</param>
        public VerifyOper(IWORKFLOW_NODE start_node, List <IWORKFLOW_LINK> link, AdvWorkFlow advworkflow, string[] key)
        {
            try
            {
                if (link.Count() <= 0)
                {
                    throw new Exception("传入0连线");
                }

                this.Entity         = advworkflow.GetWorkFLowEntityByKey(key);
                this.VerifyInfoList = new List <IVerifyInfo>();
                var StartNode = start_node;
                foreach (var _link in link)
                {
                    var EndNode = start_node.Static_GetWORKFLOWNodeByid(_link.END_NODE_ID);
                    //注意,这里虽然定制了verifyInfo,但是这个属性是开放的,如果需要扩展类,完全可以在后续操作中填充扩展类替换掉这个verifyinfo,达到效果
                    this.VerifyInfoList.Add(new VerifyInfo(_link, Entity, advworkflow));
                }
                this.VeriName    = link[0].FORMULA;
                this.Advworkflow = advworkflow;
            }
            catch (Exception ex)
            {
                throw new Exception(ex.Message);
            }
        }
        public VerifyInfo(IWORKFLOW_LINK link, IVerifyEntity entity, AdvWorkFlow advworkflow)
        {
            this.AdvWORKFLOW = advworkflow;
            var res1 = link.GetStartNode();
            var res2 = link.GetEndNode();

            this.StartNodeInfo = res1;
            this.EndNodeInfo   = res2;
            this.LinkInfo      = link;
            this.Entity        = entity;
        }
        public VerifyOper(List <IWORKFLOW_LINK> LinkList, AdvWorkFlow advworkflow, IVerifyEntity entity)
        {
            try
            {
                this.Entity = entity;

                this.VerifyInfoList = new List <IVerifyInfo>();

                foreach (var _link in LinkList)
                {
                    this.VerifyInfoList.Add(new VerifyInfo(_link, Entity, advworkflow));
                }
                this.VeriName    = LinkList[0].FORMULA;
                this.Advworkflow = advworkflow;
            }
            catch (Exception ex)
            {
                throw new Exception(ex.Message);
            }
        }