public void ProcessTaskRecord(TaskProcessData pd) { _processTasksRecords.Add(pd); currentPeriodData.UpdateTasksTime(pd.resultingTime, pd.baseTime); foreach (var item in pd.resources.MainCards) { int sum = CardsUtils.GetCardsSumByParam(item.Value, DepartmentParameter) * pd.resultingTime; if (item.Value.Count > 0) { currentPeriodData.UpdateResourcesWorkingSum(item.Key, sum, pd.task.Task.GetNeed(item.Key) * pd.resultingTime); } } }
public void AddTaskProcessData(TaskProcessData pd) /// { _tasksData.Add(pd); _periodInfo.UpdateTasksTime(pd.resultingTime, pd.task.Task.Data.BaseTime); foreach (var item in pd.resources.MainCards) { int sum = CardsUtils.GetCardsSumByParam(item.Value, Designation.value) * pd.resultingTime; if (item.Value.Count > 0) { _periodInfo.UpdateResourcesWorkingSum(item.Key, sum, pd.task.Task.GetNeed(item.Key) * pd.resultingTime); } } CalculateIndicators(pd); }