代码无效引用清理,试压包资料界面看板修改
This commit is contained in:
@@ -1,8 +1,6 @@
|
||||
using BLL;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
|
||||
namespace FineUIPro.Web.HSSE.Hazard
|
||||
{
|
||||
@@ -26,7 +24,7 @@ namespace FineUIPro.Web.HSSE.Hazard
|
||||
/// <summary>
|
||||
/// 项目主键
|
||||
/// </summary>
|
||||
|
||||
|
||||
public string ControlId
|
||||
{
|
||||
get
|
||||
@@ -39,8 +37,8 @@ namespace FineUIPro.Web.HSSE.Hazard
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
#endregion
|
||||
|
||||
#endregion
|
||||
|
||||
#region 加载页面
|
||||
/// <summary>
|
||||
@@ -51,31 +49,31 @@ namespace FineUIPro.Web.HSSE.Hazard
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!IsPostBack)
|
||||
{
|
||||
|
||||
{
|
||||
|
||||
this.ConstructionRiskId = Request.Params["ConstructionRiskId"];
|
||||
this.ControlId = Request.Params["ControlId"];
|
||||
|
||||
|
||||
var constructionRiskControl = Funs.DB.HSSE_ConstructionRiskControl.FirstOrDefault(x=>x.ControlId == this.ControlId);
|
||||
|
||||
var constructionRiskControl = Funs.DB.HSSE_ConstructionRiskControl.FirstOrDefault(x => x.ControlId == this.ControlId);
|
||||
if (constructionRiskControl != null)
|
||||
{
|
||||
|
||||
|
||||
if (!string.IsNullOrEmpty(constructionRiskControl.Measures))
|
||||
{
|
||||
txtMeasures.Text = constructionRiskControl.Measures;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#region 保存按钮
|
||||
/// <summary>
|
||||
@@ -99,26 +97,26 @@ namespace FineUIPro.Web.HSSE.Hazard
|
||||
Model.HSSE_ConstructionRiskControl newConstructionRiskControl = new Model.HSSE_ConstructionRiskControl
|
||||
{
|
||||
ConstructionRiskId = this.ConstructionRiskId,
|
||||
|
||||
|
||||
};
|
||||
|
||||
newConstructionRiskControl.Measures = this.txtMeasures.Text ;
|
||||
|
||||
newConstructionRiskControl.Measures = this.txtMeasures.Text;
|
||||
|
||||
if (!string.IsNullOrEmpty(this.ControlId))
|
||||
{
|
||||
newConstructionRiskControl.ControlId = this.ControlId;
|
||||
BLL.ConstructionRiskListService.UpdateConstructionRiskControl(newConstructionRiskControl);
|
||||
BLL.ConstructionRiskListService.UpdateConstructionRiskControl(newConstructionRiskControl);
|
||||
BLL.LogService.AddSys_Log(this.CurrUser, newConstructionRiskControl.ConstructionRiskId, newConstructionRiskControl.ConstructionRiskId, BLL.Const.ProjectEnvironmentalRiskListMenuId, BLL.Const.BtnModify);
|
||||
}
|
||||
else
|
||||
{
|
||||
newConstructionRiskControl.ControlId = SQLHelper.GetNewID(typeof(Model.Hazard_EnvironmentalRiskList));
|
||||
this.ControlId = newConstructionRiskControl.ControlId;
|
||||
BLL.ConstructionRiskListService.AddConstructionRiskControl(newConstructionRiskControl);
|
||||
BLL.ConstructionRiskListService.AddConstructionRiskControl(newConstructionRiskControl);
|
||||
BLL.LogService.AddSys_Log(this.CurrUser, newConstructionRiskControl.ConstructionRiskId, newConstructionRiskControl.ConstructionRiskId, BLL.Const.ProjectEnvironmentalRiskListMenuId, BLL.Const.BtnAdd);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
protected void rdCheckResult_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user