12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using EMIS.ViewModel.CacheManage;
- namespace EMIS.ViewModel.CalendarManage
- {
- public class BaseWorkTimeView
- {
- /// <summary>
- /// 节次
- /// </summary>
- public int StartTimes { get; set; }
- public int EndTimes { get; set; }
- public string Times
- {
- get
- {
- return StartTimes.ToString() + "-" + EndTimes.ToString();
- }
- }
- /// <summary>
- /// 时间节段
- /// </summary>
- public int TimesSegment { get; set; }
- /// <summary>
- /// TimesSegment
- /// </summary>
- public string TimesSegmentName
- {
- get
- {
- return IdNameExt.GetDictionaryItem(DictionaryItem.CF_TimesSegment.ToString())
- .Where(x => x.Value == TimesSegment)
- .Select(x => x.Name).FirstOrDefault();
- }
- }
- /// <summary>
- /// 开始时间(小时)
- /// </summary>
- public int StartHour { get; set; }
- /// <summary>
- /// 开始时间(分钟)
- /// </summary>
- public int StartMinutes { get; set; }
- /// <summary>
- /// 结束时间(小时)
- /// </summary>
- public int EndHour { get; set; }
- /// <summary>
- /// 结束时间(分钟)
- /// </summary>
- public int EndMinutes { get; set; }
- public int Workhours
- {
- get
- {
- return EndTimes - StartTimes + 1;
- }
- }
- }
- }
|