Exemplo n.º 1
0
 public static void SubmitRequest(int requestId, bool approved)
 {
     Data_Utilities.SetResponsibleForRequest(requestId, "");
     if (approved)
     {
         Data_Utilities.SetRequestStatus(requestId, "APPROVED");
     }
     else
     {
         Data_Utilities.SetRequestStatus(requestId, "REJECTED");
     }
 }
Exemplo n.º 2
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");
     }
 }