代码无效引用清理,试压包资料界面看板修改
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
using BLL;
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.Web.Services;
|
||||
|
||||
namespace FineUIPro.Web.HSSE.Hazard
|
||||
{
|
||||
@@ -24,8 +23,8 @@ namespace FineUIPro.Web.HSSE.Hazard
|
||||
if (!IsPostBack)
|
||||
{
|
||||
ProjectCode = BLL.ProjectService.GetProjectCodeByProjectId(this.CurrUser.LoginProjectId);
|
||||
ConstructionRiskId = Request.Params["ConstructionRiskId"] ;
|
||||
if (!string.IsNullOrEmpty(Request.Params["type"]))
|
||||
ConstructionRiskId = Request.Params["ConstructionRiskId"];
|
||||
if (!string.IsNullOrEmpty(Request.Params["type"]))
|
||||
{
|
||||
this.btnSave.Hidden = true;
|
||||
}
|
||||
@@ -37,7 +36,7 @@ namespace FineUIPro.Web.HSSE.Hazard
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
#region 保存事件
|
||||
/// <summary>
|
||||
@@ -47,17 +46,17 @@ namespace FineUIPro.Web.HSSE.Hazard
|
||||
/// <param name="e"></param>
|
||||
protected void btnSave_Click(object sender, EventArgs e)
|
||||
{
|
||||
var risk = Funs.DB.HSSE_ConstructionRisk.FirstOrDefault(x => x.ConstructionRiskId == ConstructionRiskId);
|
||||
var risk = Funs.DB.HSSE_ConstructionRisk.FirstOrDefault(x => x.ConstructionRiskId == ConstructionRiskId);
|
||||
if (risk != null)
|
||||
{
|
||||
risk.Coordinate=txtLoc.Text.Trim();
|
||||
risk.Coordinate = txtLoc.Text.Trim();
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
PageContext.RegisterStartupScript(ActiveWindow.GetWriteBackValueReference(txtLoc.Text.Trim())
|
||||
+ ActiveWindow.GetHidePostBackReference());
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user