MonthView.cs 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. namespace EMIS.ViewModel
  6. {
  7. public class MonthView
  8. {
  9. public int Month { get; set; }
  10. public string ChineseName { get; set; }
  11. }
  12. public class WeekNumView
  13. {
  14. public int WeekNum { get; set; }
  15. public string ChineseName { get; set; }
  16. }
  17. public class WeekDayView
  18. {
  19. public int WeekDay { get; set; }
  20. public string ChineseName { get; set; }
  21. public static string GetWeekdayName(int? weekday)
  22. {
  23. switch (weekday)
  24. {
  25. case 1:
  26. return "星期一";
  27. case 2:
  28. return "星期二";
  29. case 3:
  30. return "星期三";
  31. case 4:
  32. return "星期四";
  33. case 5:
  34. return "星期五";
  35. case 6:
  36. return "星期六";
  37. case 0:
  38. default:
  39. return "星期日";
  40. }
  41. }
  42. }
  43. }