This commit is contained in:
2024-02-27 18:13:26 +08:00
parent 7f67a750c8
commit 6106fb7d9c
33 changed files with 2769 additions and 1820 deletions
+283
View File
@@ -1407,3 +1407,286 @@ IP地址:::1
出错时间:01/26/2024 11:24:42
出错时间:01/26/2024 11:24:42
错误信息开始=====>
错误类型:FileCorruptedException
错误信息:The document appears to be corrupted and cannot be loaded.
错误堆栈:
在 Aspose.Words.Document.x5d4db34d48fb3129(Stream xcf18e5243f8d5fd3, LoadOptions x27aceb70372bde46)
在 Aspose.Words.Document.x5d95f5f98c940295(Stream xcf18e5243f8d5fd3, LoadOptions x27aceb70372bde46)
在 Aspose.Words.Document..ctor(String fileName, LoadOptions loadOptions)
在 Aspose.Words.Document..ctor(String fileName)
在 FineUIPro.Web.HSSE.License.FireWork.btnPrinter_Click(Object sender, EventArgs e) 位置 D:\project\vs\sggl_cd\SGGL\FineUIPro.Web\HSSE\License\FireWork.aspx.cs:行号 303
在 FineUIPro.MenuButton.OnClick(EventArgs e)
在 (MenuButton , EventArgs )
在 FineUIPro.MenuButton.RaisePostBackEvent(String eventArgument)
在 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
在 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
----错误类型:ArgumentOutOfRangeException
----错误信息:
----索引超出范围。必须为非负值并小于集合大小。
参数名: startIndex
----错误堆栈:
在 System.String.CtorCharArrayStartLength(Char[] value, Int32 startIndex, Int32 length)
在 xa604c4d210ae0581.x1f93754c360623ac.x06b0e25aa6ad68a9(BinaryReader xe134235b3526fa75, Int32 xde3de5b024452f3d, Int32 x8e15aa2edd06439a, Document x6beba47238e0ade6)
在 x16f9a31f749b8bb1.x0f8a9a895bdf560e.x06b0e25aa6ad68a9()
在 Aspose.Words.Document.x5d4db34d48fb3129(Stream xcf18e5243f8d5fd3, LoadOptions x27aceb70372bde46)
出错时间:01/31/2024 19:14:21
出错文件:http://localhost:1295/HSSE/License/FireWork.aspx
IP地址:::1
操作人员:JT
出错时间:01/31/2024 19:14:22
错误信息开始=====>
错误类型:FileCorruptedException
错误信息:The document appears to be corrupted and cannot be loaded.
错误堆栈:
在 Aspose.Words.Document.x5d4db34d48fb3129(Stream xcf18e5243f8d5fd3, LoadOptions x27aceb70372bde46)
在 Aspose.Words.Document.x5d95f5f98c940295(Stream xcf18e5243f8d5fd3, LoadOptions x27aceb70372bde46)
在 Aspose.Words.Document..ctor(String fileName, LoadOptions loadOptions)
在 Aspose.Words.Document..ctor(String fileName)
在 FineUIPro.Web.HSSE.License.FireWork.btnPrinter_Click(Object sender, EventArgs e) 位置 D:\project\vs\sggl_cd\SGGL\FineUIPro.Web\HSSE\License\FireWork.aspx.cs:行号 303
在 FineUIPro.MenuButton.OnClick(EventArgs e)
在 (MenuButton , EventArgs )
在 FineUIPro.MenuButton.RaisePostBackEvent(String eventArgument)
在 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
在 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
----错误类型:ArgumentOutOfRangeException
----错误信息:
----索引超出范围。必须为非负值并小于集合大小。
参数名: startIndex
----错误堆栈:
在 System.String.CtorCharArrayStartLength(Char[] value, Int32 startIndex, Int32 length)
在 xa604c4d210ae0581.x1f93754c360623ac.x06b0e25aa6ad68a9(BinaryReader xe134235b3526fa75, Int32 xde3de5b024452f3d, Int32 x8e15aa2edd06439a, Document x6beba47238e0ade6)
在 x16f9a31f749b8bb1.x0f8a9a895bdf560e.x06b0e25aa6ad68a9()
在 Aspose.Words.Document.x5d4db34d48fb3129(Stream xcf18e5243f8d5fd3, LoadOptions x27aceb70372bde46)
出错时间:01/31/2024 19:14:48
出错文件:http://localhost:1295/HSSE/License/FireWork.aspx
IP地址:::1
操作人员:JT
出错时间:01/31/2024 19:14:48
错误信息开始=====>
错误类型:FileCorruptedException
错误信息:The document appears to be corrupted and cannot be loaded.
错误堆栈:
在 Aspose.Words.Document.x5d4db34d48fb3129(Stream xcf18e5243f8d5fd3, LoadOptions x27aceb70372bde46)
在 Aspose.Words.Document.x5d95f5f98c940295(Stream xcf18e5243f8d5fd3, LoadOptions x27aceb70372bde46)
在 Aspose.Words.Document..ctor(String fileName, LoadOptions loadOptions)
在 Aspose.Words.Document..ctor(String fileName)
在 FineUIPro.Web.HSSE.License.FireWork.btnPrinter_Click(Object sender, EventArgs e) 位置 D:\project\vs\sggl_cd\SGGL\FineUIPro.Web\HSSE\License\FireWork.aspx.cs:行号 303
在 FineUIPro.MenuButton.OnClick(EventArgs e)
在 (MenuButton , EventArgs )
在 FineUIPro.MenuButton.RaisePostBackEvent(String eventArgument)
在 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
在 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
----错误类型:ArgumentOutOfRangeException
----错误信息:
----索引超出范围。必须为非负值并小于集合大小。
参数名: startIndex
----错误堆栈:
在 System.String.CtorCharArrayStartLength(Char[] value, Int32 startIndex, Int32 length)
在 xa604c4d210ae0581.x1f93754c360623ac.x06b0e25aa6ad68a9(BinaryReader xe134235b3526fa75, Int32 xde3de5b024452f3d, Int32 x8e15aa2edd06439a, Document x6beba47238e0ade6)
在 x16f9a31f749b8bb1.x0f8a9a895bdf560e.x06b0e25aa6ad68a9()
在 Aspose.Words.Document.x5d4db34d48fb3129(Stream xcf18e5243f8d5fd3, LoadOptions x27aceb70372bde46)
出错时间:01/31/2024 19:17:03
出错文件:http://localhost:1295/HSSE/License/FireWork.aspx
IP地址:::1
操作人员:JT
出错时间:01/31/2024 19:17:03
错误信息开始=====>
错误类型:IOException
错误信息:文件“D:\project\vs\sggl_cd\SGGL\FineUIPro.Web\File\Word\HSSE\动火作业票202401310737394544.doc”正由另一进程使用,因此该进程无法访问此文件。
错误堆栈:
在 System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
在 System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
在 System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
在 Aspose.Words.Document..ctor(String fileName, LoadOptions loadOptions)
在 Aspose.Words.Document..ctor(String fileName)
在 FineUIPro.Web.HSSE.License.FireWork.btnPrinter_Click(Object sender, EventArgs e) 位置 D:\project\vs\sggl_cd\SGGL\FineUIPro.Web\HSSE\License\FireWork.aspx.cs:行号 991
在 FineUIPro.MenuButton.OnClick(EventArgs e)
在 (MenuButton , EventArgs )
在 FineUIPro.MenuButton.RaisePostBackEvent(String eventArgument)
在 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
在 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
出错时间:01/31/2024 19:38:20
出错文件:http://localhost:1295/HSSE/License/FireWork.aspx
IP地址:::1
操作人员:JT
出错时间:01/31/2024 19:38:20
错误信息开始=====>
错误类型:FileCorruptedException
错误信息:The document appears to be corrupted and cannot be loaded.
错误堆栈:
在 Aspose.Words.Document.x5d4db34d48fb3129(Stream xcf18e5243f8d5fd3, LoadOptions x27aceb70372bde46)
在 Aspose.Words.Document.x5d95f5f98c940295(Stream xcf18e5243f8d5fd3, LoadOptions x27aceb70372bde46)
在 Aspose.Words.Document..ctor(String fileName, LoadOptions loadOptions)
在 Aspose.Words.Document..ctor(String fileName)
在 FineUIPro.Web.HSSE.License.FireWork.btnPrinter_Click(Object sender, EventArgs e) 位置 D:\project\vs\sggl_cd\SGGL\FineUIPro.Web\HSSE\License\FireWork.aspx.cs:行号 303
在 FineUIPro.MenuButton.OnClick(EventArgs e)
在 (MenuButton , EventArgs )
在 FineUIPro.MenuButton.RaisePostBackEvent(String eventArgument)
在 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
在 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
----错误类型:ArgumentOutOfRangeException
----错误信息:
----索引超出范围。必须为非负值并小于集合大小。
参数名: startIndex
----错误堆栈:
在 System.String.CtorCharArrayStartLength(Char[] value, Int32 startIndex, Int32 length)
在 xa604c4d210ae0581.x1f93754c360623ac.x06b0e25aa6ad68a9(BinaryReader xe134235b3526fa75, Int32 xde3de5b024452f3d, Int32 x8e15aa2edd06439a, Document x6beba47238e0ade6)
在 x16f9a31f749b8bb1.x0f8a9a895bdf560e.x06b0e25aa6ad68a9()
在 Aspose.Words.Document.x5d4db34d48fb3129(Stream xcf18e5243f8d5fd3, LoadOptions x27aceb70372bde46)
出错时间:01/31/2024 20:56:07
出错文件:http://localhost:1295/HSSE/License/FireWork.aspx
IP地址:::1
操作人员:JT
出错时间:01/31/2024 20:56:07
错误信息开始=====>
错误类型:JsonReaderException
错误信息:Unexpected character encountered while parsing value: 未. Path '', line 0, position 0.
错误堆栈:
在 Newtonsoft.Json.JsonTextReader.ParseValue()
在 Newtonsoft.Json.JsonTextReader.Read()
在 Newtonsoft.Json.JsonReader.ReadForType(JsonContract contract, Boolean hasConverter)
在 Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)
在 Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)
在 Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings)
在 Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings)
在 Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value)
在 BLL.WeatherService.GetWeather(String projectId) 位置 D:\project\vs\sggl_cd\SGGL\BLL\Common\WeatherService.cs:行号 96
出错时间:02/01/2024 15:16:42
出错时间:02/01/2024 15:16:42
错误信息开始=====>
错误类型:FileCorruptedException
错误信息:The document appears to be corrupted and cannot be loaded.
错误堆栈:
在 Aspose.Words.Document.x5d4db34d48fb3129(Stream xcf18e5243f8d5fd3, LoadOptions x27aceb70372bde46)
在 Aspose.Words.Document.x5d95f5f98c940295(Stream xcf18e5243f8d5fd3, LoadOptions x27aceb70372bde46)
在 Aspose.Words.Document..ctor(String fileName, LoadOptions loadOptions)
在 Aspose.Words.Document..ctor(String fileName)
在 FineUIPro.Web.HSSE.License.BreakGround.btnPrinter_Click(Object sender, EventArgs e) 位置 D:\project\vs\sggl_cd\SGGL\FineUIPro.Web\HSSE\License\BreakGround.aspx.cs:行号 300
在 FineUIPro.MenuButton.OnClick(EventArgs e)
在 (MenuButton , EventArgs )
在 FineUIPro.MenuButton.RaisePostBackEvent(String eventArgument)
在 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
在 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
----错误类型:ArgumentOutOfRangeException
----错误信息:
----索引超出范围。必须为非负值并小于集合大小。
参数名: startIndex
----错误堆栈:
在 System.String.CtorCharArrayStartLength(Char[] value, Int32 startIndex, Int32 length)
在 xa604c4d210ae0581.x1f93754c360623ac.x06b0e25aa6ad68a9(BinaryReader xe134235b3526fa75, Int32 xde3de5b024452f3d, Int32 x8e15aa2edd06439a, Document x6beba47238e0ade6)
在 x16f9a31f749b8bb1.x0f8a9a895bdf560e.x06b0e25aa6ad68a9()
在 Aspose.Words.Document.x5d4db34d48fb3129(Stream xcf18e5243f8d5fd3, LoadOptions x27aceb70372bde46)
出错时间:02/01/2024 15:16:53
出错文件:http://localhost:1295/HSSE/License/BreakGround.aspx
IP地址:::1
操作人员:JT
出错时间:02/01/2024 15:17:02
错误信息开始=====>
错误类型:JsonReaderException
错误信息:Unexpected character encountered while parsing value: 未. Path '', line 0, position 0.
错误堆栈:
在 Newtonsoft.Json.JsonTextReader.ParseValue()
在 Newtonsoft.Json.JsonTextReader.Read()
在 Newtonsoft.Json.JsonReader.ReadForType(JsonContract contract, Boolean hasConverter)
在 Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)
在 Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)
在 Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings)
在 Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings)
在 Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value)
在 BLL.WeatherService.GetWeather(String projectId) 位置 D:\project\vs\sggl_cd\SGGL\BLL\Common\WeatherService.cs:行号 96
出错时间:02/01/2024 15:44:02
出错时间:02/01/2024 15:44:03
错误信息开始=====>
错误类型:SqlException
错误信息:执行超时已过期。完成操作之前已超时或服务器未响应。
错误堆栈:
在 System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
在 System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
在 System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
在 System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
在 System.Data.SqlClient.SqlDataReader.TryConsumeMetaData()
在 System.Data.SqlClient.SqlDataReader.get_MetaData()
在 System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted)
在 System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest)
在 System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry)
在 System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)
在 System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method)
在 System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior)
在 System.Data.Common.DbCommand.ExecuteReader()
在 System.Data.Linq.SqlClient.SqlProvider.Execute(Expression query, QueryInfo queryInfo, IObjectReaderFactory factory, Object[] parentArgs, Object[] userArgs, ICompiledSubQuery[] subQueries, Object lastResult)
在 System.Data.Linq.SqlClient.SqlProvider.ExecuteAll(Expression query, QueryInfo[] queryInfos, IObjectReaderFactory factory, Object[] userArguments, ICompiledSubQuery[] subQueries)
在 System.Data.Linq.SqlClient.SqlProvider.System.Data.Linq.Provider.IProvider.Execute(Expression query)
在 System.Data.Linq.DataQuery`1.System.Collections.Generic.IEnumerable<T>.GetEnumerator()
在 System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
在 System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
在 FineUIPro.Web.mainMenu_HSSE.getSitePerson() 位置 D:\project\vs\sggl_cd\SGGL\FineUIPro.Web\common\mainMenu_HSSE.aspx.cs:行号 69
在 FineUIPro.Web.mainMenu_HSSE.Page_Load(Object sender, EventArgs e) 位置 D:\project\vs\sggl_cd\SGGL\FineUIPro.Web\common\mainMenu_HSSE.aspx.cs:行号 41
在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)
在 System.EventHandler.Invoke(Object sender, EventArgs e)
在 System.Web.UI.Control.OnLoad(EventArgs e)
在 System.Web.UI.Control.LoadRecursive()
在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
----错误类型:Win32Exception
----错误信息:
----等待的操作过时。
----错误堆栈:
出错时间:02/01/2024 17:08:26
出错文件:http://localhost:1295/common/mainMenu_HSSE.aspx
IP地址:::1
操作人员:JT
出错时间:02/01/2024 17:08:26
错误信息开始=====>
错误类型:HttpParseException
错误信息:“FineUIPro.ControlBaseCollection”内不允许包含文字内容(“WorkLevel”)。
错误堆栈:
在 System.Web.UI.TemplateParser.ProcessException(Exception ex)
在 System.Web.UI.TemplateParser.ProcessLiteral()
在 System.Web.UI.TemplateParser.MaybeTerminateControl(String tagName, Match match)
在 System.Web.UI.TemplateParser.ProcessEndTag(Match match)
在 System.Web.UI.TemplateParser.ParseStringInternal(String text, Encoding fileEncoding)
在 System.Web.UI.TemplateParser.ParseString(String text, VirtualPath virtualPath, Encoding fileEncoding)
----错误类型:HttpException
----错误信息:
----“FineUIPro.ControlBaseCollection”内不允许包含文字内容(“WorkLevel”)。
----错误堆栈:
在 System.Web.UI.CollectionBuilder.AppendLiteralString(String s)
在 System.Web.UI.TemplateParser.ProcessLiteral()
出错时间:02/02/2024 15:29:25
出错文件:http://localhost:1295/HSSE/License/LiftingWorkView.aspx?LiftingWorkId=989c9eba-fee9-4e0f-81c6-27df56cc6e0a
IP地址:::1
出错时间:02/02/2024 15:29:25
@@ -250,7 +250,7 @@
// 每10分钟 通过 websocket 向服务器发送一次心跳 证明客户端没有离线 依然在线可以正常接受消息
setInterval(websocketsend, 20000);
initWebsocket();
//initWebsocket();
function initWebsocket() {
/*
* 初始化 websock
@@ -320,4 +320,8 @@
}
setInterval(function () { //执行任务
getData();
}, 2000);
</script>
@@ -297,7 +297,16 @@ namespace FineUIPro.Web.HSSE.License
File.Copy(uploadfilepath, newUrl);
///更新书签
var getBreakGround = LicensePublicService.GetBreakGroundById(Id);
var projectName = ProjectService.GetProjectNameByProjectId(getBreakGround.ProjectId);
Document doc = new Aspose.Words.Document(newUrl);
Bookmark bookmarkProjectName = doc.Range.Bookmarks["ProjectName"];//编号
if (bookmarkProjectName != null)
{
if (!string.IsNullOrEmpty(projectName))
{
bookmarkProjectName.Text = projectName;
}
}
Bookmark bookmarkLicenseCode = doc.Range.Bookmarks["LicenseCode"];//编号
if (bookmarkLicenseCode != null)
{
@@ -330,6 +339,19 @@ namespace FineUIPro.Web.HSSE.License
}
}
Bookmark bookmarkWorkLeader = doc.Range.Bookmarks["WorkLeader"];//现场负责人
if (bookmarkWorkLeader != null)
{
if (getBreakGround != null)
{
var getUser = UserService.GetUserByUserId(getBreakGround.WorkLeaderId);
if (getUser != null)
{
bookmarkWorkLeader.Text = getUser.UserName;
}
}
}
Bookmark bookmarkUnitName = doc.Range.Bookmarks["UnitName"];//申请单位
if (bookmarkUnitName != null)
{
@@ -403,300 +425,85 @@ namespace FineUIPro.Web.HSSE.License
}
}
Bookmark bookmarkOtherAttach = doc.Range.Bookmarks["OtherAttach"];//其他附件(危害识别等)
if (bookmarkOtherAttach != null && !string.IsNullOrEmpty(getBreakGround.OtherAttach))
{
bookmarkOtherAttach.Text = getBreakGround.OtherAttach;
}
Bookmark bookmarkDrawingDes = doc.Range.Bookmarks["DrawingDes"];//图纸说明
if (bookmarkDrawingDes != null && !string.IsNullOrEmpty(getBreakGround.DrawingDes))
{
bookmarkDrawingDes.Text = getBreakGround.DrawingDes;
}
Bookmark bookmarkHasSpecial1 = doc.Range.Bookmarks["HasSpecial1"];//分析数据
Bookmark bookmarkHasSpecial2 = doc.Range.Bookmarks["HasSpecial2"];//分析数据
if (!string.IsNullOrEmpty(getBreakGround.HasSpecialProgramme))
{
if (getBreakGround.HasSpecialProgramme == "是")
{
bookmarkHasSpecial1.Text = "■";
bookmarkHasSpecial2.Text = "□";
}
else
{
bookmarkHasSpecial1.Text = "□";
bookmarkHasSpecial2.Text = "■";
}
}
else
{
bookmarkHasSpecial2.Text = "□";
bookmarkHasSpecial1.Text = "□";
}
Bookmark bookmarkHasDrawing1 = doc.Range.Bookmarks["HasDrawing1"];//分析数据
Bookmark bookmarkHasDrawing2 = doc.Range.Bookmarks["HasDrawing2"];//分析数据
if (!string.IsNullOrEmpty(getBreakGround.HasDrawing))
{
if (getBreakGround.HasDrawing == "是")
{
bookmarkHasDrawing1.Text = "■";
bookmarkHasDrawing2.Text = "□";
}
else
{
bookmarkHasDrawing1.Text = "□";
bookmarkHasDrawing2.Text = "■";
}
}
else
{
bookmarkHasDrawing1.Text = "□";
bookmarkHasDrawing2.Text = "□";
}
var GetLicenseItemList = LicensePublicService.GetLicenseItemListByDataId(Id);
if (GetLicenseItemList.Count > 0)
{
var item1 = GetLicenseItemList.FirstOrDefault(x => x.SortIndex == 1);
if (item1 != null)
{
if (item1.IsUsed == true)
{
Bookmark bookmarkUser1 = doc.Range.Bookmarks["User1"];//确认执行
if (bookmarkUser1 != null)
{
bookmarkUser1.Text = "√";
}
}
else
{
Bookmark bookmarkIsFit1 = doc.Range.Bookmarks["IsFit1"];
if (bookmarkIsFit1 != null)
{
if (item1 != null)
{
bookmarkIsFit1.Text = "×";
}
}
}
}
var item2 = GetLicenseItemList.FirstOrDefault(x => x.SortIndex == 2);
if (item2 != null)
{
if (item2.IsUsed == true)
{
Bookmark bookmarkUser2 = doc.Range.Bookmarks["User2"];//确认执行
if (bookmarkUser2 != null)
{
bookmarkUser2.Text = "√";
}
}
else
{
Bookmark bookmarkIsFit2 = doc.Range.Bookmarks["IsFit2"];
if (bookmarkIsFit2 != null)
{
if (item2 != null)
{
bookmarkIsFit2.Text = "×";
}
}
}
}
var item3 = GetLicenseItemList.FirstOrDefault(x => x.SortIndex == 3);
if (item3 != null)
{
if (item3.IsUsed == true)
{
Bookmark bookmarkUser3 = doc.Range.Bookmarks["User3"];//确认执行
if (bookmarkUser3 != null)
{
bookmarkUser3.Text = "√";
}
}
else
{
Bookmark bookmarkIsFit3 = doc.Range.Bookmarks["IsFit3"];
if (bookmarkIsFit3 != null)
{
if (item3 != null)
{
bookmarkIsFit3.Text = "×";
}
}
}
}
var item4 = GetLicenseItemList.FirstOrDefault(x => x.SortIndex == 4);
if (item4 != null)
{
if (item4.IsUsed == true)
{
Bookmark bookmarkUser4 = doc.Range.Bookmarks["User4"];//确认执行
if (bookmarkUser4 != null)
{
bookmarkUser4.Text = "√";
}
}
else
{
Bookmark bookmarkIsFit4 = doc.Range.Bookmarks["IsFit4"];
if (bookmarkIsFit4 != null)
{
if (item4 != null)
{
bookmarkIsFit4.Text = "×";
}
}
}
}
var item5 = GetLicenseItemList.FirstOrDefault(x => x.SortIndex == 5);
if (item5 != null)
{
if (item5.IsUsed == true)
{
Bookmark bookmarkUser5 = doc.Range.Bookmarks["User5"];//确认执行
if (bookmarkUser5 != null)
{
bookmarkUser5.Text = "√";
}
}
else
{
Bookmark bookmarkIsFit5 = doc.Range.Bookmarks["IsFit5"];
if (bookmarkIsFit5 != null)
{
if (item5 != null)
{
bookmarkIsFit5.Text = "×";
}
}
}
}
var item6 = GetLicenseItemList.FirstOrDefault(x => x.SortIndex == 6);
if (item6 != null)
{
if (item6.IsUsed == true)
{
Bookmark bookmarkUser6 = doc.Range.Bookmarks["User6"];//确认执行
if (bookmarkUser6 != null)
{
bookmarkUser6.Text = "√";
}
}
else
{
Bookmark bookmarkIsFit6 = doc.Range.Bookmarks["IsFit6"];
if (bookmarkIsFit6 != null)
{
if (item6 != null)
{
bookmarkIsFit6.Text = "×";
}
}
}
}
var item7 = GetLicenseItemList.FirstOrDefault(x => x.SortIndex == 7);
if (item7 != null)
{
if (item7.IsUsed == true)
{
Bookmark bookmarkUser7 = doc.Range.Bookmarks["User7"];//确认执行
if (bookmarkUser7 != null)
{
bookmarkUser7.Text = "√";
}
}
else
{
Bookmark bookmarkIsFit7 = doc.Range.Bookmarks["IsFit7"];
if (bookmarkIsFit7 != null)
{
if (item7 != null)
{
bookmarkIsFit7.Text = "×";
}
}
}
}
var item8 = GetLicenseItemList.FirstOrDefault(x => x.SortIndex == 8);
if (item8 != null)
{
if (item8.IsUsed == true)
{
Bookmark bookmarkUser8 = doc.Range.Bookmarks["User8"];//确认执行
if (bookmarkUser8 != null)
{
bookmarkUser8.Text = "√";
}
}
else
{
Bookmark bookmarkIsFit8 = doc.Range.Bookmarks["IsFit8"];
if (bookmarkIsFit8 != null)
{
if (item8 != null)
{
bookmarkIsFit8.Text = "×";
}
}
}
}
var item9 = GetLicenseItemList.FirstOrDefault(x => x.SortIndex == 9);
if (item9 != null)
{
if (item9.IsUsed == true)
{
Bookmark bookmarkUser9 = doc.Range.Bookmarks["User9"];//确认执行
if (bookmarkUser9 != null)
{
bookmarkUser9.Text = "√";
}
}
else
{
Bookmark bookmarkIsFit9 = doc.Range.Bookmarks["IsFit9"];
if (bookmarkIsFit9 != null)
{
if (item9 != null)
{
bookmarkIsFit9.Text = "×";
}
}
}
}
var item10 = GetLicenseItemList.FirstOrDefault(x => x.SortIndex == 10);
if (item10 != null)
{
if (item10.IsUsed == true)
{
Bookmark bookmarkUser10 = doc.Range.Bookmarks["User10"];//确认执行
if (bookmarkUser10 != null)
{
bookmarkUser10.Text = "√";
}
}
else
{
Bookmark bookmarkIsFit10 = doc.Range.Bookmarks["IsFit10"];
if (bookmarkIsFit10 != null)
{
if (item10 != null)
{
bookmarkIsFit10.Text = "×";
}
}
}
}
var item11 = GetLicenseItemList.FirstOrDefault(x => x.SortIndex == 11);
if (item11 != null)
{
if (item11.IsUsed == true)
{
Bookmark bookmarkUser11 = doc.Range.Bookmarks["User11"];//确认执行
if (bookmarkUser11 != null)
{
bookmarkUser11.Text = "√";
}
}
else
{
Bookmark bookmarkIsFit11 = doc.Range.Bookmarks["IsFit11"];
if (bookmarkIsFit11 != null)
{
if (item11 != null)
{
bookmarkIsFit11.Text = "×";
}
}
}
}
var item12 = GetLicenseItemList.FirstOrDefault(x => x.SortIndex == 12);
if (item12 != null)
{
if (item12.IsUsed == true)
{
Bookmark bookmarkUser12 = doc.Range.Bookmarks["User12"];//确认执行
if (bookmarkUser12 != null)
{
bookmarkUser12.Text = "√";
}
}
else
{
Bookmark bookmarkIsFit12 = doc.Range.Bookmarks["IsFit12"];
if (bookmarkIsFit12 != null)
{
if (item12 != null)
{
bookmarkIsFit12.Text = "×";
}
}
}
}
bookmarLicense_LicenseItem(doc, GetLicenseItemList, 1, "LicenseItemList1");
bookmarLicense_LicenseItem(doc, GetLicenseItemList, 2, "LicenseItemList2");
bookmarLicense_LicenseItem(doc, GetLicenseItemList, 3, "LicenseItemList3");
bookmarLicense_LicenseItem(doc, GetLicenseItemList, 4, "LicenseItemList4");
bookmarLicense_LicenseItem(doc, GetLicenseItemList, 5, "LicenseItemList5");
bookmarLicense_LicenseItem(doc, GetLicenseItemList, 6, "LicenseItemList6");
bookmarLicense_LicenseItem(doc, GetLicenseItemList, 7, "LicenseItemList7");
bookmarLicense_LicenseItem(doc, GetLicenseItemList, 8, "LicenseItemList8");
bookmarLicense_LicenseItem(doc, GetLicenseItemList, 9, "LicenseItemList9");
bookmarLicense_LicenseItem(doc, GetLicenseItemList, 10, "LicenseItemList10");
bookmarLicense_LicenseItem(doc, GetLicenseItemList, 11, "LicenseItemList11");
bookmarLicense_LicenseItem(doc, GetLicenseItemList, 12, "LicenseItemList12");
bookmarLicense_LicenseItem(doc, GetLicenseItemList, 13, "LicenseItemList13");
bookmarLicense_LicenseItem(doc, GetLicenseItemList, 14, "LicenseItemList14");
bookmarLicense_LicenseItem(doc, GetLicenseItemList, 15, "LicenseItemList15");
bookmarLicense_LicenseItem(doc, GetLicenseItemList, 16, "LicenseItemList16");
bookmarLicense_LicenseItem(doc, GetLicenseItemList, 17, "LicenseItemList17");
bookmarLicense_LicenseItem(doc, GetLicenseItemList, 18, "LicenseItemList18");
bookmarLicense_LicenseItem(doc, GetLicenseItemList, 19, "LicenseItemList19");
bookmarLicense_LicenseItem(doc, GetLicenseItemList, 20, "LicenseItemList20");
bookmarLicense_LicenseItem(doc, GetLicenseItemList, 21, "LicenseItemList21");
bookmarLicense_LicenseItem(doc, GetLicenseItemList, 22, "LicenseItemList22");
bookmarLicense_LicenseItem(doc, GetLicenseItemList, 23, "LicenseItemList23");
bookmarLicense_LicenseItem(doc, GetLicenseItemList, 24, "LicenseItemList24");
}
//审核记录
var getFlows = LicensePublicService.GetFlowOperateListByDataId(Id);
@@ -1121,6 +928,31 @@ namespace FineUIPro.Web.HSSE.License
File.Delete(newUrl);
File.Delete(pdfUrl);
}
private void bookmarLicense_LicenseItem(Document doc, List<Model.License_LicenseItem> list, int index, string LicenseItem)
{
var item1 = list.FirstOrDefault(x => x.SortIndex == index);
if (item1 != null)
{
Bookmark bookmarkUser1 = doc.Range.Bookmarks[LicenseItem];//确认执行
if (item1.IsUsed == true)
{
if (bookmarkUser1 != null)
{
bookmarkUser1.Text = "■" + item1.SafetyMeasures;
}
}
else
{
if (bookmarkUser1 != null)
{
bookmarkUser1.Text = "□" + item1.SafetyMeasures;
}
}
}
}
#endregion
}
}
@@ -33,38 +33,52 @@
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtApplyUnit" runat="server" Label="申请单位" Readonly="true" LabelWidth="120px">
<f:TextBox ID="txtApplyUnit" runat="server" Label="申请单位" Readonly="true" LabelWidth="140px">
</f:TextBox>
<f:TextBox ID="txtApplyManName" runat="server" Label="申请人" Readonly="true" LabelWidth="120px">
<f:TextBox ID="txtApplyManName" runat="server" Label="申请人" Readonly="true" LabelWidth="140px">
</f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtWorkPalce" runat="server" Label="施工地点" Readonly="true" LabelWidth="120px">
</f:TextBox>
<f:TextBox ID="txtWatchMan" runat="server" Label="现场监护人" Readonly="true" LabelWidth="120px">
<f:TextBox ID="txtWorkLeader" runat="server" Label="作业负责人" Readonly="true" LabelWidth="140px">
</f:TextBox>
<f:TextBox ID="txtWatchMan" runat="server" Label="监护人" Readonly="true" LabelWidth="140px">
</f:TextBox>
</Items>
</f:FormRow>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtWorkMan" runat="server" Label="挖掘机司机" Readonly="true" LabelWidth="120px">
</f:TextBox>
<f:TextBox ID="txtIdNum" runat="server" Label="证件号码" Readonly="true" LabelWidth="120px">
<f:TextBox ID="txtHasSpecialProgramme" runat="server" Label="是否附专项安全方案" Readonly="true" LabelWidth="140px">
</f:TextBox>
<f:TextBox ID="txtOtherAttach" runat="server" Label="其他附件(危害识别等)" Readonly="true" LabelWidth="140px">
</f:TextBox>
</Items>
</f:FormRow>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtHasDrawing" runat="server" Label="是否附图纸" Readonly="true" LabelWidth="140px">
</f:TextBox>
<f:TextBox ID="txtDrawingDes" runat="server" Label="图纸说明" Readonly="true" LabelWidth="140px">
</f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtWorkPalce" runat="server" Label="施工地点" Readonly="true" LabelWidth="140px">
</f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtWorkDate" runat="server" Label="有效期限" Readonly="true" LabelWidth="120px">
<f:TextBox ID="txtWorkDate" runat="server" Label="有效期限" Readonly="true" LabelWidth="140px">
</f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtWorkMeasures" runat="server" Label="作业内容、机具及安全措施" Readonly="true" LabelWidth="120px">
<f:TextBox ID="txtWorkMeasures" runat="server" Label="作业内容、机具及安全措施" Readonly="true" LabelWidth="140px">
</f:TextBox>
</Items>
</f:FormRow>
@@ -94,7 +108,7 @@
<f:FormRow>
<Items>
<f:Form ID="txtForm1" ShowBorder="true" ShowHeader="true" AutoScroll="true" TitleAlign="Left"
BodyPadding="5px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right" Title="施工分包商安全经理审批意见">
BodyPadding="5px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right" Title="施工单位安全审核">
<Rows>
<f:FormRow>
<Items>
@@ -117,7 +131,7 @@
</Rows>
</f:Form>
<f:Form ID="txtForm2" ShowBorder="true" ShowHeader="true" AutoScroll="true" TitleAlign="Left"
BodyPadding="5px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right" Title="总包商土建工程师审批意见">
BodyPadding="5px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right" Title="施工单位施工经理审批">
<Rows>
<f:FormRow>
<Items>
@@ -144,7 +158,7 @@
<f:FormRow>
<Items>
<f:Form ID="txtForm3" ShowBorder="true" ShowHeader="true" AutoScroll="true" TitleAlign="Left"
BodyPadding="5px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right" Title="总承包商管道工程师审批意见">
BodyPadding="5px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right" Title="总包安全审批">
<Rows>
<f:FormRow>
<Items>
@@ -167,7 +181,7 @@
</Rows>
</f:Form>
<f:Form ID="txtForm4" ShowBorder="true" ShowHeader="true" AutoScroll="true" TitleAlign="Left" HideMode="Visibility"
BodyPadding="5px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right" Title="总承包商电气工程师审批意见">
BodyPadding="5px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right" Title="总包施工经理签发">
<Rows>
<f:FormRow>
<Items>
@@ -177,7 +191,7 @@
</f:FormRow>
<f:FormRow >
<Items>
<f:HyperLink ID="HyperLink4" Text="附件" Target="_blank" NavigateUrl="#" OnClientClick="showAttr(3);return false;"
<f:HyperLink ID="HyperLink4" Text="附件" Target="_blank" NavigateUrl="#" OnClientClick="showAttr(4);return false;"
runat="server"></f:HyperLink>
<f:Label ID="txtName4" runat="server" Label="签字" LabelWidth="60px">
</f:Label>
@@ -191,54 +205,7 @@
</f:Form>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:Form ID="txtForm5" ShowBorder="true" ShowHeader="true" AutoScroll="true" TitleAlign="Left"
BodyPadding="5px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right" Title="总包商施工HSE工程师审批意见:">
<Rows>
<f:FormRow>
<Items>
<f:TextArea ID="txtOpinion5" runat="server" Readonly="true" Height="50px">
</f:TextArea>
</Items>
</f:FormRow>
<f:FormRow ColumnWidths="15% 30% 20% 35%">
<Items>
<f:HyperLink ID="HyperLink5" Text="附件" Target="_blank" NavigateUrl="#" OnClientClick="showAttr(3);return false;"
runat="server"></f:HyperLink>
<f:Label ID="txtName5" runat="server" Label="签字" LabelWidth="60px">
</f:Label>
<f:Image ID="Image5" ImageUrl="~/res/images/Signature0.png" runat="server" ImageHeight="20px" ImageWidth="80px" >
</f:Image>
<f:Label ID="txtTime5" runat="server" Text="年月日时分">
</f:Label>
</Items>
</f:FormRow>
</Rows>
</f:Form>
<f:Form ID="txtForm6" ShowBorder="true" ShowHeader="true" AutoScroll="true" TitleAlign="Left" Hidden="true" HideMode="Visibility"
BodyPadding="5px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right" Title="总包单位安全人员意见:">
<Rows>
<f:FormRow>
<Items>
<f:TextArea ID="txtOpinion6" runat="server" Readonly="true" Height="50px">
</f:TextArea>
</Items>
</f:FormRow>
<f:FormRow >
<Items>
<f:Label ID="Label3" runat="server" >
</f:Label>
<f:Label ID="txtName6" runat="server" Label="签字" LabelWidth="60px">
</f:Label>
<f:Label ID="txtTime6" runat="server" Text="年月日时分">
</f:Label>
</Items>
</f:FormRow>
</Rows>
</f:Form>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtCance" runat="server" Label="取消" Readonly="true" LabelWidth="90px">
@@ -282,6 +249,7 @@
case 1: F.ui.WindowAtt.show("./AttachFile/webuploader.aspx?type=1&toKeyId=<%=FlowOperateId1%>"); return;
case 2: F.ui.WindowAtt.show("./AttachFile/webuploader.aspx?type=1&toKeyId=<%=FlowOperateId2%>"); return;
case 3: F.ui.WindowAtt.show("./AttachFile/webuploader.aspx?type=1&toKeyId=<%=FlowOperateId3%>"); return;
case 4: F.ui.WindowAtt.show("./AttachFile/webuploader.aspx?type=1&toKeyId=<%=FlowOperateId4%>"); return;
}
}
@@ -49,8 +49,26 @@
this.txtApplyManName.Text = UserService.GetUserNameByUserId(getBreakGround.ApplyManId);
this.txtWorkPalce.Text = getBreakGround.WorkPalce;
this.txtWatchMan.Text = getBreakGround.WatchMan;
this.txtWorkMan.Text = getBreakGround.WorkMan;
this.txtIdNum.Text = getBreakGround.IdNum;
if (!string.IsNullOrEmpty(getBreakGround.WorkLeaderId))
{
this.txtWorkLeader.Text = UserService.GetUserNameByUserId(getBreakGround.WorkLeaderId);
}
if (!string.IsNullOrEmpty(getBreakGround.HasSpecialProgramme))
{
this.txtHasSpecialProgramme.Text = getBreakGround.HasSpecialProgramme;
}
if (!string.IsNullOrEmpty(getBreakGround.OtherAttach))
{
txtOtherAttach.Text = getBreakGround.OtherAttach;
}
if (!string.IsNullOrEmpty(getBreakGround.HasDrawing))
{
txtHasDrawing.Text = getBreakGround.HasDrawing;
}
if (!string.IsNullOrEmpty(getBreakGround.DrawingDes))
{
txtDrawingDes.Text = getBreakGround.DrawingDes;
}
if (getBreakGround.ValidityStartTime.HasValue)
{
this.txtWorkDate.Text = getBreakGround.ValidityStartTime.Value.ToString("f") + " 至 ";
@@ -92,8 +110,7 @@
public string FlowOperateId2;
public string FlowOperateId3;
public string FlowOperateId4;
public string FlowOperateId5;
/// <summary>
/// <summary>
///
/// </summary>
private void SetFlow()
@@ -213,53 +230,7 @@
this.txtTime4.Text = string.Format("{0:yyyy-MM-dd HH:mm}", getF4.OperaterTime);
}
}
var getF5 = getFlows.FirstOrDefault(x => x.SortIndex == 5);
if (getF5 != null)
{
FlowOperateId5 = getF5.FlowOperateId;
this.txtForm5.Title = getF5.AuditFlowName + "";
if (getF5.OperaterTime.HasValue)
{
if (getF5.IsAgree == true)
{
this.txtOpinion5.Text = "同意。";
}
else
{
this.txtOpinion5.Text = getF5.Opinion;
}
if (!string.IsNullOrEmpty(getF5.SignatureUrl))
{
this.Image5.ImageUrl = "~/" + getF5.SignatureUrl;
}
var signUser5= UserService.GetUserByUserId(getF5.OperaterId);
if (signUser5 != null)
{
this.txtName5.Text = signUser5.UserName;
}
this.txtTime5.Text = string.Format("{0:yyyy-MM-dd HH:mm}", getF5.OperaterTime);
}
}
var getF6 = getFlows.FirstOrDefault(x => x.SortIndex == 6);
if (getF6 != null)
{
this.txtForm6.Title = getF6.AuditFlowName + "";
if (getF6.OperaterTime.HasValue)
{
if (getF6.IsAgree == true)
{
// this.txtOpinion4.Text = "同意。";
}
else
{
this.txtOpinion6.Text = getF6.Opinion;
}
this.txtName6.Text = UserService.GetUserNameByUserId(getF4.OperaterId);
this.txtTime6.Text = string.Format("{0:yyyy-MM-dd HH:mm}", getF4.OperaterTime);
}
}
}
}
#endregion
+33 -105
View File
@@ -78,13 +78,13 @@ namespace FineUIPro.Web.HSSE.License
protected global::FineUIPro.TextBox txtApplyManName;
/// <summary>
/// txtWorkPalce 控件。
/// txtWorkLeader 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtWorkPalce;
protected global::FineUIPro.TextBox txtWorkLeader;
/// <summary>
/// txtWatchMan 控件。
@@ -96,22 +96,49 @@ namespace FineUIPro.Web.HSSE.License
protected global::FineUIPro.TextBox txtWatchMan;
/// <summary>
/// txtWorkMan 控件。
/// txtHasSpecialProgramme 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtWorkMan;
protected global::FineUIPro.TextBox txtHasSpecialProgramme;
/// <summary>
/// txtIdNum 控件。
/// txtOtherAttach 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtIdNum;
protected global::FineUIPro.TextBox txtOtherAttach;
/// <summary>
/// txtHasDrawing 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtHasDrawing;
/// <summary>
/// txtDrawingDes 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtDrawingDes;
/// <summary>
/// txtWorkPalce 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtWorkPalce;
/// <summary>
/// txtWorkDate 控件。
@@ -356,105 +383,6 @@ namespace FineUIPro.Web.HSSE.License
/// </remarks>
protected global::FineUIPro.Label txtTime4;
/// <summary>
/// txtForm5 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Form txtForm5;
/// <summary>
/// txtOpinion5 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextArea txtOpinion5;
/// <summary>
/// HyperLink5 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.HyperLink HyperLink5;
/// <summary>
/// txtName5 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Label txtName5;
/// <summary>
/// Image5 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Image Image5;
/// <summary>
/// txtTime5 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Label txtTime5;
/// <summary>
/// txtForm6 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Form txtForm6;
/// <summary>
/// txtOpinion6 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextArea txtOpinion6;
/// <summary>
/// Label3 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Label Label3;
/// <summary>
/// txtName6 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Label txtName6;
/// <summary>
/// txtTime6 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Label txtTime6;
/// <summary>
/// txtCance 控件。
/// </summary>
+243 -334
View File
@@ -7,6 +7,7 @@ using System.Data.SqlClient;
using System.IO;
using System.Linq;
using System.Text;
using System.Web.Services.Description;
namespace FineUIPro.Web.HSSE.License
{
@@ -299,7 +300,16 @@ namespace FineUIPro.Web.HSSE.License
File.Copy(uploadfilepath, newUrl);
///更新书签
var getFireWork = LicensePublicService.GetFireWorkById(Id);
var projectName = ProjectService.GetProjectNameByProjectId(getFireWork.ProjectId);
Document doc = new Aspose.Words.Document(newUrl);
Bookmark bookmarkProjectName = doc.Range.Bookmarks["ProjectName"];//编号
if (bookmarkProjectName != null)
{
if (!string.IsNullOrEmpty(projectName))
{
bookmarkProjectName.Text = projectName;
}
}
Bookmark bookmarkLicenseCode = doc.Range.Bookmarks["LicenseCode"];//编号
if (bookmarkLicenseCode != null)
{
@@ -308,32 +318,39 @@ namespace FineUIPro.Web.HSSE.License
bookmarkLicenseCode.Text = getFireWork.LicenseCode;
}
}
Bookmark bookmarkApplyManName = doc.Range.Bookmarks["ApplyManName"];//申请
Bookmark bookmarkApplyManName1 = doc.Range.Bookmarks["ApplyManName1"];//申请人
Bookmark bookmarkApplyManPhone = doc.Range.Bookmarks["ApplyManPhone"];//申请人
if (bookmarkApplyManName != null)
Bookmark bookmarkWorkLeader = doc.Range.Bookmarks["WorkLeader"];//现场负责
if (bookmarkWorkLeader != null)
{
if (getFireWork != null)
{
var getUser = UserService.GetUserByUserId(getFireWork.ApplyManId);
var getUser = UserService.GetUserByUserId(getFireWork.WorkLeaderId) ;
if (getUser != null)
{
bookmarkApplyManName.Text = getUser.UserName;
if (bookmarkApplyManName1 != null)
{
bookmarkApplyManName1.Text = getUser.UserName;
}
if (bookmarkApplyManPhone != null)
{
bookmarkApplyManPhone.Text = getUser.Telephone;
}
bookmarkWorkLeader.Text = getUser.UserName;
}
}
}
Bookmark bookmarkWorkLeaderTel = doc.Range.Bookmarks["WorkLeaderTel"];//现场负责人电话
if (bookmarkWorkLeaderTel != null)
{
if (getFireWork != null&&!string.IsNullOrEmpty(getFireWork.WorkLeaderTel))
{
bookmarkWorkLeaderTel.Text = getFireWork.WorkLeaderTel;
}
}
Bookmark bookmarkFireMan = doc.Range.Bookmarks["FireMan"];//动火人
if (bookmarkFireMan != null)
{
if (getFireWork != null && !string.IsNullOrEmpty(getFireWork.FireMan))
{
bookmarkFireMan.Text = getFireWork.FireMan;
}
}
Bookmark bookmarkUnitName = doc.Range.Bookmarks["UnitName"];//申请单位
if (bookmarkUnitName != null)
{
@@ -346,31 +363,23 @@ namespace FineUIPro.Web.HSSE.License
}
}
Bookmark bookmarkWorkPalce = doc.Range.Bookmarks["WorkPalce"];//作业地点
if (bookmarkWorkPalce != null)
{
if (getFireWork != null)
if (getFireWork != null && !string.IsNullOrEmpty(getFireWork.WorkPalce))
{
bookmarkWorkPalce.Text = getFireWork.WorkPalce;
}
}
Bookmark bookmarkFireWatchManName = doc.Range.Bookmarks["FireWatchManName"];//监火人员
if (bookmarkFireWatchManName != null)
Bookmark bookmarkOtherAttach = doc.Range.Bookmarks["OtherAttach"];//
if (bookmarkOtherAttach != null && !string.IsNullOrEmpty(getFireWork.OtherAttach))
{
if (getFireWork != null)
{
//var getUser = UserService.GetUserByUserId(getFireWork.FireWatchManId);
//if (getUser != null)
//{
if (!string.IsNullOrEmpty(getFireWork.FireWatchManName))
{
bookmarkFireWatchManName.Text = getFireWork.FireWatchManName;
}
//}
}
}
bookmarkOtherAttach.Text = getFireWork.OtherAttach;
}
Bookmark bookmarkValidityDate = doc.Range.Bookmarks["ValidityDate"];//有效期限
if (bookmarkValidityDate != null)
{
@@ -379,325 +388,127 @@ namespace FineUIPro.Web.HSSE.License
if (getFireWork.ValidityStartTime.HasValue)
{
bookmarkValidityDate.Text = getFireWork.ValidityStartTime.Value.Year + "年" + getFireWork.ValidityStartTime.Value.Month + "月" + getFireWork.ValidityStartTime.Value.Day + "日" + getFireWork.ValidityStartTime.Value.Hour + "时至";
bookmarkValidityDate.Text = getFireWork.ValidityStartTime.Value.Year + "年" + getFireWork.ValidityStartTime.Value.Month + "月" + getFireWork.ValidityStartTime.Value.Day + "日" + getFireWork.ValidityStartTime.Value.Hour + "时" + getFireWork.ValidityStartTime.Value.Minute + "分至";
if (getFireWork.ValidityEndTime.HasValue)
{
bookmarkValidityDate.Text += getFireWork.ValidityEndTime.Value.Year + "年" + getFireWork.ValidityEndTime.Value.Month + "月" + getFireWork.ValidityEndTime.Value.Day + "日" + getFireWork.ValidityEndTime.Value.Hour + "时";
bookmarkValidityDate.Text += getFireWork.ValidityEndTime.Value.Year + "年" + getFireWork.ValidityEndTime.Value.Month + "月" + getFireWork.ValidityEndTime.Value.Day + "日" + getFireWork.ValidityEndTime.Value.Hour + "时" + getFireWork.ValidityEndTime.Value.Minute + "分";
}
}
}
}
Bookmark bookmarkWorkMeasures = doc.Range.Bookmarks["WorkMeasures"];//作业内容
if (bookmarkWorkMeasures != null)
if (bookmarkWorkMeasures != null && !string.IsNullOrEmpty(getFireWork.WorkMeasures))
{
if (getFireWork != null)
{
bookmarkWorkMeasures.Text = getFireWork.WorkMeasures;
}
bookmarkWorkMeasures.Text = getFireWork.WorkMeasures;
}
Bookmark bookmarkAnalysisData = doc.Range.Bookmarks["AnalysisData"];//分析数据
if (bookmarkAnalysisData != null&& getFireWork.AnalysisData!=null)
Bookmark bookmarOther1 = doc.Range.Bookmarks["Other1"];//作业内容
if (bookmarOther1 != null && !string.IsNullOrEmpty(getFireWork.Other1))
{
if (getFireWork != null)
{
bookmarkAnalysisData.Text = getFireWork.AnalysisData;
}
bookmarOther1.Text = getFireWork.Other1;
}
Bookmark bookmarOther2 = doc.Range.Bookmarks["Other2"];//作业内容
if (bookmarOther2 != null && !string.IsNullOrEmpty(getFireWork.Other2))
{
bookmarOther2.Text = getFireWork.Other2;
}
Bookmark bookmarkHasSpecial1 = doc.Range.Bookmarks["HasSpecial1"];//分析数据
Bookmark bookmarkHasSpecial2 = doc.Range.Bookmarks["HasSpecial2"];//分析数据
if (!string.IsNullOrEmpty(getFireWork.HasSpecialProgramme))
{
if (getFireWork.HasSpecialProgramme == "是")
{
bookmarkHasSpecial1.Text = "■";
bookmarkHasSpecial2.Text = "□";
}
else
{
bookmarkHasSpecial1.Text = "□";
bookmarkHasSpecial2.Text = "■";
}
}
else
{
bookmarkHasSpecial2.Text = "□";
bookmarkHasSpecial1.Text = "□";
}
bookmarWorkType(doc, getFireWork, "WorkType1", "焊接");
bookmarWorkType(doc, getFireWork, "WorkType2", "气割");
bookmarWorkType(doc, getFireWork, "WorkType3", "燃烧");
bookmarWorkType(doc, getFireWork, "WorkType4", "明火");
bookmarWorkType(doc, getFireWork, "WorkType5", "研磨");
bookmarWorkType(doc, getFireWork, "WorkType6", "打磨");
bookmarWorkType(doc, getFireWork, "WorkType7", "钻孔");
bookmarWorkType(doc, getFireWork, "WorkType8", "破碎");
bookmarWorkType(doc, getFireWork, "WorkType9", "其他1");
bookmarWorkType(doc, getFireWork, "WorkType10", "使用非防爆的电气设备");
bookmarWorkType(doc, getFireWork, "WorkType11", "使用内燃发动机设备");
bookmarWorkType(doc, getFireWork, "WorkType12", "其他特种作业");
bookmarWorkType(doc, getFireWork, "WorkType13", "其他2");
bookmarWorkType(doc, getFireWork, "PossibleHazards1", "爆炸");
bookmarWorkType(doc, getFireWork, "PossibleHazards2", "火灾");
bookmarWorkType(doc, getFireWork, "PossibleHazards3", "灼伤");
bookmarWorkType(doc, getFireWork, "PossibleHazards4", "烫伤");
bookmarWorkType(doc, getFireWork, "PossibleHazards5", "机械伤害");
bookmarWorkType(doc, getFireWork, "PossibleHazards6", "中毒");
bookmarWorkType(doc, getFireWork, "PossibleHazards7", "辐射");
bookmarWorkType(doc, getFireWork, "PossibleHazards8", "触电");
bookmarWorkType(doc, getFireWork, "PossibleHazards9", "泄漏");
bookmarWorkType(doc, getFireWork, "PossibleHazards10", "窒息");
bookmarWorkType(doc, getFireWork, "PossibleHazards11", "坠落");
bookmarWorkType(doc, getFireWork, "PossibleHazards12", "落物");
bookmarWorkType(doc, getFireWork, "PossibleHazards13", "掩埋");
bookmarWorkType(doc, getFireWork, "PossibleHazards14", "噪声");
bookmarWorkType(doc, getFireWork, "PossibleHazards15", "其他");
Bookmark bookmarkNeedGasDetection1 = doc.Range.Bookmarks["NeedGasDetection1"];//是否需要气体检测
Bookmark bookmarkNeedGasDetection2 = doc.Range.Bookmarks["NeedGasDetection2"];//是否需要气体检测
if (getFireWork != null && getFireWork.NeedGasDetection == "是")
{
bookmarkNeedGasDetection1.Text = "■";
bookmarkNeedGasDetection2.Text = "□";
}
else
{
bookmarkNeedGasDetection1.Text = "□";
bookmarkNeedGasDetection2.Text = "■";
}
Bookmark bookmarkDetectionFrequency = doc.Range.Bookmarks["DetectionFrequency"];// 检测频次
if (bookmarkDetectionFrequency != null && !string.IsNullOrEmpty(getFireWork.DetectionFrequency))
{
bookmarkDetectionFrequency.Text = getFireWork.DetectionFrequency;
}
var GetLicenseItemList = LicensePublicService.GetLicenseItemListByDataId(Id);
if (GetLicenseItemList.Count > 0)
{
var item1 = GetLicenseItemList.FirstOrDefault(x => x.SortIndex == 1);
if (item1 != null)
{
if (item1.IsUsed == true)
{
Bookmark bookmarkUser1 = doc.Range.Bookmarks["User1"];//确认执行
if (bookmarkUser1 != null)
{
bookmarkUser1.Text = "√";
}
}
else
{
Bookmark bookmarkIsFit1 = doc.Range.Bookmarks["IsFit1"];
if (bookmarkIsFit1 != null)
{
if (item1 != null)
{
bookmarkIsFit1.Text = "×";
}
}
}
}
bookmarLicense_LicenseItem(doc, GetLicenseItemList, 1, "LicenseItemList1");
bookmarLicense_LicenseItem(doc, GetLicenseItemList, 2, "LicenseItemList2");
bookmarLicense_LicenseItem(doc, GetLicenseItemList, 3, "LicenseItemList3");
bookmarLicense_LicenseItem(doc, GetLicenseItemList, 4, "LicenseItemList4");
bookmarLicense_LicenseItem(doc, GetLicenseItemList, 5, "LicenseItemList5");
bookmarLicense_LicenseItem(doc, GetLicenseItemList, 6, "LicenseItemList6");
bookmarLicense_LicenseItem(doc, GetLicenseItemList, 7, "LicenseItemList7");
bookmarLicense_LicenseItem(doc, GetLicenseItemList, 8, "LicenseItemList8");
bookmarLicense_LicenseItem(doc, GetLicenseItemList, 9, "LicenseItemList9");
bookmarLicense_LicenseItem(doc, GetLicenseItemList, 10, "LicenseItemList10");
bookmarLicense_LicenseItem(doc, GetLicenseItemList, 11, "LicenseItemList11");
bookmarLicense_LicenseItem(doc, GetLicenseItemList, 12, "LicenseItemList12");
bookmarLicense_LicenseItem(doc, GetLicenseItemList, 13, "LicenseItemList13");
bookmarLicense_LicenseItem(doc, GetLicenseItemList, 14, "LicenseItemList14");
bookmarLicense_LicenseItem(doc, GetLicenseItemList, 15, "LicenseItemList15");
bookmarLicense_LicenseItem(doc, GetLicenseItemList, 16, "LicenseItemList16");
bookmarLicense_LicenseItem(doc, GetLicenseItemList, 17, "LicenseItemList17");
bookmarLicense_LicenseItem(doc, GetLicenseItemList, 18, "LicenseItemList18");
var item2 = GetLicenseItemList.FirstOrDefault(x => x.SortIndex == 2);
if (item2 != null)
{
if (item2.IsUsed == true)
{
Bookmark bookmarkUser2 = doc.Range.Bookmarks["User2"];//确认执行
if (bookmarkUser2 != null)
{
bookmarkUser2.Text = "√";
}
}
else
{
Bookmark bookmarkIsFit2 = doc.Range.Bookmarks["IsFit2"];
if (bookmarkIsFit2 != null)
{
if (item2 != null)
{
bookmarkIsFit2.Text = "×";
}
}
}
}
var item3 = GetLicenseItemList.FirstOrDefault(x => x.SortIndex == 3);
if (item3 != null)
{
if (item3.IsUsed == true)
{
Bookmark bookmarkUser3 = doc.Range.Bookmarks["User3"];//确认执行
if (bookmarkUser3 != null)
{
bookmarkUser3.Text = "√";
}
}
else
{
Bookmark bookmarkIsFit3 = doc.Range.Bookmarks["IsFit3"];
if (bookmarkIsFit3 != null)
{
if (item3 != null)
{
bookmarkIsFit3.Text = "×";
}
}
}
}
var item4 = GetLicenseItemList.FirstOrDefault(x => x.SortIndex == 4);
if (item4 != null)
{
if (item4.IsUsed == true)
{
Bookmark bookmarkUser4 = doc.Range.Bookmarks["User4"];//确认执行
if (bookmarkUser4 != null)
{
bookmarkUser4.Text = "√";
}
}
else
{
Bookmark bookmarkIsFit4 = doc.Range.Bookmarks["IsFit4"];
if (bookmarkIsFit4 != null)
{
if (item4 != null)
{
bookmarkIsFit4.Text = "×";
}
}
}
}
var item5 = GetLicenseItemList.FirstOrDefault(x => x.SortIndex == 5);
if (item5 != null)
{
if (item5.IsUsed == true)
{
Bookmark bookmarkUser5 = doc.Range.Bookmarks["User5"];//确认执行
if (bookmarkUser5 != null)
{
bookmarkUser5.Text = "√";
}
}
else
{
Bookmark bookmarkIsFit5 = doc.Range.Bookmarks["IsFit5"];
if (bookmarkIsFit5 != null)
{
if (item5 != null)
{
bookmarkIsFit5.Text = "×";
}
}
}
}
var item6 = GetLicenseItemList.FirstOrDefault(x => x.SortIndex == 6);
if (item6 != null)
{
if (item6.IsUsed == true)
{
Bookmark bookmarkUser6 = doc.Range.Bookmarks["User6"];//确认执行
if (bookmarkUser6 != null)
{
bookmarkUser6.Text = "√";
}
}
else
{
Bookmark bookmarkIsFit6 = doc.Range.Bookmarks["IsFit6"];
if (bookmarkIsFit6 != null)
{
if (item6 != null)
{
bookmarkIsFit6.Text = "×";
}
}
}
}
var item7 = GetLicenseItemList.FirstOrDefault(x => x.SortIndex == 7);
if (item7 != null)
{
if (item7.IsUsed == true)
{
Bookmark bookmarkUser7 = doc.Range.Bookmarks["User7"];//确认执行
if (bookmarkUser7 != null)
{
bookmarkUser7.Text = "√";
}
}
else
{
Bookmark bookmarkIsFit7 = doc.Range.Bookmarks["IsFit7"];
if (bookmarkIsFit7 != null)
{
if (item7 != null)
{
bookmarkIsFit7.Text = "×";
}
}
}
}
var item8 = GetLicenseItemList.FirstOrDefault(x => x.SortIndex == 8);
if (item8 != null)
{
if (item8.IsUsed == true)
{
Bookmark bookmarkUser8 = doc.Range.Bookmarks["User8"];//确认执行
if (bookmarkUser8 != null)
{
bookmarkUser8.Text = "√";
}
}
else
{
Bookmark bookmarkIsFit8 = doc.Range.Bookmarks["IsFit8"];
if (bookmarkIsFit8 != null)
{
if (item8 != null)
{
bookmarkIsFit8.Text = "×";
}
}
}
Bookmark bookmarkMeasure8 = doc.Range.Bookmarks["Measure8"];//
if (bookmarkMeasure8 != null)
{
bookmarkMeasure8.Text = item8.SafetyMeasures;
}
}
var item9 = GetLicenseItemList.FirstOrDefault(x => x.SortIndex == 9);
if (item9 != null)
{
if (item9.IsUsed == true)
{
Bookmark bookmarkUser9 = doc.Range.Bookmarks["User9"];//确认执行
if (bookmarkUser9 != null)
{
bookmarkUser9.Text = "√";
}
}
else
{
Bookmark bookmarkIsFit9 = doc.Range.Bookmarks["IsFit9"];
if (bookmarkIsFit9 != null)
{
if (item9 != null)
{
bookmarkIsFit9.Text = "×";
}
}
}
}
var item10 = GetLicenseItemList.FirstOrDefault(x => x.SortIndex == 10);
if (item10 != null)
{
if (item10.IsUsed == true)
{
Bookmark bookmarkUser10 = doc.Range.Bookmarks["User10"];//确认执行
if (bookmarkUser10 != null)
{
bookmarkUser10.Text = "√";
}
}
else
{
Bookmark bookmarkIsFit10 = doc.Range.Bookmarks["IsFit10"];
if (bookmarkIsFit10 != null)
{
if (item10 != null)
{
bookmarkIsFit10.Text = "×";
}
}
}
}
var item11 = GetLicenseItemList.FirstOrDefault(x => x.SortIndex == 11);
if (item11 != null)
{
if (item11.IsUsed == true)
{
Bookmark bookmarkUser11 = doc.Range.Bookmarks["User11"];//确认执行
if (bookmarkUser11 != null)
{
bookmarkUser11.Text = "√";
}
}
else
{
Bookmark bookmarkIsFit11 = doc.Range.Bookmarks["IsFit11"];
if (bookmarkIsFit11 != null)
{
if (item11 != null)
{
bookmarkIsFit11.Text = "×";
}
}
}
}
var item12 = GetLicenseItemList.FirstOrDefault(x => x.SortIndex == 12);
if (item12 != null)
{
if (item12.IsUsed == true)
{
Bookmark bookmarkUser12 = doc.Range.Bookmarks["User12"];//确认执行
if (bookmarkUser12 != null)
{
bookmarkUser12.Text = "√";
}
}
else
{
Bookmark bookmarkIsFit12 = doc.Range.Bookmarks["IsFit12"];
if (bookmarkIsFit12 != null)
{
if (item12 != null)
{
bookmarkIsFit12.Text = "×";
}
}
}
}
}
@@ -865,8 +676,62 @@ namespace FineUIPro.Web.HSSE.License
}
}
}
var getF4 = getFlows.FirstOrDefault(x => x.SortIndex == 4);
if (getF4!= null)
{
Bookmark bookmarkOpinion4 = doc.Range.Bookmarks["Opinion4"];
if (bookmarkOpinion4 != null)
{
Bookmark bookmarkCance = doc.Range.Bookmarks["Cancel"];//取消
if (getF4.IsAgree == true)
{
if (!string.IsNullOrEmpty(getF4.Opinion))
{
bookmarkOpinion4.Text = getF4.Opinion;
}
else
{
bookmarkOpinion4.Text = "同意。";
}
}
else
{
bookmarkOpinion4.Text = "不同意: " + getF4.Opinion;
}
}
if (!string.IsNullOrEmpty(getF4.SignatureUrl) && File.Exists(rootPath + getF4.SignatureUrl))
{
DocumentBuilder builders = new DocumentBuilder(doc);
var file = rootPath + getF4.SignatureUrl;
builders.MoveToBookmark("OperaterMan4");
builders.InsertImage(file, 80, 20);
}
else
{
var getUser = UserService.GetUserByUserId(getF4.OperaterId);
if (getUser != null)
{
Bookmark bookmarkOperaterMan4 = doc.Range.Bookmarks["OperaterMan4"];
if (bookmarkOperaterMan4 != null && getF4.OperaterTime.HasValue)
{
bookmarkOperaterMan4.Text = getUser.UserName;
}
}
}
Bookmark bookmarkOperaterTime4 = doc.Range.Bookmarks["OperaterTime4"];
if (bookmarkOperaterTime4 != null)
{
if (getF4.OperaterTime.HasValue)
{
bookmarkOperaterTime4.Text = string.Format("{0:yyyy年MM月dd日 HH:mm}", getF4.OperaterTime);
}
}
}
Bookmark bookmarkCance = doc.Range.Bookmarks["Cancel"];//取消
if (bookmarkCance != null)
{
if (getFireWork != null)
@@ -945,6 +810,50 @@ namespace FineUIPro.Web.HSSE.License
File.Delete(newUrl);
File.Delete(pdfUrl);
}
private void bookmarWorkType(Document doc, Model.License_FireWork getFireWork, string WorkType1, string WorkType)
{
Bookmark bookmarkWorkType1 = doc.Range.Bookmarks[WorkType1];//分析数据
if (!string.IsNullOrEmpty(WorkType))
{
if (!string.IsNullOrEmpty(getFireWork.WorkType) &&getFireWork.WorkType.Contains(WorkType) )
{
bookmarkWorkType1.Text = "■";
}
else
{
bookmarkWorkType1.Text = "□";
}
}
}
private void bookmarLicense_LicenseItem(Document doc, List<Model.License_LicenseItem> list, int index, string LicenseItem)
{
var item1 = list.FirstOrDefault(x => x.SortIndex == index);
if (item1 != null)
{
Bookmark bookmarkUser1 = doc.Range.Bookmarks[LicenseItem];//确认执行
if (item1.IsUsed == true)
{
if (bookmarkUser1 != null)
{
bookmarkUser1.Text = "■" + item1.SafetyMeasures;
}
}
else
{
if (bookmarkUser1 != null)
{
bookmarkUser1.Text = "□" + item1.SafetyMeasures;
}
}
}
}
#endregion
}
}
@@ -1,4 +1,4 @@
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="FireWorkView.aspx.cs"
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="FireWorkView.aspx.cs"
Inherits="FineUIPro.Web.HSSE.License.FireWorkView" %>
<!DOCTYPE html>
@@ -33,6 +33,88 @@
</f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtWorkLeader" runat="server" Label="现场负责人" Readonly="true" LabelWidth="120px">
</f:TextBox>
<f:TextBox ID="txtWorkLeaderTel" runat="server" Label="联系电话" Readonly="true" LabelWidth="120px">
</f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtHasSpecialProgramme" runat="server" Label="是否附专项安全方案" Readonly="true" LabelWidth="120px">
</f:TextBox>
<f:TextBox ID="txtOtherAttach" runat="server" Label="其他附件(危害识别等)" Readonly="true" LabelWidth="120px">
</f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:CheckBoxList ID="cbWorkType1" Label="动火作业类型" runat="server" LabelWidth="120px" ColumnNumber="9">
<f:CheckItem Text="焊接" Value="焊接" />
<f:CheckItem Text="气割" Value="气割" />
<f:CheckItem Text="燃烧" Value="燃烧" />
<f:CheckItem Text="明火" Value="明火" />
<f:CheckItem Text="研磨" Value="研磨" />
<f:CheckItem Text="打磨" Value="打磨" />
<f:CheckItem Text="钻孔" Value="钻孔" />
<f:CheckItem Text="破碎" Value="破碎" />
<f:CheckItem Text="其他" Value="其他" />
</f:CheckBoxList>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:CheckBoxList ID="cbWorkType2" Label="动火作业类型" runat="server" LabelWidth="120px" >
<f:CheckItem Text="使用非防爆的电气设备" Value="使用非防爆的电气设备" />
<f:CheckItem Text="使用内燃发动机设备" Value="使用内燃发动机设备" />
<f:CheckItem Text="其他特种作业" Value="其他特种作业" />
<f:CheckItem Text="其他" Value="其他" />
</f:CheckBoxList>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:CheckBoxList ID="cbPossibleHazards1" Label="可能的危害" runat="server" LabelWidth="120px" ColumnNumber="9">
<f:CheckItem Text="爆炸" Value="爆炸" />
<f:CheckItem Text="火灾" Value="火灾" />
<f:CheckItem Text="灼伤" Value="灼伤" />
<f:CheckItem Text="烫伤" Value="烫伤" />
<f:CheckItem Text="机械伤害" Value="机械伤害" />
<f:CheckItem Text="中毒" Value="中毒" />
<f:CheckItem Text="辐射" Value="辐射" />
<f:CheckItem Text="触电" Value="触电" />
<f:CheckItem Text="泄漏" Value="泄漏" />
</f:CheckBoxList>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:CheckBoxList ID="cbPossibleHazards2" Label="可能的危害" runat="server" LabelWidth="120px" ColumnNumber="9">
<f:CheckItem Text="窒息" Value="窒息" />
<f:CheckItem Text="坠落" Value="坠落" />
<f:CheckItem Text="落物" Value="落物" />
<f:CheckItem Text="掩埋" Value="掩埋" />
<f:CheckItem Text="噪声" Value="噪声" />
<f:CheckItem Text="其他" Value="其他" />
</f:CheckBoxList>
</Items>
</f:FormRow>
<f:FormRow ColumnWidths="50% 30% 20%">
<Items>
<f:TextBox ID="txtNeedGasDetection" runat="server" Label="需要气体检测" Readonly="true" LabelWidth="120px">
</f:TextBox>
<f:TextBox ID="txtDetectionFrequency" runat="server" Label="检测频次" Readonly="true" LabelWidth="120px">
</f:TextBox>
<f:HyperLink ID="HyperLink5" Text="附件" Target="_blank" NavigateUrl="#" Width="30px" OnClientClick="showAttr(0);return false;"
runat="server">
</f:HyperLink>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtWorkPalce" runat="server" Label="作业地点" Readonly="true" LabelWidth="120px">
@@ -43,7 +125,7 @@
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="TextBox1" runat="server" Label="动火作业人" Readonly="true" LabelWidth="120px">
<f:TextBox ID="txtFireMan" runat="server" Label="动火作业人" Readonly="true" LabelWidth="120px">
</f:TextBox>
</Items>
</f:FormRow>
@@ -178,7 +260,7 @@
</f:FormRow>
<f:FormRow ColumnWidths="15% 30% 20% 35%">
<Items>
<f:HyperLink ID="HyperLink4" Text="附件" Target="_blank" NavigateUrl="#" Width="30px" OnClientClick="showAttr(3);return false;"
<f:HyperLink ID="HyperLink4" Text="附件" Target="_blank" NavigateUrl="#" Width="30px" OnClientClick="showAttr(4);return false;"
runat="server">
</f:HyperLink>
<f:Label ID="txtName4" runat="server" Label="签字" LabelWidth="60px">
@@ -232,9 +314,11 @@
function showAttr(index) {
switch (index) {
case 0: F.ui.WindowAtt.show("../../<%=GasDetectionAttach%>"); return;
case 1: F.ui.WindowAtt.show("./AttachFile/webuploader.aspx?type=1&toKeyId=<%=FlowOperateId1%>"); return;
case 2: F.ui.WindowAtt.show("./AttachFile/webuploader.aspx?type=1&toKeyId=<%=FlowOperateId2%>"); return;
case 3: F.ui.WindowAtt.show("./AttachFile/webuploader.aspx?type=1&toKeyId=<%=FlowOperateId3%>"); return;
case 4: F.ui.WindowAtt.show("./AttachFile/webuploader.aspx?type=1&toKeyId=<%=FlowOperateId4%>"); return;
}
}
@@ -54,6 +54,53 @@
name = UserService.GetUserNameByUserId(getFireWork.FireWatchManId);
}
this.txtFireWatchManName.Text = name;
if (!string.IsNullOrEmpty(getFireWork.FireMan))
{
txtFireMan.Text = getFireWork.FireMan;
}
if (!string.IsNullOrEmpty(getFireWork.AnalysisData))
{
txtAnalysisData.Text = getFireWork.AnalysisData;
}
if (!string.IsNullOrEmpty(getFireWork.WorkLeaderId))
{
this.txtWorkLeader.Text = UserService.GetUserNameByUserId(getFireWork.WorkLeaderId);
}
if (!string.IsNullOrEmpty(getFireWork.WorkLeaderTel))
{
this.txtWorkLeaderTel.Text = getFireWork.WorkLeaderTel;
}
if (!string.IsNullOrEmpty(getFireWork.WorkType))
{
cbWorkType1.SelectedValueArray = getFireWork.WorkType.Split(',');
cbWorkType2.SelectedValueArray = getFireWork.WorkType.Split(',');
}
if (!string.IsNullOrEmpty(getFireWork.PossibleHazards))
{
cbPossibleHazards1.SelectedValueArray = getFireWork.PossibleHazards.Split(',');
cbPossibleHazards2.SelectedValueArray = getFireWork.PossibleHazards.Split(',');
}
if (!string.IsNullOrEmpty(getFireWork.NeedGasDetection))
{
txtNeedGasDetection.Text = getFireWork.NeedGasDetection;
}
if (!string.IsNullOrEmpty(getFireWork.DetectionFrequency))
{
txtDetectionFrequency.Text = getFireWork.DetectionFrequency;
}
if (!string.IsNullOrEmpty(getFireWork.HasSpecialProgramme))
{
this.txtHasSpecialProgramme.Text = getFireWork.HasSpecialProgramme;
}
if (!string.IsNullOrEmpty(getFireWork.OtherAttach))
{
txtOtherAttach.Text = getFireWork.OtherAttach;
}
if (!string.IsNullOrEmpty(getFireWork.GasDetectionAttach))
{
GasDetectionAttach = getFireWork.GasDetectionAttach;
}
if (getFireWork.ValidityStartTime.HasValue)
{
this.txtWorkDate.Text = getFireWork.ValidityStartTime.Value.ToString("f") + " 至 ";
@@ -91,9 +138,11 @@
#endregion
#region
public string GasDetectionAttach;
public string FlowOperateId1;
public string FlowOperateId2;
public string FlowOperateId3;
public string FlowOperateId4;
/// <summary>
///
/// </summary>
@@ -190,6 +239,8 @@
var getF4 = getFlows.FirstOrDefault(x => x.SortIndex == 4);
if (getF4 != null)
{
FlowOperateId4 = getF4.FlowOperateId;
this.txtForm4.Title = getF4.AuditFlowName + "";
if (getF4.OperaterTime.HasValue)
{
+101 -2
View File
@@ -68,6 +68,105 @@ namespace FineUIPro.Web.HSSE.License
/// </remarks>
protected global::FineUIPro.TextBox txtApplyManName;
/// <summary>
/// txtWorkLeader 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtWorkLeader;
/// <summary>
/// txtWorkLeaderTel 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtWorkLeaderTel;
/// <summary>
/// txtHasSpecialProgramme 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtHasSpecialProgramme;
/// <summary>
/// txtOtherAttach 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtOtherAttach;
/// <summary>
/// cbWorkType1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.CheckBoxList cbWorkType1;
/// <summary>
/// cbWorkType2 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.CheckBoxList cbWorkType2;
/// <summary>
/// cbPossibleHazards1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.CheckBoxList cbPossibleHazards1;
/// <summary>
/// cbPossibleHazards2 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.CheckBoxList cbPossibleHazards2;
/// <summary>
/// txtNeedGasDetection 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtNeedGasDetection;
/// <summary>
/// txtDetectionFrequency 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtDetectionFrequency;
/// <summary>
/// HyperLink5 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.HyperLink HyperLink5;
/// <summary>
/// txtWorkPalce 控件。
/// </summary>
@@ -87,13 +186,13 @@ namespace FineUIPro.Web.HSSE.License
protected global::FineUIPro.TextBox txtFireWatchManName;
/// <summary>
/// TextBox1 控件。
/// txtFireMan 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox TextBox1;
protected global::FineUIPro.TextBox txtFireMan;
/// <summary>
/// txtWorkDate 控件。
@@ -300,6 +300,8 @@ namespace FineUIPro.Web.HSSE.License
File.Copy(uploadfilepath, newUrl);
///更新书签
var getLiftingWork = LicensePublicService.GetLiftingWorkById(Id);
var projectName = ProjectService.GetProjectNameByProjectId(getLiftingWork.ProjectId);
Document doc = new Aspose.Words.Document(newUrl);
Bookmark bookmarkLicenseCode = doc.Range.Bookmarks["LicenseCode"];//编号
if (bookmarkLicenseCode != null)
@@ -309,6 +311,27 @@ namespace FineUIPro.Web.HSSE.License
bookmarkLicenseCode.Text = getLiftingWork.LicenseCode;
}
}
Bookmark bookmarkProjectName = doc.Range.Bookmarks["ProjectName"];//编号
if (bookmarkProjectName != null)
{
if (!string.IsNullOrEmpty(projectName))
{
bookmarkProjectName.Text = projectName;
}
}
Bookmark bookmarkWorkLeader = doc.Range.Bookmarks["WorkLeader"];//现场负责人
if (bookmarkWorkLeader != null)
{
if (getLiftingWork != null)
{
var getUser = UserService.GetUserByUserId(getLiftingWork.WorkLeaderId);
if (getUser != null)
{
bookmarkWorkLeader.Text = getUser.UserName;
}
}
}
Bookmark bookmarkApplyManName = doc.Range.Bookmarks["ApplyManName"];//申请人
Bookmark bookmarkApplyManName1 = doc.Range.Bookmarks["ApplyManName1"];//申请人
Bookmark bookmarkApplyManPhone = doc.Range.Bookmarks["ApplyManPhone"];//申请人
@@ -416,10 +439,10 @@ namespace FineUIPro.Web.HSSE.License
if (getLiftingWork.ValidityStartTime.HasValue)
{
bookmarkValidityDate.Text = getLiftingWork.ValidityStartTime.Value.Year + "年" + getLiftingWork.ValidityStartTime.Value.Month + "月" + getLiftingWork.ValidityStartTime.Value.Day + "日" + getLiftingWork.ValidityStartTime.Value.Hour + "时至";
bookmarkValidityDate.Text = getLiftingWork.ValidityStartTime.Value.Year + "年" + getLiftingWork.ValidityStartTime.Value.Month + "月" + getLiftingWork.ValidityStartTime.Value.Day + "日" + getLiftingWork.ValidityStartTime.Value.Hour + "时" + getLiftingWork.ValidityStartTime.Value.Minute + "分至";
if (getLiftingWork.ValidityEndTime.HasValue)
{
bookmarkValidityDate.Text += getLiftingWork.ValidityEndTime.Value.Year + "年" + getLiftingWork.ValidityEndTime.Value.Month + "月" + getLiftingWork.ValidityEndTime.Value.Day + "日" + getLiftingWork.ValidityEndTime.Value.Hour + "时";
bookmarkValidityDate.Text += getLiftingWork.ValidityEndTime.Value.Year + "年" + getLiftingWork.ValidityEndTime.Value.Month + "月" + getLiftingWork.ValidityEndTime.Value.Day + "日" + getLiftingWork.ValidityEndTime.Value.Hour + "时" + getLiftingWork.ValidityEndTime.Value.Minute + "分";
}
}
}
@@ -442,363 +465,92 @@ namespace FineUIPro.Web.HSSE.License
}
}
Bookmark bookmarkCapacityDes = doc.Range.Bookmarks["CapacityDes"];//规格
if (bookmarkCapacityDes != null)
{
if (getLiftingWork != null)
{
bookmarkCapacityDes.Text = getLiftingWork.CapacityDes;
}
}
Bookmark bookmarkOtherAttach = doc.Range.Bookmarks["OtherAttach"];//规格
if (bookmarkOtherAttach != null)
{
if (getLiftingWork != null)
{
bookmarkOtherAttach.Text = getLiftingWork.OtherAttach;
}
}
Bookmark bookmarkHasSpecial1 = doc.Range.Bookmarks["HasSpecial1"];//分析数据
Bookmark bookmarkHasSpecial2 = doc.Range.Bookmarks["HasSpecial2"];//分析数据
if (!string.IsNullOrEmpty(getLiftingWork.HasSpecialProgramme))
{
if (getLiftingWork.HasSpecialProgramme == "是")
{
bookmarkHasSpecial1.Text = "■";
bookmarkHasSpecial2.Text = "□";
}
else
{
bookmarkHasSpecial1.Text = "□";
bookmarkHasSpecial2.Text = "■";
}
}
else
{
bookmarkHasSpecial2.Text = "□";
bookmarkHasSpecial1.Text = "□";
}
Bookmark bookmarkWorkLevel = doc.Range.Bookmarks["WorkLevel"];//分析数据
if (!string.IsNullOrEmpty(getLiftingWork.WorkLevel))
{
if (getLiftingWork.WorkLevel == "m 100t(一级)")
{
bookmarkWorkLevel.Text = "■ m 100t(一级) □ 40t ≤ m ≤100t(二级) □ m 40t(三级)";
}
else if(getLiftingWork.WorkLevel == "40t ≤ m ≤100t(二级)")
{
bookmarkWorkLevel.Text = "□ m 100t(一级) ■ 40t ≤ m ≤100t(二级) □ m 40t(三级)";
} else if (getLiftingWork.WorkLevel == "m 40t(三级)")
{
bookmarkWorkLevel.Text = "□ m 100t(一级) □40t ≤ m ≤100t(二级) ■ m 40t(三级)";
}
else
{
bookmarkWorkLevel.Text = "□ m 100t(一级) □40t ≤ m ≤100t(二级) □ m 40t(三级)";
}
}
var GetLicenseItemList = LicensePublicService.GetLicenseItemListByDataId(Id);
if (GetLicenseItemList.Count > 0)
{
var item1 = GetLicenseItemList.FirstOrDefault(x => x.SortIndex == 1);
if (item1 != null)
{
if (item1.IsUsed == true)
{
Bookmark bookmarkUser1 = doc.Range.Bookmarks["User1"];//确认执行
if (bookmarkUser1 != null)
{
bookmarkUser1.Text = "√";
}
}
else
{
Bookmark bookmarkIsFit1 = doc.Range.Bookmarks["IsFit1"];
if (bookmarkIsFit1 != null)
{
if (item1 != null)
{
bookmarkIsFit1.Text = "×";
}
}
}
}
var item2 = GetLicenseItemList.FirstOrDefault(x => x.SortIndex == 2);
if (item2 != null)
{
if (item2.IsUsed == true)
{
Bookmark bookmarkUser2 = doc.Range.Bookmarks["User2"];//确认执行
if (bookmarkUser2 != null)
{
bookmarkUser2.Text = "√";
}
}
else
{
Bookmark bookmarkIsFit2 = doc.Range.Bookmarks["IsFit2"];
if (bookmarkIsFit2 != null)
{
if (item2 != null)
{
bookmarkIsFit2.Text = "×";
}
}
}
}
var item3 = GetLicenseItemList.FirstOrDefault(x => x.SortIndex == 3);
if (item3 != null)
{
if (item3.IsUsed == true)
{
Bookmark bookmarkUser3 = doc.Range.Bookmarks["User3"];//确认执行
if (bookmarkUser3 != null)
{
bookmarkUser3.Text = "√";
}
}
else
{
Bookmark bookmarkIsFit3 = doc.Range.Bookmarks["IsFit3"];
if (bookmarkIsFit3 != null)
{
if (item3 != null)
{
bookmarkIsFit3.Text = "×";
}
}
}
}
var item4 = GetLicenseItemList.FirstOrDefault(x => x.SortIndex == 4);
if (item4 != null)
{
if (item4.IsUsed == true)
{
Bookmark bookmarkUser4 = doc.Range.Bookmarks["User4"];//确认执行
if (bookmarkUser4 != null)
{
bookmarkUser4.Text = "√";
}
}
else
{
Bookmark bookmarkIsFit4 = doc.Range.Bookmarks["IsFit4"];
if (bookmarkIsFit4 != null)
{
if (item4 != null)
{
bookmarkIsFit4.Text = "×";
}
}
}
}
var item5 = GetLicenseItemList.FirstOrDefault(x => x.SortIndex == 5);
if (item5 != null)
{
if (item5.IsUsed == true)
{
Bookmark bookmarkUser5 = doc.Range.Bookmarks["User5"];//确认执行
if (bookmarkUser5 != null)
{
bookmarkUser5.Text = "√";
}
}
else
{
Bookmark bookmarkIsFit5 = doc.Range.Bookmarks["IsFit5"];
if (bookmarkIsFit5 != null)
{
if (item5 != null)
{
bookmarkIsFit5.Text = "×";
}
}
}
}
var item6 = GetLicenseItemList.FirstOrDefault(x => x.SortIndex == 6);
if (item6 != null)
{
if (item6.IsUsed == true)
{
Bookmark bookmarkUser6 = doc.Range.Bookmarks["User6"];//确认执行
if (bookmarkUser6 != null)
{
bookmarkUser6.Text = "√";
}
}
else
{
Bookmark bookmarkIsFit6 = doc.Range.Bookmarks["IsFit6"];
if (bookmarkIsFit6 != null)
{
if (item6 != null)
{
bookmarkIsFit6.Text = "×";
}
}
}
}
var item7 = GetLicenseItemList.FirstOrDefault(x => x.SortIndex == 7);
if (item7 != null)
{
if (item7.IsUsed == true)
{
Bookmark bookmarkUser7 = doc.Range.Bookmarks["User7"];//确认执行
if (bookmarkUser7 != null)
{
bookmarkUser7.Text = "√";
}
}
else
{
Bookmark bookmarkIsFit7 = doc.Range.Bookmarks["IsFit7"];
if (bookmarkIsFit7 != null)
{
if (item7 != null)
{
bookmarkIsFit7.Text = "×";
}
}
}
}
var item8 = GetLicenseItemList.FirstOrDefault(x => x.SortIndex == 8);
if (item8 != null)
{
if (item8.IsUsed == true)
{
Bookmark bookmarkUser8 = doc.Range.Bookmarks["User8"];//确认执行
if (bookmarkUser8 != null)
{
bookmarkUser8.Text = "√";
}
}
else
{
Bookmark bookmarkIsFit8 = doc.Range.Bookmarks["IsFit8"];
if (bookmarkIsFit8 != null)
{
if (item8 != null)
{
bookmarkIsFit8.Text = "×";
}
}
}
}
var item9 = GetLicenseItemList.FirstOrDefault(x => x.SortIndex == 9);
if (item9 != null)
{
if (item9.IsUsed == true)
{
Bookmark bookmarkUser9 = doc.Range.Bookmarks["User9"];//确认执行
if (bookmarkUser9 != null)
{
bookmarkUser9.Text = "√";
}
}
else
{
Bookmark bookmarkIsFit9 = doc.Range.Bookmarks["IsFit9"];
if (bookmarkIsFit9 != null)
{
if (item9 != null)
{
bookmarkIsFit9.Text = "×";
}
}
}
}
var item10 = GetLicenseItemList.FirstOrDefault(x => x.SortIndex == 10);
if (item10 != null)
{
if (item10.IsUsed == true)
{
Bookmark bookmarkUser10 = doc.Range.Bookmarks["User10"];//确认执行
if (bookmarkUser10 != null)
{
bookmarkUser10.Text = "√";
}
}
else
{
Bookmark bookmarkIsFit10 = doc.Range.Bookmarks["IsFit10"];
if (bookmarkIsFit10 != null)
{
if (item10 != null)
{
bookmarkIsFit10.Text = "×";
}
}
}
}
var item11 = GetLicenseItemList.FirstOrDefault(x => x.SortIndex == 11);
if (item11 != null)
{
if (item11.IsUsed == true)
{
Bookmark bookmarkUser11 = doc.Range.Bookmarks["User11"];//确认执行
if (bookmarkUser11 != null)
{
bookmarkUser11.Text = "√";
}
}
else
{
Bookmark bookmarkIsFit11 = doc.Range.Bookmarks["IsFit11"];
if (bookmarkIsFit11 != null)
{
if (item11 != null)
{
bookmarkIsFit11.Text = "×";
}
}
}
}
var item12 = GetLicenseItemList.FirstOrDefault(x => x.SortIndex == 12);
if (item12 != null)
{
if (item12.IsUsed == true)
{
Bookmark bookmarkUser12 = doc.Range.Bookmarks["User12"];//确认执行
if (bookmarkUser12 != null)
{
bookmarkUser12.Text = "√";
}
}
else
{
Bookmark bookmarkIsFit12 = doc.Range.Bookmarks["IsFit12"];
if (bookmarkIsFit12 != null)
{
if (item12 != null)
{
bookmarkIsFit12.Text = "×";
}
}
}
}
var item13 = GetLicenseItemList.FirstOrDefault(x => x.SortIndex == 13);
if (item13 != null)
{
if (item13.IsUsed == true)
{
Bookmark bookmarkUser13 = doc.Range.Bookmarks["User13"];//确认执行
if (bookmarkUser13 != null)
{
bookmarkUser13.Text = "√";
}
}
else
{
Bookmark bookmarkIsFit13 = doc.Range.Bookmarks["IsFit13"];
if (bookmarkIsFit13 != null)
{
if (item13 != null)
{
bookmarkIsFit13.Text = "×";
}
}
}
}
var item14 = GetLicenseItemList.FirstOrDefault(x => x.SortIndex == 14);
if (item14 != null)
{
if (item14.IsUsed == true)
{
Bookmark bookmarkUser14 = doc.Range.Bookmarks["User14"];//确认执行
if (bookmarkUser14 != null)
{
bookmarkUser14.Text = "√";
}
}
else
{
Bookmark bookmarkIsFit14 = doc.Range.Bookmarks["IsFit14"];
if (bookmarkIsFit14 != null)
{
if (item14 != null)
{
bookmarkIsFit14.Text = "×";
}
}
}
}
var item15 = GetLicenseItemList.FirstOrDefault(x => x.SortIndex == 15);
if (item15 != null)
{
if (item15.IsUsed == true)
{
Bookmark bookmarkUser15 = doc.Range.Bookmarks["User15"];//确认执行
if (bookmarkUser15 != null)
{
bookmarkUser15.Text = "√";
}
}
else
{
Bookmark bookmarkIsFit15 = doc.Range.Bookmarks["IsFit15"];
if (bookmarkIsFit15 != null)
{
if (item15 != null)
{
bookmarkIsFit15.Text = "×";
}
}
}
}
bookmarLicense_LicenseItem(doc, GetLicenseItemList, 1, "LicenseItemList1");
bookmarLicense_LicenseItem(doc, GetLicenseItemList, 2, "LicenseItemList2");
bookmarLicense_LicenseItem(doc, GetLicenseItemList, 3, "LicenseItemList3");
bookmarLicense_LicenseItem(doc, GetLicenseItemList, 4, "LicenseItemList4");
bookmarLicense_LicenseItem(doc, GetLicenseItemList, 5, "LicenseItemList5");
bookmarLicense_LicenseItem(doc, GetLicenseItemList, 6, "LicenseItemList6");
bookmarLicense_LicenseItem(doc, GetLicenseItemList, 7, "LicenseItemList7");
bookmarLicense_LicenseItem(doc, GetLicenseItemList, 8, "LicenseItemList8");
bookmarLicense_LicenseItem(doc, GetLicenseItemList, 9, "LicenseItemList9");
bookmarLicense_LicenseItem(doc, GetLicenseItemList, 10, "LicenseItemList10");
bookmarLicense_LicenseItem(doc, GetLicenseItemList, 11, "LicenseItemList11");
bookmarLicense_LicenseItem(doc, GetLicenseItemList, 12, "LicenseItemList12");
bookmarLicense_LicenseItem(doc, GetLicenseItemList, 13, "LicenseItemList13");
bookmarLicense_LicenseItem(doc, GetLicenseItemList, 14, "LicenseItemList14");
bookmarLicense_LicenseItem(doc, GetLicenseItemList, 15, "LicenseItemList15");
bookmarLicense_LicenseItem(doc, GetLicenseItemList, 16, "LicenseItemList16");
bookmarLicense_LicenseItem(doc, GetLicenseItemList, 17, "LicenseItemList17");
bookmarLicense_LicenseItem(doc, GetLicenseItemList, 18, "LicenseItemList18");
bookmarLicense_LicenseItem(doc, GetLicenseItemList, 19, "LicenseItemList19");
bookmarLicense_LicenseItem(doc, GetLicenseItemList, 20, "LicenseItemList20");
bookmarLicense_LicenseItem(doc, GetLicenseItemList, 21, "LicenseItemList21");
bookmarLicense_LicenseItem(doc, GetLicenseItemList, 22, "LicenseItemList22");
}
//审核记录
var getFlows = LicensePublicService.GetFlowOperateListByDataId(Id);
@@ -960,59 +712,59 @@ namespace FineUIPro.Web.HSSE.License
}
}
}
//var getF4 = getFlows.FirstOrDefault(x => x.SortIndex == 4);
//if (getF4 != null)
//{
// var getUser = UserService.GetUserByUserId(getF4.OperaterId);
// Bookmark bookmarkOpinion4 = doc.Range.Bookmarks["Opinion4"];
// if (bookmarkOpinion4 != null)
// {
var getF4 = getFlows.FirstOrDefault(x => x.SortIndex == 4);
if (getF4 != null)
{
var getUser = UserService.GetUserByUserId(getF4.OperaterId);
Bookmark bookmarkOpinion4 = doc.Range.Bookmarks["Opinion4"];
if (bookmarkOpinion4 != null)
{
// if (getUser != null)
// {
// if (getF4.IsAgree == true)
// {
// bookmarkOpinion4.Text = getF4.Opinion;
// }
// else
// {
// bookmarkOpinion4.Text = "不同意: " + getF4.Opinion;
// }
// }
if (getUser != null)
{
if (getF4.IsAgree == true)
{
bookmarkOpinion4.Text = getF4.Opinion;
}
else
{
bookmarkOpinion4.Text = "不同意: " + getF4.Opinion;
}
}
// }
// Bookmark bookmarkOperaterMan4 = doc.Range.Bookmarks["OperaterMan4"];
// if (bookmarkOperaterMan4 != null)
// {
// if (getF4.OperaterTime.HasValue)
// {
// if (getUser != null)
// {
// DocumentBuilder builders = new DocumentBuilder(doc);
// if (!string.IsNullOrEmpty(getUser.SignatureUrl) && File.Exists(rootPath + getUser.SignatureUrl))
// {
// var file = rootPath + getUser.SignatureUrl;
// builders.MoveToBookmark("OperaterMan4");
// builders.InsertImage(file, 80, 20);
// }
// else
// {
// bookmarkOperaterMan4.Text = getUser.UserName;
// }
// }
// }
// }
// Bookmark bookmarkOperaterTime4 = doc.Range.Bookmarks["OperaterTime4"];
// if (bookmarkOperaterTime4 != null)
// {
// if (getF4.OperaterTime.HasValue)
// {
// bookmarkOperaterTime4.Text = string.Format("{0:yyyy-MM-dd HH:mm}", getF4.OperaterTime);
// }
// }
//}
}
Bookmark bookmarkOperaterMan4 = doc.Range.Bookmarks["OperaterMan4"];
if (bookmarkOperaterMan4 != null)
{
if (getF4.OperaterTime.HasValue)
{
if (getUser != null)
{
DocumentBuilder builders = new DocumentBuilder(doc);
if (!string.IsNullOrEmpty(getUser.SignatureUrl) && File.Exists(rootPath + getUser.SignatureUrl))
{
var file = rootPath + getUser.SignatureUrl;
builders.MoveToBookmark("OperaterMan4");
builders.InsertImage(file, 80, 20);
}
else
{
bookmarkOperaterMan4.Text = getUser.UserName;
}
}
}
}
Bookmark bookmarkOperaterTime4 = doc.Range.Bookmarks["OperaterTime4"];
if (bookmarkOperaterTime4 != null)
{
if (getF4.OperaterTime.HasValue)
{
bookmarkOperaterTime4.Text = string.Format("{0:yyyyMMdd HH:mm}", getF4.OperaterTime);
}
}
}
//var getF5 = getFlows.FirstOrDefault(x => x.SortIndex == 5);
//if (getF5 != null)
//{
@@ -1200,6 +952,30 @@ namespace FineUIPro.Web.HSSE.License
File.Delete(newUrl);
File.Delete(pdfUrl);
}
private void bookmarLicense_LicenseItem(Document doc, List<Model.License_LicenseItem> list, int index, string LicenseItem)
{
var item1 = list.FirstOrDefault(x => x.SortIndex == index);
if (item1 != null)
{
Bookmark bookmarkUser1 = doc.Range.Bookmarks[LicenseItem];//确认执行
if (item1.IsUsed == true)
{
if (bookmarkUser1 != null)
{
bookmarkUser1.Text = "■" + item1.SafetyMeasures;
}
}
else
{
if (bookmarkUser1 != null)
{
bookmarkUser1.Text = "□" + item1.SafetyMeasures;
}
}
}
}
#endregion
}
}
@@ -21,62 +21,71 @@
<Rows>
<f:FormRow>
<Items>
<f:Label ID="lbLicenseCode" runat="server" Label="编号" LabelWidth="120px">
<f:Label ID="lbLicenseCode" runat="server" Label="编号" LabelWidth="140px">
</f:Label>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtApplyUnit" runat="server" Label="申请单位" Readonly="true" LabelWidth="120px">
<f:TextBox ID="txtApplyUnit" runat="server" Label="申请单位" Readonly="true" LabelWidth="140px">
</f:TextBox>
<f:TextBox ID="txtApplyManName" runat="server" Label="申请人" Readonly="true" LabelWidth="120px">
<f:TextBox ID="txtApplyManName" runat="server" Label="申请人" Readonly="true" LabelWidth="140px">
</f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtWorkPalce" runat="server" Label="作业地点" Readonly="true" LabelWidth="120px">
<Items>
<f:TextBox ID="txtWorkLeader" runat="server" Label="现场作业负责人" Readonly="true" LabelWidth="140px">
</f:TextBox>
<f:TextBox ID="txtSafeMan" runat="server" Label="现场安全员" Readonly="true" LabelWidth="120px">
<f:TextBox ID="txtWorkLevel" runat="server" Label="吊装等级" Readonly="true" LabelWidth="140px">
</f:TextBox>
</Items>
</Items>
</f:FormRow>
<f:FormRow ColumnWidths="50% 25% 25%">
<f:FormRow >
<Items>
<f:TextBox ID="txtControlMan" runat="server" Label="指挥人员" Readonly="true" LabelWidth="120px">
<f:TextBox ID="txtControlMan" runat="server" Label="起重指挥(证件号码)" Readonly="true" LabelWidth="140px">
</f:TextBox>
<f:TextBox ID="txtDriverMan" runat="server" Label="起重司机" Readonly="true" LabelWidth="120px">
</f:TextBox>
<f:TextBox ID="txtCarNum" runat="server" Label="吊车车牌号" Readonly="true" LabelWidth="120px">
<f:TextBox ID="txtDriverMan" runat="server" Label="起重司机(证件号)" Readonly="true" LabelWidth="140px">
</f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtWorkDate" runat="server" Label="有效期限" Readonly="true" LabelWidth="140px">
</f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtOtherMan" runat="server" Label="其他作业人员" Readonly="true" LabelWidth="120px">
</f:TextBox>
<f:TextBox ID="txtWatchMan" runat="server" Label="监护人" Readonly="true" LabelWidth="120px">
<f:FormRow>
<Items>
<f:TextBox ID="txtWorkPalce" runat="server" Label="作业地点" Readonly="true" LabelWidth="140px">
</f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtWorkDate" runat="server" Label="有效期限" Readonly="true" LabelWidth="120px">
<f:TextBox ID="txtWorkMeasures" runat="server" Label="作业内容" Readonly="true" LabelWidth="140px">
</f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtWorkMeasures" runat="server" Label="作业内容" Readonly="true" LabelWidth="120px">
<f:TextBox ID="txtCapacityDes" runat="server" Label="负荷描述" Readonly="true" LabelWidth="140px">
</f:TextBox>
<f:TextBox ID="txtCraneCapacity" runat="server" Label="吊车类型/载荷" Readonly="true" LabelWidth="140px">
</f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtCraneCapacity" runat="server" Label="起重机能力及索具规格" Readonly="true" LabelWidth="120px">
<f:TextBox ID="txtHasSpecialProgramme" runat="server" Label="是否附专项安全方案" Readonly="true" LabelWidth="120px">
</f:TextBox>
<f:TextBox ID="txtOtherAttach" runat="server" Label="其他附件(危害识别等)" Readonly="true" LabelWidth="120px">
</f:TextBox>
</Items>
</f:FormRow>
</f:FormRow>
<f:FormRow>
<Items>
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" Title="检查措施" EnableCollapse="true"
@@ -103,7 +112,7 @@
<f:FormRow>
<Items>
<f:Form ID="txtForm1" ShowBorder="true" ShowHeader="true" AutoScroll="true" TitleAlign="Left"
BodyPadding="5px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right" Title="施工单位安全人员意见">
BodyPadding="5px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right" Title="施工单位安全审核">
<Rows>
<f:FormRow>
<Items>
@@ -126,7 +135,7 @@
</Rows>
</f:Form>
<f:Form ID="txtForm2" ShowBorder="true" ShowHeader="true" AutoScroll="true" TitleAlign="Left"
BodyPadding="5px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right" Title="总包单位专业工程师意见">
BodyPadding="5px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right" Title="施工单位施工经理审批">
<Rows>
<f:FormRow>
<Items>
@@ -153,7 +162,7 @@
<f:FormRow>
<Items>
<f:Form ID="txtForm3" ShowBorder="true" ShowHeader="true" AutoScroll="true" TitleAlign="Left"
BodyPadding="5px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right" Title="总包单位安全人员意见">
BodyPadding="5px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right" Title="总包安全审批">
<Rows>
<f:FormRow>
<Items>
@@ -175,8 +184,8 @@
</f:FormRow>
</Rows>
</f:Form>
<f:Form ID="txtForm4" ShowBorder="true" ShowHeader="true" AutoScroll="true" TitleAlign="Left" Hidden="true" HideMode="Visibility"
BodyPadding="5px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right" Title="总包单位安全人员意见">
<f:Form ID="txtForm4" ShowBorder="true" ShowHeader="true" AutoScroll="true" TitleAlign="Left"
BodyPadding="5px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right" Title="总包施工经理签发">
<Rows>
<f:FormRow>
<Items>
@@ -184,16 +193,18 @@
</f:TextArea>
</Items>
</f:FormRow>
<f:FormRow >
<Items>
<f:Label ID="Label5" runat="server" >
</f:Label>
<f:Label ID="txtName4" runat="server" Label="签字" LabelWidth="60px">
</f:Label>
<f:Label ID="txtTime4" runat="server" Text="年月日时分">
</f:Label>
</Items>
</f:FormRow>
<f:FormRow ColumnWidths="15% 30% 20% 35%">
<Items>
<f:HyperLink ID="HyperLink4" Text="附件" Target="_blank" NavigateUrl="#" OnClientClick="showAttr(3);return false;"
runat="server"></f:HyperLink>
<f:Label ID="txtName4" runat="server" Label="签字" LabelWidth="60px">
</f:Label>
<f:Image ID="Image4" ImageUrl="~/res/images/Signature0.png" runat="server" ImageHeight="20px" ImageWidth="80px" >
</f:Image>
<f:Label ID="txtTime4" runat="server" Text="年月日时分">
</f:Label>
</Items>
</f:FormRow>
</Rows>
</f:Form>
</Items>
@@ -48,12 +48,8 @@
this.txtApplyUnit.Text = UnitService.GetUnitNameByUnitId(getLiftingWork.ApplyUnitId);
this.txtApplyManName.Text = UserService.GetUserNameByUserId(getLiftingWork.ApplyManId);
this.txtWorkPalce.Text = getLiftingWork.WorkPalce;
this.txtSafeMan.Text = getLiftingWork.SafeMan;
this.txtControlMan.Text = getLiftingWork.ControlMan;
this.txtDriverMan.Text = getLiftingWork.DriverMan;
this.txtCarNum.Text = getLiftingWork.CarNum;
this.txtOtherMan.Text = getLiftingWork.OtherMan;
this.txtWatchMan.Text = getLiftingWork.WatchMan;
if (getLiftingWork.ValidityStartTime.HasValue)
{
this.txtWorkDate.Text = getLiftingWork.ValidityStartTime.Value.ToString("f") + " 至 ";
@@ -62,8 +58,22 @@
this.txtWorkDate.Text += getLiftingWork.ValidityEndTime.Value.ToString("f");
}
}
if (!string.IsNullOrEmpty(getLiftingWork.WorkLeaderId))
{
this.txtWorkLeader.Text = UserService.GetUserNameByUserId(getLiftingWork.WorkLeaderId);
}
if (!string.IsNullOrEmpty(getLiftingWork.HasSpecialProgramme))
{
this.txtHasSpecialProgramme.Text = getLiftingWork.HasSpecialProgramme;
}
if (!string.IsNullOrEmpty(getLiftingWork.OtherAttach))
{
txtOtherAttach.Text = getLiftingWork.OtherAttach;
}
this.txtWorkMeasures.Text = getLiftingWork.WorkMeasures;
this.txtCraneCapacity.Text = getLiftingWork.CraneCapacity;
this.txtWorkLevel.Text = getLiftingWork.WorkLevel;
this.txtCapacityDes.Text = getLiftingWork.CapacityDes;
if (!string.IsNullOrEmpty(getLiftingWork.CancelManId))
{
this.txtCance.Text = UserService.GetUserNameByUserId(getLiftingWork.CancelManId) + ";取消时间:"
@@ -69,22 +69,22 @@ namespace FineUIPro.Web.HSSE.License
protected global::FineUIPro.TextBox txtApplyManName;
/// <summary>
/// txtWorkPalce 控件。
/// txtWorkLeader 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtWorkPalce;
protected global::FineUIPro.TextBox txtWorkLeader;
/// <summary>
/// txtSafeMan 控件。
/// txtWorkLevel 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtSafeMan;
protected global::FineUIPro.TextBox txtWorkLevel;
/// <summary>
/// txtControlMan 控件。
@@ -104,33 +104,6 @@ namespace FineUIPro.Web.HSSE.License
/// </remarks>
protected global::FineUIPro.TextBox txtDriverMan;
/// <summary>
/// txtCarNum 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtCarNum;
/// <summary>
/// txtOtherMan 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtOtherMan;
/// <summary>
/// txtWatchMan 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtWatchMan;
/// <summary>
/// txtWorkDate 控件。
/// </summary>
@@ -140,6 +113,15 @@ namespace FineUIPro.Web.HSSE.License
/// </remarks>
protected global::FineUIPro.TextBox txtWorkDate;
/// <summary>
/// txtWorkPalce 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtWorkPalce;
/// <summary>
/// txtWorkMeasures 控件。
/// </summary>
@@ -149,6 +131,15 @@ namespace FineUIPro.Web.HSSE.License
/// </remarks>
protected global::FineUIPro.TextBox txtWorkMeasures;
/// <summary>
/// txtCapacityDes 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtCapacityDes;
/// <summary>
/// txtCraneCapacity 控件。
/// </summary>
@@ -158,6 +149,24 @@ namespace FineUIPro.Web.HSSE.License
/// </remarks>
protected global::FineUIPro.TextBox txtCraneCapacity;
/// <summary>
/// txtHasSpecialProgramme 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtHasSpecialProgramme;
/// <summary>
/// txtOtherAttach 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtOtherAttach;
/// <summary>
/// Grid1 控件。
/// </summary>
@@ -348,13 +357,13 @@ namespace FineUIPro.Web.HSSE.License
protected global::FineUIPro.TextArea txtOpinion4;
/// <summary>
/// Label5 控件。
/// HyperLink4 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Label Label5;
protected global::FineUIPro.HyperLink HyperLink4;
/// <summary>
/// txtName4 控件。
@@ -365,6 +374,15 @@ namespace FineUIPro.Web.HSSE.License
/// </remarks>
protected global::FineUIPro.Label txtName4;
/// <summary>
/// Image4 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Image Image4;
/// <summary>
/// txtTime4 控件。
/// </summary>
@@ -299,7 +299,16 @@ namespace FineUIPro.Web.HSSE.License
File.Copy(uploadfilepath, newUrl);
///更新书签
var getTempElectricity = LicensePublicService.GetTempElectricityById(Id);
var projectName = ProjectService.GetProjectNameByProjectId(getTempElectricity.ProjectId);
Document doc = new Aspose.Words.Document(newUrl);
Bookmark bookmarkProjectName = doc.Range.Bookmarks["ProjectName"];//编号
if (bookmarkProjectName != null)
{
if (!string.IsNullOrEmpty(projectName))
{
bookmarkProjectName.Text = projectName;
}
}
Bookmark bookmarkLicenseCode = doc.Range.Bookmarks["LicenseCode"];//编号
if (bookmarkLicenseCode != null)
{
@@ -308,29 +317,20 @@ namespace FineUIPro.Web.HSSE.License
bookmarkLicenseCode.Text = getTempElectricity.LicenseCode;
}
}
Bookmark bookmarkApplyManName = doc.Range.Bookmarks["ApplyManName"];//申请
Bookmark bookmarkApplyManName1= doc.Range.Bookmarks["ApplyManName1"];//申请人
Bookmark bookmarkApplyManPhone = doc.Range.Bookmarks["ApplyManPhone"];//申请人
if (bookmarkApplyManName != null)
Bookmark bookmarkWorkLeader = doc.Range.Bookmarks["WorkLeader"];//现场负责
if (bookmarkWorkLeader != null)
{
if (getTempElectricity != null)
{
var getUser = UserService.GetUserByUserId(getTempElectricity.ApplyManId);
var getUser = UserService.GetUserByUserId(getTempElectricity.WorkLeaderId);
if (getUser != null)
{
bookmarkApplyManName.Text = getUser.UserName;
if (bookmarkApplyManName1 != null)
{
bookmarkApplyManName1.Text = getUser.UserName;
}
if (bookmarkApplyManPhone != null)
{
bookmarkApplyManPhone.Text = getUser.Telephone;
}
bookmarkWorkLeader.Text = getUser.UserName;
}
}
}
Bookmark bookmarkUnitName = doc.Range.Bookmarks["UnitName"];//申请单位
if (bookmarkUnitName != null)
{
@@ -343,28 +343,71 @@ namespace FineUIPro.Web.HSSE.License
}
}
Bookmark bookmarkWorkPalce = doc.Range.Bookmarks["WorkPalce"];//作业地点
Bookmark bookmarkUseTo = doc.Range.Bookmarks["UseTo"];//用电用途
if (bookmarkUseTo != null)
{
if (getTempElectricity != null && !string.IsNullOrEmpty(getTempElectricity.UseTo))
{
bookmarkUseTo.Text = getTempElectricity.UseTo;
}
}
Bookmark bookmarkWorkPalce = doc.Range.Bookmarks["WorkPalce"];//用电地点
if (bookmarkWorkPalce != null)
{
if (getTempElectricity != null)
if (getTempElectricity != null &&!string.IsNullOrEmpty(getTempElectricity.WorkPalce))
{
bookmarkWorkPalce.Text = getTempElectricity.WorkPalce;
}
}
Bookmark bookmarkElectrician = doc.Range.Bookmarks["Electrician"];//监火人员
Bookmark bookmarkAccessPoint = doc.Range.Bookmarks["AccessPoint"];//接入点名称
if (bookmarkAccessPoint != null)
{
if (getTempElectricity != null && !string.IsNullOrEmpty(getTempElectricity.AccessPoint))
{
bookmarkAccessPoint.Text = getTempElectricity.AccessPoint;
}
}
Bookmark bookmarkAccessPointNo = doc.Range.Bookmarks["AccessPointNo"];//接入点编号
if (bookmarkAccessPointNo != null)
{
if (getTempElectricity != null && !string.IsNullOrEmpty(getTempElectricity.AccessPointNo))
{
bookmarkAccessPointNo.Text = getTempElectricity.AccessPointNo;
}
}
Bookmark bookmarkAccessPointAddress = doc.Range.Bookmarks["AccessPointAddress"];//接入点位置
if (bookmarkAccessPointAddress != null)
{
if (getTempElectricity != null && !string.IsNullOrEmpty(getTempElectricity.AccessPointAddress))
{
bookmarkAccessPointAddress.Text = getTempElectricity.AccessPointAddress;
}
}
Bookmark bookmarkWorkingVoltage = doc.Range.Bookmarks["WorkingVoltage"];//接入点位置
if (bookmarkWorkingVoltage != null)
{
if (getTempElectricity != null && !string.IsNullOrEmpty(getTempElectricity.WorkingVoltage))
{
bookmarkWorkingVoltage.Text = getTempElectricity.WorkingVoltage;
}
}
Bookmark bookmarkElectrician = doc.Range.Bookmarks["Electrician"];// 电气专业人员 姓名及手机号
if (bookmarkElectrician != null)
{
if (getTempElectricity != null)
{
var getUser = UserService.GetUserByUserId(getTempElectricity.Electrician);
if (getUser != null)
{
bookmarkElectrician.Text = getUser.UserName;
}
bookmarkElectrician.Text = getTempElectricity.Electrician + "\n" + getTempElectricity.ElectricianPhone;
}
}
Bookmark bookmarkWatchManName = doc.Range.Bookmarks["WatchManName"];//监火人员
if (bookmarkWatchManName != null)
{
@@ -391,15 +434,22 @@ namespace FineUIPro.Web.HSSE.License
if (getTempElectricity.ValidityStartTime.HasValue)
{
bookmarkValidityDate.Text = getTempElectricity.ValidityStartTime.Value.Year + "年" + getTempElectricity.ValidityStartTime.Value.Month + "月" + getTempElectricity.ValidityStartTime.Value.Day + "日" + getTempElectricity.ValidityStartTime.Value.Hour + "时至";
bookmarkValidityDate.Text = getTempElectricity.ValidityStartTime.Value.Year + "年" + getTempElectricity.ValidityStartTime.Value.Month + "月" + getTempElectricity.ValidityStartTime.Value.Day + "日" + getTempElectricity.ValidityStartTime.Value.Hour + "时"+ getTempElectricity.ValidityStartTime.Value.Minute + "分至";
if (getTempElectricity.ValidityEndTime.HasValue)
{
bookmarkValidityDate.Text += getTempElectricity.ValidityEndTime.Value.Year + "年" + getTempElectricity.ValidityEndTime.Value.Month + "月" + getTempElectricity.ValidityEndTime.Value.Day + "日" + getTempElectricity.ValidityEndTime.Value.Hour + "时";
bookmarkValidityDate.Text += getTempElectricity.ValidityEndTime.Value.Year + "年" + getTempElectricity.ValidityEndTime.Value.Month + "月" + getTempElectricity.ValidityEndTime.Value.Day + "日" + getTempElectricity.ValidityEndTime.Value.Hour + "时" + getTempElectricity.ValidityEndTime.Value.Minute + "分";
}
}
}
}
Bookmark bookmarkTools = doc.Range.Bookmarks["Tools"];//监火人员
Bookmark bookmarkOtherAttach = doc.Range.Bookmarks["OtherAttach"];//
if (bookmarkOtherAttach != null && !string.IsNullOrEmpty(getTempElectricity.OtherAttach))
{
bookmarkOtherAttach.Text = getTempElectricity.OtherAttach;
}
Bookmark bookmarkTools = doc.Range.Bookmarks["Tools"];//
if (bookmarkTools != null)
{
if (getTempElectricity != null&&!string.IsNullOrEmpty(getTempElectricity.Tools))
@@ -411,253 +461,90 @@ namespace FineUIPro.Web.HSSE.License
Bookmark bookmarkWorkMeasures = doc.Range.Bookmarks["WorkMeasures"];//作业内容
if (bookmarkWorkMeasures != null)
{
if (getTempElectricity != null)
if (getTempElectricity != null && !string.IsNullOrEmpty(getTempElectricity.WorkMeasures))
{
bookmarkWorkMeasures.Text = getTempElectricity.WorkMeasures;
}
}
Bookmark bookmarkEquipmentLoadDes = doc.Range.Bookmarks["EquipmentLoadDes"];//作业内容
if (bookmarkEquipmentLoadDes != null)
{
if (getTempElectricity != null&&!string.IsNullOrEmpty(getTempElectricity.EquipmentLoadDes))
{
bookmarkEquipmentLoadDes.Text = getTempElectricity.EquipmentLoadDes;
}
}
Bookmark bookmarkHasSpecial1 = doc.Range.Bookmarks["HasSpecial1"];//
Bookmark bookmarkHasSpecial2 = doc.Range.Bookmarks["HasSpecial2"];//
if (!string.IsNullOrEmpty(getTempElectricity.HasSpecialProgramme))
{
if (getTempElectricity.HasSpecialProgramme == "是")
{
bookmarkHasSpecial1.Text = "■";
bookmarkHasSpecial2.Text = "□";
}
else
{
bookmarkHasSpecial1.Text = "□";
bookmarkHasSpecial2.Text = "■";
}
}
else
{
bookmarkHasSpecial2.Text = "□";
bookmarkHasSpecial1.Text = "□";
}
Bookmark bookmarkEquipmentLoadList1 = doc.Range.Bookmarks["EquipmentLoadList1"];//
Bookmark bookmarkEquipmentLoadList2 = doc.Range.Bookmarks["EquipmentLoadList2"];//
if (!string.IsNullOrEmpty(getTempElectricity.EquipmentLoadList))
{
if (getTempElectricity.EquipmentLoadList == "是")
{
bookmarkEquipmentLoadList1.Text = "■";
bookmarkEquipmentLoadList2.Text = "□";
}
else
{
bookmarkEquipmentLoadList1.Text = "□";
bookmarkEquipmentLoadList2.Text = "■";
}
}
else
{
bookmarkEquipmentLoadList1.Text = "□";
bookmarkEquipmentLoadList2.Text = "□";
}
var GetLicenseItemList = LicensePublicService.GetLicenseItemListByDataId(Id);
if (GetLicenseItemList.Count > 0)
{
var item1 = GetLicenseItemList.FirstOrDefault(x => x.SortIndex == 1);
if (item1 != null)
{
if (item1.IsUsed == true)
{
Bookmark bookmarkUser1 = doc.Range.Bookmarks["User1"];//确认执行
if (bookmarkUser1 != null)
{
bookmarkUser1.Text = "√";
}
}
else
{
Bookmark bookmarkIsFit1 = doc.Range.Bookmarks["IsFit1"];
if (bookmarkIsFit1 != null)
{
if (item1 != null)
{
bookmarkIsFit1.Text = "×";
}
}
}
}
var item2 = GetLicenseItemList.FirstOrDefault(x => x.SortIndex == 2);
if (item2 != null)
{
if (item2.IsUsed == true)
{
Bookmark bookmarkUser2 = doc.Range.Bookmarks["User2"];//确认执行
if (bookmarkUser2 != null)
{
bookmarkUser2.Text = "√";
}
}
else
{
Bookmark bookmarkIsFit2 = doc.Range.Bookmarks["IsFit2"];
if (bookmarkIsFit2 != null)
{
if (item2 != null)
{
bookmarkIsFit2.Text = "×";
}
}
}
}
var item3 = GetLicenseItemList.FirstOrDefault(x => x.SortIndex == 3);
if (item3 != null)
{
if (item3.IsUsed == true)
{
Bookmark bookmarkUser3 = doc.Range.Bookmarks["User3"];//确认执行
if (bookmarkUser3 != null)
{
bookmarkUser3.Text = "√";
}
}
else
{
Bookmark bookmarkIsFit3 = doc.Range.Bookmarks["IsFit3"];
if (bookmarkIsFit3 != null)
{
if (item3 != null)
{
bookmarkIsFit3.Text = "×";
}
}
}
}
var item4 = GetLicenseItemList.FirstOrDefault(x => x.SortIndex == 4);
if (item4 != null)
{
if (item4.IsUsed == true)
{
Bookmark bookmarkUser4 = doc.Range.Bookmarks["User4"];//确认执行
if (bookmarkUser4 != null)
{
bookmarkUser4.Text = "√";
}
}
else
{
Bookmark bookmarkIsFit4 = doc.Range.Bookmarks["IsFit4"];
if (bookmarkIsFit4 != null)
{
if (item4 != null)
{
bookmarkIsFit4.Text = "×";
}
}
}
}
var item5 = GetLicenseItemList.FirstOrDefault(x => x.SortIndex == 5);
if (item5 != null)
{
if (item5.IsUsed == true)
{
Bookmark bookmarkUser5 = doc.Range.Bookmarks["User5"];//确认执行
if (bookmarkUser5 != null)
{
bookmarkUser5.Text = "√";
}
}
else
{
Bookmark bookmarkIsFit5 = doc.Range.Bookmarks["IsFit5"];
if (bookmarkIsFit5 != null)
{
if (item5 != null)
{
bookmarkIsFit5.Text = "×";
}
}
}
}
var item6 = GetLicenseItemList.FirstOrDefault(x => x.SortIndex == 6);
if (item6 != null)
{
if (item6.IsUsed == true)
{
Bookmark bookmarkUser6 = doc.Range.Bookmarks["User6"];//确认执行
if (bookmarkUser6 != null)
{
bookmarkUser6.Text = "√";
}
}
else
{
Bookmark bookmarkIsFit6 = doc.Range.Bookmarks["IsFit6"];
if (bookmarkIsFit6 != null)
{
if (item6 != null)
{
bookmarkIsFit6.Text = "×";
}
}
}
}
var item7 = GetLicenseItemList.FirstOrDefault(x => x.SortIndex == 7);
if (item7 != null)
{
if (item7.IsUsed == true)
{
Bookmark bookmarkUser7 = doc.Range.Bookmarks["User7"];//确认执行
if (bookmarkUser7 != null)
{
bookmarkUser7.Text = "√";
}
}
else
{
Bookmark bookmarkIsFit7 = doc.Range.Bookmarks["IsFit7"];
if (bookmarkIsFit7 != null)
{
if (item7 != null)
{
bookmarkIsFit7.Text = "×";
}
}
}
}
var item8 = GetLicenseItemList.FirstOrDefault(x => x.SortIndex == 8);
if (item8 != null)
{
if (item8.IsUsed == true)
{
Bookmark bookmarkUser8 = doc.Range.Bookmarks["User8"];//确认执行
if (bookmarkUser8 != null)
{
bookmarkUser8.Text = "√";
}
}
else
{
Bookmark bookmarkIsFit8 = doc.Range.Bookmarks["IsFit8"];
if (bookmarkIsFit8 != null)
{
if (item8 != null)
{
bookmarkIsFit8.Text = "×";
}
}
}
}
var item9 = GetLicenseItemList.FirstOrDefault(x => x.SortIndex == 9);
if (item9 != null)
{
if (item9.IsUsed == true)
{
Bookmark bookmarkUser9 = doc.Range.Bookmarks["User9"];//确认执行
if (bookmarkUser9 != null)
{
bookmarkUser9.Text = "√";
}
}
else
{
Bookmark bookmarkIsFit9 = doc.Range.Bookmarks["IsFit9"];
if (bookmarkIsFit9 != null)
{
if (item9 != null)
{
bookmarkIsFit9.Text = "×";
}
}
}
}
var item10 = GetLicenseItemList.FirstOrDefault(x => x.SortIndex == 10);
if (item10 != null)
{
if (item10.IsUsed == true)
{
Bookmark bookmarkUser10 = doc.Range.Bookmarks["User10"];//确认执行
if (bookmarkUser10 != null)
{
bookmarkUser10.Text = "√";
}
}
else
{
Bookmark bookmarkIsFit10 = doc.Range.Bookmarks["IsFit10"];
if (bookmarkIsFit10 != null)
{
if (item10 != null)
{
bookmarkIsFit10.Text = "×";
}
}
}
}
bookmarLicense_LicenseItem(doc, GetLicenseItemList, 1, "LicenseItemList1");
bookmarLicense_LicenseItem(doc, GetLicenseItemList, 2, "LicenseItemList2");
bookmarLicense_LicenseItem(doc, GetLicenseItemList, 3, "LicenseItemList3");
bookmarLicense_LicenseItem(doc, GetLicenseItemList, 4, "LicenseItemList4");
bookmarLicense_LicenseItem(doc, GetLicenseItemList, 5, "LicenseItemList5");
bookmarLicense_LicenseItem(doc, GetLicenseItemList, 6, "LicenseItemList6");
bookmarLicense_LicenseItem(doc, GetLicenseItemList, 7, "LicenseItemList7");
bookmarLicense_LicenseItem(doc, GetLicenseItemList, 8, "LicenseItemList8");
bookmarLicense_LicenseItem(doc, GetLicenseItemList, 9, "LicenseItemList9");
bookmarLicense_LicenseItem(doc, GetLicenseItemList, 10, "LicenseItemList10");
bookmarLicense_LicenseItem(doc, GetLicenseItemList, 11, "LicenseItemList11");
bookmarLicense_LicenseItem(doc, GetLicenseItemList, 12, "LicenseItemList12");
bookmarLicense_LicenseItem(doc, GetLicenseItemList, 13, "LicenseItemList13");
bookmarLicense_LicenseItem(doc, GetLicenseItemList, 14, "LicenseItemList14");
bookmarLicense_LicenseItem(doc, GetLicenseItemList, 15, "LicenseItemList15");
bookmarLicense_LicenseItem(doc, GetLicenseItemList, 16, "LicenseItemList16");
bookmarLicense_LicenseItem(doc, GetLicenseItemList, 17, "LicenseItemList17");
bookmarLicense_LicenseItem(doc, GetLicenseItemList, 18, "LicenseItemList18");
bookmarLicense_LicenseItem(doc, GetLicenseItemList, 19, "LicenseItemList19");
bookmarLicense_LicenseItem(doc, GetLicenseItemList, 20, "LicenseItemList20");
bookmarLicense_LicenseItem(doc, GetLicenseItemList, 21, "LicenseItemList21");
bookmarLicense_LicenseItem(doc, GetLicenseItemList, 22, "LicenseItemList22");
bookmarLicense_LicenseItem(doc, GetLicenseItemList, 23, "LicenseItemList23");
bookmarLicense_LicenseItem(doc, GetLicenseItemList, 24, "LicenseItemList24");
bookmarLicense_LicenseItem(doc, GetLicenseItemList, 25, "LicenseItemList25");
}
//审核记录
@@ -904,6 +791,30 @@ namespace FineUIPro.Web.HSSE.License
File.Delete(newUrl);
File.Delete(pdfUrl);
}
private void bookmarLicense_LicenseItem(Document doc, List<Model.License_LicenseItem> list, int index, string LicenseItem)
{
var item1 = list.FirstOrDefault(x => x.SortIndex == index);
if (item1 != null)
{
Bookmark bookmarkUser1 = doc.Range.Bookmarks[LicenseItem];//确认执行
if (item1.IsUsed == true)
{
if (bookmarkUser1 != null)
{
bookmarkUser1.Text = "■" + item1.SafetyMeasures;
}
}
else
{
if (bookmarkUser1 != null)
{
bookmarkUser1.Text = "□" + item1.SafetyMeasures;
}
}
}
}
#endregion
}
}
@@ -35,19 +35,60 @@
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtWorkPalce" runat="server" Label="作业地点" Readonly="true" LabelWidth="120px">
<f:TextBox ID="txtWorkLeader" runat="server" Label="负责人" Readonly="true" LabelWidth="120px">
</f:TextBox>
<f:TextBox ID="txtElectrician" runat="server" Label="电工名称" Readonly="true" LabelWidth="120px">
<f:TextBox ID="txtFireWatchManName" runat="server" Label="监护人" Readonly="true" LabelWidth="120px">
</f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtUseTo" runat="server" Label="用电用途" Readonly="true" LabelWidth="120px">
</f:TextBox>
<f:TextBox ID="txtWorkPalce" runat="server" Label="用电地点" Readonly="true" LabelWidth="120px">
</f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtAccessPoint" runat="server" Label="接入点名称" Readonly="true" LabelWidth="120px">
</f:TextBox>
<f:TextBox ID="txtAccessPointNo" runat="server" Label="接入点编号" Readonly="true" LabelWidth="120px">
</f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtFireWatchManName" runat="server" Label="监护人" Readonly="true" LabelWidth="120px">
<f:TextBox ID="txtAccessPointAddress" runat="server" Label="接入点位置" Readonly="true" LabelWidth="120px">
</f:TextBox>
<f:TextBox ID="txtWorkingVoltage" runat="server" Label="工作电压" Readonly="true" LabelWidth="120px">
</f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtElectrician" runat="server" Label="电气专业人员姓名及手机号" Readonly="true" LabelWidth="120px">
</f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtHasSpecialProgramme" runat="server" Label="是否附专项安全方案" Readonly="true" LabelWidth="120px">
</f:TextBox>
<f:TextBox ID="txtOtherAttach" runat="server" Label="其他附件(危害识别等)" Readonly="true" LabelWidth="120px">
</f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtEquipmentLoadList" runat="server" Label="负荷清单" Readonly="true" LabelWidth="120px">
</f:TextBox>
<f:TextBox ID="txtEquipmentLoadDes" runat="server" Label="清单说明" Readonly="true" LabelWidth="120px">
</f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtWorkDate" runat="server" Label="有效期限" Readonly="true" LabelWidth="120px">
@@ -92,32 +133,9 @@
<f:FormRow>
<Items>
<f:Form ID="txtForm0" ShowBorder="true" ShowHeader="true" AutoScroll="true" TitleAlign="Left" HideMode="Visibility"
BodyPadding="5px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right" Title="作业负责人:">
<Rows>
<f:FormRow>
<Items>
<f:TextArea ID="txtOpinion0" runat="server" Readonly="true" Height="50px">
</f:TextArea>
</Items>
</f:FormRow>
<f:FormRow ColumnWidths="15% 30% 20% 35%">
<Items>
<f:HyperLink ID="HyperLink0" Hidden="true" Text="附件" Target="_blank" NavigateUrl="#" Width="30px" OnClientClick="showAttr(0);return false;"
runat="server">
</f:HyperLink>
<f:Label ID="txtName0" runat="server" Label="签字" LabelWidth="60px">
</f:Label>
<f:Image ID="Image0" ImageUrl="~/res/images/Signature0.png" runat="server" ImageHeight="20px" ImageWidth="80px" >
</f:Image>
<f:Label ID="txtTime0" runat="server" Text="年月日时分">
</f:Label>
</Items>
</f:FormRow>
</Rows>
</f:Form>
<f:Form ID="txtForm1" ShowBorder="true" ShowHeader="true" AutoScroll="true" TitleAlign="Left"
BodyPadding="5px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right" Title="施工单位安全人员意见">
BodyPadding="5px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right" Title="施工单位安全审核">
<Rows>
<f:FormRow >
<Items>
@@ -140,13 +158,8 @@
</f:FormRow>
</Rows>
</f:Form>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:Form ID="txtForm2" ShowBorder="true" ShowHeader="true" AutoScroll="true" TitleAlign="Left"
BodyPadding="5px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right" Title="总包单位专业工程师意见:">
<f:Form ID="txtForm2" ShowBorder="true" ShowHeader="true" AutoScroll="true" TitleAlign="Left"
BodyPadding="5px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right" Title="施工单位施工经理审批:">
<Rows>
<f:FormRow>
<Items>
@@ -169,8 +182,13 @@
</f:FormRow>
</Rows>
</f:Form>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:Form ID="txtForm3" ShowBorder="true" ShowHeader="true" AutoScroll="true" TitleAlign="Left"
BodyPadding="5px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right" Title="总包单位安全人员意见">
BodyPadding="5px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right" Title="总包安全审批">
<Rows>
<f:FormRow>
<Items>
@@ -195,13 +213,10 @@
</Rows>
</f:Form>
</Items>
</f:FormRow>
<f:FormRow Hidden="true">
<Items>
<f:Form ID="txtForm4" ShowBorder="true" ShowHeader="true" AutoScroll="true" TitleAlign="Left" HideMode="Visibility"
BodyPadding="5px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right" Title="完成">
BodyPadding="5px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right" Title="总包施工经理签发">
<Rows>
<f:FormRow>
<Items>
@@ -211,7 +226,7 @@
</f:FormRow>
<f:FormRow ColumnWidths="15% 30% 20% 35%">
<Items>
<f:HyperLink ID="HyperLink4" Hidden="true" Text="附件" Target="_blank" NavigateUrl="#" Width="30px" OnClientClick="showAttr(4);return false;"
<f:HyperLink ID="HyperLink4" Text="附件" Target="_blank" NavigateUrl="#" Width="30px" OnClientClick="showAttr(4);return false;"
runat="server">
</f:HyperLink>
<f:Label ID="txtName4" runat="server" Label="签字" LabelWidth="60px">
@@ -224,30 +239,7 @@
</f:FormRow>
</Rows>
</f:Form>
<f:Form ID="Form5" Hidden="true" ShowBorder="true" ShowHeader="true" AutoScroll="true" TitleAlign="Left"
BodyPadding="5px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right" Title="施工单位安全人员意见:">
<Rows>
<f:FormRow >
<Items>
<f:TextArea ID="TextArea2" runat="server" Readonly="true" Height="50px">
</f:TextArea>
</Items>
</f:FormRow>
<f:FormRow ColumnWidths="15% 30% 20% 35%">
<Items>
<f:HyperLink ID="HyperLink5" Text="附件" Target="_blank" NavigateUrl="#" Width="30px" OnClientClick="showAttr(1);return false;"
runat="server">
</f:HyperLink>
<f:Label ID="txtName5" runat="server" Label="签字" LabelWidth="60px">
</f:Label>
<f:Image ID="Image5" ImageUrl="~/res/images/Signature0.png" runat="server" ImageHeight="20px" ImageWidth="80px" >
</f:Image>
<f:Label ID="txtTime5" runat="server" Text="年月日时分">
</f:Label>
</Items>
</f:FormRow>
</Rows>
</f:Form>
</Items>
</f:FormRow>
@@ -292,6 +284,7 @@
case 1: F.ui.WindowAtt.show("./AttachFile/webuploader.aspx?type=1&toKeyId=<%=FlowOperateId1%>"); return;
case 2: F.ui.WindowAtt.show("./AttachFile/webuploader.aspx?type=1&toKeyId=<%=FlowOperateId2%>"); return;
case 3: F.ui.WindowAtt.show("./AttachFile/webuploader.aspx?type=1&toKeyId=<%=FlowOperateId3%>"); return;
case 4: F.ui.WindowAtt.show("./AttachFile/webuploader.aspx?type=1&toKeyId=<%=FlowOperateId4%>"); return;
}
}
@@ -50,11 +50,23 @@
this.txtWorkPalce.Text = getFireWork.WorkPalce;
this.txtTools.Text = getFireWork.Tools;
this.txtElectrician.Text = getFireWork.Electrician;
string name = getFireWork.WatchManName;
string name = getFireWork.WatchManName;
if (!string.IsNullOrEmpty(getFireWork.HasSpecialProgramme))
{
this.txtHasSpecialProgramme.Text = getFireWork.HasSpecialProgramme;
}
if (!string.IsNullOrEmpty(getFireWork.OtherAttach))
{
txtOtherAttach.Text = getFireWork.OtherAttach;
}
if (string.IsNullOrEmpty(getFireWork.WatchManName))
{
name = UserService.GetUserNameByUserId(getFireWork.WatchManId);
}
if (!string.IsNullOrEmpty(getFireWork.WorkLeaderId))
{
this.txtWorkLeader.Text = UserService.GetUserNameByUserId(getFireWork.WorkLeaderId);
}
this.txtFireWatchManName.Text = name;
if (getFireWork.ValidityStartTime.HasValue)
{
@@ -65,13 +77,7 @@
}
}
this.txtWorkMeasures.Text = getFireWork.WorkMeasures;
if (!string.IsNullOrEmpty(getFireWork.SignatureUrl))
{
this.txtTime0.Text = string.Format("{0:yyyy-MM-dd HH:mm}", getFireWork.ApplyDate);
this.txtOpinion0.Text = "同意。";
this.txtName0.Text = this.txtApplyManName.Text;
this.Image0.ImageUrl = "~/" + getFireWork.SignatureUrl;
}
if (!string.IsNullOrEmpty(getFireWork.CancelManId))
{
@@ -104,6 +110,7 @@
public string FlowOperateId1;
public string FlowOperateId2;
public string FlowOperateId3;
public string FlowOperateId4;
/// <summary>
///
/// </summary>
@@ -134,7 +141,7 @@
var signUser1 = UserService.GetUserByUserId(getF1.OperaterId);
if (signUser1 != null)
{
this.txtName1.Text = signUser1.UserName;
this.txtName1.Text = signUser1.UserName;
}
this.txtTime1.Text = string.Format("{0:yyyy-MM-dd HH:mm}", getF1.OperaterTime);
}
@@ -163,7 +170,7 @@
if (signUser2 != null)
{
this.txtName2.Text = signUser2.UserName;
}
this.txtTime2.Text = string.Format("{0:yyyy-MM-dd HH:mm}", getF2.OperaterTime);
}
@@ -192,7 +199,7 @@
var signUser3 = UserService.GetUserByUserId(getF3.OperaterId);
if (signUser3 != null)
{
this.txtName3.Text = signUser3.UserName;
this.txtName3.Text = signUser3.UserName;
}
this.txtTime3.Text = string.Format("{0:yyyy-MM-dd HH:mm}", getF3.OperaterTime);
}
@@ -200,22 +207,33 @@
var getF4 = getFlows.FirstOrDefault(x => x.SortIndex == 4);
if (getF4 != null)
{
FlowOperateId4 = getF4.FlowOperateId;
this.txtForm4.Title = getF4.AuditFlowName + "";
if (getF4.OperaterTime.HasValue)
{
if (getF4.IsAgree == true)
{
// this.txtOpinion4.Text = "同意。";
this.txtOpinion4.Text = "同意。";
}
else
{
this.txtOpinion4.Text = getF4.Opinion;
}
this.txtName4.Text = UserService.GetUserNameByUserId(getF4.OperaterId);
if (!string.IsNullOrEmpty(getF4.SignatureUrl))
{
this.Image4.ImageUrl = "~/" + getF4.SignatureUrl;
}
var signUser4= UserService.GetUserByUserId(getF4.OperaterId);
if (signUser4 != null)
{
this.txtName4.Text = signUser4.UserName;
}
this.txtTime4.Text = string.Format("{0:yyyy-MM-dd HH:mm}", getF4.OperaterTime);
}
}
}
}
}
#endregion
@@ -68,6 +68,33 @@ namespace FineUIPro.Web.HSSE.License
/// </remarks>
protected global::FineUIPro.TextBox txtApplyManName;
/// <summary>
/// txtWorkLeader 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtWorkLeader;
/// <summary>
/// txtFireWatchManName 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtFireWatchManName;
/// <summary>
/// txtUseTo 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtUseTo;
/// <summary>
/// txtWorkPalce 控件。
/// </summary>
@@ -77,6 +104,42 @@ namespace FineUIPro.Web.HSSE.License
/// </remarks>
protected global::FineUIPro.TextBox txtWorkPalce;
/// <summary>
/// txtAccessPoint 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtAccessPoint;
/// <summary>
/// txtAccessPointNo 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtAccessPointNo;
/// <summary>
/// txtAccessPointAddress 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtAccessPointAddress;
/// <summary>
/// txtWorkingVoltage 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtWorkingVoltage;
/// <summary>
/// txtElectrician 控件。
/// </summary>
@@ -87,13 +150,40 @@ namespace FineUIPro.Web.HSSE.License
protected global::FineUIPro.TextBox txtElectrician;
/// <summary>
/// txtFireWatchManName 控件。
/// txtHasSpecialProgramme 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtFireWatchManName;
protected global::FineUIPro.TextBox txtHasSpecialProgramme;
/// <summary>
/// txtOtherAttach 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtOtherAttach;
/// <summary>
/// txtEquipmentLoadList 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtEquipmentLoadList;
/// <summary>
/// txtEquipmentLoadDes 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtEquipmentLoadDes;
/// <summary>
/// txtWorkDate 控件。
@@ -131,60 +221,6 @@ namespace FineUIPro.Web.HSSE.License
/// </remarks>
protected global::FineUIPro.Grid Grid1;
/// <summary>
/// txtForm0 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Form txtForm0;
/// <summary>
/// txtOpinion0 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextArea txtOpinion0;
/// <summary>
/// HyperLink0 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.HyperLink HyperLink0;
/// <summary>
/// txtName0 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Label txtName0;
/// <summary>
/// Image0 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Image Image0;
/// <summary>
/// txtTime0 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Label txtTime0;
/// <summary>
/// txtForm1 控件。
/// </summary>
@@ -401,60 +437,6 @@ namespace FineUIPro.Web.HSSE.License
/// </remarks>
protected global::FineUIPro.Label txtTime4;
/// <summary>
/// Form5 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Form Form5;
/// <summary>
/// TextArea2 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextArea TextArea2;
/// <summary>
/// HyperLink5 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.HyperLink HyperLink5;
/// <summary>
/// txtName5 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Label txtName5;
/// <summary>
/// Image5 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Image Image5;
/// <summary>
/// txtTime5 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Label txtTime5;
/// <summary>
/// txtCance 控件。
/// </summary>