数据库变更CNPC_XJYJ
This commit is contained in:
@@ -11,7 +11,7 @@ namespace BLL.API.CQMS
|
||||
{
|
||||
public static bool AddInspectionManagement(InspectionManagement inspectionManagement)
|
||||
{
|
||||
using (var db = new Model.SGGLDB(Funs.ConnString))
|
||||
using (var db = new Model.CNPCDB(Funs.ConnString))
|
||||
{
|
||||
Model.ProcessControl_InspectionManagement newInspectionManagement=null;
|
||||
if (!string.IsNullOrEmpty(inspectionManagement.InspectionId))
|
||||
@@ -79,7 +79,7 @@ namespace BLL.API.CQMS
|
||||
|
||||
public static List<InspectionManagementDetail> getInspectionManagementDetail(string projectId, int index, int page, string state, string name)
|
||||
{
|
||||
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
|
||||
using (Model.CNPCDB db = new Model.CNPCDB(Funs.ConnString))
|
||||
{
|
||||
var dataList = from x in db.ProcessControl_InspectionManagementDetail
|
||||
where x.ProcessControl_InspectionManagement.ProjectId == projectId
|
||||
@@ -159,7 +159,7 @@ namespace BLL.API.CQMS
|
||||
}
|
||||
public static List<InspectionManagement> getInspectionManagement(string projectId, int index, int page, string state, string name)
|
||||
{
|
||||
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
|
||||
using (Model.CNPCDB db = new Model.CNPCDB(Funs.ConnString))
|
||||
{
|
||||
var dataList = from x in db.ProcessControl_InspectionManagement
|
||||
where x.ProjectId == projectId
|
||||
@@ -237,7 +237,7 @@ namespace BLL.API.CQMS
|
||||
|
||||
public static List<InspectionManagementDetail> getInspectionManagementDetailByinspectionId(string inspectionId)
|
||||
{
|
||||
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
|
||||
using (Model.CNPCDB db = new Model.CNPCDB(Funs.ConnString))
|
||||
{
|
||||
var dataList = from x in db.ProcessControl_InspectionManagementDetail
|
||||
where x.InspectionId == inspectionId
|
||||
|
||||
Reference in New Issue
Block a user