数据库变更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
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace BLL.API.CQMS
|
||||
public static List<BreakdownProject> getBreakdowns(string projectId, string keyWord)
|
||||
{
|
||||
List<BreakdownProject> res = new List<BreakdownProject>();
|
||||
using (var db = new Model.SGGLDB(Funs.ConnString))
|
||||
using (var db = new Model.CNPCDB(Funs.ConnString))
|
||||
{
|
||||
var q = from x in db.View_WBS_BreakdownProject
|
||||
where x.ProjectId == projectId && x.IsSelected==true
|
||||
|
||||
Reference in New Issue
Block a user