Beispiel #1
0
 public TaskDetail GetDetail()
 {
     var m = new TaskModel();
     return m.FetchTask(Id);
 }
Beispiel #2
0
        public TaskDetail GetDetail()
        {
            var m = new TaskModel();

            return(m.FetchTask(Id));
        }
Beispiel #3
0
 public ActionResult AddSourceContact(int id, int contactid)
 {
     var tasks = new TaskModel();
     tasks.AddSourceContact(id, contactid);
     return PartialView("Detail", tasks.FetchTask(id));
 }
Beispiel #4
0
 public ActionResult AddTask(string CurTab, string TaskDesc)
 {
     var model = new TaskModel { CurTab = CurTab };
     var listid = model.CurListId;
     if (listid == 0)
     {
         listid = TaskModel.InBoxId(model.PeopleId);
         var c = new HttpCookie("tasktab", model.CurTab);
         c.Expires = Util.Now.AddDays(360);
         Response.Cookies.Add(c);
     }
     var tid = model.AddTask(model.PeopleId, listid, TaskDesc);
     return PartialView("Row", model.FetchTask(tid));
 }
Beispiel #5
0
 public ActionResult Update(int id)
 {
     var m = new TaskModel();
     var t = m.FetchTask(id);
     UpdateModel(t);
     t.UpdateTask();
     t = m.FetchTask(id);
     return View("Detail", t);
 }
Beispiel #6
0
 public ActionResult Accept(int id)
 {
     var tasks = new TaskModel { Id = id.ToString() };
     tasks.AcceptTask(id);
     return PartialView("Detail", tasks.FetchTask(id));
 }
Beispiel #7
0
 public ActionResult Row(int id)
 {
     var tasks = new TaskModel();
     return PartialView(tasks.FetchTask(id));
 }
Beispiel #8
0
 public ActionResult SetComplete(int id)
 {
     var tasks = new TaskModel { Id = id.ToString() };
     tasks.CompleteTask(id);
     return PartialView("Columns", tasks.FetchTask(id));
 }
Beispiel #9
0
 public ActionResult Detail(int id, int? rowid)
 {
     var tasks = new TaskModel();
     if (rowid.HasValue)
     {
         ViewData.Add("detailid", id);
         ViewData.Add("rowid", rowid);
         return PartialView("Detail2", tasks);
     }
     return PartialView("Detail", tasks.FetchTask(id));
 }
Beispiel #10
0
 public ActionResult Edit(int id)
 {
     var m = new TaskModel();
     return PartialView(m.FetchTask(id));
 }
Beispiel #11
0
 public ActionResult Delegate(int id, int peopleid)
 {
     var tasks = new TaskModel();
     tasks.Delegate(id, peopleid);
     return PartialView("Detail", tasks.FetchTask(id));
 }
Beispiel #12
0
 public ActionResult ChangeOwner(int id, int peopleid)
 {
     var tasks = new TaskModel();
     tasks.ChangeOwner(id, peopleid);
     return PartialView("Detail", tasks.FetchTask(id));
 }
Beispiel #13
0
 public ActionResult ChangeAbout(int id, int peopleid)
 {
     TaskModel.SetWhoId(id, peopleid);
     var tasks = new TaskModel();
     return PartialView("Detail", tasks.FetchTask(id));
 }
Beispiel #14
0
 public ActionResult Detail(int id)
 {
     var tasks = new TaskModel();
     return View("Detail", tasks.FetchTask(id));
 }
Beispiel #15
0
 public ActionResult Update(int id)
 {
     var m = new TaskModel();
     var t = m.FetchTask(id);
     UpdateModel(t);
     t.UpdateTask();
     return RedirectToAction("Detail", new { id = id });
 }