diff --git a/DataBase/版本日志/SGGLDB_CD_V2024-01-26-001.sql b/DataBase/版本日志/SGGLDB_CD_V2024-01-26-001.sql
new file mode 100644
index 00000000..dec53ce0
Binary files /dev/null and b/DataBase/版本日志/SGGLDB_CD_V2024-01-26-001.sql differ
diff --git a/DataBase/版本日志/SGGLDB_CD_V2024-01-29-001.sql b/DataBase/版本日志/SGGLDB_CD_V2024-01-29-001.sql
new file mode 100644
index 00000000..9198cfac
--- /dev/null
+++ b/DataBase/版本日志/SGGLDB_CD_V2024-01-29-001.sql
@@ -0,0 +1,2 @@
+Alter TABLE [dbo].[InApproveManager_EquipmentInItem]add
+ [IsIn] [bit] NULL
\ No newline at end of file
diff --git a/SGGL/BLL/BaseInfo/RiskLevelService.cs b/SGGL/BLL/BaseInfo/RiskLevelService.cs
index 3e92769e..8480c479 100644
--- a/SGGL/BLL/BaseInfo/RiskLevelService.cs
+++ b/SGGL/BLL/BaseInfo/RiskLevelService.cs
@@ -21,7 +21,10 @@ namespace BLL
{
return Funs.DB.Base_RiskLevel.FirstOrDefault(e => e.RiskLevelId == riskLevelId);
}
-
+ public static Model.Base_RiskLevel GetRiskLevelByHazardLevel(int HazardLevel)
+ {
+ return Funs.DB.Base_RiskLevel.FirstOrDefault(e => e.RiskLevel == HazardLevel);
+ }
///
/// 添加许可证类型
///
diff --git a/SGGL/BLL/HSSE/InApproveManager/EquipmentInItemService.cs b/SGGL/BLL/HSSE/InApproveManager/EquipmentInItemService.cs
index b1e164b9..cd70dc62 100644
--- a/SGGL/BLL/HSSE/InApproveManager/EquipmentInItemService.cs
+++ b/SGGL/BLL/HSSE/InApproveManager/EquipmentInItemService.cs
@@ -54,6 +54,7 @@ namespace BLL
InsuranceNum = equipmentInItem.InsuranceNum,
CommercialInsuranceNum = equipmentInItem.CommercialInsuranceNum,
IsUsed = equipmentInItem.IsUsed,
+ IsIn = equipmentInItem.IsIn
};
db.InApproveManager_EquipmentInItem.InsertOnSubmit(newEquipmentItem);
db.SubmitChanges();
@@ -81,6 +82,7 @@ namespace BLL
newEquipmentItem.InsuranceNum = equipmentInItem.InsuranceNum;
newEquipmentItem.CommercialInsuranceNum = equipmentInItem.CommercialInsuranceNum;
newEquipmentItem.IsUsed = equipmentInItem.IsUsed;
+ newEquipmentItem.IsIn = equipmentInItem.IsIn;
db.SubmitChanges();
}
}
diff --git a/SGGL/FineUIPro.Web/Controls/SeeQRImage.aspx.cs b/SGGL/FineUIPro.Web/Controls/SeeQRImage.aspx.cs
index 296d6e9d..a5f2dd9a 100644
--- a/SGGL/FineUIPro.Web/Controls/SeeQRImage.aspx.cs
+++ b/SGGL/FineUIPro.Web/Controls/SeeQRImage.aspx.cs
@@ -184,6 +184,23 @@ namespace FineUIPro.Web.Controls
}
}
}
+ else if (!string.IsNullOrEmpty(Request.Params["HazardSelectedItemId"]))
+ {
+ var hazardSelectedItem = Funs.DB.Hazard_HazardSelectedItem.FirstOrDefault(e => e.HazardSelectedItemId == Request.Params["HazardSelectedItemId"]);
+ if (hazardSelectedItem != null)
+ {
+ if (!string.IsNullOrEmpty(hazardSelectedItem.QRCodeAttachUrl) && CreateQRCodeService.isHaveImage(hazardSelectedItem.QRCodeAttachUrl))
+ {
+ this.QRCodeAttachUrl = hazardSelectedItem.QRCodeAttachUrl;
+ }
+ else
+ {
+ this.QRCodeAttachUrl = CreateQRCodeService.CreateCode_Simple(Request.Params["strCode"]);
+ hazardSelectedItem.QRCodeAttachUrl = this.QRCodeAttachUrl;
+ Funs.DB.SubmitChanges();
+ }
+ }
+ }
this.Image1.ImageUrl = "~/" + this.QRCodeAttachUrl;
}
diff --git a/SGGL/FineUIPro.Web/ErrLog.txt b/SGGL/FineUIPro.Web/ErrLog.txt
index eed414c7..c73dfe2f 100644
--- a/SGGL/FineUIPro.Web/ErrLog.txt
+++ b/SGGL/FineUIPro.Web/ErrLog.txt
@@ -843,3 +843,567 @@ IP地址:::1
出错时间:09/26/2023 14:53:21
+
+错误信息开始=====>
+错误类型:NullReferenceException
+错误信息:未将对象引用设置到对象的实例。
+错误堆栈:
+ 在 FineUIPro.Web.HSSE.Hazard.HazardTemplate.InitTreeMenu() 位置 D:\project\vs\sggl_cd\SGGL\FineUIPro.Web\HSSE\Hazard\HazardTemplate.aspx.cs:行号 146
+ 在 FineUIPro.Web.HSSE.Hazard.HazardTemplate.TextBox_TextChanged(Object sender, EventArgs e) 位置 D:\project\vs\sggl_cd\SGGL\FineUIPro.Web\HSSE\Hazard\HazardTemplate.aspx.cs:行号 535
+ 在 FineUIPro.DropDownList.OnSelectedIndexChanged(EventArgs e)
+ 在 (DropDownList , EventArgs )
+ 在 FineUIPro.DropDownList.RaisePostDataChangedEvent()
+ 在 System.Web.UI.Page.RaiseChangedEvents()
+ 在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
+出错时间:01/25/2024 17:56:29
+出错文件:http://localhost:1295/HSSE/Hazard/HazardTemplate.aspx?HazardListId=&WorkStageIds=
+IP地址:::1
+操作人员:JT
+
+出错时间:01/25/2024 17:56:29
+
+
+错误信息开始=====>
+错误类型:NullReferenceException
+错误信息:未将对象引用设置到对象的实例。
+错误堆栈:
+ 在 FineUIPro.Web.HSSE.Hazard.HazardTemplate.InitTreeMenu() 位置 D:\project\vs\sggl_cd\SGGL\FineUIPro.Web\HSSE\Hazard\HazardTemplate.aspx.cs:行号 146
+ 在 FineUIPro.Web.HSSE.Hazard.HazardTemplate.TextBox_TextChanged(Object sender, EventArgs e) 位置 D:\project\vs\sggl_cd\SGGL\FineUIPro.Web\HSSE\Hazard\HazardTemplate.aspx.cs:行号 535
+ 在 FineUIPro.DropDownList.OnSelectedIndexChanged(EventArgs e)
+ 在 (DropDownList , EventArgs )
+ 在 FineUIPro.DropDownList.RaisePostDataChangedEvent()
+ 在 System.Web.UI.Page.RaiseChangedEvents()
+ 在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
+出错时间:01/25/2024 18:54:50
+出错文件:http://localhost:1295/HSSE/Hazard/HazardTemplate.aspx?HazardListId=&WorkStageIds=
+IP地址:::1
+操作人员:JT
+
+出错时间:01/25/2024 18:54:50
+
+
+错误信息开始=====>
+错误类型:NullReferenceException
+错误信息:未将对象引用设置到对象的实例。
+错误堆栈:
+ 在 FineUIPro.Web.HSSE.Hazard.HazardTemplate.InitTreeMenu() 位置 D:\project\vs\sggl_cd\SGGL\FineUIPro.Web\HSSE\Hazard\HazardTemplate.aspx.cs:行号 146
+ 在 FineUIPro.Web.HSSE.Hazard.HazardTemplate.TextBox_TextChanged(Object sender, EventArgs e) 位置 D:\project\vs\sggl_cd\SGGL\FineUIPro.Web\HSSE\Hazard\HazardTemplate.aspx.cs:行号 535
+ 在 FineUIPro.DropDownList.OnSelectedIndexChanged(EventArgs e)
+ 在 (DropDownList , EventArgs )
+ 在 FineUIPro.DropDownList.RaisePostDataChangedEvent()
+ 在 System.Web.UI.Page.RaiseChangedEvents()
+ 在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
+出错时间:01/25/2024 19:02:49
+出错文件:http://localhost:1295/HSSE/Hazard/HazardTemplate.aspx?HazardListId=&WorkStageIds=
+IP地址:::1
+操作人员:JT
+
+出错时间:01/25/2024 19:02:49
+
+
+错误信息开始=====>
+错误类型:NullReferenceException
+错误信息:未将对象引用设置到对象的实例。
+错误堆栈:
+ 在 FineUIPro.Web.HSSE.Hazard.HazardTemplate.BindGrid() 位置 D:\project\vs\sggl_cd\SGGL\FineUIPro.Web\HSSE\Hazard\HazardTemplate.aspx.cs:行号 255
+ 在 FineUIPro.Web.HSSE.Hazard.HazardTemplate.trHazardListType_NodeCheck(Object sender, TreeCheckEventArgs e) 位置 D:\project\vs\sggl_cd\SGGL\FineUIPro.Web\HSSE\Hazard\HazardTemplate.aspx.cs:行号 583
+ 在 FineUIPro.Tree.OnNodeCheck(TreeCheckEventArgs e)
+ 在 (Tree , TreeCheckEventArgs )
+ 在 FineUIPro.Tree.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/25/2024 21:31:36
+出错文件:http://localhost:1295/HSSE/Hazard/HazardTemplate.aspx?HazardListId=&WorkStageIds=
+IP地址:::1
+操作人员:JT
+
+出错时间:01/25/2024 21:31:36
+
+
+错误信息开始=====>
+错误类型: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
+出错时间:01/26/2024 08:29:10
+出错时间:01/26/2024 08:29:10
+
+
+错误信息开始=====>
+错误类型:NullReferenceException
+错误信息:未将对象引用设置到对象的实例。
+错误堆栈:
+ 在 (Object )
+ 在 FineUIPro.GridRow.kxpUEMXYxcbykrOznAFBzkoxlAnb()
+ 在 (GridRow )
+ 在 FineUIPro.GridRow.InitTemplateContainers()
+ 在 (GridRow )
+ 在 FineUIPro.Grid.BkpgFeAELTFlAvoTrOBrConfcLJbA(Int32 , Object )
+ 在 (Grid , Int32 , Object )
+ 在 FineUIPro.Grid.LDChsdiaqdhUTcxBcQPMKyQFfjEDB(DataTable , Boolean )
+ 在 (Grid , DataTable , Boolean )
+ 在 FineUIPro.Grid.DataBind(Boolean keepCurrentData)
+ 在 (Grid , Boolean )
+ 在 FineUIPro.Grid.DataBind()
+ 在 FineUIPro.Web.HSSE.Hazard.HazardTemplate.BindGrid() 位置 D:\project\vs\sggl_cd\SGGL\FineUIPro.Web\HSSE\Hazard\HazardTemplate.aspx.cs:行号 283
+ 在 FineUIPro.Web.HSSE.Hazard.HazardTemplate.trHazardListType_NodeCheck(Object sender, TreeCheckEventArgs e) 位置 D:\project\vs\sggl_cd\SGGL\FineUIPro.Web\HSSE\Hazard\HazardTemplate.aspx.cs:行号 592
+ 在 FineUIPro.Tree.OnNodeCheck(TreeCheckEventArgs e)
+ 在 (Tree , TreeCheckEventArgs )
+ 在 FineUIPro.Tree.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/26/2024 08:44:49
+出错文件:http://localhost:1295/HSSE/Hazard/HazardTemplate.aspx?HazardListId=&WorkStageIds=
+IP地址:::1
+操作人员:JT
+
+出错时间:01/26/2024 08:44:49
+
+
+错误信息开始=====>
+错误类型:NullReferenceException
+错误信息:未将对象引用设置到对象的实例。
+错误堆栈:
+ 在 FineUIPro.Web.HSSE.Hazard.HazardTemplate.Grid1_RowCommand(Object sender, GridCommandEventArgs e) 位置 D:\project\vs\sggl_cd\SGGL\FineUIPro.Web\HSSE\Hazard\HazardTemplate.aspx.cs:行号 391
+ 在 FineUIPro.Grid.OnRowCommand(GridCommandEventArgs e)
+ 在 (Grid , GridCommandEventArgs )
+ 在 FineUIPro.Grid.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/26/2024 09:01:58
+出错文件:http://localhost:1295/HSSE/Hazard/HazardTemplate.aspx?HazardListId=&WorkStageIds=
+IP地址:::1
+操作人员:JT
+
+出错时间:01/26/2024 09:01:58
+
+
+错误信息开始=====>
+错误类型:NullReferenceException
+错误信息:未将对象引用设置到对象的实例。
+错误堆栈:
+ 在 FineUIPro.Web.HSSE.Hazard.HazardTemplate.Grid1_RowCommand(Object sender, GridCommandEventArgs e) 位置 D:\project\vs\sggl_cd\SGGL\FineUIPro.Web\HSSE\Hazard\HazardTemplate.aspx.cs:行号 391
+ 在 FineUIPro.Grid.OnRowCommand(GridCommandEventArgs e)
+ 在 (Grid , GridCommandEventArgs )
+ 在 FineUIPro.Grid.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/26/2024 09:02:00
+出错文件:http://localhost:1295/HSSE/Hazard/HazardTemplate.aspx?HazardListId=&WorkStageIds=
+IP地址:::1
+操作人员:JT
+
+出错时间:01/26/2024 09:02:00
+
+
+错误信息开始=====>
+错误类型:NullReferenceException
+错误信息:未将对象引用设置到对象的实例。
+错误堆栈:
+ 在 FineUIPro.Web.HSSE.Hazard.HazardTemplate.Grid1_RowCommand(Object sender, GridCommandEventArgs e) 位置 D:\project\vs\sggl_cd\SGGL\FineUIPro.Web\HSSE\Hazard\HazardTemplate.aspx.cs:行号 391
+ 在 FineUIPro.Grid.OnRowCommand(GridCommandEventArgs e)
+ 在 (Grid , GridCommandEventArgs )
+ 在 FineUIPro.Grid.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/26/2024 09:02:08
+出错文件:http://localhost:1295/HSSE/Hazard/HazardTemplate.aspx?HazardListId=&WorkStageIds=
+IP地址:::1
+操作人员:JT
+
+出错时间:01/26/2024 09:02:08
+
+
+错误信息开始=====>
+错误类型:NullReferenceException
+错误信息:未将对象引用设置到对象的实例。
+错误堆栈:
+ 在 FineUIPro.Web.HSSE.Hazard.HazardTemplate.Grid1_RowCommand(Object sender, GridCommandEventArgs e) 位置 D:\project\vs\sggl_cd\SGGL\FineUIPro.Web\HSSE\Hazard\HazardTemplate.aspx.cs:行号 391
+ 在 FineUIPro.Grid.OnRowCommand(GridCommandEventArgs e)
+ 在 (Grid , GridCommandEventArgs )
+ 在 FineUIPro.Grid.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/26/2024 09:02:10
+出错文件:http://localhost:1295/HSSE/Hazard/HazardTemplate.aspx?HazardListId=&WorkStageIds=
+IP地址:::1
+操作人员:JT
+
+出错时间:01/26/2024 09:02:10
+
+
+错误信息开始=====>
+错误类型:HttpCompileException
+错误信息:d:\project\vs\sggl_cd\SGGL\FineUIPro.Web\HSSE\Hazard\HazardTemplate.aspx(65): error CS0103: 当前上下文中不存在名称“Bind”
+错误堆栈:
+ 在 System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath)
+ 在 System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate)
+ 在 System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate)
+ 在 System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean throwIfNotFound)
+ 在 System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp)
+ 在 System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath)
+ 在 System.Web.UI.PageHandlerFactory.GetHandler(HttpContext context, String requestType, String virtualPath, String path)
+ 在 System.Web.HttpApplication.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
+ 在 System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)
+ 在 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
+出错时间:01/26/2024 10:02:17
+出错文件:http://localhost:1295/HSSE/Hazard/HazardTemplate.aspx?HazardListId=&WorkStageIds=
+IP地址:::1
+
+出错时间:01/26/2024 10:02:19
+
+
+错误信息开始=====>
+错误类型:HttpException
+错误信息:找到多个具有相同 ID“ftpl_2ea16287-2621-4c55-9543-ad6e35846e8f_1”的控件。FindControl 要求控件具有唯一的 ID。
+错误堆栈:
+ 在 System.Web.UI.Control.FillNamedControlsTable(Control namingContainer, ControlCollection controls)
+ 在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset)
+ 在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset)
+ 在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset)
+ 在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset)
+ 在 System.Web.UI.Page.FindControl(String id)
+ 在 System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad)
+ 在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
+出错时间:01/26/2024 10:04:38
+出错文件:http://localhost:1295/HSSE/Hazard/HazardTemplate.aspx?HazardListId=&WorkStageIds=
+IP地址:::1
+操作人员:JT
+
+出错时间:01/26/2024 10:04:38
+
+
+错误信息开始=====>
+错误类型:HttpException
+错误信息:找到多个具有相同 ID“ftpl_2ea16287-2621-4c55-9543-ad6e35846e8f_1”的控件。FindControl 要求控件具有唯一的 ID。
+错误堆栈:
+ 在 System.Web.UI.Control.FillNamedControlsTable(Control namingContainer, ControlCollection controls)
+ 在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset)
+ 在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset)
+ 在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset)
+ 在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset)
+ 在 System.Web.UI.Page.FindControl(String id)
+ 在 System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad)
+ 在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
+出错时间:01/26/2024 10:04:57
+出错文件:http://localhost:1295/HSSE/Hazard/HazardTemplate.aspx?HazardListId=&WorkStageIds=
+IP地址:::1
+操作人员:JT
+
+出错时间:01/26/2024 10:04:58
+
+
+错误信息开始=====>
+错误类型:HttpException
+错误信息:找到多个具有相同 ID“ftpl_2ea16287-2621-4c55-9543-ad6e35846e8f_1”的控件。FindControl 要求控件具有唯一的 ID。
+错误堆栈:
+ 在 System.Web.UI.Control.FillNamedControlsTable(Control namingContainer, ControlCollection controls)
+ 在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset)
+ 在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset)
+ 在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset)
+ 在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset)
+ 在 System.Web.UI.Page.FindControl(String id)
+ 在 System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad)
+ 在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
+出错时间:01/26/2024 10:05:19
+出错文件:http://localhost:1295/HSSE/Hazard/HazardTemplate.aspx?HazardListId=&WorkStageIds=
+IP地址:::1
+操作人员:JT
+
+出错时间:01/26/2024 10:05:19
+
+
+错误信息开始=====>
+错误类型:HttpException
+错误信息:找到多个具有相同 ID“ftpl_2ea16287-2621-4c55-9543-ad6e35846e8f_1”的控件。FindControl 要求控件具有唯一的 ID。
+错误堆栈:
+ 在 System.Web.UI.Control.FillNamedControlsTable(Control namingContainer, ControlCollection controls)
+ 在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset)
+ 在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset)
+ 在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset)
+ 在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset)
+ 在 System.Web.UI.Page.FindControl(String id)
+ 在 System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad)
+ 在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
+出错时间:01/26/2024 10:05:32
+出错文件:http://localhost:1295/HSSE/Hazard/HazardTemplate.aspx?HazardListId=&WorkStageIds=
+IP地址:::1
+操作人员:JT
+
+出错时间:01/26/2024 10:05:34
+
+
+错误信息开始=====>
+错误类型:HttpException
+错误信息:找到多个具有相同 ID“ftpl_2ea16287-2621-4c55-9543-ad6e35846e8f_1”的控件。FindControl 要求控件具有唯一的 ID。
+错误堆栈:
+ 在 System.Web.UI.Control.FillNamedControlsTable(Control namingContainer, ControlCollection controls)
+ 在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset)
+ 在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset)
+ 在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset)
+ 在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset)
+ 在 System.Web.UI.Page.FindControl(String id)
+ 在 System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad)
+ 在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
+出错时间:01/26/2024 10:05:38
+出错文件:http://localhost:1295/HSSE/Hazard/HazardTemplate.aspx?HazardListId=&WorkStageIds=
+IP地址:::1
+操作人员:JT
+
+出错时间:01/26/2024 10:05:38
+
+
+错误信息开始=====>
+错误类型:HttpException
+错误信息:找到多个具有相同 ID“ftpl_2ea16287-2621-4c55-9543-ad6e35846e8f_1”的控件。FindControl 要求控件具有唯一的 ID。
+错误堆栈:
+ 在 System.Web.UI.Control.FillNamedControlsTable(Control namingContainer, ControlCollection controls)
+ 在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset)
+ 在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset)
+ 在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset)
+ 在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset)
+ 在 System.Web.UI.Page.FindControl(String id)
+ 在 System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad)
+ 在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
+出错时间:01/26/2024 10:05:39
+出错文件:http://localhost:1295/HSSE/Hazard/HazardTemplate.aspx?HazardListId=&WorkStageIds=
+IP地址:::1
+操作人员:JT
+
+出错时间:01/26/2024 10:05:39
+
+
+错误信息开始=====>
+错误类型:HttpException
+错误信息:找到多个具有相同 ID“ftpl_2ea16287-2621-4c55-9543-ad6e35846e8f_1”的控件。FindControl 要求控件具有唯一的 ID。
+错误堆栈:
+ 在 System.Web.UI.Control.FillNamedControlsTable(Control namingContainer, ControlCollection controls)
+ 在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset)
+ 在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset)
+ 在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset)
+ 在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset)
+ 在 System.Web.UI.Page.FindControl(String id)
+ 在 System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad)
+ 在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
+出错时间:01/26/2024 10:05:54
+出错文件:http://localhost:1295/HSSE/Hazard/HazardTemplate.aspx?HazardListId=&WorkStageIds=
+IP地址:::1
+操作人员:JT
+
+出错时间:01/26/2024 10:05:54
+
+
+错误信息开始=====>
+错误类型:HttpException
+错误信息:找到多个具有相同 ID“ftpl_2ea16287-2621-4c55-9543-ad6e35846e8f_1”的控件。FindControl 要求控件具有唯一的 ID。
+错误堆栈:
+ 在 System.Web.UI.Control.FillNamedControlsTable(Control namingContainer, ControlCollection controls)
+ 在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset)
+ 在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset)
+ 在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset)
+ 在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset)
+ 在 System.Web.UI.Page.FindControl(String id)
+ 在 System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad)
+ 在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
+出错时间:01/26/2024 10:06:00
+出错文件:http://localhost:1295/HSSE/Hazard/HazardTemplate.aspx?HazardListId=&WorkStageIds=
+IP地址:::1
+操作人员:JT
+
+出错时间:01/26/2024 10:06:00
+
+
+错误信息开始=====>
+错误类型:HttpException
+错误信息:找到多个具有相同 ID“ftpl_2ea16287-2621-4c55-9543-ad6e35846e8f_1”的控件。FindControl 要求控件具有唯一的 ID。
+错误堆栈:
+ 在 System.Web.UI.Control.FillNamedControlsTable(Control namingContainer, ControlCollection controls)
+ 在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset)
+ 在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset)
+ 在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset)
+ 在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset)
+ 在 System.Web.UI.Page.FindControl(String id)
+ 在 System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad)
+ 在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
+出错时间:01/26/2024 10:06:10
+出错文件:http://localhost:1295/HSSE/Hazard/HazardTemplate.aspx?HazardListId=&WorkStageIds=
+IP地址:::1
+操作人员:JT
+
+出错时间:01/26/2024 10:06:11
+
+
+错误信息开始=====>
+错误类型:HttpException
+错误信息:找到多个具有相同 ID“ftpl_2ea16287-2621-4c55-9543-ad6e35846e8f_1”的控件。FindControl 要求控件具有唯一的 ID。
+错误堆栈:
+ 在 System.Web.UI.Control.FillNamedControlsTable(Control namingContainer, ControlCollection controls)
+ 在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset)
+ 在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset)
+ 在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset)
+ 在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset)
+ 在 System.Web.UI.Page.FindControl(String id)
+ 在 System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad)
+ 在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
+出错时间:01/26/2024 10:06:20
+出错文件:http://localhost:1295/HSSE/Hazard/HazardTemplate.aspx?HazardListId=&WorkStageIds=
+IP地址:::1
+操作人员:JT
+
+出错时间:01/26/2024 10:06:20
+
+
+错误信息开始=====>
+错误类型:NullReferenceException
+错误信息:未将对象引用设置到对象的实例。
+错误堆栈:
+ 在 (Object )
+ 在 FineUIPro.GridRow.kxpUEMXYxcbykrOznAFBzkoxlAnb()
+ 在 (GridRow )
+ 在 FineUIPro.GridRow.InitTemplateContainers()
+ 在 (GridRow )
+ 在 FineUIPro.Grid.BkpgFeAELTFlAvoTrOBrConfcLJbA(Int32 , Object )
+ 在 (Grid , Int32 , Object )
+ 在 FineUIPro.Grid.LDChsdiaqdhUTcxBcQPMKyQFfjEDB(DataTable , Boolean )
+ 在 (Grid , DataTable , Boolean )
+ 在 FineUIPro.Grid.DataBind(Boolean keepCurrentData)
+ 在 (Grid , Boolean )
+ 在 FineUIPro.Grid.DataBind()
+ 在 FineUIPro.Web.HSSE.Hazard.HazardTemplate.BindGrid() 位置 D:\project\vs\sggl_cd\SGGL\FineUIPro.Web\HSSE\Hazard\HazardTemplate.aspx.cs:行号 303
+ 在 FineUIPro.Web.HSSE.Hazard.HazardTemplate.trHazardListType_NodeCheck(Object sender, TreeCheckEventArgs e) 位置 D:\project\vs\sggl_cd\SGGL\FineUIPro.Web\HSSE\Hazard\HazardTemplate.aspx.cs:行号 612
+ 在 FineUIPro.Tree.OnNodeCheck(TreeCheckEventArgs e)
+ 在 (Tree , TreeCheckEventArgs )
+ 在 FineUIPro.Tree.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/26/2024 10:07:28
+出错文件:http://localhost:1295/HSSE/Hazard/HazardTemplate.aspx?HazardListId=&WorkStageIds=
+IP地址:::1
+操作人员:JT
+
+出错时间:01/26/2024 10:07:28
+
+
+错误信息开始=====>
+错误类型:NullReferenceException
+错误信息:未将对象引用设置到对象的实例。
+错误堆栈:
+ 在 FineUIPro.Web.HSSE.Hazard.HazardTemplate.Grid1_RowCommand(Object sender, GridCommandEventArgs e) 位置 D:\project\vs\sggl_cd\SGGL\FineUIPro.Web\HSSE\Hazard\HazardTemplate.aspx.cs:行号 411
+ 在 FineUIPro.Grid.OnRowCommand(GridCommandEventArgs e)
+ 在 (Grid , GridCommandEventArgs )
+ 在 FineUIPro.Grid.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/26/2024 10:25:05
+出错文件:http://localhost:1295/HSSE/Hazard/HazardTemplate.aspx?HazardListId=&WorkStageIds=
+IP地址:::1
+操作人员:JT
+
+出错时间:01/26/2024 10:25:05
+
+
+错误信息开始=====>
+错误类型:NullReferenceException
+错误信息:未将对象引用设置到对象的实例。
+错误堆栈:
+ 在 FineUIPro.Web.HSSE.Hazard.HazardTemplate.Grid1_RowCommand(Object sender, GridCommandEventArgs e) 位置 D:\project\vs\sggl_cd\SGGL\FineUIPro.Web\HSSE\Hazard\HazardTemplate.aspx.cs:行号 411
+ 在 FineUIPro.Grid.OnRowCommand(GridCommandEventArgs e)
+ 在 (Grid , GridCommandEventArgs )
+ 在 FineUIPro.Grid.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/26/2024 10:26:41
+出错文件:http://localhost:1295/HSSE/Hazard/HazardTemplate.aspx?HazardListId=&WorkStageIds=
+IP地址:::1
+操作人员:JT
+
+出错时间:01/26/2024 10:26:41
+
+
+错误信息开始=====>
+错误类型:NullReferenceException
+错误信息:未将对象引用设置到对象的实例。
+错误堆栈:
+ 在 FineUIPro.Web.HSSE.Hazard.HazardTemplate.Grid1_RowCommand(Object sender, GridCommandEventArgs e) 位置 D:\project\vs\sggl_cd\SGGL\FineUIPro.Web\HSSE\Hazard\HazardTemplate.aspx.cs:行号 411
+ 在 FineUIPro.Grid.OnRowCommand(GridCommandEventArgs e)
+ 在 (Grid , GridCommandEventArgs )
+ 在 FineUIPro.Grid.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/26/2024 10:26:42
+出错文件:http://localhost:1295/HSSE/Hazard/HazardTemplate.aspx?HazardListId=&WorkStageIds=
+IP地址:::1
+操作人员:JT
+
+出错时间:01/26/2024 10:26:42
+
+
+错误信息开始=====>
+错误类型:NullReferenceException
+错误信息:未将对象引用设置到对象的实例。
+错误堆栈:
+ 在 FineUIPro.Web.HSSE.Hazard.HazardTemplate.Grid1_RowCommand(Object sender, GridCommandEventArgs e) 位置 D:\project\vs\sggl_cd\SGGL\FineUIPro.Web\HSSE\Hazard\HazardTemplate.aspx.cs:行号 411
+ 在 FineUIPro.Grid.OnRowCommand(GridCommandEventArgs e)
+ 在 (Grid , GridCommandEventArgs )
+ 在 FineUIPro.Grid.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/26/2024 10:26:44
+出错文件:http://localhost:1295/HSSE/Hazard/HazardTemplate.aspx?HazardListId=&WorkStageIds=
+IP地址:::1
+操作人员:JT
+
+出错时间:01/26/2024 10:26:44
+
+
+错误信息开始=====>
+错误类型: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.Linq.IQueryProvider.Execute[S](Expression expression)
+ 在 System.Linq.Queryable.Count[TSource](IQueryable`1 source)
+ 在 BLL.GetDataService.CorrectingPersonInOutNumber(String projectId) 位置 D:\project\vs\sggl_cd\SGGL\BLL\OpenService\GetDataService.cs:行号 140
+ 在 BLL.MonitorService.DoSynchData() 位置 D:\project\vs\sggl_cd\SGGL\BLL\OpenService\MonitorService.cs:行号 2180
+ 在 BLL.MonitorService.ColligateFormConfirmProcessEve(Object sender, ElapsedEventArgs e) 位置 D:\project\vs\sggl_cd\SGGL\BLL\OpenService\MonitorService.cs:行号 112
+----错误类型:Win32Exception
+----错误信息:
+----等待的操作过时。
+----错误堆栈:
+ 出错时间:01/26/2024 11:24:42
+出错时间:01/26/2024 11:24:42
+
diff --git a/SGGL/FineUIPro.Web/HSSE/Hazard/HazardList.aspx b/SGGL/FineUIPro.Web/HSSE/Hazard/HazardList.aspx
index 88e682bc..5e3108d4 100644
--- a/SGGL/FineUIPro.Web/HSSE/Hazard/HazardList.aspx
+++ b/SGGL/FineUIPro.Web/HSSE/Hazard/HazardList.aspx
@@ -64,11 +64,13 @@
-
-
-
+
+
+
+
+
+
diff --git a/SGGL/FineUIPro.Web/HSSE/Hazard/HazardList.aspx.cs b/SGGL/FineUIPro.Web/HSSE/Hazard/HazardList.aspx.cs
index 8b094e9e..5ba4dd3f 100644
--- a/SGGL/FineUIPro.Web/HSSE/Hazard/HazardList.aspx.cs
+++ b/SGGL/FineUIPro.Web/HSSE/Hazard/HazardList.aspx.cs
@@ -73,14 +73,13 @@ namespace FineUIPro.Web.HSSE.Hazard
///
private void BindGrid()
{
- string strSql = "select HazardList.HazardListId,HazardList.VersionNo,HazardList.WorkStage,Users.UserName,HazardList.CompileDate,CodeRecords.Code AS HazardListCode,HazardList.WorkAreaName,HazardList.IdentificationDate,ControllingPersonUsers.UserName AS ControllingPersonName "
+ string strSql = "select HazardList.HazardListId,HazardList.VersionNo,HazardList.WorkStage,Users.UserName,HazardList.CompileDate,CodeRecords.Code AS HazardListCode,HazardList.WorkAreaName,HazardList.IdentificationDate,HazardList.ControllingPerson "
+ @" ,(CASE WHEN HazardList.States = " + BLL.Const.State_0 + " OR HazardList.States IS NULL THEN '待['+OperateUser.UserName+']提交' WHEN HazardList.States = " + BLL.Const.State_2 + " THEN '审核/审批完成' ELSE '待['+OperateUser.UserName+']办理' END) AS FlowOperateName"
+ @" from Hazard_HazardList AS HazardList "
+ @" LEFT JOIN Sys_FlowOperate AS FlowOperate ON HazardList.HazardListId=FlowOperate.DataId AND FlowOperate.IsClosed <> 1"
+ @" LEFT JOIN Sys_User AS OperateUser ON FlowOperate.OperaterId=OperateUser.UserId "
+ @" LEFT JOIN Sys_User AS Users ON HazardList.CompileMan=Users.UserId "
- + @" LEFT JOIN Sys_User AS ControllingPersonUsers ON HazardList.ControllingPerson=ControllingPersonUsers.UserId "
- + @" LEFT JOIN Sys_CodeRecords AS CodeRecords ON HazardList.HazardListId=CodeRecords.DataId WHERE 1=1 ";
+ + @" LEFT JOIN Sys_CodeRecords AS CodeRecords ON HazardList.HazardListId=CodeRecords.DataId WHERE 1=1 ";
List listStr = new List();
strSql += " AND HazardList.ProjectId = @ProjectId";
if (!string.IsNullOrEmpty(Request.Params["projectId"])) ///是否文件柜查看页面传项目值
@@ -508,6 +507,19 @@ namespace FineUIPro.Web.HSSE.Hazard
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("~/ReportPrint/ExReportPrint.aspx?reportId={0}&&replaceParameter={1}&&varValue={2}", Const.HazardListImportantReportId, Grid1.SelectedRowID, "", "打印 - ")));
}
}
+
+ public string BindControllingPerson(object ids)
+ {
+ string res = "";
+
+ if (ids != null)
+ {
+ res = UserService.getUserNamesUserIds(ids);
+
+ }
+ return res;
+ }
+
#endregion
}
}
\ No newline at end of file
diff --git a/SGGL/FineUIPro.Web/HSSE/Hazard/HazardList.aspx.designer.cs b/SGGL/FineUIPro.Web/HSSE/Hazard/HazardList.aspx.designer.cs
index d47110c2..28e73a4b 100644
--- a/SGGL/FineUIPro.Web/HSSE/Hazard/HazardList.aspx.designer.cs
+++ b/SGGL/FineUIPro.Web/HSSE/Hazard/HazardList.aspx.designer.cs
@@ -7,11 +7,13 @@
// 自动生成>
//------------------------------------------------------------------------------
-namespace FineUIPro.Web.HSSE.Hazard {
-
-
- public partial class HazardList {
-
+namespace FineUIPro.Web.HSSE.Hazard
+{
+
+
+ public partial class HazardList
+ {
+
///
/// form1 控件。
///
@@ -20,7 +22,7 @@ namespace FineUIPro.Web.HSSE.Hazard {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
-
+
///
/// PageManager1 控件。
///
@@ -29,7 +31,7 @@ namespace FineUIPro.Web.HSSE.Hazard {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.PageManager PageManager1;
-
+
///
/// Panel1 控件。
///
@@ -38,7 +40,7 @@ namespace FineUIPro.Web.HSSE.Hazard {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Panel Panel1;
-
+
///
/// Grid1 控件。
///
@@ -47,7 +49,7 @@ namespace FineUIPro.Web.HSSE.Hazard {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Grid Grid1;
-
+
///
/// Toolbar2 控件。
///
@@ -56,7 +58,7 @@ namespace FineUIPro.Web.HSSE.Hazard {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Toolbar Toolbar2;
-
+
///
/// txtHazardListCode 控件。
///
@@ -65,7 +67,7 @@ namespace FineUIPro.Web.HSSE.Hazard {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.TextBox txtHazardListCode;
-
+
///
/// ToolbarFill1 控件。
///
@@ -74,7 +76,7 @@ namespace FineUIPro.Web.HSSE.Hazard {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.ToolbarFill ToolbarFill1;
-
+
///
/// btnNew 控件。
///
@@ -83,7 +85,7 @@ namespace FineUIPro.Web.HSSE.Hazard {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Button btnNew;
-
+
///
/// btnOut 控件。
///
@@ -92,7 +94,7 @@ namespace FineUIPro.Web.HSSE.Hazard {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Button btnOut;
-
+
///
/// btnHelp 控件。
///
@@ -101,7 +103,7 @@ namespace FineUIPro.Web.HSSE.Hazard {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Button btnHelp;
-
+
///
/// lblVersionNo 控件。
///
@@ -110,7 +112,7 @@ namespace FineUIPro.Web.HSSE.Hazard {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::System.Web.UI.WebControls.Label lblVersionNo;
-
+
///
/// lblWorkStage 控件。
///
@@ -119,7 +121,16 @@ namespace FineUIPro.Web.HSSE.Hazard {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::System.Web.UI.WebControls.Label lblWorkStage;
-
+
+ ///
+ /// Label1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.WebControls.Label Label1;
+
///
/// ToolbarSeparator1 控件。
///
@@ -128,7 +139,7 @@ namespace FineUIPro.Web.HSSE.Hazard {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1;
-
+
///
/// ToolbarText1 控件。
///
@@ -137,7 +148,7 @@ namespace FineUIPro.Web.HSSE.Hazard {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.ToolbarText ToolbarText1;
-
+
///
/// ddlPageSize 控件。
///
@@ -146,7 +157,7 @@ namespace FineUIPro.Web.HSSE.Hazard {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.DropDownList ddlPageSize;
-
+
///
/// Window1 控件。
///
@@ -155,7 +166,7 @@ namespace FineUIPro.Web.HSSE.Hazard {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Window Window1;
-
+
///
/// Menu1 控件。
///
@@ -164,7 +175,7 @@ namespace FineUIPro.Web.HSSE.Hazard {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Menu Menu1;
-
+
///
/// btnMenuAllOut 控件。
///
@@ -173,7 +184,7 @@ namespace FineUIPro.Web.HSSE.Hazard {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.MenuButton btnMenuAllOut;
-
+
///
/// btnMenuImportantOut 控件。
///
@@ -182,7 +193,7 @@ namespace FineUIPro.Web.HSSE.Hazard {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.MenuButton btnMenuImportantOut;
-
+
///
/// btnMenuModify 控件。
///
@@ -191,7 +202,7 @@ namespace FineUIPro.Web.HSSE.Hazard {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.MenuButton btnMenuModify;
-
+
///
/// btnMenuDel 控件。
///
@@ -200,7 +211,7 @@ namespace FineUIPro.Web.HSSE.Hazard {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.MenuButton btnMenuDel;
-
+
///
/// btnMenuAllPrint 控件。
///
@@ -209,7 +220,7 @@ namespace FineUIPro.Web.HSSE.Hazard {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.MenuButton btnMenuAllPrint;
-
+
///
/// btnMenuImportantPrint 控件。
///
diff --git a/SGGL/FineUIPro.Web/HSSE/Hazard/HazardListEdit.aspx b/SGGL/FineUIPro.Web/HSSE/Hazard/HazardListEdit.aspx
index 09631ca7..72181a06 100644
--- a/SGGL/FineUIPro.Web/HSSE/Hazard/HazardListEdit.aspx
+++ b/SGGL/FineUIPro.Web/HSSE/Hazard/HazardListEdit.aspx
@@ -39,7 +39,7 @@
-
+ HeaderText="C" HeaderTextAlign="Center" TextAlign="Left" EnableColumnEdit="true">
diff --git a/SGGL/FineUIPro.Web/HSSE/Hazard/HazardListEdit.aspx.cs b/SGGL/FineUIPro.Web/HSSE/Hazard/HazardListEdit.aspx.cs
index 7ee0633c..7c109a34 100644
--- a/SGGL/FineUIPro.Web/HSSE/Hazard/HazardListEdit.aspx.cs
+++ b/SGGL/FineUIPro.Web/HSSE/Hazard/HazardListEdit.aspx.cs
@@ -152,7 +152,7 @@ namespace FineUIPro.Web.HSSE.Hazard
this.txtCompileDate.Text = string.Format("{0:yyyy-MM-dd}", hazardList.CompileDate);
if (!string.IsNullOrEmpty(hazardList.ControllingPerson))
{
- this.drpControllingPerson.SelectedValue = hazardList.ControllingPerson;
+ this.drpControllingPerson.SelectedValueArray = hazardList.ControllingPerson.Split(',');
}
this.txtIdentificationDate.Text = string.Format("{0:yyyy-MM-dd}", hazardList.IdentificationDate);
this.txtWorkArea.Text = hazardList.WorkAreaName;
@@ -187,7 +187,7 @@ namespace FineUIPro.Web.HSSE.Hazard
///编制人
BLL.UserService.InitUserDropDownList(this.drpCompileMan, this.ProjectId, false);
///控制责任人
- BLL.UserService.InitFlowOperateControlUserDropDownList(this.drpControllingPerson, this.ProjectId, string.Empty, true);
+ BLL.UserService.InitFlowOperateControlUserDropDownList(this.drpControllingPerson, this.ProjectId, string.Empty, false);
BLL.RiskLevelService.InitRiskLevelDropDownList(this.drpHazardLevel, true);
BLL.RiskLevelService.InitRiskLevelDropDownListByRiskLevelName(this.nbG, true);
@@ -323,16 +323,20 @@ namespace FineUIPro.Web.HSSE.Hazard
{
string newWorkStages = string.Empty;
string workStages = Session["workStages"].ToString();
- List templates = workStages.Split('|').ToList();
+ List templates = workStages.Split(',').ToList();
foreach (var item in templates)
{
- Model.Technique_HazardList template = BLL.HazardListService.GetHazardListById(item.Split(',').ToList()[0]);
- Model.Base_RiskLevel riskLevel = BLL.RiskLevelService.GetRiskLevel(template.HazardLevel);
+ Model.Technique_HazardList template = BLL.HazardListService.GetHazardListById(item.Split('|').ToList()[1]);
+ Model.Base_RiskLevel riskLevel = null;
+ if (!string.IsNullOrEmpty(template.HazardLevel))
+ {
+ riskLevel = BLL.RiskLevelService.GetRiskLevelByHazardLevel(int.Parse(template.HazardLevel));
+ }
Model.HSSE_HazardTemplate hazardTemplate = new Model.HSSE_HazardTemplate
{
HazardId = template.HazardId,
HazardListTypeId = template.HazardListTypeId,
- WorkStage = item.Split(',').ToList()[1],
+ WorkStage = item.Split('|').ToList()[0],
HazardItems = template.HazardItems,
DefectsType = template.DefectsType,
MayLeadAccidents = template.MayLeadAccidents,
@@ -348,7 +352,7 @@ namespace FineUIPro.Web.HSSE.Hazard
hazardTemplate.HazardLevel = riskLevel.RiskLevelName;
}
hazardTemplates.Add(hazardTemplate);
- workStageIds.Add(item.Split(',').ToList()[1]);//把工作阶段放入集合里
+ workStageIds.Add(item.Split('|').ToList()[0]);//把工作阶段放入集合里
}
//获取工作阶段加载到文本中
@@ -615,9 +619,9 @@ namespace FineUIPro.Web.HSSE.Hazard
hazardList.WorkAreaName = this.txtWorkArea.Text.Trim();
hazardList.IdentificationDate = Funs.GetNewDateTime(this.txtIdentificationDate.Text.Trim());
- if (this.drpControllingPerson.SelectedValue != BLL.Const._Null)
+ if (this.drpControllingPerson.SelectedValueArray !=null && this.drpControllingPerson.SelectedValueArray.Count()>0)
{
- hazardList.ControllingPerson = this.drpControllingPerson.SelectedValue;
+ hazardList.ControllingPerson = string.Join(",", this.drpControllingPerson.SelectedValue);
}
if (!string.IsNullOrEmpty(HazardListId))
{
diff --git a/SGGL/FineUIPro.Web/HSSE/Hazard/HazardTemplate.aspx b/SGGL/FineUIPro.Web/HSSE/Hazard/HazardTemplate.aspx
index 53e2c8e4..a3430544 100644
--- a/SGGL/FineUIPro.Web/HSSE/Hazard/HazardTemplate.aspx
+++ b/SGGL/FineUIPro.Web/HSSE/Hazard/HazardTemplate.aspx
@@ -16,9 +16,11 @@
-
-
+
+
@@ -28,8 +30,8 @@
Layout="VBox">
@@ -57,6 +59,12 @@
+
+
+
+
+
@@ -159,6 +167,16 @@
function reloadGrid() {
__doPostBack(null, 'reloadGrid');
}
+
+
+ $(function () {
+ $('i').on('click',
+ function () {
+ debugger
+ __doPostBack(null, 'trHazardListType_NodeCheck');
+ }
+ )
+ });