Beispiel #1
0
        public void MakeColumnHeadersA(CalendarMonthInfo calmt)
        {
            string[] daystr = SomeDataDefs.GetDaysStr(calmt.WeekDays);
            for (int i = 0; i < 31; i++)
            {
                var s  = daystr[i] + "\n" + (i + 1);
                var d1 = calmt.WeekDays[i];
                if (d1 == -1)
                {
                    s = "";
                }
                Headers[i] = s;

                var hd  = calmt.HolyDays[i];
                var col = HeaderEmptyColor;
                if (hd == EHolyDay.Holiday)
                {
                    col = HeaderHolyDay;
                }
                else if (d1 == 6 || d1 == 7)
                {
                    col = HeaderWeekEndDay;
                }
                HeaderColors[i] = ColorTranslator.ToHtml(col);
            }
        }
Beispiel #2
0
 public void MakeColumnHeaders(CalendarMonthInfo calmt, TimeReportRow1 row)
 {
     string[] daystr = SomeDataDefs.GetDaysStr(calmt.WeekDays);
     for (int i = 0; i < 31; i++)
     {
         var s  = daystr[i] + "\n" + (i + 1);
         var d1 = calmt.WeekDays[i];
         if (d1 == -1)
         {
             s = "";
         }
         row.DX[i] = s;
     }
     row.RowType = 1;
     row.K1      = "Σ";
 }