20220919版本日志整理,部门人员列表及导出功能调整

This commit is contained in:
2022-09-20 11:47:25 +08:00
parent 01ce3c0381
commit 7412e411a7
25 changed files with 361 additions and 1348 deletions
+52 -30
View File
@@ -1196,7 +1196,10 @@ namespace FineUIPro.Web
foreach (GridColumn column in grid.Columns)
{
sb.AppendFormat("<td>{0}</td>", column.HeaderText);
if (column.ColumnID != "Actions" && !column.Hidden)
{
sb.AppendFormat("<td>{0}</td>", column.HeaderText);
}
}
sb.Append("</tr>");
foreach (GridRow row in grid.Rows)
@@ -1204,41 +1207,60 @@ namespace FineUIPro.Web
sb.Append("<tr>");
foreach (GridColumn column in grid.Columns)
{
string html = row.Values[column.ColumnIndex].ToString();
if (column.ColumnID == "tfNumber" && (row.FindControl("labNumber") as AspNet.Label) != null)
if (column.ColumnID != "Actions" && !column.Hidden)
{
html = (row.FindControl("labNumber") as AspNet.Label).Text;
}
if (column.ColumnID == "tfTeamType" && (row.FindControl("lbTeamType") as AspNet.Label) != null)
{
html = (row.FindControl("lbTeamType") as AspNet.Label).Text;
}
if (column.ColumnID == "tfI" && (row.FindControl("tfI") as AspNet.Label) != null)
{
html = (row.FindControl("lbI") as AspNet.Label).Text;
}
if (column.ColumnID == "tfCompileMan" && (row.FindControl("tfCompileMan") as AspNet.Label) != null)
{
html = (row.FindControl("lblCompileMan") as AspNet.Label).Text;
}
if (column.ColumnID == "tfSpecialEquipmentId")
{
html = (row.FindControl("lblSpecialEquipmentId") as AspNet.Label).Text;
}
// 处理CheckBox
if (html.Contains("f-grid-static-checkbox"))
{
if (!html.Contains("f-checked"))
string html = row.Values[column.ColumnIndex].ToString();
if (column.ColumnID == "tfNumber" && (row.FindControl("labNumber") as AspNet.Label) != null)
{
html = "×";
html = (row.FindControl("labNumber") as AspNet.Label).Text;
}
else
if (column.ColumnID == "tfNumber" && (row.FindControl("lblNumber") as AspNet.Label) != null)
{
html = "√";
html = (row.FindControl("lblNumber") as AspNet.Label).Text;
}
if (column.ColumnID == "tfTeamType" && (row.FindControl("lbTeamType") as AspNet.Label) != null)
{
html = (row.FindControl("lbTeamType") as AspNet.Label).Text;
}
if (column.ColumnID == "tfI" && (row.FindControl("lbI") as AspNet.Label) != null)
{
html = (row.FindControl("lbI") as AspNet.Label).Text;
}
if (column.ColumnID == "tfCompileMan" && (row.FindControl("lblCompileMan") as AspNet.Label) != null)
{
html = (row.FindControl("lblCompileMan") as AspNet.Label).Text;
}
if (column.ColumnID == "tfSpecialEquipmentId" && (row.FindControl("lblSpecialEquipmentId") as AspNet.Label) != null)
{
html = (row.FindControl("lblSpecialEquipmentId") as AspNet.Label).Text;
}
if (column.ColumnID == "tfSex" && (row.FindControl("lbSex") as AspNet.Label) != null)
{
html = (row.FindControl("lbSex") as AspNet.Label).Text;
}
if (column.ColumnID == "tfAge" && (row.FindControl("lbAge") as AspNet.Label) != null)
{
html = (row.FindControl("lbAge") as AspNet.Label).Text;
}
if (column.ColumnID == "tfIsPost" && (row.FindControl("lbIsPost") as AspNet.Label) != null)
{
html = (row.FindControl("lbIsPost") as AspNet.Label).Text;
}
// 处理CheckBox
if (html.Contains("f-grid-static-checkbox"))
{
if (!html.Contains("f-checked"))
{
html = "×";
}
else
{
html = "√";
}
}
sb.AppendFormat("<td style='vnd.ms-excel.numberformat:@;width:140px;'>{0}</td>", html);
// sb.AppendFormat("<td>{0}</td>", html);
}
sb.AppendFormat("<td style='vnd.ms-excel.numberformat:@;width:140px;'>{0}</td>", html);
// sb.AppendFormat("<td>{0}</td>", html);
}
sb.Append("</tr>");