TrainingClassMergeView.cs 647 B

1234567891011121314151617181920212223242526
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.ComponentModel.DataAnnotations;
  5. using System.Linq;
  6. using System.Text;
  7. namespace EMIS.ViewModel.EducationManage
  8. {
  9. public class TrainingClassMergeView
  10. {
  11. [DisplayName("合班名称")]
  12. [Required]
  13. public string Name { get; set; }
  14. public string TrainingClassIDs { get; set; }
  15. public List<Guid> TrainingClassIDList
  16. {
  17. get
  18. {
  19. return TrainingClassIDs.Split(',').Where(x => !string.IsNullOrEmpty(x)).Select(x => new Guid(x)).ToList();
  20. }
  21. }
  22. }
  23. }