AddTaskAbout() public method

public AddTaskAbout ( CmsData.CMSDataContext db, int AssignTo, string description ) : CmsData.Task
db CmsData.CMSDataContext
AssignTo int
description string
return CmsData.Task
Esempio n. 1
0
 public void CreateTask(int forPeopleId, Person p, string description)
 {
     var t = p.AddTaskAbout(db, forPeopleId, description);
     db.SubmitChanges();
     db.Email(db.Setting("AdminMail", "*****@*****.**"), db.LoadPersonById(forPeopleId),
         "TASK: " + description,
         Task.TaskLink(db, description, t.Id) + "<br/>" + p.Name);
 }
Esempio n. 2
0
        public void CreateTask(int forPeopleId, Person p, string description)
        {
            var t = p.AddTaskAbout(db, forPeopleId, description);

            db.SubmitChanges();
            db.Email(db.Setting("AdminMail", "*****@*****.**"), db.LoadPersonById(forPeopleId),
                     "TASK: " + description,
                     Task.TaskLink(db, description, t.Id) + "<br/>" + p.Name);
        }
Esempio n. 3
0
 // List of api functions to call from Python
 public void CreateTask(int forPeopleId, Person p, string description)
 {
     DbUtil.LogActivity("Adding Task about: {0}".Fmt(p.Name));
     var t = p.AddTaskAbout(Db, forPeopleId, description);
     Db.SubmitChanges();
     Db.Email(DbUtil.SystemEmailAddress, DbUtil.Db.LoadPersonById(forPeopleId),
         "TASK: " + description,
         Task.TaskLink(Db, description, t.Id) + "<br/>" + p.Name);
 }
Esempio n. 4
0
        // List of api functions to call from Python

        public void CreateTask(int forPeopleId, Person p, string description)
        {
            DbUtil.LogActivity("Adding Task about: {0}".Fmt(p.Name));
            var t = p.AddTaskAbout(Db, forPeopleId, description);

            Db.SubmitChanges();
            Db.Email(DbUtil.SystemEmailAddress, DbUtil.Db.LoadPersonById(forPeopleId),
                     "TASK: " + description,
                     Task.TaskLink(Db, description, t.Id) + "<br/>" + p.Name);
        }