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.

TeacherLeaveManagementMethod.cs 815 B

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