diff --git a/DataBase/版本日志/SGGLDB_V2024-11-07-gaofei.sql b/DataBase/版本日志/SGGLDB_V2024-11-07-gaofei.sql
new file mode 100644
index 00000000..afdef161
--- /dev/null
+++ b/DataBase/版本日志/SGGLDB_V2024-11-07-gaofei.sql
@@ -0,0 +1,4 @@
+alter table HSSE_ConstructionRisk add SubUnitDutyPerson nvarchar(50) null
+alter table HSSE_ConstructionRisk add MainUnitDutyPerson nvarchar(50) null
+alter table HSSE_ConstructionRisk add MainUnitCheckPerson nvarchar(500) null
+GO
\ No newline at end of file
diff --git a/SGGL/FineUIPro.Web/CQMS/WBS/ControlItemAndCycle.aspx b/SGGL/FineUIPro.Web/CQMS/WBS/ControlItemAndCycle.aspx
index 08a3d856..a64f9896 100644
--- a/SGGL/FineUIPro.Web/CQMS/WBS/ControlItemAndCycle.aspx
+++ b/SGGL/FineUIPro.Web/CQMS/WBS/ControlItemAndCycle.aspx
@@ -35,8 +35,7 @@
-
-
+
- protected global::FineUIPro.HiddenField hdSelectId;
+ protected global::FineUIPro.TextBox hdSelectId;
///
/// panelCenterRegion 控件。
diff --git a/SGGL/FineUIPro.Web/File/Image/wei1.png b/SGGL/FineUIPro.Web/File/Image/wei1.png
index 630df419..20fb38a3 100644
Binary files a/SGGL/FineUIPro.Web/File/Image/wei1.png and b/SGGL/FineUIPro.Web/File/Image/wei1.png differ
diff --git a/SGGL/FineUIPro.Web/File/Image/wei11.png b/SGGL/FineUIPro.Web/File/Image/wei11.png
new file mode 100644
index 00000000..630df419
Binary files /dev/null and b/SGGL/FineUIPro.Web/File/Image/wei11.png differ
diff --git a/SGGL/FineUIPro.Web/File/Image/wei2.png b/SGGL/FineUIPro.Web/File/Image/wei2.png
index 3b2cd8f5..a45ae125 100644
Binary files a/SGGL/FineUIPro.Web/File/Image/wei2.png and b/SGGL/FineUIPro.Web/File/Image/wei2.png differ
diff --git a/SGGL/FineUIPro.Web/File/Image/wei22.png b/SGGL/FineUIPro.Web/File/Image/wei22.png
new file mode 100644
index 00000000..3b2cd8f5
Binary files /dev/null and b/SGGL/FineUIPro.Web/File/Image/wei22.png differ
diff --git a/SGGL/FineUIPro.Web/File/Image/wei3.png b/SGGL/FineUIPro.Web/File/Image/wei3.png
index a2c3ab89..52022a4d 100644
Binary files a/SGGL/FineUIPro.Web/File/Image/wei3.png and b/SGGL/FineUIPro.Web/File/Image/wei3.png differ
diff --git a/SGGL/FineUIPro.Web/File/Image/wei33.png b/SGGL/FineUIPro.Web/File/Image/wei33.png
new file mode 100644
index 00000000..a2c3ab89
Binary files /dev/null and b/SGGL/FineUIPro.Web/File/Image/wei33.png differ
diff --git a/SGGL/FineUIPro.Web/File/Image/wei34.png b/SGGL/FineUIPro.Web/File/Image/wei34.png
new file mode 100644
index 00000000..28be27a3
Binary files /dev/null and b/SGGL/FineUIPro.Web/File/Image/wei34.png differ
diff --git a/SGGL/FineUIPro.Web/File/Image/wei4.png b/SGGL/FineUIPro.Web/File/Image/wei4.png
index 09385360..9874fc6f 100644
Binary files a/SGGL/FineUIPro.Web/File/Image/wei4.png and b/SGGL/FineUIPro.Web/File/Image/wei4.png differ
diff --git a/SGGL/FineUIPro.Web/File/Image/wei44.png b/SGGL/FineUIPro.Web/File/Image/wei44.png
new file mode 100644
index 00000000..09385360
Binary files /dev/null and b/SGGL/FineUIPro.Web/File/Image/wei44.png differ
diff --git a/SGGL/FineUIPro.Web/HSSE/Hazard/ConstructionRisk.aspx b/SGGL/FineUIPro.Web/HSSE/Hazard/ConstructionRisk.aspx
index 9245ceaf..43910f09 100644
--- a/SGGL/FineUIPro.Web/HSSE/Hazard/ConstructionRisk.aspx
+++ b/SGGL/FineUIPro.Web/HSSE/Hazard/ConstructionRisk.aspx
@@ -16,8 +16,7 @@
EnableCollapse="true" Width="280px" Title="施工作业风险" ShowBorder="true" Layout="VBox"
ShowHeader="true" AutoScroll="true" BodyPadding="5px" IconFont="ArrowCircleLeft">
-
-
+
diff --git a/SGGL/FineUIPro.Web/HSSE/Hazard/ConstructionRisk.aspx.designer.cs b/SGGL/FineUIPro.Web/HSSE/Hazard/ConstructionRisk.aspx.designer.cs
index b58adae9..1996b4e2 100644
--- a/SGGL/FineUIPro.Web/HSSE/Hazard/ConstructionRisk.aspx.designer.cs
+++ b/SGGL/FineUIPro.Web/HSSE/Hazard/ConstructionRisk.aspx.designer.cs
@@ -55,7 +55,7 @@ namespace FineUIPro.Web.HSSE.Hazard {
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
- protected global::FineUIPro.HiddenField hdState;
+ protected global::FineUIPro.TextBox hdState;
///
/// tvControlItem 控件。
diff --git a/SGGL/FineUIPro.Web/HSSE/Hazard/ConstructionRiskEdit.aspx b/SGGL/FineUIPro.Web/HSSE/Hazard/ConstructionRiskEdit.aspx
index 860d0396..46426014 100644
--- a/SGGL/FineUIPro.Web/HSSE/Hazard/ConstructionRiskEdit.aspx
+++ b/SGGL/FineUIPro.Web/HSSE/Hazard/ConstructionRiskEdit.aspx
@@ -23,7 +23,7 @@
+ AutoPostBack="true" OnSelectedIndexChanged="drpUnit_SelectedIndexChanged">
@@ -35,12 +35,12 @@
-
+
-
-
-
-
+
+
+
diff --git a/SGGL/FineUIPro.Web/HSSE/Hazard/ConstructionRiskEdit.aspx.cs b/SGGL/FineUIPro.Web/HSSE/Hazard/ConstructionRiskEdit.aspx.cs
index 33d32e9a..d0724daf 100644
--- a/SGGL/FineUIPro.Web/HSSE/Hazard/ConstructionRiskEdit.aspx.cs
+++ b/SGGL/FineUIPro.Web/HSSE/Hazard/ConstructionRiskEdit.aspx.cs
@@ -649,5 +649,10 @@ namespace FineUIPro.Web.HSSE.Hazard
this.drpHandleMan.SelectedIndex = 0;
}
}
+
+ protected void drpUnit_SelectedIndexChanged(object sender, EventArgs e)
+ {
+
+ }
}
}
\ No newline at end of file
diff --git a/SGGL/FineUIPro.Web/HSSE/Hazard/ConstructionRiskEdit.aspx.designer.cs b/SGGL/FineUIPro.Web/HSSE/Hazard/ConstructionRiskEdit.aspx.designer.cs
index 476555aa..7b975169 100644
--- a/SGGL/FineUIPro.Web/HSSE/Hazard/ConstructionRiskEdit.aspx.designer.cs
+++ b/SGGL/FineUIPro.Web/HSSE/Hazard/ConstructionRiskEdit.aspx.designer.cs
@@ -66,24 +66,6 @@ namespace FineUIPro.Web.HSSE.Hazard {
///
protected global::FineUIPro.DatePicker dpDateZ;
- ///
- /// txtC 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.Label txtC;
-
- ///
- /// btnNew 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.Button btnNew;
-
///
/// txtConstructionContent 控件。
///
@@ -91,7 +73,16 @@ namespace FineUIPro.Web.HSSE.Hazard {
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
- protected global::FineUIPro.Label txtConstructionContent;
+ protected global::FineUIPro.TextBox txtConstructionContent;
+
+ ///
+ /// DropDownList1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.DropDownList DropDownList1;
///
/// drpWorkArea 控件。
diff --git a/SGGL/FineUIPro.Web/HSSE/Hazard/ConstructionRiskMap.aspx b/SGGL/FineUIPro.Web/HSSE/Hazard/ConstructionRiskMap.aspx
index 5b50b0cf..856ec3bf 100644
--- a/SGGL/FineUIPro.Web/HSSE/Hazard/ConstructionRiskMap.aspx
+++ b/SGGL/FineUIPro.Web/HSSE/Hazard/ConstructionRiskMap.aspx
@@ -80,7 +80,7 @@
diff --git a/SGGL/FineUIPro.Web/HSSE/Hazard/ConstructionRiskMap.aspx.cs b/SGGL/FineUIPro.Web/HSSE/Hazard/ConstructionRiskMap.aspx.cs
index 0e19fcc6..db6c9ce9 100644
--- a/SGGL/FineUIPro.Web/HSSE/Hazard/ConstructionRiskMap.aspx.cs
+++ b/SGGL/FineUIPro.Web/HSSE/Hazard/ConstructionRiskMap.aspx.cs
@@ -10,7 +10,7 @@ namespace FineUIPro.Web.ProjectData
{
public partial class ConstructionRiskMap : PageBase
{
-
+
public string Coordinate = "";
public string ProjectCode = "";
protected void Page_Load(object sender, EventArgs e)
@@ -25,9 +25,9 @@ namespace FineUIPro.Web.ProjectData
listStr.Add(new SqlParameter("@ProjectId", CurrUser.LoginProjectId));
SqlParameter[] parameter = listStr.ToArray();
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
- foreach(DataRow row in tb.Rows)
+ foreach (DataRow row in tb.Rows)
{
- Coordinate += row["MainItemId"].ToString() + ";" + row["MainItemName"].ToString() + ";" + row["num"].ToString() + ";" + row["Coordinate"].ToString()+";"+ row["RiskLevel"].ToString() + ",";
+ Coordinate += row["MainItemId"].ToString() + ";" + row["MainItemName"].ToString() + ";" + row["num"].ToString() + ";" + row["Coordinate"].ToString() + ";" + row["RiskLevel"].ToString() + ",";
}
Coordinate = Coordinate.TrimEnd(',');
ProjectCode = BLL.ProjectService.GetProjectCodeByProjectId(this.CurrUser.LoginProjectId);
@@ -39,7 +39,7 @@ namespace FineUIPro.Web.ProjectData
[WebMethod]
- public static string getRisk(string WorkAreaId,string RiskLevel)
+ public static string getRisk(string WorkAreaId, string RiskLevel)
{
string res = "";
string strSql = @"SELECT [ConstructionRiskId]
@@ -58,9 +58,14 @@ namespace FineUIPro.Web.ProjectData
where a.WorkAreaId=@WorkAreaId and a.States='4'
";
+ //if (!string.IsNullOrEmpty(RiskLevel))
+ //{
+ // strSql += " and RiskLevel='" + RiskLevel + "'";
+ //}
if (!string.IsNullOrEmpty(RiskLevel))
{
- strSql += " and RiskLevel='"+ RiskLevel + "'";
+ //strSql += " and RiskLevel='" + drpRiskLevel.SelectedValue + "' ";
+ strSql += " and '" + RiskLevel + "' like '%'+RiskLevel+'%' ";
}
List listStr = new List();
listStr.Add(new SqlParameter("@WorkAreaId", WorkAreaId));
@@ -68,7 +73,7 @@ namespace FineUIPro.Web.ProjectData
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
foreach (DataRow row in tb.Rows)
{
- res += row["ConstructionRiskId"].ToString() + ";" + row["UnitName"].ToString() + ";" + Funs.GetNewDateTimeOrNow( row["DateA"].ToString()).ToString("yyyy-MM-dd")+"至"+ Funs.GetNewDateTimeOrNow(row["DateZ"].ToString()).ToString("yyyy-MM-dd") + ";" + row["RiskLevel"].ToString() + ";" + row["ConstructionContent"].ToString() + ";" + row["Coordinate"].ToString() + ",";
+ res += row["ConstructionRiskId"].ToString() + ";" + row["UnitName"].ToString() + ";" + Funs.GetNewDateTimeOrNow(row["DateA"].ToString()).ToString("yyyy-MM-dd") + "至" + Funs.GetNewDateTimeOrNow(row["DateZ"].ToString()).ToString("yyyy-MM-dd") + ";" + row["RiskLevel"].ToString() + ";" + row["ConstructionContent"].ToString() + ";" + row["Coordinate"].ToString() + ",";
}
res = res.TrimEnd(',');
@@ -77,15 +82,25 @@ namespace FineUIPro.Web.ProjectData
protected void drpRiskLevel_SelectedIndexChanged(object sender, EventArgs e)
{
+ string riskLevel = "";
string strSql = @"SELECT b.[MainItemId],b.[Coordinate],b.[MainItemName],count(*) num ,max(case when RiskLevel='低风险' then 1 when RiskLevel='一般风险' then 2 when RiskLevel='较大风险' then 3 else 4 end) RiskLevel
FROM [dbo].[HSSE_ConstructionRisk] a left join [dbo].[ProjectData_MainItem] b on a.[WorkAreaId]=b.[MainItemId]
where a.ProjectId=@ProjectId and a.States='4'
";
List listStr = new List();
listStr.Add(new SqlParameter("@ProjectId", CurrUser.LoginProjectId));
- if (!string.IsNullOrEmpty(drpRiskLevel.SelectedValue))
+ if (drpRiskLevel.SelectedItemArray.Length == 1 && this.drpRiskLevel.SelectedValue == string.Empty)
{
- strSql += " and RiskLevel='" + drpRiskLevel.SelectedValue + "' ";
+
+ }
+ else
+ {
+ foreach (var item in this.drpRiskLevel.SelectedValueArray)
+ {
+ riskLevel += item + ",";
+ }
+ //strSql += " and RiskLevel='" + drpRiskLevel.SelectedValue + "' ";
+ strSql += " and '"+riskLevel+"' like '%'+RiskLevel+'%' ";
}
strSql += " group by b.[MainItemId],b.[Coordinate],b.[MainItemName] ";
SqlParameter[] parameter = listStr.ToArray();
@@ -96,7 +111,7 @@ namespace FineUIPro.Web.ProjectData
}
Coordinate = Coordinate.TrimEnd(',');
- PageContext.RegisterStartupScript(" setRiskLevel('" + drpRiskLevel.SelectedValue + "'); clearOverlays() ; drawMap('" + Coordinate + "') ");
+ PageContext.RegisterStartupScript(" setRiskLevel('" + riskLevel + "'); clearOverlays() ; drawMap('" + Coordinate + "') ");
}
}
diff --git a/SGGL/FineUIPro.Web/HSSE/Hazard/ConstructionRiskMap.aspx.designer.cs b/SGGL/FineUIPro.Web/HSSE/Hazard/ConstructionRiskMap.aspx.designer.cs
index 9c72682f..2f1c343e 100644
--- a/SGGL/FineUIPro.Web/HSSE/Hazard/ConstructionRiskMap.aspx.designer.cs
+++ b/SGGL/FineUIPro.Web/HSSE/Hazard/ConstructionRiskMap.aspx.designer.cs
@@ -7,13 +7,11 @@
// 自动生成>
//------------------------------------------------------------------------------
-namespace FineUIPro.Web.ProjectData
-{
-
-
- public partial class ConstructionRiskMap
- {
-
+namespace FineUIPro.Web.ProjectData {
+
+
+ public partial class ConstructionRiskMap {
+
///
/// form1 控件。
///
@@ -22,7 +20,7 @@ namespace FineUIPro.Web.ProjectData
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
-
+
///
/// PageManager1 控件。
///
@@ -31,7 +29,7 @@ namespace FineUIPro.Web.ProjectData
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.PageManager PageManager1;
-
+
///
/// RegionPanel1 控件。
///
@@ -40,7 +38,7 @@ namespace FineUIPro.Web.ProjectData
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.RegionPanel RegionPanel1;
-
+
///
/// Region2 控件。
///
@@ -49,7 +47,7 @@ namespace FineUIPro.Web.ProjectData
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Region Region2;
-
+
///
/// drpRiskLevel 控件。
///
@@ -58,7 +56,7 @@ namespace FineUIPro.Web.ProjectData
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.DropDownList drpRiskLevel;
-
+
///
/// ContentPanel1 控件。
///