数据库变更CNPC_XJYJ
This commit is contained in:
@@ -7,7 +7,7 @@ namespace BLL
|
||||
/// </summary>
|
||||
public static class CompletionReportService
|
||||
{
|
||||
public static Model.SGGLDB db = Funs.DB;
|
||||
public static Model.CNPCDB db = Funs.DB;
|
||||
|
||||
/// <summary>
|
||||
/// 根据主键获取完工报告
|
||||
@@ -25,7 +25,7 @@ namespace BLL
|
||||
/// <param name="completionReport"></param>
|
||||
public static void AddCompletionReport(Model.Manager_CompletionReport completionReport)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.Manager_CompletionReport newCompletionReport = new Model.Manager_CompletionReport
|
||||
{
|
||||
CompletionReportId = completionReport.CompletionReportId,
|
||||
@@ -49,7 +49,7 @@ namespace BLL
|
||||
/// <param name="completionReport"></param>
|
||||
public static void UpdateCompletionReport(Model.Manager_CompletionReport completionReport)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.Manager_CompletionReport newCompletionReport = db.Manager_CompletionReport.FirstOrDefault(e => e.CompletionReportId == completionReport.CompletionReportId);
|
||||
if (newCompletionReport != null)
|
||||
{
|
||||
@@ -70,7 +70,7 @@ namespace BLL
|
||||
/// <param name="completionReportId"></param>
|
||||
public static void DeleteCompletionReportById(string completionReportId)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.Manager_CompletionReport completionReport = db.Manager_CompletionReport.FirstOrDefault(e => e.CompletionReportId == completionReportId);
|
||||
if (completionReport != null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user