示例#1
0
 public void AddChilds(TaskObject task)
 {
     try
     {
         TaskPeople bl = new TaskPeople();
         task.AssigneesCustomer = bl.GetAssigneesCustomerByTaskID(task);
         task.AssigneesEmployee = bl.GetAssigneesEmployeeByTaskID(task);
         task.AssigneesSupplier = bl.GetAssigneesSupplierByTaskID(task);
         task.AssigneesUnknown = bl.GetAssigneesUnknownByTaskID(task);
         task.Reporters = bl.GetReporterByTaskID(task);
         task.Subscriptions = new TaskSchedule().GetSchedulesByTaskID(task);
         task.ChildsAdded = true;
     }
     catch (Exception exception1)
     {
         Exception innerException = exception1;
         throw new Exception(MethodBase.GetCurrentMethod().Name, innerException);
     }
 }
示例#2
0
 public void AddChilds(TaskObject task)
 {
     try
     {
         TaskPeople bl = new TaskPeople();
         task.AssigneesCustomer = bl.GetAssigneesCustomerByTaskID(task);
         task.AssigneesEmployee = bl.GetAssigneesEmployeeByTaskID(task);
         task.AssigneesSupplier = bl.GetAssigneesSupplierByTaskID(task);
         task.AssigneesUnknown  = bl.GetAssigneesUnknownByTaskID(task);
         task.Reporters         = bl.GetReporterByTaskID(task);
         task.Subscriptions     = new TaskSchedule().GetSchedulesByTaskID(task);
         task.ChildsAdded       = true;
     }
     catch (Exception exception1)
     {
         Exception innerException = exception1;
         throw new Exception(MethodBase.GetCurrentMethod().Name, innerException);
     }
 }