Ejemplo n.º 1
0
 /// <summary>
 /// Write the report item (row).
 /// </summary>
 /// <param name="day">One day info.</param>
 public override void WriteDay(OneDayInfo day)
 {
     this.WriteLine(
         this.D(day.Date),
         this.B(day.IsMentruation),
         this.I(day.Egesta, day.IsMentruation),
         this.B(day.IsOvulation),
         this.B(day.HadSex),
         this.D(day.BBT),
         this.I(day.Health),
         this.CF(day.CF),
         day.Note.Replace('\n', ' '));
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Write an item of the report.
        /// </summary>
        /// <param name="day">One day info.</param>
        public override void WriteDay(OneDayInfo day)
        {
            WorksheetRow wr = this.ws.Table.Rows.Add();

            wr.Cells.Add(new WorksheetCell(this.D(day.Date), DataType.String, "dateStyle"));
            wr.Cells.Add(new WorksheetCell(this.B(day.IsMentruation), DataType.String));
            wr.Cells.Add(new WorksheetCell(this.I(day.Egesta, day.IsMentruation), day.IsMentruation ? DataType.Number : DataType.String));
            wr.Cells.Add(new WorksheetCell(this.B(day.IsOvulation), DataType.String));
            wr.Cells.Add(new WorksheetCell(this.B(day.HadSex), DataType.String));
            wr.Cells.Add(new WorksheetCell(this.D(day.BBT), day.BBT != 0 ? DataType.Number : DataType.String, day.BBT != 0 ? "floatStyle" : "Default"));
            wr.Cells.Add(new WorksheetCell(this.I(day.Health), DataType.Number));
            wr.Cells.Add(new WorksheetCell(this.CF(day.CF), DataType.String));
            wr.Cells.Add(new WorksheetCell(day.Note, DataType.String));
        }
Ejemplo n.º 3
0
 /// <summary>
 /// Create the information data about one day.
 /// </summary>
 /// <param name="day">Day to obtain data for.</param>
 /// <returns>A day information structure.</returns>
 public OneDayInfo GetOneDayInfo(DateTime day)
 {
     return(OneDayInfo.GetByDate(this, day));
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Write the report one day part.
 /// </summary>
 /// <param name="day">One day info.</param>
 public abstract void WriteDay(OneDayInfo day);