private string CalculateTableContent(List <CampusEmailSchoolModel> emailData) { emailData = emailData.OrderByDescending(m => m.AbsentPercentage).ToList(); string tablecontent = @"<thead style='background: #ffffff;'><tr style='background: #ffffff;'> <th>Teacher Name</th> <th>Students with 3+ absences in last 5 days</th> <th>Total Qty of Student Assigned</th> </tr></thead><tbody style='background: #ffffff;'>"; foreach (var row in emailData) { tablecontent += @$ "<tr style='background: #ffffff;'> <td style='background: #ffffff;'>{row.StaffFirstName} {row.StaffLastname} ({Math.Round(row.AbsentPercentage, 2)}%)</td> <td style='background: #ffffff;'>{row.TotalAbsenceStudents}</td> <td style='background: #ffffff;'>{row.TotalStudents}</td> </tr>"; } tablecontent += "</tbody>"; return(tablecontent); }
public td.PGM_CLASS _class; //4 #endregion Fields #region Constructors public canPGMPacket(td.PGM_CLASS _class, ushort id) { this._class = _class; this.id = (ushort)((int)id & 0x7FFF); }
public td.BOOT_TYPE type; //3 #endregion Fields #region Constructors public canBOOTPacket(td.BOOT_TYPE type, byte offset, byte rid) { this.type = type; this.offset = offset; this.rid = rid; }