Ejemplo n.º 1
0
 public void updateQMInfo(string intId, string comments, string conditionText)
 {
     intUpdate.InterventionId       = Convert.ToInt32(intId);
     intUpdate.Condition            = Convert.ToInt32(conditionText);
     intUpdate.ModifyDate           = DateTime.Now;
     intUpdate.UserId               = Utils.getInstance.GetCurrentUserId();
     intUpdate.InterventionComments = comments;
     intUpdateRepository            = new InterventionUpdateRepository(context);
     validateUser();
     validateCondition();
     validatePreviousUpdate();
     intUpdateRepository.Insert(intUpdate);
 }
Ejemplo n.º 2
0
 public IList <InterventionUpdate> GetAllPreviousUpdates(string intId)
 {
     intUpdateRepository = new InterventionUpdateRepository(context);
     return(intUpdateRepository.GetAllInterventionUpdateWithInterventionId(Convert.ToInt32(intId)));
 }