提交代码
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
using Microsoft.SqlServer.Dts.Runtime;
|
||||
using Model;
|
||||
using Model;
|
||||
using NPOI.SS.Formula.PTG;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
+1
-1
@@ -463,9 +463,9 @@
|
||||
<Compile Include="HSSE\Environmental\EnvironmentalEmergencyPlanService.cs" />
|
||||
<Compile Include="HSSE\Environmental\EnvironmentalMonitoringService.cs" />
|
||||
<Compile Include="HSSE\Environmental\UnexpectedEnvironmentalService.cs" />
|
||||
<Compile Include="HSSE\Hazard\ConstructionRiskListService.cs" />
|
||||
<Compile Include="HSSE\Hazard\Hazard_EnvironmentalRiskItemService.cs" />
|
||||
<Compile Include="HSSE\Hazard\Hazard_EnvironmentalRiskListService.cs" />
|
||||
<Compile Include="HSSE\Hazard\ConstructionRiskListService.cs" />
|
||||
<Compile Include="HSSE\Hazard\Hazard_HazardListService.cs" />
|
||||
<Compile Include="HSSE\Hazard\Hazard_HazardSelectedItemService.cs" />
|
||||
<Compile Include="HSSE\HiddenInspection\HSSE_Hazard_HazardRegisterService.cs" />
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
using FineUIPro;
|
||||
using Microsoft.SqlServer.Dts.Runtime;
|
||||
using NPOI.SS.Formula.Functions;
|
||||
using Org.BouncyCastle.Crypto.Tls;
|
||||
using System;
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
using Microsoft.SqlServer.Dts.Runtime;
|
||||
using NPOI.SS.Formula.Functions;
|
||||
using NPOI.SS.Formula.Functions;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
using Microsoft.Office.Interop.Word;
|
||||
using Microsoft.SqlServer.Dts.Runtime;
|
||||
using MiniExcelLibs;
|
||||
using Model;
|
||||
using System;
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
using Microsoft.SqlServer.Dts.Runtime;
|
||||
using Model;
|
||||
using Model;
|
||||
using NPOI.SS.UserModel;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
@@ -19,9 +19,9 @@ namespace BLL
|
||||
return Funs.DB.HSSE_ConstructionRisk.FirstOrDefault(e => e.ConstructionRiskId == constructionRiskId);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
@@ -44,12 +44,13 @@ namespace BLL
|
||||
LicenseDes = constructionRisk.LicenseDes,
|
||||
WorkAreaId = constructionRisk.WorkAreaId,
|
||||
UnitId = constructionRisk.UnitId,
|
||||
RiskLevel = constructionRisk.RiskLevel
|
||||
RiskLevel = constructionRisk.RiskLevel,
|
||||
Coordinate = constructionRisk.Coordinate,
|
||||
};
|
||||
Funs.DB.HSSE_ConstructionRisk.InsertOnSubmit(newconstructionRisk);
|
||||
Funs.DB.SubmitChanges();
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public static void AddConstructionRiskControl(Model.HSSE_ConstructionRiskControl constructionRiskControl)
|
||||
{
|
||||
@@ -86,12 +87,12 @@ namespace BLL
|
||||
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
public static void AddConstructionRiskControl(List<Model.HSSE_ConstructionRiskControl > constructionRisk,string constructionRiskId)
|
||||
public static void AddConstructionRiskControl(List<Model.HSSE_ConstructionRiskControl> constructionRisk, string constructionRiskId)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
int i = 1;
|
||||
|
||||
var cons = Funs.DB.HSSE_ConstructionRiskControl.Where(x => x.ConstructionRiskId == constructionRiskId);
|
||||
var cons = Funs.DB.HSSE_ConstructionRiskControl.Where(x => x.ConstructionRiskId == constructionRiskId);
|
||||
if (cons.Count() > 0)
|
||||
{
|
||||
Funs.DB.HSSE_ConstructionRiskControl.DeleteAllOnSubmit(cons);
|
||||
@@ -105,7 +106,7 @@ namespace BLL
|
||||
Measures = item.Measures,
|
||||
CheckResult = item.CheckResult,
|
||||
CheckMan = item.CheckMan,
|
||||
Rectification = item.Rectification,
|
||||
Rectification = item.Rectification,
|
||||
ShowIndex = i++,
|
||||
};
|
||||
Funs.DB.HSSE_ConstructionRiskControl.InsertOnSubmit(newconstructionRisk);
|
||||
@@ -134,6 +135,7 @@ namespace BLL
|
||||
newHazardList.WorkAreaId = hazardList.WorkAreaId;
|
||||
newHazardList.UnitId = hazardList.UnitId;
|
||||
newHazardList.RiskLevel = hazardList.RiskLevel;
|
||||
newHazardList.Coordinate = hazardList.Coordinate;
|
||||
db.SubmitChanges();
|
||||
}
|
||||
else
|
||||
@@ -152,7 +154,7 @@ namespace BLL
|
||||
Model.HSSE_ConstructionRisk hazardList = db.HSSE_ConstructionRisk.FirstOrDefault(e => e.ConstructionRiskId == constructionRiskId);
|
||||
if (hazardList != null)
|
||||
{
|
||||
|
||||
|
||||
var constructionRiskControls = db.HSSE_ConstructionRiskControl.Where(e => e.ConstructionRiskId == constructionRiskId);
|
||||
if (constructionRiskControls.Count() > 0)
|
||||
{
|
||||
@@ -162,6 +164,6 @@ namespace BLL
|
||||
db.SubmitChanges();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
using FineUIPro;
|
||||
using Microsoft.Office.Interop.Excel;
|
||||
using Microsoft.SqlServer.Dts.Runtime;
|
||||
using Model;
|
||||
using System;
|
||||
using System.Collections;
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
using FineUIPro;
|
||||
using Microsoft.SqlServer.Dts.Runtime;
|
||||
using Model;
|
||||
using NPOI.HSSF.Record.Aggregates;
|
||||
using NPOI.SS.Formula.PTG;
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
using FineUIPro;
|
||||
using Microsoft.SqlServer.Dts.Runtime;
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Linq;
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
using FineUIPro;
|
||||
using Microsoft.SqlServer.Dts.Runtime;
|
||||
using Model;
|
||||
using System;
|
||||
using System.Collections;
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
using FineUIPro;
|
||||
using Microsoft.SqlServer.Dts.Runtime;
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
using FineUIPro;
|
||||
using Microsoft.SqlServer.Dts.Runtime;
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
|
||||
Reference in New Issue
Block a user