Ejemplo n.º 1
0
 static public DdTaskHeadingExt GetTaskHeadingInfo(int taskHeadingREF)
 {
   DaTaskHeading da = new DaTaskHeading(DataStore.DbConnection);
   if (da.GetById(taskHeadingREF))
     return new DdTaskHeadingExt(da.GetBuffer());
   else
     return null;
 }
Ejemplo n.º 2
0
 static public bool AddTaskHeading(ref DdTaskHeadingExt item, RevisionInfo revisionInfo)
 {
   DaTaskHeading da = new DaTaskHeading(DataStore.DbConnection);
   da.Clear();
   da.Description = item.Description;
   da.Modified = item.Modified;
   da.ModifiedBy = item.ModifiedBy;
   da.ProjectREF = item.ProjectREF;
   da.TaskHeadingID = item.TaskHeadingID;
   da.TaskHeadingREF = item.TaskHeadingREF;
   da.Title = item.Title;
   bool ok = da.Insert();
   if (ok) AddChangeLog(da.TableName, da.Id, da.Timestamp, revisionInfo); //add
   if (ok) item = new DdTaskHeadingExt(da.GetBuffer());
   return ok;
 }
Ejemplo n.º 3
0
 static public bool SaveTaskHeading(ref DdTaskHeadingExt item, RevisionInfo revisionInfo)
 {
   DaTaskHeading da = new DaTaskHeading(DataStore.DbConnection);
   if (!da.GetById(item.Id)) return false;
   da.Description = item.Description;
   da.ProjectREF = item.ProjectREF;
   da.TaskHeadingID = item.TaskHeadingID;
   da.TaskHeadingREF = item.TaskHeadingREF;
   da.Title = item.Title;
   bool ok = true;
   if (da._IsModified)
   {
     da.Modified = DateTime.Now;
     da.ModifiedBy = Environment.UserName;
     ok = da.Save();
     if (ok) AddChangeLog(da.TableName, da.Id, da.Timestamp, revisionInfo);
     if (ok) item = new DdTaskHeadingExt(da.GetBuffer());
   }
   return ok;
 }