public IslamicCalendarCulture() { Weeks = new IWeek[] { new Week("الأحد", 7), new Week("الإثنين", 1), new Week("الثلاثاء", 2), new Week("الأربعاء", 3), new Week("الخميس", 4), new Week("الجمعة", 5), new Week("السبت", 6, isRestDay: true) }; Months = new[] { new IMonth("محرم", 1, isLeapMonth: false, normalLength: 29, leapLength: 30), new IMonth("صفر", 2, isLeapMonth: false, normalLength: 29, leapLength: 30), new IMonth("ربیعالاول", 3, isLeapMonth: false, normalLength: 29, leapLength: 30), new IMonth("ربیعالثانی", 4, isLeapMonth: false, normalLength: 29, leapLength: 30), new IMonth("جمادیالاول", 5, isLeapMonth: false, normalLength: 29, leapLength: 30), new IMonth("جمادیالثانی", 6, isLeapMonth: false, normalLength: 29, leapLength: 30), new IMonth("رجب", 7, isLeapMonth: false, normalLength: 29, leapLength: 30), new IMonth("شعبان", 8, isLeapMonth: false, normalLength: 29, leapLength: 30), new IMonth("رمضان", 9, isLeapMonth: false, normalLength: 29, leapLength: 30), new IMonth("شوال", 10, isLeapMonth: false, normalLength: 29, leapLength: 30), new IMonth("ذیقعده", 11, isLeapMonth: false, normalLength: 29, leapLength: 30), new IMonth("ذیحجه", 12, isLeapMonth: false, normalLength: 29, leapLength: 30) }; PMName = "مساء"; AMName = "صباحاً"; }
public GregorianCalendarCulture() { Weeks = new IWeek[] { new Week("Saturday", 7), new Week("Sunday", 1), new Week("Monday", 2), new Week("Tuesday", 3), new Week("Wednesday", 4), new Week("Thursday", 5), new Week("Friday", 6, isRestDay: true) }; Months = new[] { new IMonth("January", 1, 31), new IMonth("February", 2, isLeapMonth: false, normalLength: 28, leapLength: 29), new IMonth("March", 3, 31), new IMonth("April", 4, 30), new IMonth("May", 5, 31), new IMonth("June", 6, 30), new IMonth("July", 7, 31), new IMonth("August", 8, 31), new IMonth("September", 9, 30), new IMonth("October", 10, 31), new IMonth("November", 11, 30), new IMonth("December", 12, 31) }; AMName = "AM"; PMName = "PM"; }
public PersianCalendarCulture() { Weeks = new IWeek[] { new Week("شنبه", 7), new Week("یکشنبه", 1), new Week("دوشنبه", 2), new Week("سه شنبه", 3), new Week("چهارشنبه", 4), new Week("پنجشنبه", 5), new Week("جمعه", 6, isRestDay: true) }; Months = new[] { new IMonth("فروردین", 1, 31), new IMonth("اردیبهشت", 2, 31), new IMonth("خرداد", 3, 31), new IMonth("تیر", 4, 31), new IMonth("مرداد", 5, 31), new IMonth("شهریور", 6, 31), new IMonth("مهر", 7, 30), new IMonth("آبان", 8, 30), new IMonth("آذر", 9, 30), new IMonth("دی", 10, 30), new IMonth("بهمن", 11, 30), new IMonth("اسفند", 12, isLeapMonth: false, normalLength: 29, leapLength: 30) }; AMName = "ق.ظ"; PMName = "ب.ظ"; }
public DashboardController(ILogEntryRepository logEntryRepository, IChartService chartService, IWeek week, IDateAndExcetionsRepository dateAndExcetionsRepository) { _logEntryRepository = logEntryRepository; _chartService = chartService; _week = week; _DateAndExcetions = dateAndExcetionsRepository; }
public IQueryable <Purchase> SelectPurchasesByWeek(IWeek week_) { var res = (from p in Purchase where ((p.Date >= week_.BDate) && (p.Date <= week_.EDate)) select p); return(res); }
public ExceptionChartStart(IChartService chartService, IWeek week, ILogEntryRepository logEntryRepository, int prevWeek, bool isPrev, bool isNext) { _logEntryRepository = logEntryRepository; _chartService = chartService; _week = week; _prevWeek = prevWeek; _isPrev = isPrev; _isNext = isNext; }
public OYSTimeSpan(IYear Y, IMonth M, IWeek W, IDay D, IHour h, IMinute m, ISecond s) { this.Years = Y; this.Months = M; this.Days = D; this.Hours = h; this.Minutes = m; this.Seconds = s; }
public ChartService(ILogEntryRepository logEntryRepository, IWeek week) { _logEntryRepository = logEntryRepository; _week = week; _time = new AverageExceptions(_logEntryRepository); _firstMonthLog = _logEntryRepository.GetAllLogs.First(x => x.Id == 1); _firstMonthDate = int.Parse(_firstMonthLog.Date.KeepOnlyMonth()); _firstMonthDateString = _firstMonthDate.ToString(); }
public static ITimeSpan ToTimeSpan(this IWeek input) => ObjectFactory.CreateTimeSpan(new System.TimeSpan((int)input.RawValue * 7, 0, 0, 0));
public static IDateTime ToDateTime(this IWeek input) => ObjectFactory.CreateDateTime(new System.DateTime(0, 0, (int)input.RawValue * 7, 0, 0, 0));
public MWeekPurchaseSumByGroup(IWeek week_, IGroup group_) { Week = week_; Group = group_; }