数据库变更CNPC_XJYJ
This commit is contained in:
@@ -11,7 +11,7 @@ namespace BLL
|
||||
/// </summary>
|
||||
public static class NondestructiveTestService
|
||||
{
|
||||
public static Model.SGGLDB db = Funs.DB;
|
||||
public static Model.CNPCDB db = Funs.DB;
|
||||
|
||||
/// <summary>
|
||||
/// 记录数
|
||||
@@ -36,7 +36,7 @@ namespace BLL
|
||||
/// <returns></returns>
|
||||
public static IEnumerable GetListData(string projectId, string UnitWorkId, string unitId, string welderCode, string startDate, string endDate, int startRowIndex, int maximumRows)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
IQueryable<Model.ProcessControl_NondestructiveTest> q = from x in db.ProcessControl_NondestructiveTest
|
||||
where x.ProjectId == projectId
|
||||
orderby x.NondestructiveTestDate descending
|
||||
@@ -110,7 +110,7 @@ namespace BLL
|
||||
/// <param name="nondestructiveTest"></param>
|
||||
public static void AddNondestructiveTest(Model.ProcessControl_NondestructiveTest nondestructiveTest)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.ProcessControl_NondestructiveTest newNondestructiveTest = new Model.ProcessControl_NondestructiveTest();
|
||||
newNondestructiveTest.NondestructiveTestId = nondestructiveTest.NondestructiveTestId;
|
||||
newNondestructiveTest.ProjectId = nondestructiveTest.ProjectId;
|
||||
@@ -137,7 +137,7 @@ namespace BLL
|
||||
/// <param name="nondestructiveTest"></param>
|
||||
public static void UpdateNondestructiveTest(Model.ProcessControl_NondestructiveTest nondestructiveTest)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.ProcessControl_NondestructiveTest newNondestructiveTest = db.ProcessControl_NondestructiveTest.FirstOrDefault(e => e.NondestructiveTestId == nondestructiveTest.NondestructiveTestId);
|
||||
if (newNondestructiveTest != null)
|
||||
{
|
||||
@@ -164,7 +164,7 @@ namespace BLL
|
||||
/// <param name="nondestructiveTestId"></param>
|
||||
public static void DeleteNondestructiveTest(string nondestructiveTestId)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.ProcessControl_NondestructiveTest nondestructiveTest = db.ProcessControl_NondestructiveTest.FirstOrDefault(e => e.NondestructiveTestId == nondestructiveTestId);
|
||||
if (nondestructiveTest != null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user