Exemplo n.º 1
0
 static public void HandleResultats(ResultsViewModel resultvm)
 {
     resultvm.audit = ServiceAudit.getAuditdetached(resultvm.auditid);
     if (!resultvm.audit.isInProgress)
     {
         resultvm.audit.isInProgress = true;
         AddResultats(resultvm);
     }
     else
     {
         UpdateResultats(resultvm);
     }
 }
Exemplo n.º 2
0
        static async public Task updatecompletedAudit(int id)
        {
            Audit temp = ServiceAudit.getAuditdetached(id);

            temp.isInProgress     = false;
            temp.isCompleted      = true;
            temp.FiveStarsLevel   = GetAudit5StarsLevel(temp);
            temp.Note             = GetAuditNote(temp);
            temp.DateOfCompletion = DateTime.Now;
            ServiceAudit.updateAudit(temp);
            ServicePDCA.addPDCAToAudit(temp);
            await  notifySubmissiontoParticipants(temp);
        }