1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- namespace EMIS.ViewModel
- {
- public class MonthView
- {
- public int Month { get; set; }
- public string ChineseName { get; set; }
- }
- public class WeekNumView
- {
- public int WeekNum { get; set; }
- public string ChineseName { get; set; }
- }
- public class WeekDayView
- {
- public int WeekDay { get; set; }
- public string ChineseName { get; set; }
- public static string GetWeekdayName(int? weekday)
- {
- switch (weekday)
- {
- case 1:
- return "星期一";
- case 2:
- return "星期二";
- case 3:
- return "星期三";
- case 4:
- return "星期四";
- case 5:
- return "星期五";
- case 6:
- return "星期六";
- case 0:
- default:
- return "星期日";
- }
- }
- }
- }
|