提交代码

This commit is contained in:
2024-08-15 14:56:34 +08:00
parent e5a00b83ad
commit d7dbdce04e
1747 changed files with 3087 additions and 255 deletions
@@ -95,6 +95,7 @@ namespace FineUIPro.Web.HSSE.Hazard
{
this.drpRiskLevel.SelectedValueArray = constructionRisk.RiskLevel.Split(',');
}
this.hdCoordinate.Text = constructionRisk.Coordinate;
constructionRiskControls = (from x in Funs.DB.HSSE_ConstructionRiskControl where x.ConstructionRiskId == this.ConstructionRiskId orderby x.ShowIndex select x).ToList();
}
@@ -197,6 +198,7 @@ namespace FineUIPro.Web.HSSE.Hazard
newConstructionRisk.DateZ = Funs.GetNewDateTime(this.dpDateZ.Text.Trim());
newConstructionRisk.LicenseDes = HttpUtility.HtmlEncode(this.txtLicenseDes.Text);
newConstructionRisk.ConstructionContent = HttpUtility.HtmlEncode(this.txtConstructionContent.Text);
newConstructionRisk.Coordinate = this.hdCoordinate.Text;
////单据状态
newConstructionRisk.States = BLL.Const.State_0;
if (type == BLL.Const.BtnSubmit)
@@ -238,6 +240,16 @@ namespace FineUIPro.Web.HSSE.Hazard
Grid1.DataSource = constructionRiskControls;
Grid1.DataBind();
}
/// <summary>
/// 关闭弹出窗
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void Window2_Close(object sender, EventArgs e)
{
}
#endregion
#region Grid双击事件
@@ -319,6 +331,12 @@ namespace FineUIPro.Web.HSSE.Hazard
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("ConstructionRiskControlEdit.aspx?ConstructionRiskId=" + this.ConstructionRiskId, "添加 - ")));
}
protected void btnMap_Click(object sender, EventArgs e)
{
string window = String.Format("LocationSelect.aspx?ConstructionRiskId=" + this.ConstructionRiskId);
PageContext.RegisterStartupScript(Window2.GetSaveStateReference(hdCoordinate.ClientID) + Window2.GetShowReference(window));
//PageContext.RegisterStartupScript(Window2.GetShowReference());
}
}
}