数据库变更CNPC_XJYJ
This commit is contained in:
@@ -10,7 +10,7 @@ namespace BLL
|
||||
/// </summary>
|
||||
public static class ConstructionProblemsService
|
||||
{
|
||||
public static Model.SGGLDB db = Funs.DB;
|
||||
public static Model.CNPCDB db = Funs.DB;
|
||||
|
||||
/// <summary>
|
||||
/// 根据主键获取施工过程问题
|
||||
@@ -48,7 +48,7 @@ namespace BLL
|
||||
/// <param name="constructionProblems"></param>
|
||||
public static void AddConstructionProblems(Model.Report_ConstructionProblems constructionProblems)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.Report_ConstructionProblems newConstructionProblems = new Model.Report_ConstructionProblems();
|
||||
newConstructionProblems.ConstructionProblemsId = constructionProblems.ConstructionProblemsId;
|
||||
newConstructionProblems.ReportId = constructionProblems.ReportId;
|
||||
@@ -67,7 +67,7 @@ namespace BLL
|
||||
/// <param name="reportId"></param>
|
||||
public static void DeleteConstructionProblemsByReportId(string reportId)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
var q = (from x in db.Report_ConstructionProblems where x.ReportId == reportId select x).ToList();
|
||||
if (q.Count() > 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user