private string createList() { System.Text.StringBuilder sb = new System.Text.StringBuilder(""); sb.Append("<table class=\"table table-border table-bordered table-hover table-bg table-sort\" id=\"tablelist\">"); sb.Append("<thead>"); sb.Append("<tr class=\"text-c\">"); sb.Append("<th width=\"10%\">序号</th>"); sb.Append("<th width='45%'>费用科目</th>"); sb.Append("<th width='45%'>对应违约金科目</th>"); sb.Append("</tr>"); sb.Append("</thead>"); int r = 1; sb.Append("<tbody>"); Business.Base.BusinessLateFee bc = new project.Business.Base.BusinessLateFee(); foreach (Entity.Base.EntityLateFee it in bc.GetListQuery(string.Empty)) { sb.Append("<tr class=\"text-c\" id=\"" + it.RowPointer + "\">"); sb.Append("<td style=\"text-align:center;\">" + r.ToString() + "</td>"); sb.Append("<td style=\"text-align:left;\">" + it.SRVName + "</td>"); sb.Append("<td style=\"text-align:left;\">" + it.LateFeeSRVName + "</td>"); sb.Append("</tr>"); r++; } sb.Append("</tbody>"); sb.Append("</table>"); return(sb.ToString()); }
private string createList(string SPNo, string SRVNo, string SRVName, string LateSRVName, int page) { System.Text.StringBuilder sb = new System.Text.StringBuilder(""); sb.Append("<table class=\"table table-border table-bordered table-hover table-bg table-sort\" id=\"tablelist\">"); sb.Append("<thead>"); sb.Append("<tr class=\"text-c\">"); sb.Append("<th width=\"10%\">序号</th>"); sb.Append("<th width='20%'>服务商</th>"); sb.Append("<th width='30%'>费用科目</th>"); sb.Append("<th width='30%'>对应违约金科目</th>"); sb.Append("</tr>"); sb.Append("</thead>"); int r = 1; sb.Append("<tbody>"); Business.Base.BusinessLateFee bc = new project.Business.Base.BusinessLateFee(); foreach (Entity.Base.EntityLateFee it in bc.GetListQuery(SPNo, SRVNo, SRVName, LateSRVName, page, pageSize)) { sb.Append("<tr class=\"text-c\" id=\"" + it.RowPointer + "\">"); sb.Append("<td style=\"text-align:center;\">" + r.ToString() + "</td>"); sb.Append("<td style=\"text-align:left;\">" + it.SPShortName + "</td>"); sb.Append("<td style=\"text-align:left;\">" + it.SRVName + "</td>"); sb.Append("<td style=\"text-align:left;\">" + it.LateFeeSRVName + "</td>"); sb.Append("</tr>"); r++; } sb.Append("</tbody>"); sb.Append("</table>"); sb.Append(Paginat(bc.GetListCount(SPNo, SRVNo, SRVName, LateSRVName), pageSize, page, 7)); return(sb.ToString()); }