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> /// 根据实例和workflow建立一个默认的记录 /// </summary> /// <param name="workflow"></param> /// <param name="entity"></param> /// <returns></returns> public IWORKFLOW_INSTSTEP BuildINSTSTEP(IWORKFLOW workflow, IVerifyEntity entity) { var newstep = new VERI_WORKFLOW_INSTEP().BuildINSTSTEP(workflow); newstep.WORKFLOW_EN_FLOW = entity.FLOW_ID; return(newstep); }
/// <summary> /// 初始化节点 /// </summary> /// <param name="entity"></param> /// <param name="workflow_nodeid_start"></param> public LGWBVerifyHelper(IWORKFLOW workflow, IVerifyEntity entity, IUserInfo userinfo) { this.AdvWorkFlow = new AdvWorkFlow(workflow); this.Entity = entity; this.UserInfo = userinfo.AdvanceUserInfo(); this.VeriOperList = this.GetThisVerifyOperList(); this.StartNode = this.Entity.GetCurrentNode(); }
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; }
/// <summary> /// 审核前置条件查询看是否合格 /// </summary> /// <param name="entity">审核实体</param> /// <param name="Userid">用户名</param> public Verify_PreCondition_Comfirmed_Judge(IVerifyEntity entity, string Userid) { var endid = entity.AUDITSTEP_ID; var linklist = entity.GetCurrentNode().GetLinkListEndedBythis(); var res = (from x in linklist where x.END_NODE_ID == endid select x).ToList(); this.SameEndLink = res; var res2 = entity.GetListBythisFlowid(); this.WorkEntityList = res2; this.VerifyUser = VerifyUser.AdvanceUserInfo().USERINFO_GetUserINFO(Userid); }
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); } }
public CSException Static_WORKFLOW_INSTSTEP_InitWorkFlowStep(string conclusion, IWORKFLOW_LINK link, IVerifyEntity entity) { //link.WORKFLOWLINK_ID //entity.FLOW_ID return(new CSException()); }
public IQueryable <IWORKFLOW_LINK> Static_GetLinkByFomulaEntity(string Formula, IVerifyEntity entity) { var start_node = entity.AUDITSTEP_ID; var db = new SAFEDB(); var res = ((IQueryable <IWORKFLOW_LINK>)(from x in db.VERI_WORKFLOW_LINK where x.START_NODE_ID == start_node && x.FORMULA == Formula select x)); return(res); }