数据库变更CNPC_XJYJ
This commit is contained in:
@@ -8,7 +8,7 @@ namespace BLL
|
||||
{
|
||||
public static class ConstructionRiskListService
|
||||
{
|
||||
public static Model.SGGLDB db = Funs.DB;
|
||||
public static Model.CNPCDB db = Funs.DB;
|
||||
|
||||
/// <summary>
|
||||
/// 要求主键获取危险清单信息
|
||||
@@ -30,7 +30,7 @@ namespace BLL
|
||||
/// <param name="hazardList"></param>
|
||||
public static void AddConstructionRisk(Model.HSSE_ConstructionRisk constructionRisk)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.HSSE_ConstructionRisk newconstructionRisk = new Model.HSSE_ConstructionRisk
|
||||
{
|
||||
ProjectId = constructionRisk.ProjectId,
|
||||
@@ -56,7 +56,7 @@ namespace BLL
|
||||
|
||||
public static void AddConstructionRiskControl(Model.HSSE_ConstructionRiskControl constructionRiskControl)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.HSSE_ConstructionRiskControl newconstructionRisk = new Model.HSSE_ConstructionRiskControl
|
||||
{
|
||||
|
||||
@@ -73,7 +73,7 @@ namespace BLL
|
||||
}
|
||||
public static void UpdateConstructionRiskControl(Model.HSSE_ConstructionRiskControl constructionRiskControl)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.HSSE_ConstructionRiskControl newconstructionRisk = Funs.DB.HSSE_ConstructionRiskControl.FirstOrDefault(x => x.ControlId == constructionRiskControl.ControlId);
|
||||
|
||||
if (newconstructionRisk != null)
|
||||
@@ -91,7 +91,7 @@ namespace BLL
|
||||
}
|
||||
public static void AddConstructionRiskControl(List<Model.HSSE_ConstructionRiskControl> constructionRisk, string constructionRiskId)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
int i = 1;
|
||||
|
||||
var cons = Funs.DB.HSSE_ConstructionRiskControl.Where(x => x.ConstructionRiskId == constructionRiskId);
|
||||
@@ -122,7 +122,7 @@ namespace BLL
|
||||
/// <param name="hazardList"></param>
|
||||
public static void UpdateConstructionRisk(Model.HSSE_ConstructionRisk hazardList)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.HSSE_ConstructionRisk newHazardList = db.HSSE_ConstructionRisk.FirstOrDefault(e => e.ConstructionRiskId == hazardList.ConstructionRiskId);
|
||||
if (newHazardList != null)
|
||||
{
|
||||
@@ -153,7 +153,7 @@ namespace BLL
|
||||
/// <param name="constructionRiskId"> </param>
|
||||
public static void DeleteConstructionRisk(string constructionRiskId)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.HSSE_ConstructionRisk hazardList = db.HSSE_ConstructionRisk.FirstOrDefault(e => e.ConstructionRiskId == constructionRiskId);
|
||||
if (hazardList != null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user