private static void DelTask(HttpContext context, string taskgid) { FoWoSoft.Platform.WorkFlowTask btask = new FoWoSoft.Platform.WorkFlowTask(); var task = btask.Get(Guid.Parse(taskgid)); if (task != null) { btask.Delete(task.ID); new WebForm.Common.Meet().Roomis(task.InstanceID, WebForm.Common.RoomisOperation.put_reject); } }
private static void GetStatus(HttpContext context, string taskgid) { FoWoSoft.Platform.WorkFlowTask btask = new FoWoSoft.Platform.WorkFlowTask(); var task = btask.Get(Guid.Parse(taskgid)); if (task != null) { if (task.Status.In(2, 3, 4, 5)) { context.Response.Write("1"); } else { context.Response.Write("0"); } } }
protected void Page_Load(object sender, EventArgs e) { query = string.Format("&flowid1={0}&groupid={1}&appid={2}&tabid={3}&title={4}&flowid={5}&sender={6}&date1={7}&date2={8}&iframeid={9}&openerid={10}&taskid={11}", Request.QueryString["flowid"], Request.QueryString["groupid"], Request.QueryString["appid"], Request.QueryString["tabid"], Request.QueryString["title"].UrlEncode(), Request.QueryString["flowid"], Request.QueryString["sender"], Request.QueryString["date1"], Request.QueryString["date2"], Request.QueryString["iframeid"], Request.QueryString["openerid"], Request.QueryString["taskid"] ); flowid = Request.QueryString["flowid"]; groupid = Request.QueryString["groupid"]; taskid = Request.QueryString["taskid"]; displayModel = Request.QueryString["displaymodel"]; if (!taskid.IsGuid()) { return; } var task = bworkFlowTask.Get(taskid.ToGuid()); if (task == null || !task.SubFlowGroupID.HasValue) { return; } var subFlowTasks = bworkFlowTask.GetTaskList(Guid.Empty, task.SubFlowGroupID.Value); if (subFlowTasks.Count == 0) { return; } wfInstall = bworkFlow.GetWorkFlowRunModel(subFlowTasks.First().FlowID); tasks = subFlowTasks.OrderBy(p => p.Sort).ThenBy(p => p.ReceiveTime); flowid = subFlowTasks.First().FlowID.ToString(); }