uploaderOption.cs 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. namespace Bowin.Web.Controls.Mvc
  6. {
  7. public class uploaderOption
  8. {
  9. public string Title { get; set; }
  10. public string Name { get; set; }
  11. public bool? IsEnabled { get; set; }
  12. public object MainTableID { get; set; }
  13. public FileType FileType { get; set; }
  14. public int? MaxFileSize { get; set; }
  15. public string UploadUrl { get; set; }
  16. }
  17. public enum FileType
  18. {
  19. /// <summary>
  20. /// 所有文件
  21. /// </summary>
  22. ALL = 100,
  23. /// <summary>
  24. /// 文档
  25. /// </summary>
  26. Document = 1,
  27. /// <summary>
  28. /// 图片
  29. /// </summary>
  30. Picture = 2,
  31. /// <summary>
  32. /// 视频
  33. /// </summary>
  34. Video = 3,
  35. /// <summary>
  36. /// 图片和视频
  37. /// </summary>
  38. PicAndVid = 4,
  39. /// <summary>
  40. /// 音频
  41. /// </summary>
  42. Sound = 5
  43. }
  44. }