public virtual ActionResult ArchieveProject(int id)
 {
     var service = new CustProjectService(Repository);
     service.FinishProject(id, CurrentUser.UserId);
     return Content("工程已经归档");
     //return RedirectToAction(MVC.Project.TodoList());
 }
 public virtual ActionResult Send(int id, int todoby, int desnodeid, string msg)
 {
     var service = new CustProjectService(Repository);
     service.SendToNextStep(id, todoby, desnodeid, msg, CurrentUser.UserId);
     return Content("hello");
     //return RedirectToAction(MVC.Project.TodoList());
 }
 /// <summary>
 /// 用户组成员登录后,选择将任务箱中的项目标记为本人所要处理的项目任务
 /// </summary>
 /// <param name="prjid"></param>
 /// <returns></returns>
 public virtual ActionResult RecieveProject(int prjid)
 {
     var service = new CustProjectService(Repository);
     service.RecieveProject(prjid, CurrentUser.UserId);
     return RedirectToAction(MVC.CustomerProject.GroupTodoList());
 }
 public virtual ActionResult ReturnProject(int prjid)
 {
     var service = new CustProjectService(Repository);
      service.ReturnProject(prjid, CurrentUser.UserId);
      if (Request.IsAjaxRequest())
      {
          return Json(true);
      }
      return RedirectToAction(MVC.CustomerProject.GroupTodoList());
 }
 public virtual ActionResult Create(CustProjectModel toadd)
 {
     if (ModelState.IsValid)
     {
         var newprj = new CustomerProject {ProjectTypeId = 9, IsFinished = false, DisContinued = false};
         TryUpdateModel(newprj);
         var service = new CustProjectService(Repository);
         service.AddProject(newprj, CurrentUser.UserId);
         return RedirectToAction(MVC.CustomerProject.TodoList());
     }
     return View(toadd);
 }