Ejemplo n.º 1
0
 private static void SendTaskToSupervisor(int taskId, string supervisor, string nextStatus, decimal budget, string comment)
 {
     Data_Utilities.SetTaskResponsible(taskId, supervisor);
     Data_Utilities.SetTaskExtraBudget(taskId, budget);
     Data_Utilities.SetTaskStatus(taskId, nextStatus);
     Data_Utilities.SetTaskExtraComment(taskId, comment);
 }
Ejemplo n.º 2
0
 private static void SendTaskToSubteam(int taskId, string nextStatus, decimal requiredBudget, string comment)
 {
     Data_Utilities.SetTaskResponsible(taskId, "");
     Data_Utilities.SetTaskStatus(taskId, nextStatus);
     Data_Utilities.SetTaskExtraComment(taskId, comment);
     if (requiredBudget > 0)
     {
         Data_Utilities.SetTaskExtraBudget(taskId, 0m);
         Data_Utilities.SetTaskBudget(taskId, requiredBudget);
     }
 }
Ejemplo n.º 3
0
 private static void SubmitRequest(int requestId, int taskId, string subteam, string responsible, bool approved)
 {
     Data_Utilities.SetResponsibleForRequest(requestId, responsible);
     if (approved)
     {
         Data_Utilities.SetRequestStatus(requestId, "APPROVED");
         Data_Utilities.SetTaskStatus(taskId, "IN PROGRESS");
         Data_Utilities.SetTaskResponsible(taskId, subteam);
     }
     else
     {
         Data_Utilities.SetRequestStatus(requestId, "REJECTED");
         Data_Utilities.SetTaskStatus(taskId, "CLOSED");
     }
 }
Ejemplo n.º 4
0
 private static void FinishTask(int taskId, string nextStatus, string comment)
 {
     Data_Utilities.SetTaskExtraComment(taskId, comment);
     Data_Utilities.SetTaskStatus(taskId, nextStatus);
     Data_Utilities.SetTaskResponsible(taskId, "");
 }