2023-04-28
This commit is contained in:
@@ -356,8 +356,9 @@ namespace FineUIPro.Web.HSSE.Check
|
||||
string filePath = string.Empty;
|
||||
initTemplatePath = "File\\Word\\HSSE\\专项检查.doc";
|
||||
uploadfilepath = rootPath + initTemplatePath;
|
||||
newUrl = uploadfilepath.Replace(".doc", string.Format("{0:yyyy-MM}", DateTime.Now) + ".doc");
|
||||
filePath = initTemplatePath.Replace(".doc", string.Format("{0:yyyy-MM}", DateTime.Now) + ".pdf");
|
||||
string docfilename = Funs.GetNewFileName();
|
||||
newUrl = uploadfilepath.Replace(".doc", docfilename + ".doc");
|
||||
filePath = initTemplatePath.Replace(".doc", docfilename + ".pdf");
|
||||
if (File.Exists(newUrl)) {
|
||||
File.Delete(newUrl);
|
||||
}
|
||||
@@ -501,7 +502,7 @@ namespace FineUIPro.Web.HSSE.Check
|
||||
builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
|
||||
builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
|
||||
builder.CellFormat.Width = 50;
|
||||
builder.Write(string.IsNullOrEmpty(detail.HiddenHazardTypeName) ? "" : detail.HiddenHazardTypeName);
|
||||
builder.Write(string.IsNullOrEmpty(detail.RiskLevel) ? "" : detail.RiskLevel);
|
||||
builder.EndRow();
|
||||
num++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user