数据库变更CNPC_XJYJ
This commit is contained in:
@@ -10,7 +10,7 @@ namespace BLL
|
||||
/// </summary>
|
||||
public static class SolutionTemplateService
|
||||
{
|
||||
public static Model.SGGLDB db = Funs.DB;
|
||||
public static Model.CNPCDB db = Funs.DB;
|
||||
|
||||
/// <summary>
|
||||
/// 根据主键获取方案模板
|
||||
@@ -39,7 +39,7 @@ namespace BLL
|
||||
/// <param name="solutionTemplate"></param>
|
||||
public static void AddSolutionTemplate(Model.Solution_SolutionTemplate solutionTemplate)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.Solution_SolutionTemplate newSolutionTemplate = new Model.Solution_SolutionTemplate
|
||||
{
|
||||
SolutionTemplateId = solutionTemplate.SolutionTemplateId,
|
||||
@@ -63,7 +63,7 @@ namespace BLL
|
||||
/// <param name="solutionTemplate"></param>
|
||||
public static void UpdateSolutionTemplate(Model.Solution_SolutionTemplate solutionTemplate)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.Solution_SolutionTemplate newSolutionTemplate = db.Solution_SolutionTemplate.FirstOrDefault(e => e.SolutionTemplateId == solutionTemplate.SolutionTemplateId);
|
||||
if (newSolutionTemplate != null)
|
||||
{
|
||||
@@ -83,7 +83,7 @@ namespace BLL
|
||||
/// <param name="solutionTemplateId"></param>
|
||||
public static void DeleteSolutionTemplateById(string solutionTemplateId)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.Solution_SolutionTemplate solutionTemplate = db.Solution_SolutionTemplate.FirstOrDefault(e => e.SolutionTemplateId == solutionTemplateId);
|
||||
if (solutionTemplate != null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user