This commit is contained in:
parent
12ecb5309e
commit
7f67a750c8
Binary file not shown.
|
@ -0,0 +1,2 @@
|
|||
Alter TABLE [dbo].[InApproveManager_EquipmentInItem]add
|
||||
[IsIn] [bit] NULL
|
|
@ -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);
|
||||
}
|
||||
/// <summary>
|
||||
/// 添加许可证类型
|
||||
/// </summary>
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -64,11 +64,13 @@
|
|||
<f:RenderField Width="100px" ColumnID="IdentificationDate" DataField="IdentificationDate"
|
||||
SortField="IdentificationDate" FieldType="Date" Renderer="Date" RendererArgument="yyyy-MM-dd"
|
||||
HeaderText="评估时间" HeaderTextAlign="Center" TextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="100px" ColumnID="ControllingPersonName" DataField="ControllingPersonName"
|
||||
SortField="ControllingPersonName" FieldType="String" HeaderText="风险责任人" TextAlign="Left"
|
||||
HeaderTextAlign="Center">
|
||||
</f:RenderField>
|
||||
</f:RenderField>
|
||||
<f:TemplateField Width="130px" HeaderText="风险责任人" HeaderTextAlign="Center" TextAlign="Left"
|
||||
SortField="ControllingPersonName">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="Label1" runat="server" Text='<%# BindControllingPerson(Eval("ControllingPerson")) %>' ToolTip='<%#BindControllingPerson(Eval("ControllingPerson")) %>'></asp:Label>
|
||||
</ItemTemplate>
|
||||
</f:TemplateField>
|
||||
<f:RenderField Width="90px" ColumnID="UserName" DataField="UserName" SortField="UserName"
|
||||
FieldType="String" HeaderText="评价人" TextAlign="Left" HeaderTextAlign="Center">
|
||||
</f:RenderField>
|
||||
|
|
|
@ -73,14 +73,13 @@ namespace FineUIPro.Web.HSSE.Hazard
|
|||
/// </summary>
|
||||
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<SqlParameter> listStr = new List<SqlParameter>();
|
||||
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
|
||||
}
|
||||
}
|
|
@ -7,11 +7,13 @@
|
|||
// </自动生成>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace FineUIPro.Web.HSSE.Hazard {
|
||||
|
||||
|
||||
public partial class HazardList {
|
||||
|
||||
namespace FineUIPro.Web.HSSE.Hazard
|
||||
{
|
||||
|
||||
|
||||
public partial class HazardList
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// form1 控件。
|
||||
/// </summary>
|
||||
|
@ -20,7 +22,7 @@ namespace FineUIPro.Web.HSSE.Hazard {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// PageManager1 控件。
|
||||
/// </summary>
|
||||
|
@ -29,7 +31,7 @@ namespace FineUIPro.Web.HSSE.Hazard {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.PageManager PageManager1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Panel1 控件。
|
||||
/// </summary>
|
||||
|
@ -38,7 +40,7 @@ namespace FineUIPro.Web.HSSE.Hazard {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Panel Panel1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Grid1 控件。
|
||||
/// </summary>
|
||||
|
@ -47,7 +49,7 @@ namespace FineUIPro.Web.HSSE.Hazard {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Grid Grid1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Toolbar2 控件。
|
||||
/// </summary>
|
||||
|
@ -56,7 +58,7 @@ namespace FineUIPro.Web.HSSE.Hazard {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Toolbar Toolbar2;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtHazardListCode 控件。
|
||||
/// </summary>
|
||||
|
@ -65,7 +67,7 @@ namespace FineUIPro.Web.HSSE.Hazard {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtHazardListCode;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarFill1 控件。
|
||||
/// </summary>
|
||||
|
@ -74,7 +76,7 @@ namespace FineUIPro.Web.HSSE.Hazard {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ToolbarFill ToolbarFill1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// btnNew 控件。
|
||||
/// </summary>
|
||||
|
@ -83,7 +85,7 @@ namespace FineUIPro.Web.HSSE.Hazard {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnNew;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// btnOut 控件。
|
||||
/// </summary>
|
||||
|
@ -92,7 +94,7 @@ namespace FineUIPro.Web.HSSE.Hazard {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnOut;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// btnHelp 控件。
|
||||
/// </summary>
|
||||
|
@ -101,7 +103,7 @@ namespace FineUIPro.Web.HSSE.Hazard {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnHelp;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// lblVersionNo 控件。
|
||||
/// </summary>
|
||||
|
@ -110,7 +112,7 @@ namespace FineUIPro.Web.HSSE.Hazard {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblVersionNo;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// lblWorkStage 控件。
|
||||
/// </summary>
|
||||
|
@ -119,7 +121,16 @@ namespace FineUIPro.Web.HSSE.Hazard {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblWorkStage;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Label1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label Label1;
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarSeparator1 控件。
|
||||
/// </summary>
|
||||
|
@ -128,7 +139,7 @@ namespace FineUIPro.Web.HSSE.Hazard {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarText1 控件。
|
||||
/// </summary>
|
||||
|
@ -137,7 +148,7 @@ namespace FineUIPro.Web.HSSE.Hazard {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ToolbarText ToolbarText1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// ddlPageSize 控件。
|
||||
/// </summary>
|
||||
|
@ -146,7 +157,7 @@ namespace FineUIPro.Web.HSSE.Hazard {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList ddlPageSize;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Window1 控件。
|
||||
/// </summary>
|
||||
|
@ -155,7 +166,7 @@ namespace FineUIPro.Web.HSSE.Hazard {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Window Window1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Menu1 控件。
|
||||
/// </summary>
|
||||
|
@ -164,7 +175,7 @@ namespace FineUIPro.Web.HSSE.Hazard {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Menu Menu1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// btnMenuAllOut 控件。
|
||||
/// </summary>
|
||||
|
@ -173,7 +184,7 @@ namespace FineUIPro.Web.HSSE.Hazard {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.MenuButton btnMenuAllOut;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// btnMenuImportantOut 控件。
|
||||
/// </summary>
|
||||
|
@ -182,7 +193,7 @@ namespace FineUIPro.Web.HSSE.Hazard {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.MenuButton btnMenuImportantOut;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// btnMenuModify 控件。
|
||||
/// </summary>
|
||||
|
@ -191,7 +202,7 @@ namespace FineUIPro.Web.HSSE.Hazard {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.MenuButton btnMenuModify;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// btnMenuDel 控件。
|
||||
/// </summary>
|
||||
|
@ -200,7 +211,7 @@ namespace FineUIPro.Web.HSSE.Hazard {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.MenuButton btnMenuDel;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// btnMenuAllPrint 控件。
|
||||
/// </summary>
|
||||
|
@ -209,7 +220,7 @@ namespace FineUIPro.Web.HSSE.Hazard {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.MenuButton btnMenuAllPrint;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// btnMenuImportantPrint 控件。
|
||||
/// </summary>
|
||||
|
|
|
@ -39,7 +39,7 @@
|
|||
<f:DatePicker runat="server" DateFormatString="yyyy-MM-dd" Label="评估日期" ID="txtIdentificationDate"
|
||||
ShowRedStar="true" Required="true" LabelAlign="Right">
|
||||
</f:DatePicker>
|
||||
<f:DropDownList ID="drpControllingPerson" runat="server" Label="风险责任人" ShowRedStar="true"
|
||||
<f:DropDownList ID="drpControllingPerson" runat="server" Label="风险责任人" ShowRedStar="true" AutoSelectFirstItem="false" EnableMultiSelect="true" EnableCheckBoxSelect="true"
|
||||
Required="true" LabelAlign="Right">
|
||||
</f:DropDownList>
|
||||
<f:DatePicker ID="txtCompileDate" runat="server" Label="编制日期" LabelAlign="Right"
|
||||
|
@ -198,7 +198,7 @@
|
|||
</Editor>
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="50px" ColumnID="C" DataField="HazardJudge_C" FieldType="String"
|
||||
HeaderText="E" HeaderTextAlign="Center" TextAlign="Left" EnableColumnEdit="true">
|
||||
HeaderText="C" HeaderTextAlign="Center" TextAlign="Left" EnableColumnEdit="true">
|
||||
<Editor>
|
||||
<f:DropDownList ID="drpHazardJudge_C" runat="server" Label="">
|
||||
<f:ListItem Value="0" Text="-请选择-" />
|
||||
|
|
|
@ -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<string> templates = workStages.Split('|').ToList();
|
||||
List<string> 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))
|
||||
{
|
||||
|
|
|
@ -16,9 +16,11 @@
|
|||
<f:Panel runat="server" ID="panelLeftRegion" RegionPosition="Left" RegionSplit="true"
|
||||
EnableCollapse="true" Width="250" Title="危险源清单" TitleToolTip="危险源清单" ShowBorder="true"
|
||||
ShowHeader="false" AutoScroll="true" BodyPadding="5px" IconFont="ArrowCircleLeft">
|
||||
<Items>
|
||||
<f:Tree ID="trHazardListType" Width="240px" EnableCollapse="true" ShowHeader="false"
|
||||
Title="危险源清单" OnNodeCommand="trHazardListType_NodeCommand" AutoLeafIdentification="true"
|
||||
<Items>
|
||||
|
||||
<f:Tree ID="trHazardListType" Width="240px" EnableCollapse="true" ShowHeader="false" CascadeCheck="true" OnNodeCheck="trHazardListType_NodeCheck"
|
||||
Title="危险源清单" OnNodeCommand="trHazardListType_NodeCommand" AutoLeafIdentification="true" EnableMultiSelect="true" EnableCheckBox="true"
|
||||
|
||||
runat="server" EnableTextSelection="True">
|
||||
</f:Tree>
|
||||
</Items>
|
||||
|
@ -28,8 +30,8 @@
|
|||
Layout="VBox">
|
||||
<Items>
|
||||
<f:Grid ID="Grid1" Width="870px" ShowBorder="true" ShowHeader="false" EnableCollapse="true"
|
||||
runat="server" BoxFlex="1" DataKeyNames="HazardId" DataIDField="HazardId" AllowSorting="true" SortField="HazardCode" SortDirection="ASC"
|
||||
OnRowCommand="Grid1_RowCommand" OnSort="Grid1_Sort" AllowPaging="true" IsDatabasePaging="true"
|
||||
runat="server" BoxFlex="1" DataKeyNames="id" DataIDField="id" AllowSorting="true" SortField="wid,HazardCode" SortDirection="ASC"
|
||||
OnRowCommand="Grid1_RowCommand" OnSort="Grid1_Sort" AllowPaging="true" IsDatabasePaging="true"
|
||||
PageSize="10" EnableColumnLines="true" OnPageIndexChange="Grid1_PageIndexChange"
|
||||
EnableRowDoubleClickEvent="true" OnRowDoubleClick="Grid1_RowDoubleClick" EnableTextSelection="True">
|
||||
<Toolbars>
|
||||
|
@ -57,6 +59,12 @@
|
|||
<Columns>
|
||||
<f:CheckBoxField ColumnID="ckbIsSelected" Width="60px" RenderAsStaticField="false"
|
||||
AutoPostBack="true" CommandName="IsSelected" HeaderText="选择" HeaderTextAlign="Center" />
|
||||
<f:TemplateField Width="130px" HeaderText="代码" HeaderTextAlign="Center" TextAlign="Left"
|
||||
SortField="HazardCode">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="Label1" runat="server" Text='<%# BindWorkStages(Eval("wid")) %>' ToolTip='<%#BindWorkStages(Eval("wid")) %>'></asp:Label>
|
||||
</ItemTemplate>
|
||||
</f:TemplateField>
|
||||
<f:TemplateField Width="130px" HeaderText="代码" HeaderTextAlign="Center" TextAlign="Left"
|
||||
SortField="HazardCode">
|
||||
<ItemTemplate>
|
||||
|
@ -159,6 +167,16 @@
|
|||
function reloadGrid() {
|
||||
__doPostBack(null, 'reloadGrid');
|
||||
}
|
||||
|
||||
|
||||
$(function () {
|
||||
$('i').on('click',
|
||||
function () {
|
||||
debugger
|
||||
__doPostBack(null, 'trHazardListType_NodeCheck');
|
||||
}
|
||||
)
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
using BLL;
|
||||
using Aspose.Words.Lists;
|
||||
using BLL;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
|
@ -43,7 +44,8 @@ namespace FineUIPro.Web.HSSE.Hazard
|
|||
/// <summary>
|
||||
/// 定义集合
|
||||
/// </summary>
|
||||
private static List<string> list = new List<string>();
|
||||
private static HashSet<string> list = new HashSet<string>();
|
||||
private static HashSet<string> listNoSelected = new HashSet<string>();
|
||||
|
||||
#endregion
|
||||
|
||||
|
@ -58,13 +60,14 @@ namespace FineUIPro.Web.HSSE.Hazard
|
|||
if (!IsPostBack)
|
||||
{
|
||||
Funs.DropDownPageSize(this.ddlPageSize);
|
||||
list = new List<string>();
|
||||
WorkStageService.InitWorkPostDropDownList(this.drpWorkStages, true);
|
||||
list = new HashSet<string>();
|
||||
listNoSelected= new HashSet<string>();
|
||||
WorkStageService.InitWorkPostDropDownList(this.drpWorkStages, false);
|
||||
this.HazardListId = Request.Params["HazardListId"];
|
||||
this.WorkStageIds = Request.Params["WorkStageIds"];
|
||||
if (!string.IsNullOrEmpty(this.WorkStageIds))
|
||||
{
|
||||
this.drpWorkStages.SelectedValueArray = this.WorkStageIds.Split(',');
|
||||
this.drpWorkStages.SelectedValueArray = this.WorkStageIds.Split(',');
|
||||
}
|
||||
hazardSelectedItems = BLL.Hazard_HazardSelectedItemService.GetHazardSelectedItemsByHazardListId(this.HazardListId);
|
||||
foreach (var item in hazardSelectedItems)
|
||||
|
@ -136,6 +139,7 @@ namespace FineUIPro.Web.HSSE.Hazard
|
|||
{
|
||||
Text = "危险源清单",
|
||||
NodeID = "0",
|
||||
EnableCheckEvent = true,
|
||||
Expanded = true
|
||||
};
|
||||
this.trHazardListType.Nodes.Add(rootNode);
|
||||
|
@ -147,6 +151,7 @@ namespace FineUIPro.Web.HSSE.Hazard
|
|||
{
|
||||
Text = works.FirstOrDefault(x => x.WorkStageId == item).WorkStageName,
|
||||
NodeID = item,
|
||||
EnableCheckEvent = true,
|
||||
CommandArgument = item
|
||||
};
|
||||
rootNode.Nodes.Add(newNode);
|
||||
|
@ -155,7 +160,7 @@ namespace FineUIPro.Web.HSSE.Hazard
|
|||
}
|
||||
|
||||
private void BoundTree(TreeNode node, string supHazardListTypeId)
|
||||
{
|
||||
{
|
||||
var dt = GetNewHazardListType(node, supHazardListTypeId);
|
||||
if (dt.Count() > 0)
|
||||
{
|
||||
|
@ -168,6 +173,7 @@ namespace FineUIPro.Web.HSSE.Hazard
|
|||
ToolTip = dr.HazardListTypeName,
|
||||
NodeID = node.NodeID + "#" + dr.HazardListTypeId,
|
||||
CommandArgument = node.CommandArgument,
|
||||
EnableCheckEvent = true,
|
||||
EnableClickEvent = true
|
||||
};
|
||||
node.Nodes.Add(tn);
|
||||
|
@ -249,46 +255,84 @@ namespace FineUIPro.Web.HSSE.Hazard
|
|||
/// </summary>
|
||||
private void BindGrid()
|
||||
{
|
||||
string nodeId = this.trHazardListType.SelectedNode.NodeID;
|
||||
if (!string.IsNullOrEmpty(nodeId) && nodeId.Contains("#"))
|
||||
string[] nodeIds = this.trHazardListType.GetCheckedNodeIDs();
|
||||
Dictionary<string, List<string>> ids = new Dictionary<string, List<string>>();
|
||||
foreach (var nodeId in nodeIds)
|
||||
{
|
||||
nodeId = nodeId.Substring(nodeId.LastIndexOf('#') + 1);
|
||||
}
|
||||
string strSql = @"SELECT H.HazardId,T.HazardListTypeId,T.HazardListTypeCode,T.HazardListTypeName,H.HazardCode,H.HazardItems,H.DefectsType,"
|
||||
+ @" H.MayLeadAccidents,H.HelperMethod,H.HazardJudge_L,H.HazardJudge_E,H.HazardJudge_C,H.HazardJudge_D,RiskLevel.RiskLevelName AS HazardLevel,"
|
||||
+ @" H.ControlMeasures,H.CompileMan,H.CompileDate,H.AuditMan,H.AuditDate,H.IsPass,U.UserName AS CompileManName,UR.UserName AS AuditManName"
|
||||
+ @" FROM Technique_HazardList AS H"
|
||||
+ @" LEFT JOIN Technique_HazardListType AS T ON T.HazardListTypeId = H.HazardListTypeId"
|
||||
+ @" LEFT JOIN Sys_User AS U ON U.UserId = H.CompileMan"
|
||||
+ @" LEFT JOIN Sys_User AS UR ON UR.UserId = H.AuditMan"
|
||||
+ @" LEFT JOIN Base_RiskLevel AS RiskLevel ON RiskLevel.RiskLevelId = H.HazardLevel "
|
||||
+ @" WHERE T.HazardListTypeId = @HazardListTypeId ";
|
||||
List<SqlParameter> listStr = new List<SqlParameter>
|
||||
{
|
||||
new SqlParameter("@HazardListTypeId", nodeId),
|
||||
};
|
||||
|
||||
SqlParameter[] parameter = listStr.ToArray();
|
||||
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
|
||||
|
||||
Grid1.RecordCount = tb.Rows.Count;
|
||||
var table = this.GetPagedDataTable(Grid1, tb);
|
||||
|
||||
Grid1.DataSource = table;
|
||||
Grid1.DataBind();
|
||||
if (list.Count() > 0)
|
||||
{
|
||||
for (int i = 0; i < Grid1.Rows.Count; i++)
|
||||
if (!string.IsNullOrEmpty(nodeId) && nodeId.Contains("#"))
|
||||
{
|
||||
string id = Grid1.DataKeys[i][0].ToString();
|
||||
if (list.Contains(id))
|
||||
string wid = nodeId.Substring(0, nodeId.IndexOf('#'));
|
||||
|
||||
string nid = nodeId.Substring(nodeId.LastIndexOf('#') + 1);
|
||||
if (ids.ContainsKey(wid))
|
||||
{
|
||||
//CheckBoxField checkField = (CheckBoxField)Grid1.FindColumn("ckbIsSelected");
|
||||
//checkField.SetCheckedState(i, true);
|
||||
Grid1.Rows[i].Values[0] = true;
|
||||
ids[wid].Add(nid);
|
||||
}
|
||||
else
|
||||
{
|
||||
ids.Add(wid, new List<string>());
|
||||
ids[wid].Add(nid);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (ids.Count > 0)
|
||||
{
|
||||
int ii = 0;
|
||||
string strSql = "";
|
||||
|
||||
foreach (string key in ids.Keys)
|
||||
{
|
||||
var idStr = string.Join("','", ids[key].ToArray());
|
||||
strSql += @"SELECT '"+ key + "|'+ H.HazardId id, '" + key + @"' wid, H.HazardId,T.HazardListTypeId,T.HazardListTypeCode,T.HazardListTypeName,H.HazardCode,H.HazardItems,H.DefectsType,"
|
||||
+ @" H.MayLeadAccidents,H.HelperMethod,H.HazardJudge_L,H.HazardJudge_E,H.HazardJudge_C,H.HazardJudge_D,RiskLevel.RiskLevelName AS HazardLevel,"
|
||||
+ @" H.ControlMeasures,H.CompileMan,H.CompileDate,H.AuditMan,H.AuditDate,H.IsPass,U.UserName AS CompileManName,UR.UserName AS AuditManName"
|
||||
+ @" FROM Technique_HazardList AS H"
|
||||
+ @" LEFT JOIN Technique_HazardListType AS T ON T.HazardListTypeId = H.HazardListTypeId"
|
||||
+ @" LEFT JOIN Sys_User AS U ON U.UserId = H.CompileMan"
|
||||
+ @" LEFT JOIN Sys_User AS UR ON UR.UserId = H.AuditMan"
|
||||
+ @" LEFT JOIN Base_RiskLevel AS RiskLevel ON RiskLevel.RiskLevel= H.HazardLevel "
|
||||
;
|
||||
strSql += @" WHERE T.HazardListTypeId in ('" + idStr + "') ";
|
||||
if (ii != (ids.Count - 1))
|
||||
{
|
||||
strSql += " union all ";
|
||||
}
|
||||
ii++;
|
||||
}
|
||||
DataTable tb = SQLHelper.GetDataTableRunText(strSql, null);
|
||||
Grid1.RecordCount = tb.Rows.Count;
|
||||
list.Clear();
|
||||
foreach (DataRow row in tb.Rows)
|
||||
{
|
||||
if (!listNoSelected.Contains(row["id"].ToString()))
|
||||
{
|
||||
list.Add(row["id"].ToString());
|
||||
}
|
||||
|
||||
}
|
||||
var table = this.GetPagedDataTable(Grid1, tb);
|
||||
Grid1.DataSource = table;
|
||||
Grid1.DataBind();
|
||||
if (list.Count() > 0)
|
||||
{
|
||||
for (int i = 0; i < Grid1.Rows.Count; i++)
|
||||
{
|
||||
string id = Grid1.DataKeys[i][0].ToString();
|
||||
if (list.Contains(id))
|
||||
{
|
||||
CheckBoxField checkField = (CheckBoxField)Grid1.FindColumn("ckbIsSelected");
|
||||
checkField.SetCheckedState(i, true);
|
||||
///Grid1.Rows[i].Values[0] = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
Grid1.RecordCount = 0;
|
||||
Grid1.DataSource = null;
|
||||
Grid1.DataBind();
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
@ -376,7 +420,7 @@ namespace FineUIPro.Web.HSSE.Hazard
|
|||
protected void Grid1_RowCommand(object sender, GridCommandEventArgs e)
|
||||
{
|
||||
GetHazardSelectedItem();
|
||||
string rowID = Grid1.DataKeys[e.RowIndex][0].ToString() + "," + this.trHazardListType.SelectedNode.CommandArgument;
|
||||
string rowID = Grid1.DataKeys[e.RowIndex][0].ToString();
|
||||
if (e.CommandName == "IsSelected")
|
||||
{
|
||||
CheckBoxField checkField = (CheckBoxField)Grid1.FindColumn("ckbIsSelected");
|
||||
|
@ -386,6 +430,11 @@ namespace FineUIPro.Web.HSSE.Hazard
|
|||
{
|
||||
list.Add(rowID);
|
||||
}
|
||||
if (listNoSelected.Contains(rowID))
|
||||
{
|
||||
listNoSelected.Remove(rowID);
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -393,6 +442,7 @@ namespace FineUIPro.Web.HSSE.Hazard
|
|||
{
|
||||
list.Remove(rowID);
|
||||
}
|
||||
listNoSelected.Add(rowID);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -465,7 +515,7 @@ namespace FineUIPro.Web.HSSE.Hazard
|
|||
foreach (int rowIndex in Grid1.SelectedRowIndexArray)
|
||||
{
|
||||
string rowID = Grid1.DataKeys[rowIndex][0].ToString();
|
||||
var getD= BLL.HazardListService.GetHazardListById(rowID);
|
||||
var getD = BLL.HazardListService.GetHazardListById(rowID);
|
||||
if (getD != null)
|
||||
{
|
||||
if (BLL.Hazard_HazardSelectedItemService.GetHazardSelectedItemByHazardId(rowID) != null)
|
||||
|
@ -475,7 +525,7 @@ namespace FineUIPro.Web.HSSE.Hazard
|
|||
}
|
||||
BLL.LogService.AddSys_Log(this.CurrUser, getD.HazardCode, getD.HazardId, BLL.Const.HazardListMenuId, BLL.Const.BtnDelete);
|
||||
BLL.HazardListService.DeleteHazardListById(rowID);
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
BindGrid();
|
||||
|
@ -510,14 +560,14 @@ namespace FineUIPro.Web.HSSE.Hazard
|
|||
return;
|
||||
}
|
||||
string ids = string.Empty;
|
||||
|
||||
|
||||
foreach (var item in list)
|
||||
{
|
||||
ids += item + "|";
|
||||
ids += item + ",";
|
||||
}
|
||||
if (!string.IsNullOrEmpty(ids))
|
||||
{
|
||||
ids = ids.Substring(0, ids.LastIndexOf("|"));
|
||||
ids = ids.Substring(0, ids.LastIndexOf(","));
|
||||
Session["workStages"] = ids;
|
||||
}
|
||||
PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference());
|
||||
|
@ -574,5 +624,27 @@ namespace FineUIPro.Web.HSSE.Hazard
|
|||
InitTreeMenu();
|
||||
}
|
||||
#endregion
|
||||
|
||||
protected void trHazardListType_NodeCheck(object sender, TreeCheckEventArgs e)
|
||||
{
|
||||
BindGrid();
|
||||
}
|
||||
|
||||
|
||||
|
||||
public string BindWorkStages(object wid)
|
||||
{
|
||||
string res = "";
|
||||
|
||||
if (wid != null)
|
||||
{
|
||||
var w = Funs.DB.Base_WorkStage.FirstOrDefault(x => x.WorkStageId == wid.ToString());
|
||||
if (w != null)
|
||||
{
|
||||
res = w.WorkStageName;
|
||||
}
|
||||
}
|
||||
return res;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -7,11 +7,13 @@
|
|||
// </自动生成>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace FineUIPro.Web.HSSE.Hazard {
|
||||
|
||||
|
||||
public partial class HazardTemplate {
|
||||
|
||||
namespace FineUIPro.Web.HSSE.Hazard
|
||||
{
|
||||
|
||||
|
||||
public partial class HazardTemplate
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// form1 控件。
|
||||
/// </summary>
|
||||
|
@ -20,7 +22,7 @@ namespace FineUIPro.Web.HSSE.Hazard {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// PageManager1 控件。
|
||||
/// </summary>
|
||||
|
@ -29,7 +31,7 @@ namespace FineUIPro.Web.HSSE.Hazard {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.PageManager PageManager1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Panel1 控件。
|
||||
/// </summary>
|
||||
|
@ -38,7 +40,7 @@ namespace FineUIPro.Web.HSSE.Hazard {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Panel Panel1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// panelLeftRegion 控件。
|
||||
/// </summary>
|
||||
|
@ -47,7 +49,7 @@ namespace FineUIPro.Web.HSSE.Hazard {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Panel panelLeftRegion;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// trHazardListType 控件。
|
||||
/// </summary>
|
||||
|
@ -56,7 +58,7 @@ namespace FineUIPro.Web.HSSE.Hazard {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Tree trHazardListType;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// panelCenterRegion 控件。
|
||||
/// </summary>
|
||||
|
@ -65,7 +67,7 @@ namespace FineUIPro.Web.HSSE.Hazard {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Panel panelCenterRegion;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Grid1 控件。
|
||||
/// </summary>
|
||||
|
@ -74,7 +76,7 @@ namespace FineUIPro.Web.HSSE.Hazard {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Grid Grid1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Toolbar3 控件。
|
||||
/// </summary>
|
||||
|
@ -83,7 +85,7 @@ namespace FineUIPro.Web.HSSE.Hazard {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Toolbar Toolbar3;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// drpWorkStages 控件。
|
||||
/// </summary>
|
||||
|
@ -92,7 +94,7 @@ namespace FineUIPro.Web.HSSE.Hazard {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpWorkStages;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// rblIsCompany 控件。
|
||||
/// </summary>
|
||||
|
@ -101,7 +103,7 @@ namespace FineUIPro.Web.HSSE.Hazard {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.RadioButtonList rblIsCompany;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarFill1 控件。
|
||||
/// </summary>
|
||||
|
@ -110,7 +112,7 @@ namespace FineUIPro.Web.HSSE.Hazard {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ToolbarFill ToolbarFill1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// btnNewDetail 控件。
|
||||
/// </summary>
|
||||
|
@ -119,7 +121,7 @@ namespace FineUIPro.Web.HSSE.Hazard {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnNewDetail;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// btnSave 控件。
|
||||
/// </summary>
|
||||
|
@ -128,7 +130,16 @@ namespace FineUIPro.Web.HSSE.Hazard {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnSave;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Label1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label Label1;
|
||||
|
||||
/// <summary>
|
||||
/// lblHazardCode 控件。
|
||||
/// </summary>
|
||||
|
@ -137,7 +148,7 @@ namespace FineUIPro.Web.HSSE.Hazard {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblHazardCode;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// lblHazardListTypeCode 控件。
|
||||
/// </summary>
|
||||
|
@ -146,7 +157,7 @@ namespace FineUIPro.Web.HSSE.Hazard {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblHazardListTypeCode;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// lblHazardItems 控件。
|
||||
/// </summary>
|
||||
|
@ -155,7 +166,7 @@ namespace FineUIPro.Web.HSSE.Hazard {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblHazardItems;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// lblDefectsType 控件。
|
||||
/// </summary>
|
||||
|
@ -164,7 +175,7 @@ namespace FineUIPro.Web.HSSE.Hazard {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblDefectsType;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// lblMayLeadAccidents 控件。
|
||||
/// </summary>
|
||||
|
@ -173,7 +184,7 @@ namespace FineUIPro.Web.HSSE.Hazard {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblMayLeadAccidents;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// lblHelperMethod 控件。
|
||||
/// </summary>
|
||||
|
@ -182,7 +193,7 @@ namespace FineUIPro.Web.HSSE.Hazard {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblHelperMethod;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// lblControlMeasures 控件。
|
||||
/// </summary>
|
||||
|
@ -191,7 +202,7 @@ namespace FineUIPro.Web.HSSE.Hazard {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblControlMeasures;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarSeparator1 控件。
|
||||
/// </summary>
|
||||
|
@ -200,7 +211,7 @@ namespace FineUIPro.Web.HSSE.Hazard {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarText1 控件。
|
||||
/// </summary>
|
||||
|
@ -209,7 +220,7 @@ namespace FineUIPro.Web.HSSE.Hazard {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ToolbarText ToolbarText1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// ddlPageSize 控件。
|
||||
/// </summary>
|
||||
|
@ -218,7 +229,7 @@ namespace FineUIPro.Web.HSSE.Hazard {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList ddlPageSize;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Window2 控件。
|
||||
/// </summary>
|
||||
|
@ -227,7 +238,7 @@ namespace FineUIPro.Web.HSSE.Hazard {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Window Window2;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Menu1 控件。
|
||||
/// </summary>
|
||||
|
@ -236,7 +247,7 @@ namespace FineUIPro.Web.HSSE.Hazard {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Menu Menu1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// btnMenuEdit 控件。
|
||||
/// </summary>
|
||||
|
@ -245,7 +256,7 @@ namespace FineUIPro.Web.HSSE.Hazard {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.MenuButton btnMenuEdit;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// btnMenuDelete 控件。
|
||||
/// </summary>
|
||||
|
|
|
@ -51,7 +51,7 @@
|
|||
<f:Panel ID="Panel4" CssClass="blockpanel" runat="server" EnableCollapse="false" MarginTop="10px"
|
||||
BodyPadding="10px" ShowBorder="true" ShowHeader="false">
|
||||
<Items>
|
||||
<f:TabStrip ID="TabStrip1" CssClass="f-tabstrip-theme-simple" Height="700px" ShowBorder="true"
|
||||
<f:TabStrip ID="TabStrip1" CssClass="f-tabstrip-theme-simple" Height="700px" ShowBorder="true"
|
||||
TabPosition="Top" MarginBottom="5px" EnableTabCloseMenu="false" runat="server">
|
||||
<Tabs>
|
||||
<f:Tab ID="Tab2" Title="按类别" BodyPadding="5px" Layout="Fit" IconFont="Bookmark" runat="server"
|
||||
|
@ -66,9 +66,23 @@
|
|||
|
||||
</div>
|
||||
</f:ContentPanel>
|
||||
<f:ContentPanel ShowHeader="false" runat="server" ID="ContentPanel1" Margin="0 0 0 0 " BoxFlex="1" >
|
||||
|
||||
</Items>
|
||||
</f:Panel>
|
||||
</Items>
|
||||
|
||||
</f:Tab>
|
||||
|
||||
<f:Tab ID="Tab1" Title="按类别饼图" BodyPadding="5px" Layout="Fit" IconFont="Bookmark" runat="server"
|
||||
TitleToolTip="按类别统计">
|
||||
<Items>
|
||||
<f:Panel ID="Panel1" IsFluid="true" runat="server" Height="350px" ShowBorder="true" EnableCollapse="false"
|
||||
Layout="HBox" ShowHeader="false" >
|
||||
<Items>
|
||||
|
||||
<f:ContentPanel ShowHeader="false" runat="server" ID="ContentPanel3" Margin="0 0 0 0 " BoxFlex="1" >
|
||||
|
||||
<div id="divPie" style="height: 700px;">
|
||||
<div id="divPie" style="height: 700px;width:1000px;" >
|
||||
|
||||
</div>
|
||||
|
||||
|
@ -76,6 +90,7 @@
|
|||
</Items>
|
||||
</f:Panel>
|
||||
</Items>
|
||||
|
||||
</f:Tab>
|
||||
</Tabs>
|
||||
</f:TabStrip>
|
||||
|
@ -84,7 +99,7 @@
|
|||
</form>
|
||||
</body>
|
||||
<script language="javascript">
|
||||
|
||||
|
||||
function rendChart(legend, xAxis, series) {
|
||||
option = {
|
||||
tooltip: {
|
||||
|
@ -141,7 +156,7 @@
|
|||
|
||||
|
||||
function pie( title, xArr, data) {
|
||||
debugger
|
||||
|
||||
// 基于准备好的dom,初始化echarts实例
|
||||
var myChartpie = echarts.init(document.getElementById("divPie"))
|
||||
// 指定图表的配置项和数据
|
||||
|
@ -205,7 +220,8 @@
|
|||
}
|
||||
|
||||
$(document).ready(function () {
|
||||
setTimeout(function () {
|
||||
setTimeout(function () {
|
||||
$("#divPie").width ( $("#divAccidentTime").width());
|
||||
pie('', <%=xPieAxis%>, <%=seriesPie%>);
|
||||
rendChart(<%=legend%>,<%=xAxis%>,<%=series%>);
|
||||
|
||||
|
|
|
@ -11,160 +11,178 @@ namespace FineUIPro.Web.HSSE.HiddenInspection
|
|||
{
|
||||
|
||||
|
||||
public partial class RiskAnalysisChart
|
||||
{
|
||||
public partial class RiskAnalysisChart
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// form1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
|
||||
/// <summary>
|
||||
/// form1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
|
||||
|
||||
/// <summary>
|
||||
/// PageManager1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.PageManager PageManager1;
|
||||
/// <summary>
|
||||
/// PageManager1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.PageManager PageManager1;
|
||||
|
||||
/// <summary>
|
||||
/// Panel3 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Panel Panel3;
|
||||
/// <summary>
|
||||
/// Panel3 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Panel Panel3;
|
||||
|
||||
/// <summary>
|
||||
/// Form2 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Form Form2;
|
||||
/// <summary>
|
||||
/// Form2 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Form Form2;
|
||||
|
||||
/// <summary>
|
||||
/// drpUnit 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpUnit;
|
||||
/// <summary>
|
||||
/// drpUnit 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpUnit;
|
||||
|
||||
/// <summary>
|
||||
/// drpRegisterTypes 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpRegisterTypes;
|
||||
/// <summary>
|
||||
/// drpRegisterTypes 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpRegisterTypes;
|
||||
|
||||
/// <summary>
|
||||
/// txtStartRectificationTime 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DatePicker txtStartRectificationTime;
|
||||
/// <summary>
|
||||
/// txtStartRectificationTime 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DatePicker txtStartRectificationTime;
|
||||
|
||||
/// <summary>
|
||||
/// Label3 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label Label3;
|
||||
/// <summary>
|
||||
/// Label3 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label Label3;
|
||||
|
||||
/// <summary>
|
||||
/// txtEndRectificationTime 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DatePicker txtEndRectificationTime;
|
||||
/// <summary>
|
||||
/// txtEndRectificationTime 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DatePicker txtEndRectificationTime;
|
||||
|
||||
/// <summary>
|
||||
/// rblState 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.RadioButtonList rblState;
|
||||
/// <summary>
|
||||
/// rblState 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.RadioButtonList rblState;
|
||||
|
||||
/// <summary>
|
||||
/// BtnAnalyse 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button BtnAnalyse;
|
||||
/// <summary>
|
||||
/// BtnAnalyse 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button BtnAnalyse;
|
||||
|
||||
/// <summary>
|
||||
/// Panel4 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Panel Panel4;
|
||||
/// <summary>
|
||||
/// Panel4 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Panel Panel4;
|
||||
|
||||
/// <summary>
|
||||
/// TabStrip1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TabStrip TabStrip1;
|
||||
/// <summary>
|
||||
/// TabStrip1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TabStrip TabStrip1;
|
||||
|
||||
/// <summary>
|
||||
/// Tab2 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Tab Tab2;
|
||||
/// <summary>
|
||||
/// Tab2 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Tab Tab2;
|
||||
|
||||
/// <summary>
|
||||
/// Panel2 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Panel Panel2;
|
||||
/// <summary>
|
||||
/// Panel2 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Panel Panel2;
|
||||
|
||||
/// <summary>
|
||||
/// cpAccidentTime 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ContentPanel cpAccidentTime;
|
||||
/// <summary>
|
||||
/// cpAccidentTime 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ContentPanel cpAccidentTime;
|
||||
|
||||
/// <summary>
|
||||
/// ContentPanel1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ContentPanel ContentPanel1;
|
||||
}
|
||||
/// <summary>
|
||||
/// Tab1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Tab Tab1;
|
||||
|
||||
/// <summary>
|
||||
/// Panel1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Panel Panel1;
|
||||
|
||||
/// <summary>
|
||||
/// ContentPanel3 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ContentPanel ContentPanel3;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -93,9 +93,12 @@
|
|||
SortField="CommercialInsuranceNum" FieldType="String" HeaderText="商业险保单号" HeaderTextAlign="Center"
|
||||
TextAlign="Left">
|
||||
</f:RenderField>
|
||||
<f:CheckBoxField Width="60px" SortField="IsUsed" RenderAsStaticField="true" DataField="IsUsed"
|
||||
<f:CheckBoxField Width="60px" SortField="IsUsed" RenderAsStaticField="true" DataField="IsUsed"
|
||||
HeaderText="在用" HeaderTextAlign="Center" TextAlign="Center">
|
||||
</f:CheckBoxField>
|
||||
<f:CheckBoxField Width="60px" SortField="IsIn" RenderAsStaticField="true" DataField="IsIn"
|
||||
HeaderText="在场" HeaderTextAlign="Center" TextAlign="Center">
|
||||
</f:CheckBoxField>
|
||||
<%-- <f:WindowField TextAlign="Left" Width="160px" WindowID="WindowAtt" HeaderText="附件"
|
||||
Text="详细" ToolTip="附件上传查看" DataIFrameUrlFields="EquipmentInId" DataIFrameUrlFormatString="~/AttachFile/webuploader.aspx?toKeyId={0}&path=FileUpload/EquipmentInAttachUrl&menuId=3E167389-4775-4AC3-9D31-2E570682EDA1"
|
||||
IFrameUrl="~/alert.aspx" ExpandUnusedSpace="True" HeaderTextAlign="Center" />--%>
|
||||
|
@ -130,9 +133,17 @@
|
|||
<f:MenuButton ID="btnMenuIsUsed" OnClick="btnMenuIsUsed_Click" Icon="ArrowUp" EnablePostBack="true"
|
||||
Hidden="true" runat="server" Text="在用">
|
||||
</f:MenuButton>
|
||||
|
||||
<f:MenuButton ID="btnMenuIsNotUsed" OnClick="btnMenuIsNotUsed_Click" Icon="ArrowDown" EnablePostBack="true"
|
||||
Hidden="true" runat="server" Text="不在用">
|
||||
</f:MenuButton>
|
||||
|
||||
<f:MenuButton ID="btnMenuIsIn" OnClick="btnMenuIsIn_Click" Icon="ArrowUp" EnablePostBack="true"
|
||||
Hidden="true" runat="server" Text="在场">
|
||||
</f:MenuButton>
|
||||
<f:MenuButton ID="btnMenuIsNotIn" OnClick="btnMenuIsNotIn_Click" Icon="ArrowDown" EnablePostBack="true"
|
||||
Hidden="true" runat="server" Text="出场">
|
||||
</f:MenuButton>
|
||||
<f:MenuButton ID="btnMenuDelete" OnClick="btnMenuDelete_Click" EnablePostBack="true"
|
||||
Hidden="true" Icon="Delete" ConfirmText="删除选中行?" ConfirmTarget="Parent" runat="server"
|
||||
Text="删除">
|
||||
|
|
|
@ -63,7 +63,7 @@ namespace FineUIPro.Web.HSSE.InApproveManager
|
|||
{
|
||||
string strSql = "SELECT EquipmentIn.EquipmentInId,EquipmentInItem.EquipmentInItemId,"
|
||||
+ @"EquipmentIn.ProjectId,"
|
||||
+ @"EquipmentInItem.SpecialEquipmentId,EquipmentInItem.SizeModel,EquipmentInItem.OwnerCheck,EquipmentInItem.CertificateNum,EquipmentInItem.SafetyInspectionNum,EquipmentInItem.DrivingLicenseNum,EquipmentInItem.RegistrationNum,EquipmentInItem.OperationQualificationNum,EquipmentInItem.InsuranceNum,EquipmentInItem.CommercialInsuranceNum,EquipmentInItem.IsUsed,"
|
||||
+ @"EquipmentInItem.SpecialEquipmentId,EquipmentInItem.SizeModel,EquipmentInItem.OwnerCheck,EquipmentInItem.CertificateNum,EquipmentInItem.SafetyInspectionNum,EquipmentInItem.DrivingLicenseNum,EquipmentInItem.RegistrationNum,EquipmentInItem.OperationQualificationNum,EquipmentInItem.InsuranceNum,EquipmentInItem.CommercialInsuranceNum,EquipmentInItem.IsUsed,EquipmentInItem.IsIn,"
|
||||
+ @"CodeRecords.Code AS EquipmentInCode,"
|
||||
+ @"EquipmentIn.UnitId,"
|
||||
+ @"EquipmentIn.CarNumber,"
|
||||
|
@ -228,7 +228,21 @@ namespace FineUIPro.Web.HSSE.InApproveManager
|
|||
BindGrid();
|
||||
ShowNotify("设备状态修改成功!", MessageBoxIcon.Success);
|
||||
}
|
||||
protected void btnMenuIsIn_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (Grid1.SelectedRowIndexArray.Length == 0)
|
||||
{
|
||||
Alert.ShowInTop("请至少选择一条记录!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
string id = Grid1.SelectedRowID;
|
||||
|
||||
var equipmentInItem = BLL.EquipmentInItemService.GetEquipmentInItemById(id);
|
||||
equipmentInItem.IsIn = true;
|
||||
BLL.EquipmentInItemService.UpdateEquipmentInItem(equipmentInItem);
|
||||
BindGrid();
|
||||
ShowNotify("设备状态修改成功!", MessageBoxIcon.Success);
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
|
@ -249,6 +263,21 @@ namespace FineUIPro.Web.HSSE.InApproveManager
|
|||
BindGrid();
|
||||
ShowNotify("设备状态修改成功!", MessageBoxIcon.Success);
|
||||
}
|
||||
protected void btnMenuIsNotIn_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (Grid1.SelectedRowIndexArray.Length == 0)
|
||||
{
|
||||
Alert.ShowInTop("请至少选择一条记录!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
string id = Grid1.SelectedRowID;
|
||||
|
||||
var equipmentInItem = BLL.EquipmentInItemService.GetEquipmentInItemById(id);
|
||||
equipmentInItem.IsIn = false;
|
||||
BLL.EquipmentInItemService.UpdateEquipmentInItem(equipmentInItem);
|
||||
BindGrid();
|
||||
ShowNotify("设备状态修改成功!", MessageBoxIcon.Success);
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 删除
|
||||
|
@ -308,7 +337,9 @@ namespace FineUIPro.Web.HSSE.InApproveManager
|
|||
{
|
||||
this.btnMenuEdit.Hidden = false;
|
||||
this.btnMenuIsUsed.Hidden = false;
|
||||
this.btnMenuIsNotUsed.Hidden = false;
|
||||
this.btnMenuIsNotUsed.Hidden = false;
|
||||
this.btnMenuIsIn.Hidden = false;
|
||||
this.btnMenuIsNotIn.Hidden = false;
|
||||
}
|
||||
if (buttonList.Contains(BLL.Const.BtnDelete))
|
||||
{
|
||||
|
|
|
@ -7,11 +7,13 @@
|
|||
// </自动生成>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace FineUIPro.Web.HSSE.InApproveManager {
|
||||
|
||||
|
||||
public partial class EquipmentIn {
|
||||
|
||||
namespace FineUIPro.Web.HSSE.InApproveManager
|
||||
{
|
||||
|
||||
|
||||
public partial class EquipmentIn
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// form1 控件。
|
||||
/// </summary>
|
||||
|
@ -20,7 +22,7 @@ namespace FineUIPro.Web.HSSE.InApproveManager {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// PageManager1 控件。
|
||||
/// </summary>
|
||||
|
@ -29,7 +31,7 @@ namespace FineUIPro.Web.HSSE.InApproveManager {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.PageManager PageManager1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Panel1 控件。
|
||||
/// </summary>
|
||||
|
@ -38,7 +40,7 @@ namespace FineUIPro.Web.HSSE.InApproveManager {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Panel Panel1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Grid1 控件。
|
||||
/// </summary>
|
||||
|
@ -47,7 +49,7 @@ namespace FineUIPro.Web.HSSE.InApproveManager {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Grid Grid1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Toolbar2 控件。
|
||||
/// </summary>
|
||||
|
@ -56,7 +58,7 @@ namespace FineUIPro.Web.HSSE.InApproveManager {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Toolbar Toolbar2;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarFill1 控件。
|
||||
/// </summary>
|
||||
|
@ -65,7 +67,7 @@ namespace FineUIPro.Web.HSSE.InApproveManager {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ToolbarFill ToolbarFill1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// btnNew 控件。
|
||||
/// </summary>
|
||||
|
@ -74,7 +76,7 @@ namespace FineUIPro.Web.HSSE.InApproveManager {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnNew;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// btnOut 控件。
|
||||
/// </summary>
|
||||
|
@ -83,7 +85,7 @@ namespace FineUIPro.Web.HSSE.InApproveManager {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnOut;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// labNumber 控件。
|
||||
/// </summary>
|
||||
|
@ -92,7 +94,7 @@ namespace FineUIPro.Web.HSSE.InApproveManager {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label labNumber;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// lblSpecialEquipmentId 控件。
|
||||
/// </summary>
|
||||
|
@ -101,7 +103,7 @@ namespace FineUIPro.Web.HSSE.InApproveManager {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblSpecialEquipmentId;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarSeparator1 控件。
|
||||
/// </summary>
|
||||
|
@ -110,7 +112,7 @@ namespace FineUIPro.Web.HSSE.InApproveManager {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarText1 控件。
|
||||
/// </summary>
|
||||
|
@ -119,7 +121,7 @@ namespace FineUIPro.Web.HSSE.InApproveManager {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ToolbarText ToolbarText1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// ddlPageSize 控件。
|
||||
/// </summary>
|
||||
|
@ -128,7 +130,7 @@ namespace FineUIPro.Web.HSSE.InApproveManager {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList ddlPageSize;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Window1 控件。
|
||||
/// </summary>
|
||||
|
@ -137,7 +139,7 @@ namespace FineUIPro.Web.HSSE.InApproveManager {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Window Window1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// WindowAtt 控件。
|
||||
/// </summary>
|
||||
|
@ -146,7 +148,7 @@ namespace FineUIPro.Web.HSSE.InApproveManager {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Window WindowAtt;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Menu1 控件。
|
||||
/// </summary>
|
||||
|
@ -155,7 +157,7 @@ namespace FineUIPro.Web.HSSE.InApproveManager {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Menu Menu1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// btnMenuEdit 控件。
|
||||
/// </summary>
|
||||
|
@ -164,7 +166,7 @@ namespace FineUIPro.Web.HSSE.InApproveManager {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.MenuButton btnMenuEdit;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// btnMenuIsUsed 控件。
|
||||
/// </summary>
|
||||
|
@ -173,7 +175,7 @@ namespace FineUIPro.Web.HSSE.InApproveManager {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.MenuButton btnMenuIsUsed;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// btnMenuIsNotUsed 控件。
|
||||
/// </summary>
|
||||
|
@ -182,7 +184,25 @@ namespace FineUIPro.Web.HSSE.InApproveManager {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.MenuButton btnMenuIsNotUsed;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// btnMenuIsIn 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.MenuButton btnMenuIsIn;
|
||||
|
||||
/// <summary>
|
||||
/// btnMenuIsNotIn 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.MenuButton btnMenuIsNotIn;
|
||||
|
||||
/// <summary>
|
||||
/// btnMenuDelete 控件。
|
||||
/// </summary>
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
<Rows>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox ID="txtEquipmentInCode" runat="server" Label="编号" LabelAlign="Right" LabelWidth="70px"
|
||||
<f:TextBox ID="txtEquipmentInCode" runat="server" Label="编号" LabelAlign="Right" LabelWidth="110px"
|
||||
MaxLength="50" Readonly="true">
|
||||
</f:TextBox>
|
||||
<f:DropDownList ID="drpUnitId" runat="server" Label="单位" Required="true" ShowRedStar="true" LabelWidth="70px"
|
||||
|
@ -39,11 +39,15 @@
|
|||
<Items>
|
||||
<f:TextArea ID="txtContentDef" runat="server" Label="施工内容简述" LabelWidth="110px"
|
||||
LabelAlign="Right" MaxLength="500"
|
||||
Height="50px">
|
||||
Height="100px">
|
||||
</f:TextArea>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextArea ID="txtOtherDef" runat="server" Label="其它情况简述" LabelWidth="110px"
|
||||
LabelAlign="Right" MaxLength="500"
|
||||
Height="50px">
|
||||
Height="100px">
|
||||
</f:TextArea>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
|
@ -116,8 +120,11 @@
|
|||
TextAlign="Left">
|
||||
</f:RenderField>
|
||||
<f:CheckBoxField Width="60px" SortField="IsUsed" RenderAsStaticField="true" DataField="IsUsed"
|
||||
HeaderText="在用" HeaderTextAlign="Center" TextAlign="Center">
|
||||
</f:CheckBoxField>
|
||||
HeaderText="在用" HeaderTextAlign="Center" TextAlign="Center">
|
||||
</f:CheckBoxField>
|
||||
<f:CheckBoxField Width="60px" SortField="IsIn" RenderAsStaticField="true" DataField="IsIn"
|
||||
HeaderText="在场" HeaderTextAlign="Center" TextAlign="Center">
|
||||
</f:CheckBoxField>
|
||||
</Columns>
|
||||
<Listeners>
|
||||
<f:Listener Event="beforerowcontextmenu" Handler="onRowContextMenu" />
|
||||
|
@ -157,7 +164,7 @@
|
|||
</f:Form>
|
||||
<f:Window ID="Window1" Title="主要设备基本情况" Hidden="true" EnableIFrame="true" EnableMaximize="true"
|
||||
Target="Parent" EnableResize="false" runat="server" OnClose="Window1_Close" IsModal="true"
|
||||
Width="700px" Height="540px">
|
||||
Width="700px" Height="600px">
|
||||
</f:Window>
|
||||
<f:Window ID="WindowAtt" Title="附件" Hidden="true" EnableIFrame="true" EnableMaximize="true"
|
||||
Target="Parent" EnableResize="false" runat="server" IsModal="true" Width="700px"
|
||||
|
|
|
@ -87,6 +87,11 @@
|
|||
<f:CheckBox runat="server" ID="cbIsUsed" LabelWidth="150px" LabelAlign="Right" Label="在用"></f:CheckBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:CheckBox runat="server" ID="cbIsIn" LabelWidth="150px" LabelAlign="Right" Label="在场"></f:CheckBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
</Rows>
|
||||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar1" Position="Bottom" ToolbarAlign="Right" runat="server">
|
||||
|
|
|
@ -51,6 +51,7 @@ namespace FineUIPro.Web.HSSE.InApproveManager
|
|||
///机具设备下拉框
|
||||
BLL.SpecialEquipmentService.InitSpecialEquipmentDropDownList(this.drpSpecialEquipmentId, true, true);
|
||||
this.cbIsUsed.Checked = true;
|
||||
this.cbIsIn.Checked = true;
|
||||
this.EquipmentInId = Request.Params["EquipmentInId"];
|
||||
this.EquipmentInItemId = Request.Params["EquipmentInItemId"];
|
||||
if (!string.IsNullOrEmpty(this.EquipmentInItemId))
|
||||
|
@ -76,6 +77,10 @@ namespace FineUIPro.Web.HSSE.InApproveManager
|
|||
{
|
||||
this.cbIsUsed.Checked = false;
|
||||
}
|
||||
if (equipmentInItem.IsIn != true)
|
||||
{
|
||||
this.cbIsIn.Checked = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -113,6 +118,7 @@ namespace FineUIPro.Web.HSSE.InApproveManager
|
|||
equipmentInItem.InsuranceNum = this.txtInsuranceNum.Text.Trim();
|
||||
equipmentInItem.CommercialInsuranceNum = this.txtCommercialInsuranceNum.Text.Trim();
|
||||
equipmentInItem.IsUsed = Convert.ToBoolean(this.cbIsUsed.Checked);
|
||||
equipmentInItem.IsIn = Convert.ToBoolean(this.cbIsIn.Checked);
|
||||
if (!string.IsNullOrEmpty(this.EquipmentInItemId))
|
||||
{
|
||||
equipmentInItem.EquipmentInItemId = this.EquipmentInItemId;
|
||||
|
|
|
@ -7,11 +7,13 @@
|
|||
// </自动生成>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace FineUIPro.Web.HSSE.InApproveManager {
|
||||
|
||||
|
||||
public partial class EquipmentInItemEdit {
|
||||
|
||||
namespace FineUIPro.Web.HSSE.InApproveManager
|
||||
{
|
||||
|
||||
|
||||
public partial class EquipmentInItemEdit
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// form1 控件。
|
||||
/// </summary>
|
||||
|
@ -20,7 +22,7 @@ namespace FineUIPro.Web.HSSE.InApproveManager {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// PageManager1 控件。
|
||||
/// </summary>
|
||||
|
@ -29,7 +31,7 @@ namespace FineUIPro.Web.HSSE.InApproveManager {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.PageManager PageManager1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// SimpleForm1 控件。
|
||||
/// </summary>
|
||||
|
@ -38,7 +40,7 @@ namespace FineUIPro.Web.HSSE.InApproveManager {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Form SimpleForm1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// drpSpecialEquipmentId 控件。
|
||||
/// </summary>
|
||||
|
@ -47,7 +49,7 @@ namespace FineUIPro.Web.HSSE.InApproveManager {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpSpecialEquipmentId;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtSizeModel 控件。
|
||||
/// </summary>
|
||||
|
@ -56,7 +58,7 @@ namespace FineUIPro.Web.HSSE.InApproveManager {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtSizeModel;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtOwnerCheck 控件。
|
||||
/// </summary>
|
||||
|
@ -65,7 +67,7 @@ namespace FineUIPro.Web.HSSE.InApproveManager {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtOwnerCheck;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtCertificateNum 控件。
|
||||
/// </summary>
|
||||
|
@ -74,7 +76,7 @@ namespace FineUIPro.Web.HSSE.InApproveManager {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtCertificateNum;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtSafetyInspectionNum 控件。
|
||||
/// </summary>
|
||||
|
@ -83,7 +85,7 @@ namespace FineUIPro.Web.HSSE.InApproveManager {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtSafetyInspectionNum;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtDrivingLicenseNum 控件。
|
||||
/// </summary>
|
||||
|
@ -92,7 +94,7 @@ namespace FineUIPro.Web.HSSE.InApproveManager {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtDrivingLicenseNum;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtRegistrationNum 控件。
|
||||
/// </summary>
|
||||
|
@ -101,7 +103,7 @@ namespace FineUIPro.Web.HSSE.InApproveManager {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtRegistrationNum;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtOperationQualificationNum 控件。
|
||||
/// </summary>
|
||||
|
@ -110,7 +112,7 @@ namespace FineUIPro.Web.HSSE.InApproveManager {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtOperationQualificationNum;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtInsuranceNum 控件。
|
||||
/// </summary>
|
||||
|
@ -119,7 +121,7 @@ namespace FineUIPro.Web.HSSE.InApproveManager {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtInsuranceNum;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtCommercialInsuranceNum 控件。
|
||||
/// </summary>
|
||||
|
@ -128,7 +130,7 @@ namespace FineUIPro.Web.HSSE.InApproveManager {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtCommercialInsuranceNum;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// cbIsUsed 控件。
|
||||
/// </summary>
|
||||
|
@ -137,7 +139,16 @@ namespace FineUIPro.Web.HSSE.InApproveManager {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.CheckBox cbIsUsed;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// cbIsIn 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.CheckBox cbIsIn;
|
||||
|
||||
/// <summary>
|
||||
/// Toolbar1 控件。
|
||||
/// </summary>
|
||||
|
@ -146,7 +157,7 @@ namespace FineUIPro.Web.HSSE.InApproveManager {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Toolbar Toolbar1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarFill1 控件。
|
||||
/// </summary>
|
||||
|
@ -155,7 +166,7 @@ namespace FineUIPro.Web.HSSE.InApproveManager {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ToolbarFill ToolbarFill1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// btnSave 控件。
|
||||
/// </summary>
|
||||
|
@ -164,7 +175,7 @@ namespace FineUIPro.Web.HSSE.InApproveManager {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnSave;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// btnClose 控件。
|
||||
/// </summary>
|
||||
|
|
|
@ -257,7 +257,7 @@
|
|||
* 连接 服务器地址
|
||||
* 并绑定 websock 四个事件方法
|
||||
*/
|
||||
websock = new WebSocket('ws://sgglapi.chengda.com:1000');
|
||||
websock = new WebSocket('wss://wzgl.hfnbd.com:1000');
|
||||
// 接收服务器返回的数据
|
||||
websock.onmessage = this.websocketonmessage;
|
||||
// 连接建立时触发
|
||||
|
|
|
@ -36,21 +36,21 @@
|
|||
<Items>
|
||||
<f:DropDownList ID="ddlHelperMethod" runat="server" Label="辅助方法" LabelWidth="120px">
|
||||
</f:DropDownList>
|
||||
<f:TextBox ID="txtHazardJudge_L" runat="server" Label="作业条件危险性评价(L)" LabelWidth="120px">
|
||||
<f:TextBox ID="txtHazardJudge_L" runat="server" Label="作业条件危险性评价(L)" LabelWidth="120px" AutoPostBack="true" OnTextChanged="txtHazardJudge_TextChanged">
|
||||
</f:TextBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox ID="txtHazardJudge_E" runat="server" Label="作业条件危险性评价(E)" LabelWidth="120px">
|
||||
<f:TextBox ID="txtHazardJudge_E" runat="server" Label="作业条件危险性评价(E)" LabelWidth="120px" AutoPostBack="true" OnTextChanged="txtHazardJudge_TextChanged">
|
||||
</f:TextBox>
|
||||
<f:TextBox ID="txtHazardJudge_C" runat="server" Label="作业条件危险性评价(C)" LabelWidth="120px">
|
||||
<f:TextBox ID="txtHazardJudge_C" runat="server" Label="作业条件危险性评价(C)" LabelWidth="120px" AutoPostBack="true" OnTextChanged="txtHazardJudge_TextChanged">
|
||||
</f:TextBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox ID="txtHazardJudge_D" runat="server" Label="作业条件危险性评价(D)" LabelWidth="120px">
|
||||
<f:TextBox ID="txtHazardJudge_D" runat="server" Label="作业条件危险性评价(D)" LabelWidth="120px" >
|
||||
</f:TextBox>
|
||||
<f:DropDownList ID="ddlHazardLevel" runat="server" Label="危险级别" LabelWidth="120px">
|
||||
</f:DropDownList>
|
||||
|
|
|
@ -245,5 +245,20 @@ namespace FineUIPro.Web.HSSE.Technique
|
|||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
protected void txtHazardJudge_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
if (!string.IsNullOrEmpty(this.txtHazardJudge_L.Text) && !string.IsNullOrEmpty(this.txtHazardJudge_E.Text) && !string.IsNullOrEmpty(this.txtHazardJudge_C.Text))
|
||||
{
|
||||
decimal D = decimal.Parse(this.txtHazardJudge_L.Text) * decimal.Parse(this.txtHazardJudge_E.Text) * decimal.Parse(this.txtHazardJudge_C.Text);
|
||||
this.txtHazardJudge_D.Text = D.ToString("0.0");
|
||||
var riskLevel = Funs.DB.Base_RiskLevel.FirstOrDefault(x => (!x.MinValue.HasValue || x.MinValue <= D) && (D <= x.MaxValue || !x.MaxValue.HasValue));
|
||||
if (riskLevel != null)
|
||||
{
|
||||
this.ddlHazardLevel.SelectedValue = riskLevel.RiskLevel.Value.ToString();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -148717,8 +148717,6 @@ namespace Model
|
|||
|
||||
private EntityRef<Sys_User> _Sys_User;
|
||||
|
||||
private EntityRef<Sys_User> _ControllingPersonSys_User;
|
||||
|
||||
#region 可扩展性方法定义
|
||||
partial void OnLoaded();
|
||||
partial void OnValidate(System.Data.Linq.ChangeAction action);
|
||||
|
@ -148753,7 +148751,6 @@ namespace Model
|
|||
{
|
||||
this._Base_Project = default(EntityRef<Base_Project>);
|
||||
this._Sys_User = default(EntityRef<Sys_User>);
|
||||
this._ControllingPersonSys_User = default(EntityRef<Sys_User>);
|
||||
OnCreated();
|
||||
}
|
||||
|
||||
|
@ -148985,7 +148982,7 @@ namespace Model
|
|||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ControllingPerson", DbType="NVarChar(50)")]
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ControllingPerson", DbType="NVarChar(500)")]
|
||||
public string ControllingPerson
|
||||
{
|
||||
get
|
||||
|
@ -148996,10 +148993,6 @@ namespace Model
|
|||
{
|
||||
if ((this._ControllingPerson != value))
|
||||
{
|
||||
if (this._ControllingPersonSys_User.HasLoadedOrAssignedValue)
|
||||
{
|
||||
throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
|
||||
}
|
||||
this.OnControllingPersonChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._ControllingPerson = value;
|
||||
|
@ -149077,40 +149070,6 @@ namespace Model
|
|||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Hazard_HazardList_Sys_User1", Storage="_ControllingPersonSys_User", ThisKey="ControllingPerson", OtherKey="UserId", IsForeignKey=true)]
|
||||
public Sys_User ControllingPersonSys_User
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._ControllingPersonSys_User.Entity;
|
||||
}
|
||||
set
|
||||
{
|
||||
Sys_User previousValue = this._ControllingPersonSys_User.Entity;
|
||||
if (((previousValue != value)
|
||||
|| (this._ControllingPersonSys_User.HasLoadedOrAssignedValue == false)))
|
||||
{
|
||||
this.SendPropertyChanging();
|
||||
if ((previousValue != null))
|
||||
{
|
||||
this._ControllingPersonSys_User.Entity = null;
|
||||
previousValue.Hazard_HazardList_Sys_User1.Remove(this);
|
||||
}
|
||||
this._ControllingPersonSys_User.Entity = value;
|
||||
if ((value != null))
|
||||
{
|
||||
value.Hazard_HazardList_Sys_User1.Add(this);
|
||||
this._ControllingPerson = value.UserId;
|
||||
}
|
||||
else
|
||||
{
|
||||
this._ControllingPerson = default(string);
|
||||
}
|
||||
this.SendPropertyChanged("ControllingPersonSys_User");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public event PropertyChangingEventHandler PropertyChanging;
|
||||
|
||||
public event PropertyChangedEventHandler PropertyChanged;
|
||||
|
@ -180722,6 +180681,8 @@ namespace Model
|
|||
|
||||
private System.Nullable<bool> _IsUsed;
|
||||
|
||||
private System.Nullable<bool> _IsIn;
|
||||
|
||||
private EntityRef<Base_SpecialEquipment> _Base_SpecialEquipment;
|
||||
|
||||
private EntityRef<InApproveManager_EquipmentIn> _InApproveManager_EquipmentIn;
|
||||
|
@ -180756,6 +180717,8 @@ namespace Model
|
|||
partial void OnCommercialInsuranceNumChanged();
|
||||
partial void OnIsUsedChanging(System.Nullable<bool> value);
|
||||
partial void OnIsUsedChanged();
|
||||
partial void OnIsInChanging(System.Nullable<bool> value);
|
||||
partial void OnIsInChanged();
|
||||
#endregion
|
||||
|
||||
public InApproveManager_EquipmentInItem()
|
||||
|
@ -181033,6 +180996,26 @@ namespace Model
|
|||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsIn", DbType="Bit")]
|
||||
public System.Nullable<bool> IsIn
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._IsIn;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._IsIn != value))
|
||||
{
|
||||
this.OnIsInChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._IsIn = value;
|
||||
this.SendPropertyChanged("IsIn");
|
||||
this.OnIsInChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_InApproveManager_EquipmentInItem_Base_SpecialEquipment", Storage="_Base_SpecialEquipment", ThisKey="SpecialEquipmentId", OtherKey="SpecialEquipmentId", IsForeignKey=true)]
|
||||
public Base_SpecialEquipment Base_SpecialEquipment
|
||||
{
|
||||
|
@ -339649,8 +339632,6 @@ namespace Model
|
|||
|
||||
private EntitySet<Hazard_HazardList> _Hazard_HazardList;
|
||||
|
||||
private EntitySet<Hazard_HazardList> _Hazard_HazardList_Sys_User1;
|
||||
|
||||
private EntitySet<InApproveManager_EquipmentIn> _InApproveManager_EquipmentIn;
|
||||
|
||||
private EntitySet<InApproveManager_EquipmentOut> _InApproveManager_EquipmentOut;
|
||||
|
@ -340292,7 +340273,6 @@ namespace Model
|
|||
this._Hazard_EnvironmentalRiskList = new EntitySet<Hazard_EnvironmentalRiskList>(new Action<Hazard_EnvironmentalRiskList>(this.attach_Hazard_EnvironmentalRiskList), new Action<Hazard_EnvironmentalRiskList>(this.detach_Hazard_EnvironmentalRiskList));
|
||||
this._Hazard_EnvironmentalRiskList_Sys_User1 = new EntitySet<Hazard_EnvironmentalRiskList>(new Action<Hazard_EnvironmentalRiskList>(this.attach_Hazard_EnvironmentalRiskList_Sys_User1), new Action<Hazard_EnvironmentalRiskList>(this.detach_Hazard_EnvironmentalRiskList_Sys_User1));
|
||||
this._Hazard_HazardList = new EntitySet<Hazard_HazardList>(new Action<Hazard_HazardList>(this.attach_Hazard_HazardList), new Action<Hazard_HazardList>(this.detach_Hazard_HazardList));
|
||||
this._Hazard_HazardList_Sys_User1 = new EntitySet<Hazard_HazardList>(new Action<Hazard_HazardList>(this.attach_Hazard_HazardList_Sys_User1), new Action<Hazard_HazardList>(this.detach_Hazard_HazardList_Sys_User1));
|
||||
this._InApproveManager_EquipmentIn = new EntitySet<InApproveManager_EquipmentIn>(new Action<InApproveManager_EquipmentIn>(this.attach_InApproveManager_EquipmentIn), new Action<InApproveManager_EquipmentIn>(this.detach_InApproveManager_EquipmentIn));
|
||||
this._InApproveManager_EquipmentOut = new EntitySet<InApproveManager_EquipmentOut>(new Action<InApproveManager_EquipmentOut>(this.attach_InApproveManager_EquipmentOut), new Action<InApproveManager_EquipmentOut>(this.detach_InApproveManager_EquipmentOut));
|
||||
this._InApproveManager_EquipmentQualityIn = new EntitySet<InApproveManager_EquipmentQualityIn>(new Action<InApproveManager_EquipmentQualityIn>(this.attach_InApproveManager_EquipmentQualityIn), new Action<InApproveManager_EquipmentQualityIn>(this.detach_InApproveManager_EquipmentQualityIn));
|
||||
|
@ -343091,19 +343071,6 @@ namespace Model
|
|||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Hazard_HazardList_Sys_User1", Storage="_Hazard_HazardList_Sys_User1", ThisKey="UserId", OtherKey="ControllingPerson", DeleteRule="NO ACTION")]
|
||||
public EntitySet<Hazard_HazardList> Hazard_HazardList_Sys_User1
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._Hazard_HazardList_Sys_User1;
|
||||
}
|
||||
set
|
||||
{
|
||||
this._Hazard_HazardList_Sys_User1.Assign(value);
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_InApproveManager_EquipmentIn_Sys_User", Storage="_InApproveManager_EquipmentIn", ThisKey="UserId", OtherKey="CompileMan", DeleteRule="NO ACTION")]
|
||||
public EntitySet<InApproveManager_EquipmentIn> InApproveManager_EquipmentIn
|
||||
{
|
||||
|
@ -347338,18 +347305,6 @@ namespace Model
|
|||
entity.Sys_User = null;
|
||||
}
|
||||
|
||||
private void attach_Hazard_HazardList_Sys_User1(Hazard_HazardList entity)
|
||||
{
|
||||
this.SendPropertyChanging();
|
||||
entity.ControllingPersonSys_User = this;
|
||||
}
|
||||
|
||||
private void detach_Hazard_HazardList_Sys_User1(Hazard_HazardList entity)
|
||||
{
|
||||
this.SendPropertyChanging();
|
||||
entity.ControllingPersonSys_User = null;
|
||||
}
|
||||
|
||||
private void attach_InApproveManager_EquipmentIn(InApproveManager_EquipmentIn entity)
|
||||
{
|
||||
this.SendPropertyChanging();
|
||||
|
|
Loading…
Reference in New Issue