You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

StudentCompetitionMethod.cs 713 B

123456789101112131415161718192021222324252627
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using Learun.Application.TwoDevelopment.EducationalAdministration;
  7. namespace Learun.Application.WorkFlow
  8. {
  9. public class StudentCompetitionMethod : IWorkFlowMethod
  10. {
  11. StudentCompetitionIBLL asset = new StudentCompetitionBLL();
  12. public void Execute(WfMethodParameter parameter)
  13. {
  14. if (parameter.code == "agree")
  15. {
  16. asset.ChangeStatusByProcessId(parameter.processId, 2);
  17. }
  18. else
  19. {
  20. asset.ChangeStatusByProcessId(parameter.processId, 0);
  21. }
  22. }
  23. }
  24. }