修改质量月报
This commit is contained in:
@@ -949,6 +949,38 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
|
||||
//自动设置表格样式
|
||||
table.AutoFit(AutoFitBehavior.FixedColumnWidths);
|
||||
}
|
||||
else {
|
||||
isYm = true;
|
||||
numberIndex = 1;
|
||||
whileIndex += 1;
|
||||
table = (Aspose.Words.Tables.Table)doc.GetChild(NodeType.Table, whileIndex, true);
|
||||
//跳过页眉的表头
|
||||
while (isYm)
|
||||
{
|
||||
if (table.Range.Text.Substring(0, 2) != "序号")
|
||||
{
|
||||
whileIndex += 1;
|
||||
table = (Aspose.Words.Tables.Table)doc.GetChild(NodeType.Table, whileIndex, true);
|
||||
}
|
||||
else
|
||||
{
|
||||
isYm = false;
|
||||
}
|
||||
}
|
||||
//创建合计
|
||||
Row rowhj = new Row(doc);
|
||||
double numcount0 = table.FirstRow.Cells[0].CellFormat.Width;
|
||||
double numcount1 = table.FirstRow.Cells[1].CellFormat.Width;
|
||||
double numcount2 = table.FirstRow.Cells[2].CellFormat.Width;
|
||||
double numcount3 = table.FirstRow.Cells[3].CellFormat.Width;
|
||||
double numcount4 = table.FirstRow.Cells[4].CellFormat.Width;
|
||||
double numcount = numcount0 + numcount1 + numcount2 + numcount3 + numcount4;
|
||||
rowhj.Cells.Add(CreateCell("暂无数据", doc, numcount));
|
||||
table.Rows.Insert(numberIndex + 1, rowhj);
|
||||
|
||||
//自动设置表格样式
|
||||
table.AutoFit(AutoFitBehavior.FixedColumnWidths);
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 7.3无损检测管理情况
|
||||
@@ -1193,7 +1225,38 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
|
||||
table.AutoFit(AutoFitBehavior.FixedColumnWidths);
|
||||
}
|
||||
else {
|
||||
isYm = true;
|
||||
numberIndex = 1;
|
||||
whileIndex += 1;
|
||||
table = (Aspose.Words.Tables.Table)doc.GetChild(NodeType.Table, whileIndex, true);
|
||||
//跳过页眉的表头
|
||||
while (isYm)
|
||||
{
|
||||
if (table.Range.Text.Substring(0, 2) != "序号")
|
||||
{
|
||||
whileIndex += 1;
|
||||
table = (Aspose.Words.Tables.Table)doc.GetChild(NodeType.Table, whileIndex, true);
|
||||
}
|
||||
else
|
||||
{
|
||||
isYm = false;
|
||||
}
|
||||
}
|
||||
//创建合计
|
||||
Row rowhj = new Row(doc);
|
||||
double numcount0 = table.Rows[0].Cells[0].CellFormat.Width;
|
||||
double numcount1 = table.Rows[0].Cells[1].CellFormat.Width;
|
||||
double numcount2 = table.Rows[0].Cells[2].CellFormat.Width;
|
||||
double numcount3 = table.Rows[0].Cells[3].CellFormat.Width;
|
||||
double numcount4 = table.Rows[0].Cells[4].CellFormat.Width;
|
||||
double numcount5 = table.Rows[0].Cells[5].CellFormat.Width;
|
||||
double numcount6 = table.Rows[0].Cells[6].CellFormat.Width;
|
||||
double numcount = numcount0 + numcount1 + numcount2 + numcount3 + numcount4 + numcount5 + numcount6;
|
||||
rowhj.Cells.Add(CreateCell("暂无数据", doc, numcount));
|
||||
table.Rows.Insert(numberIndex + 1, rowhj);
|
||||
|
||||
//自动设置表格样式
|
||||
table.AutoFit(AutoFitBehavior.FixedColumnWidths);
|
||||
}
|
||||
|
||||
#endregion
|
||||
@@ -1252,6 +1315,39 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
|
||||
//自动设置表格样式
|
||||
table.AutoFit(AutoFitBehavior.FixedColumnWidths);
|
||||
}
|
||||
else {
|
||||
isYm = true;
|
||||
numberIndex = 1;
|
||||
whileIndex += 1;
|
||||
table = (Aspose.Words.Tables.Table)doc.GetChild(NodeType.Table, whileIndex, true);
|
||||
//跳过页眉的表头
|
||||
while (isYm)
|
||||
{
|
||||
if (table.Range.Text.Substring(0, 2) != "序号")
|
||||
{
|
||||
whileIndex += 1;
|
||||
table = (Aspose.Words.Tables.Table)doc.GetChild(NodeType.Table, whileIndex, true);
|
||||
}
|
||||
else
|
||||
{
|
||||
isYm = false;
|
||||
}
|
||||
}
|
||||
//创建合计
|
||||
Row rowhj = new Row(doc);
|
||||
double numcount0 = table.Rows[0].Cells[0].CellFormat.Width;
|
||||
double numcount1 = table.Rows[0].Cells[1].CellFormat.Width;
|
||||
double numcount2 = table.Rows[0].Cells[2].CellFormat.Width;
|
||||
double numcount3 = table.Rows[0].Cells[3].CellFormat.Width;
|
||||
double numcount4 = table.Rows[0].Cells[4].CellFormat.Width;
|
||||
double numcount5 = table.Rows[0].Cells[5].CellFormat.Width;
|
||||
double numcount = numcount0 + numcount1 + numcount2 + numcount3 + numcount4 + numcount5;
|
||||
rowhj.Cells.Add(CreateCell("暂无数据", doc, numcount));
|
||||
table.Rows.Insert(numberIndex + 1, rowhj);
|
||||
|
||||
//自动设置表格样式
|
||||
table.AutoFit(AutoFitBehavior.FixedColumnWidths);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
Reference in New Issue
Block a user