Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

StudentArticlePublicMethod.cs 719 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 StudentArticlePublicMethod : IWorkFlowMethod
  10. {
  11. StudentArticlePublicIBLL asset = new StudentArticlePublicBLL();
  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. }