20240514 修改月报
This commit is contained in:
@@ -177,7 +177,7 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
|
||||
//序号
|
||||
value = " " + value;
|
||||
}
|
||||
|
||||
p.ParagraphFormat.Alignment = ParagraphAlignment.Center;
|
||||
|
||||
p.AppendChild(new Run(doc, value));
|
||||
|
||||
@@ -230,8 +230,7 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
|
||||
//更新书签内容
|
||||
Document doc = new Aspose.Words.Document(newUrl);
|
||||
DocumentBuilder builder = new DocumentBuilder(doc);
|
||||
//builder.CellFormat.VerticalAlignment = CellVerticalAlignment.Center;
|
||||
//builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;
|
||||
|
||||
#region 头部静态列
|
||||
//业主单位
|
||||
var unitsYz = (from x in db.Base_Unit
|
||||
@@ -343,16 +342,12 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
|
||||
row.Cells.Add(CreateCell(item.TargetValue, doc, table.FirstRow.Cells[3].CellFormat.Width));
|
||||
row.Cells.Add(CreateCell(item.MonthPer, doc, table.FirstRow.Cells[4].CellFormat.Width));
|
||||
row.Cells.Add(CreateCell(item.Remarks, doc, table.FirstRow.Cells[5].CellFormat.Width));
|
||||
|
||||
table.Rows.Insert(numberIndex, row);
|
||||
|
||||
|
||||
table.Rows.Insert(numberIndex, row);
|
||||
numberIndex += 1;
|
||||
}
|
||||
//自动设置表格样式
|
||||
table.AutoFit(AutoFitBehavior.FixedColumnWidths);
|
||||
//table.Alignment = Aspose.Words.Tables.TableAlignment.Center;
|
||||
//builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;
|
||||
|
||||
#endregion
|
||||
|
||||
#region 本月主要工作内容
|
||||
|
||||
Reference in New Issue
Block a user