代码无效引用清理,试压包资料界面看板修改

This commit is contained in:
2025-10-10 14:33:21 +08:00
parent 87fb529521
commit 55b798135c
933 changed files with 5897 additions and 7541 deletions
@@ -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
}
}