20250123 质量月报

This commit is contained in:
2025-01-23 16:11:00 +08:00
parent 470a87b303
commit 0d5af82d47
46 changed files with 378 additions and 196 deletions
@@ -345,6 +345,10 @@ namespace FineUIPro.Web.HSSE.Check
initTemplatePath = "File\\Word\\HSSE\\工程暂停令.doc";
uploadfilepath = rootPath + initTemplatePath;
newUrl = uploadfilepath.Replace(".doc", string.Format("{0:yyyy-MM}", DateTime.Now) + ".doc");
if (File.Exists(newUrl))
{
File.Delete(newUrl);
}
filePath = initTemplatePath.Replace(".doc", string.Format("{0:yyyy-MM}", DateTime.Now) + ".pdf");
File.Copy(uploadfilepath, newUrl);
///更新书签内容
@@ -368,6 +368,10 @@ namespace FineUIPro.Web.HSSE.Check
initTemplatePath = "File\\Word\\HSSE\\安全处罚通知单.doc";
uploadfilepath = rootPath + initTemplatePath;
newUrl = uploadfilepath.Replace(".doc", string.Format("{0:yyyy-MM}", DateTime.Now) + ".doc");
if (File.Exists(newUrl))
{
File.Delete(newUrl);
}
filePath = initTemplatePath.Replace(".doc", string.Format("{0:yyyy-MM}", DateTime.Now) + ".pdf");
File.Copy(uploadfilepath, newUrl);
///更新书签内容
@@ -293,6 +293,10 @@ namespace FineUIPro.Web.HSSE.License
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");
if (File.Exists(newUrl))
{
File.Delete(newUrl);
}
File.Copy(uploadfilepath, newUrl);
///更新书签
var getBreakGround = LicensePublicService.GetBreakGroundById(Id);
@@ -293,6 +293,10 @@ namespace FineUIPro.Web.HSSE.License
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");
if (File.Exists(newUrl))
{
File.Delete(newUrl);
}
File.Copy(uploadfilepath, newUrl);
///更新书签
var getElectricity = LicensePublicService.GetElectricityById(Id);