/// <summary> /// 撤销发送 /// </summary> public void UnSend() { /*撤销发送*/ this.Pub2.AddEasyUiPanelInfoBegin("撤销发送"); //查询是否有权限撤销发送 GenerWorkerLists workerlists = new GenerWorkerLists(); QueryObject info = new QueryObject(workerlists); info.AddWhere(GenerWorkerListAttr.FK_Emp, WebUser.No); info.addAnd(); info.AddWhere(GenerWorkerListAttr.IsPass, "1"); info.addAnd(); info.AddWhere(GenerWorkerListAttr.IsEnable, "1"); info.addAnd(); info.AddWhere(GenerWorkerListAttr.WorkID, this.WorkID); int count = info.DoQuery(); if (count > 0) { this.Pub2.Add("<a href =\"javascript:UnSend('" + this.FK_Flow + "','" + this.WorkID + "','" + FID + "')\" >撤销发送</a>"); } else { this.Pub2.Add("您没有此权限."); } this.Pub2.AddEasyUiPanelInfoEnd(); Pub2.AddBR(); }
/// <summary> /// 取回审批 /// </summary> public void TackBackCheck() { GenerWorkFlow gwf = new GenerWorkFlow(this.WorkID); /* 判断是否有取回审批的权限。*/ this.Pub2.AddEasyUiPanelInfoBegin("取回审批"); string sql = "SELECT NodeID FROM WF_Node WHERE CheckNodes LIKE '%" + gwf.FK_Node + "%'"; int myNode = DBAccess.RunSQLReturnValInt(sql, 0); if (myNode != 0) { GetTask gt = new GetTask(myNode); if (gt.Can_I_Do_It() == true) { this.Pub2.Add("功能执行:<a href=\"javascript:Takeback('" + WorkID + "','" + FK_Flow + "','" + gwf.FK_Node + "','" + myNode + "')\" >点击执行取回审批流程</a>。"); this.Pub2.AddBR("说明:如果被成功取回,ccflow就会把停留在别人工作节点上的工作发送到您的待办列表里。"); } } else { this.Pub2.Add("您没有此权限."); } this.Pub2.AddEasyUiPanelInfoEnd(); Pub2.AddBR(); }
/// <summary> /// 催办 /// </summary> public void Hurry() { /*催办*/ this.Pub2.AddEasyUiPanelInfoBegin("工作催办"); this.Pub2.Add("您没有此权限."); this.Pub2.AddEasyUiPanelInfoEnd(); Pub2.AddBR(); }
public void AddShiftByCoercion() { this.Pub2.AddEasyUiPanelInfoBegin("强制移交"); if (WebUser.No == "admin") { this.Pub2.Add("功能执行:<a href=\"javascript:DoFunc('" + FlowOpList.ShiftByCoercion + "','" + WorkID + "','" + FK_Flow + "','" + FK_Node + "')\" >点击执行取消挂起流程</a>。"); this.Pub2.AddBR("说明:解除流程挂起的状态。"); } else { this.Pub2.AddBR("您没有此权限。"); } this.Pub2.AddEasyUiPanelInfoEnd(); Pub2.AddBR(); }
/// <summary> /// 移交 /// </summary> public void AddShift() { this.Pub2.AddEasyUiPanelInfoBegin("移交"); if (BP.WF.Dev2Interface.Flow_IsCanDoCurrentWork(FK_Flow, int.Parse(FK_Node), WorkID, WebUser.No)) { this.Pub2.Add("功能执行:<a href=\"javascript:DoFunc('" + FlowOpList.UnHungUp + "','" + WorkID + "','" + FK_Flow + "','" + FK_Node + "')\" >点击执行取消挂起流程</a>。"); this.Pub2.AddBR("说明:解除流程挂起的状态。"); } else { this.Pub2.AddBR("您没有此权限,或者当前不是挂起的状态。"); } this.Pub2.AddEasyUiPanelInfoEnd(); Pub2.AddBR(); }
/// <summary> /// 挂起 /// </summary> public void AddHungUp() { this.Pub2.AddEasyUiPanelInfoBegin("挂起"); if (BP.WF.Dev2Interface.Flow_IsCanDoCurrentWork(FK_Flow, int.Parse(FK_Node), WorkID, WebUser.No)) { this.Pub2.Add("功能执行:<a href=\"javascript:DoFunc('" + FlowOpList.HungUp + "','" + WorkID + "','" + FK_Flow + "','" + FK_Node + "','')\" >点击执行挂起流程</a>。"); this.Pub2.AddBR("说明:对该流程执行挂起,挂起后可以解除挂起,挂起的时间不计算考核。"); } else { this.Pub2.Add("您没有此权限."); } this.Pub2.AddEasyUiPanelInfoEnd(); Pub2.AddBR(); }
/// <summary> /// 恢复启用流程数据到结束节点 /// </summary> public void RollBack() { this.Pub2.AddEasyUiPanelInfoBegin("恢复启用流程数据到结束节点"); if (WebUser.No == "admin") { this.Pub2.Add("功能执行:<a href=\"javascript:DoFunc('ComeBack','" + WorkID + "','" + FK_Flow + "','" + FK_Node + "')\" >点击执行恢复流程</a>。"); this.Pub2.AddBR("说明:如果被成功恢复,ccflow就会把待办工作发送给最后一个结束流程的工作人员。"); } else { this.Pub2.Add("您没有权限."); } this.Pub2.AddEasyUiPanelInfoEnd(); Pub2.AddBR(); }
/// <summary> /// 强制删除流程 /// </summary> public void FlowOverByCoercion() { GenerWorkFlow gwf = new GenerWorkFlow(WorkID); this.Pub2.AddEasyUiPanelInfoBegin("删除流程"); if (WebUser.No == "admin") { this.Pub2.Add("功能执行:<a href=\"javascript:DoFunc('" + FlowOpList.FlowOverByCoercion + "','" + WorkID + "','" + FK_Flow + "','" + FK_Node + "')\" >点击执行删除流程</a>。"); this.Pub2.AddBR("说明:如果执行流程将会被彻底的删除。"); } else { this.Pub2.Add("只有admin才能删除流程,您没有此权限."); } this.Pub2.AddEasyUiPanelInfoEnd(); Pub2.AddBR(); }