12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using EMIS.ViewModel.CacheManage;
- namespace EMIS.ViewModel.CalendarManage
- {
- public class BaseWorkTimeView
- {
-
-
-
- public int StartTimes { get; set; }
- public int EndTimes { get; set; }
- public string Times
- {
- get
- {
- return StartTimes.ToString() + "-" + EndTimes.ToString();
- }
- }
-
-
-
- public int TimesSegment { get; set; }
-
-
-
- public string TimesSegmentName
- {
- get
- {
- return IdNameExt.GetDictionaryItem(DictionaryItem.CF_TimesSegment.ToString())
- .Where(x => x.Value == TimesSegment)
- .Select(x => x.Name).FirstOrDefault();
- }
- }
-
-
-
- public int StartHour { get; set; }
-
-
-
- public int StartMinutes { get; set; }
-
-
-
- public int EndHour { get; set; }
-
-
-
- public int EndMinutes { get; set; }
- public int Workhours
- {
- get
- {
- return EndTimes - StartTimes + 1;
- }
- }
- }
- }
|