diff --git a/SGGL/BLL/CQMS/WBS/WorkPackageService.cs b/SGGL/BLL/CQMS/WBS/WorkPackageService.cs
index 40d99246..abe97a70 100644
--- a/SGGL/BLL/CQMS/WBS/WorkPackageService.cs
+++ b/SGGL/BLL/CQMS/WBS/WorkPackageService.cs
@@ -84,6 +84,18 @@ namespace BLL
{
return (from x in Funs.DB.WBS_WorkPackage where x.SuperWorkPackageId == null && x.UnitWorkId.ToString() == unitWorkId && x.IsApprove == true orderby x.WorkPackageCode select x).ToList();
}
+
+ ///
+ /// 根据分部分项名称和单位工程id获取项目分部分项内容
+ ///
+ ///
+ ///
+ ///
+ public static Model.WBS_WorkPackage GetWorkPackageByPackageContent(string packageContent, string unitWorkId)
+ {
+ return Funs.DB.WBS_WorkPackage.FirstOrDefault(x => x.PackageContent == packageContent && x.UnitWorkId == unitWorkId);
+ }
+
///
/// 根据单位工程Id获取所有分部信息
///
diff --git a/SGGL/FineUIPro.Web/CQMS/WBS/WorkPackageSet2In.aspx.cs b/SGGL/FineUIPro.Web/CQMS/WBS/WorkPackageSet2In.aspx.cs
index 8b601f6c..d5d3e983 100644
--- a/SGGL/FineUIPro.Web/CQMS/WBS/WorkPackageSet2In.aspx.cs
+++ b/SGGL/FineUIPro.Web/CQMS/WBS/WorkPackageSet2In.aspx.cs
@@ -200,7 +200,6 @@ namespace FineUIPro.Web.CQMS.WBS
string col0 = pds.Rows[i][0].ToString().Trim();
string col1 = pds.Rows[i][1].ToString().Trim();
string col2 = pds.Rows[i][2].ToString().Trim();
- string col3 = pds.Rows[i][3].ToString().Trim();
if (!string.IsNullOrEmpty(col0))
{
if (string.IsNullOrEmpty(col0))
@@ -209,31 +208,34 @@ namespace FineUIPro.Web.CQMS.WBS
}
else
{
- Model.WBS_WorkPackage newWorkPackage = new Model.WBS_WorkPackage
+ if (BLL.WorkPackageService.GetWorkPackageByPackageContent(col0 + "-" + col1 + "-" + col2, UnitWorkId) == null) //数据库中不存在同样位号记录
{
- WorkPackageId = SQLHelper.GetNewID(typeof(Model.WBS_WorkPackage)),
-
-
- };
- if (!string.IsNullOrEmpty(col1) && !string.IsNullOrEmpty(col2))
- {
- newWorkPackage.SuperWorkPack = col1 + "-" + col2;
- }
- foreach (var item in workPackageProjects)
- {
- if (col0 == item.PackageContent)
+ Model.WBS_WorkPackage newWorkPackage = new Model.WBS_WorkPackage
{
- newWorkPackage.PackageContent = col0;
- newWorkPackage.WorkPackageCode = item.WorkPackageCode;
+ WorkPackageId = SQLHelper.GetNewID(typeof(Model.WBS_WorkPackage)),
+
+
+ };
+ if (!string.IsNullOrEmpty(col1) && !string.IsNullOrEmpty(col2))
+ {
+ newWorkPackage.SuperWorkPack = col1 + "-" + col2;
+ }
+ foreach (var item in workPackageProjects)
+ {
+ if (col0 == item.PackageContent)
+ {
+ newWorkPackage.PackageContent = col0;
+ newWorkPackage.WorkPackageCode = item.WorkPackageCode;
+ }
+
+ }
+ if (string.IsNullOrEmpty(newWorkPackage.PackageContent))
+ {
+ result += "第" + (i + 2).ToString() + "行," + "分项输入值有误!" + "|";
}
+ ViewWorkPackages.Add(newWorkPackage);
}
- if (string.IsNullOrEmpty(newWorkPackage.PackageContent))
- {
- result += "第" + (i + 2).ToString() + "行," + "分项输入值有误!" + "|";
- }
-
- ViewWorkPackages.Add(newWorkPackage);
if (!string.IsNullOrEmpty(result))
{
results += result;
@@ -386,7 +388,6 @@ namespace FineUIPro.Web.CQMS.WBS
string col0 = pds.Rows[i][0].ToString().Trim();
string col1 = pds.Rows[i][1].ToString().Trim();
string col2 = pds.Rows[i][2].ToString().Trim();
- string col3 = pds.Rows[i][3].ToString().Trim();
if (!string.IsNullOrEmpty(col0))
{
if (string.IsNullOrEmpty(col0))
@@ -395,34 +396,37 @@ namespace FineUIPro.Web.CQMS.WBS
}
else
{
- Model.WBS_WorkPackage newWorkPackage = new Model.WBS_WorkPackage
+ if (BLL.WorkPackageService.GetWorkPackageByPackageContent(col0 + "-" + col1 + "-" + col2, UnitWorkId) == null) //数据库中不存在同样位号记录
{
- WorkPackageId = SQLHelper.GetNewID(typeof(Model.WBS_WorkPackage)),
-
-
- };
- if (!string.IsNullOrEmpty(col1) && !string.IsNullOrEmpty(col2))
- {
- newWorkPackage.SuperWorkPack = col1 + "-" + col2;
- }
- foreach (var item in workPackageProjects)
- {
- if (col0 == item.PackageContent)
+ Model.WBS_WorkPackage newWorkPackage = new Model.WBS_WorkPackage
{
- newWorkPackage.PackageContent = col0;
- newWorkPackage.WorkPackageCode = item.WorkPackageCode;
+ WorkPackageId = SQLHelper.GetNewID(typeof(Model.WBS_WorkPackage)),
+
+
+ };
+ if (!string.IsNullOrEmpty(col1) && !string.IsNullOrEmpty(col2))
+ {
+ newWorkPackage.SuperWorkPack = col1 + "-" + col2;
+ }
+ foreach (var item in workPackageProjects)
+ {
+ if (col0 == item.PackageContent)
+ {
+ newWorkPackage.PackageContent = col0;
+ newWorkPackage.WorkPackageCode = item.WorkPackageCode;
+ }
+
+ }
+ if (string.IsNullOrEmpty(newWorkPackage.PackageContent))
+ {
+ result += "第" + (i + 2).ToString() + "行," + "分项输入值有误!" + "|";
}
- }
- if (string.IsNullOrEmpty(newWorkPackage.PackageContent))
- {
- result += "第" + (i + 2).ToString() + "行," + "分项输入值有误!" + "|";
- }
-
- ViewWorkPackages.Add(newWorkPackage);
- if (!string.IsNullOrEmpty(result))
- {
- results += result;
+ ViewWorkPackages.Add(newWorkPackage);
+ if (!string.IsNullOrEmpty(result))
+ {
+ results += result;
+ }
}
}
}
@@ -470,16 +474,35 @@ namespace FineUIPro.Web.CQMS.WBS
Model.WBS_WorkPackageProject workPackageProject = BLL.WorkPackageProjectService.GetWorkPackageProjectByWorkPackageCode(workPackageCode2, this.CurrUser.LoginProjectId);
if (oldWorkPackage == null) //新增内容
{
- Model.WBS_WorkPackage newWorkPackage = new Model.WBS_WorkPackage();
- if (workPackageCode != workPackageProject.WorkPackageCode) //循环至新的分部
+ if (BLL.WorkPackageService.GetWorkPackageByPackageContent(workPackageProject.PackageContent + "-" + txtName, UnitWorkId) == null) //数据库中不存在同样位号记录
{
- workPackageCode = workPackageProject.WorkPackageCode;
- var oldWorkPackages = BLL.WorkPackageService.GetWorkPackagesByInitWorkPackageCodeAndUnitWorkId(workPackageCode, UnitWorkId);
- if (oldWorkPackages.Count > 0) //该工作包已存在内容
+ Model.WBS_WorkPackage newWorkPackage = new Model.WBS_WorkPackage();
+ if (workPackageCode != workPackageProject.WorkPackageCode) //循环至新的分部
+ {
+ workPackageCode = workPackageProject.WorkPackageCode;
+ var oldWorkPackages = BLL.WorkPackageService.GetWorkPackagesByInitWorkPackageCodeAndUnitWorkId(workPackageCode, UnitWorkId);
+ if (oldWorkPackages.Count > 0) //该工作包已存在内容
+ {
+ var old = oldWorkPackages.First();
+ string oldStr = old.WorkPackageCode.Substring(old.WorkPackageCode.Length - 2);
+ num = Convert.ToInt32(oldStr) + 1;
+ if (num < 10)
+ {
+ code = "0" + num.ToString();
+ }
+ else
+ {
+ code = num.ToString();
+ }
+ }
+ else
+ {
+ num = 1;
+ code = "01";
+ }
+ }
+ else
{
- var old = oldWorkPackages.First();
- string oldStr = old.WorkPackageCode.Substring(old.WorkPackageCode.Length - 2);
- num = Convert.ToInt32(oldStr) + 1;
if (num < 10)
{
code = "0" + num.ToString();
@@ -489,36 +512,20 @@ namespace FineUIPro.Web.CQMS.WBS
code = num.ToString();
}
}
- else
- {
- num = 1;
- code = "01";
- }
+ newWorkPackage.WorkPackageId = SQLHelper.GetNewID(typeof(Model.WBS_WorkPackage));
+ newWorkPackage.WorkPackageCode = parentWorkPackage.WorkPackageCode + workPackageCode.Substring(workPackageCode.IndexOf(parentWorkPackage.InitWorkPackageCode) + parentWorkPackage.InitWorkPackageCode.Length).Replace("00", "0000") + code;
+ newWorkPackage.ProjectId = this.CurrUser.LoginProjectId;
+ newWorkPackage.UnitWorkId = UnitWorkId;
+ newWorkPackage.PackageContent = workPackageProject.PackageContent + "-" + txtName;
+ newWorkPackage.SuperWorkPack = workPackageProject.SuperWorkPack;
+ newWorkPackage.SuperWorkPackageId = WorkPackageId;
+ newWorkPackage.PackageCode = code;
+ newWorkPackage.ProjectType = workPackageProject.ProjectType;
+ newWorkPackage.InitWorkPackageCode = workPackageProject.WorkPackageCode;
+ newWorkPackage.IsApprove = true;
+ BLL.WorkPackageService.AddWorkPackage(newWorkPackage);
+ num++;
}
- else
- {
- if (num < 10)
- {
- code = "0" + num.ToString();
- }
- else
- {
- code = num.ToString();
- }
- }
- newWorkPackage.WorkPackageId = SQLHelper.GetNewID(typeof(Model.WBS_WorkPackage));
- newWorkPackage.WorkPackageCode = parentWorkPackage.WorkPackageCode + workPackageCode.Substring(workPackageCode.IndexOf(parentWorkPackage.InitWorkPackageCode) + parentWorkPackage.InitWorkPackageCode.Length).Replace("00", "0000") + code;
- newWorkPackage.ProjectId = this.CurrUser.LoginProjectId;
- newWorkPackage.UnitWorkId = UnitWorkId;
- newWorkPackage.PackageContent = workPackageProject.PackageContent + "-" + txtName;
- newWorkPackage.SuperWorkPack = workPackageProject.SuperWorkPack;
- newWorkPackage.SuperWorkPackageId = WorkPackageId;
- newWorkPackage.PackageCode = code;
- newWorkPackage.ProjectType = workPackageProject.ProjectType;
- newWorkPackage.InitWorkPackageCode = workPackageProject.WorkPackageCode;
- newWorkPackage.IsApprove = true;
- BLL.WorkPackageService.AddWorkPackage(newWorkPackage);
- num++;
}
}
PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference());
diff --git a/SGGL/FineUIPro.Web/ErrLog.txt b/SGGL/FineUIPro.Web/ErrLog.txt
index 83c803aa..e69de29b 100644
--- a/SGGL/FineUIPro.Web/ErrLog.txt
+++ b/SGGL/FineUIPro.Web/ErrLog.txt
@@ -1,82 +0,0 @@
-System.InvalidOperationException: 可为空的对象必须具有一个值。
- 在 System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource)
- 在 System.Nullable`1.get_Value()
- 在 BLL.HJGL_MaterialService.isInStockByPipeline(String pipelineid, String projectid) 位置 D:\诺必达\赛鼎\SGGL_SeDin\SGGL\BLL\HJGL\PreDesign\HJGL_MaterialService.cs:行号 284
-System.InvalidOperationException: 可为空的对象必须具有一个值。
- 在 System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource)
- 在 System.Nullable`1.get_Value()
- 在 BLL.HJGL_MaterialService.isInStockByPipeline(String pipelineid, String projectid) 位置 D:\诺必达\赛鼎\SGGL_SeDin\SGGL\BLL\HJGL\PreDesign\HJGL_MaterialService.cs:行号 284
-System.InvalidOperationException: 可为空的对象必须具有一个值。
- 在 System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource)
- 在 System.Nullable`1.get_Value()
- 在 BLL.HJGL_MaterialService.isInStockByPipeline(String pipelineid, String projectid) 位置 D:\诺必达\赛鼎\SGGL_SeDin\SGGL\BLL\HJGL\PreDesign\HJGL_MaterialService.cs:行号 284
-System.InvalidOperationException: 可为空的对象必须具有一个值。
- 在 System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource)
- 在 System.Nullable`1.get_Value()
- 在 BLL.HJGL_MaterialService.isInStockByPipeline(String pipelineid, String projectid) 位置 D:\诺必达\赛鼎\SGGL_SeDin\SGGL\BLL\HJGL\PreDesign\HJGL_MaterialService.cs:行号 284
-System.InvalidOperationException: 可为空的对象必须具有一个值。
- 在 System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource)
- 在 System.Nullable`1.get_Value()
- 在 BLL.HJGL_MaterialService.isInStockByPipeline(String pipelineid, String projectid) 位置 D:\诺必达\赛鼎\SGGL_SeDin\SGGL\BLL\HJGL\PreDesign\HJGL_MaterialService.cs:行号 284
-System.InvalidOperationException: 可为空的对象必须具有一个值。
- 在 System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource)
- 在 System.Nullable`1.get_Value()
- 在 BLL.HJGL_MaterialService.isInStockByPipeline(String pipelineid, String projectid) 位置 D:\诺必达\赛鼎\SGGL_SeDin\SGGL\BLL\HJGL\PreDesign\HJGL_MaterialService.cs:行号 284
-System.InvalidOperationException: 可为空的对象必须具有一个值。
- 在 System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource)
- 在 System.Nullable`1.get_Value()
- 在 BLL.HJGL_MaterialService.isInStockByPipeline(String pipelineid, String projectid) 位置 D:\诺必达\赛鼎\SGGL_SeDin\SGGL\BLL\HJGL\PreDesign\HJGL_MaterialService.cs:行号 284
-System.InvalidOperationException: 可为空的对象必须具有一个值。
- 在 System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource)
- 在 System.Nullable`1.get_Value()
- 在 BLL.HJGL_MaterialService.isInStockByPipeline(String pipelineid, String projectid) 位置 D:\诺必达\赛鼎\SGGL_SeDin\SGGL\BLL\HJGL\PreDesign\HJGL_MaterialService.cs:行号 284
-System.InvalidOperationException: 可为空的对象必须具有一个值。
- 在 System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource)
- 在 System.Nullable`1.get_Value()
- 在 BLL.HJGL_MaterialService.isInStockByPipeline(String pipelineid, String projectid) 位置 D:\诺必达\赛鼎\SGGL_SeDin\SGGL\BLL\HJGL\PreDesign\HJGL_MaterialService.cs:行号 284
-System.InvalidOperationException: 可为空的对象必须具有一个值。
- 在 System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource)
- 在 System.Nullable`1.get_Value()
- 在 BLL.HJGL_MaterialService.isInStockByPipeline(String pipelineid, String projectid) 位置 D:\诺必达\赛鼎\SGGL_SeDin\SGGL\BLL\HJGL\PreDesign\HJGL_MaterialService.cs:行号 284
-System.InvalidOperationException: 可为空的对象必须具有一个值。
- 在 System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource)
- 在 System.Nullable`1.get_Value()
- 在 BLL.HJGL_MaterialService.isInStockByPipeline(String pipelineid, String projectid) 位置 D:\诺必达\赛鼎\SGGL_SeDin\SGGL\BLL\HJGL\PreDesign\HJGL_MaterialService.cs:行号 284
-System.InvalidOperationException: 可为空的对象必须具有一个值。
- 在 System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource)
- 在 System.Nullable`1.get_Value()
- 在 BLL.HJGL_MaterialService.isInStockByPipeline(String pipelineid, String projectid) 位置 D:\诺必达\赛鼎\SGGL_SeDin\SGGL\BLL\HJGL\PreDesign\HJGL_MaterialService.cs:行号 284
-
-错误信息开始=====>
-错误类型:FormatException
-错误信息:输入字符串的格式不正确。
-错误堆栈:
- 在 System.Number.ParseDouble(String value, NumberStyles options, NumberFormatInfo numfmt)
- 在 System.String.System.IConvertible.ToDouble(IFormatProvider provider)
- 在 System.Convert.ToDouble(Object value)
- 在 FineUIPro.RenderField.VQscVYXUOqxsrrrlgEYaXHIhTAZB(GridRow )
- 在 (GridColumn , GridRow )
- 在 FineUIPro.GridRow.BkpgFeAELTFlAvoTrOBrConfcLJbA()
- 在 (GridRow )
- 在 FineUIPro.Grid.BkpgFeAELTFlAvoTrOBrConfcLJbA(Int32 , Object )
- 在 (Grid , Int32 , Object )
- 在 FineUIPro.Grid.LDChsdiaqdhUTcxBcQPMKyQFfjEDB(DataTable , Boolean )
- 在 (Grid , DataTable , Boolean )
- 在 FineUIPro.Grid.DataBind(Boolean keepCurrentData)
- 在 (Grid , Boolean )
- 在 FineUIPro.Grid.DataBind()
- 在 FineUIPro.Web.HJGL.WeldingManage.SelectTaskWeldJoint.BindGrid() 位置 D:\诺必达\赛鼎\SGGL_SeDin\SGGL\FineUIPro.Web\HJGL\WeldingManage\SelectTaskWeldJoint.aspx.cs:行号 339
- 在 FineUIPro.Web.HJGL.WeldingManage.SelectTaskWeldJoint.tvControlItem_NodeCommand(Object sender, TreeCommandEventArgs e) 位置 D:\诺必达\赛鼎\SGGL_SeDin\SGGL\FineUIPro.Web\HJGL\WeldingManage\SelectTaskWeldJoint.aspx.cs:行号 296
- 在 FineUIPro.Tree.OnNodeCommand(TreeCommandEventArgs e)
- 在 (Tree , TreeCommandEventArgs )
- 在 FineUIPro.Tree.RaisePostBackEvent(String eventArgument)
- 在 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
- 在 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
- 在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
-出错时间:02/17/2023 15:15:39
-出错文件:http://localhost:4909/HJGL/WeldingManage/SelectTaskWeldJoint.aspx?strList=51f17d4a-92b5-4bbc-8935-fa0fced13bcb%7C1af885ff-b778-46c6-a13d-a21b304ac835%7C2022-12-01
-IP地址:::1
-操作人员:JT
-
-出错时间:02/17/2023 15:15:39
-
diff --git a/SGGL/FineUIPro.Web/FineUIPro.Web.csproj b/SGGL/FineUIPro.Web/FineUIPro.Web.csproj
index 7f39e95b..08a75dbb 100644
--- a/SGGL/FineUIPro.Web/FineUIPro.Web.csproj
+++ b/SGGL/FineUIPro.Web/FineUIPro.Web.csproj
@@ -12812,7 +12812,7 @@
True
0
/
- http://localhost:4909/
+ http://localhost:8899/
False
False
diff --git a/SGGL/FineUIPro.Web/HSSE/Hazard/HazardTemplate.aspx.cs b/SGGL/FineUIPro.Web/HSSE/Hazard/HazardTemplate.aspx.cs
index e16118e3..f38c0ac7 100644
--- a/SGGL/FineUIPro.Web/HSSE/Hazard/HazardTemplate.aspx.cs
+++ b/SGGL/FineUIPro.Web/HSSE/Hazard/HazardTemplate.aspx.cs
@@ -256,11 +256,11 @@ namespace FineUIPro.Web.HSSE.Hazard
}
string strSql = @"SELECT H.HazardId,T.HazardListTypeId,T.HazardListTypeCode,T.HazardListTypeName,H.HazardCode,H.HazardItems,H.DefectsType,"
+ @" H.MayLeadAccidents,H.HelperMethod,H.HazardJudge_L,H.HazardJudge_E,H.HazardJudge_C,H.HazardJudge_D,Const0007.ConstText AS HazardLevel,"
- + @" H.ControlMeasures,H.CompileMan,H.CompileDate,H.AuditMan,H.AuditDate,H.IsPass,U.PersonName AS CompileManName,UR.UserName AS AuditManName"
+ + @" H.ControlMeasures,H.CompileMan,H.CompileDate,H.AuditMan,H.AuditDate,H.IsPass,U.PersonName AS CompileManName,UR.PersonName AS AuditManName"
+ @" FROM Technique_HazardList AS H"
+ @" LEFT JOIN Technique_HazardListType AS T ON T.HazardListTypeId = H.HazardListTypeId"
+ @" LEFT JOIN Person_Persons AS U ON U.PersonId = H.CompileMan"
- + @" LEFT JOIN Person_Persons AS UR ON UR.UserId = H.AuditMan"
+ + @" LEFT JOIN Person_Persons AS UR ON UR.PersonId = H.AuditMan"
+ @" LEFT JOIN Sys_Const AS Const0007 ON Const0007.ConstValue = H.HazardLevel and Const0007.GroupId = '" + ConstValue.Group_0007 + "'"
+ @" WHERE T.HazardListTypeId = @HazardListTypeId ";
List listStr = new List
diff --git a/SGGL/FineUIPro.Web/HSSE/Hazard/ShowHazardList.aspx.cs b/SGGL/FineUIPro.Web/HSSE/Hazard/ShowHazardList.aspx.cs
index 5a28cfa0..37934c87 100644
--- a/SGGL/FineUIPro.Web/HSSE/Hazard/ShowHazardList.aspx.cs
+++ b/SGGL/FineUIPro.Web/HSSE/Hazard/ShowHazardList.aspx.cs
@@ -100,11 +100,11 @@ namespace FineUIPro.Web.HSSE.Hazard
{
string strSql = @"SELECT H.HazardId,T.HazardListTypeId,T.HazardListTypeCode,T.HazardListTypeName,H.HazardCode,H.HazardItems,H.DefectsType,"
+ @" H.MayLeadAccidents,H.HelperMethod,H.HazardJudge_L,H.HazardJudge_E,H.HazardJudge_C,H.HazardJudge_D,Const0007.ConstText AS HazardLevel,"
- + @" H.ControlMeasures,H.CompileMan,H.CompileDate,H.AuditMan,H.AuditDate,H.IsPass,U.PersonName AS CompileManName,UR.UserName AS AuditManName"
+ + @" H.ControlMeasures,H.CompileMan,H.CompileDate,H.AuditMan,H.AuditDate,H.IsPass,U.PersonName AS CompileManName,UR.PersonName AS AuditManName"
+ @" FROM Technique_HazardList AS H"
+ @" LEFT JOIN Technique_HazardListType AS T ON T.HazardListTypeId = H.HazardListTypeId"
+ @" LEFT JOIN Person_Persons AS U ON U.PersonId = H.CompileMan"
- + @" LEFT JOIN Person_Persons AS UR ON UR.UserId = H.AuditMan"
+ + @" LEFT JOIN Person_Persons AS UR ON UR.PersonId = H.AuditMan"
+ @" LEFT JOIN Sys_Const AS Const0007 ON Const0007.ConstValue = H.HazardLevel and Const0007.GroupId = '" + ConstValue.Group_0007 + "'"
+ @" WHERE T.HazardListTypeId = @HazardListTypeId ";
List listStr = new List();