protected override void PostStore() { if (this.IsModified()) { LastGlobalModifier = DateTime.Now; } if (IsModifiedCol(_AsUser)) { if (!string.IsNullOrEmpty(_reassignedFrom)) { NotifyHub.NotifyPlanChange((new DefectUser(int.Parse(_reassignedFrom)).TRID)); } //when task is reassigned order in new list should be changed. DefectBase d = new DefectBase(ID); if (d.ORDER != ORDER) { d.ORDER = ORDER; d.Store(); return; } } if (!string.IsNullOrEmpty(AUSER)) { NotifyHub.NotifyPlanChange((new DefectUser(int.Parse(AUSER)).TRID)); } NotifyHub.NotifyDefectChange(ID); }
public DefectBase startEvent(int ttid, string disp, int hrs, string date) { CurrentContext.Validate(); DateTime dt = DateTime.ParseExact(date, IdBasedObject.defDateFormat, CultureInfo.InvariantCulture); int id = Defect.GetIDbyTT(ttid); DefectEvent.AddEventByTask(id, DefectEvent.Eventtype.worked, CurrentContext.TTUSERID, "I have worked on this task", hrs, -1, dt); NotifyHub.NotifyDefectChange(id); return ChangeDispo(ttid, disp); }