修改作业票

This commit is contained in:
2023-09-14 20:11:35 +08:00
parent 7cca1b3cd3
commit ba8a84b2e0
9 changed files with 620 additions and 4 deletions
+1
View File
@@ -1994,6 +1994,7 @@
<Content Include="File\Excel\TestRun\管道一览表.xlsx" />
<Content Include="File\Excel\TestRun\系统划分.xlsx" />
<Content Include="File\Excel\TestRun\设备一览表.xlsx" />
<Content Include="File\Word\HSSE\临时用电作业票.doc" />
<None Include="packages.config" />
<Content Include="ReportPrint\ReportTabFile\分包商上传周报.tab" />
<Content Include="ReportPrint\ReportTabFile\HSSE日志暨管理数据收集.tab" />
@@ -289,7 +289,7 @@ namespace FineUIPro.Web.HSSE.License
string uploadfilepath = string.Empty;
string newUrl = string.Empty;
string filePath = string.Empty;
initTemplatePath = "File\\Word\\HSSE\\动土作业票.doc";
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");
@@ -340,12 +340,12 @@ namespace FineUIPro.Web.HSSE.License
}
}
Bookmark bookmarkWorkDepth = doc.Range.Bookmarks["WorkDepth"];//开挖深度
Bookmark bookmarkWorkDepth = doc.Range.Bookmarks["WorkDepth"];//作业原因
if (bookmarkWorkDepth != null)
{
if (getElectricity != null)
{
bookmarkWorkDepth.Text = getElectricity.WorkDepth;
bookmarkWorkDepth.Text = getElectricity.Reason;
}
}