Example #1
0
    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);
    }
Example #2
0
	public void spendEvent(int id, int hrs)
	{
		CurrentContext.Validate();
		DefectEvent de = new DefectEvent(id);
		de.TIME = hrs.ToString();
		de.Store();
		NotifyHub.NotifyPlanChange(CurrentContext.UserID);
	}
Example #3
0
	public void delEvent(int id)
	{
		CurrentContext.Validate();
		DefectEvent.Delete(id);
		NotifyHub.NotifyPlanChange(CurrentContext.UserID);
	}