数据库变更CNPC_XJYJ
This commit is contained in:
@@ -12,7 +12,7 @@ namespace BLL
|
||||
/// </summary>
|
||||
public static class InspectionManagementService
|
||||
{
|
||||
public static Model.SGGLDB db = Funs.DB;
|
||||
public static Model.CNPCDB db = Funs.DB;
|
||||
|
||||
/// <summary>
|
||||
/// 记录数
|
||||
@@ -225,7 +225,7 @@ namespace BLL
|
||||
/// <param name="inspectionManagement"></param>
|
||||
public static void AddInspectionManagement(Model.ProcessControl_InspectionManagement inspectionManagement)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.ProcessControl_InspectionManagement newInspectionManagement = new Model.ProcessControl_InspectionManagement();
|
||||
newInspectionManagement.InspectionId = inspectionManagement.InspectionId;
|
||||
newInspectionManagement.ProjectId = inspectionManagement.ProjectId;
|
||||
@@ -268,7 +268,7 @@ namespace BLL
|
||||
/// <param name="inspectionManagement"></param>
|
||||
public static void UpdateInspectionManagement(Model.ProcessControl_InspectionManagement inspectionManagement)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.ProcessControl_InspectionManagement newInspectionManagement = db.ProcessControl_InspectionManagement.FirstOrDefault(e => e.InspectionId == inspectionManagement.InspectionId);
|
||||
if (newInspectionManagement != null)
|
||||
{
|
||||
@@ -307,7 +307,7 @@ namespace BLL
|
||||
/// <param name="inspectionId"></param>
|
||||
public static void DeleteInspectionManagement(string inspectionId)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.ProcessControl_InspectionManagement inspectionManagement = db.ProcessControl_InspectionManagement.FirstOrDefault(e => e.InspectionId == inspectionId);
|
||||
if (inspectionManagement != null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user