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.
 
 
 
 
 
 

30 lines
804 B

  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 DispatchMethod : IWorkFlowMethod
  10. {
  11. DispatchIBLL aispatchIBLL = new DispatchBLL();
  12. /// <summary>
  13. /// 审核
  14. /// </summary>
  15. /// <param name="parameter"></param>
  16. public void Execute(WfMethodParameter parameter)
  17. {
  18. if (parameter.code == "agree")
  19. {
  20. aispatchIBLL.ModifyStatusByProcessId(2, parameter.processId);
  21. }
  22. else
  23. {
  24. aispatchIBLL.ModifyStatusByProcessId(0, parameter.processId);
  25. }
  26. }
  27. }
  28. }