数据库变更CNPC_XJYJ
This commit is contained in:
@@ -11,7 +11,7 @@ namespace BLL
|
||||
/// </summary>
|
||||
public static class ConstructionReportService
|
||||
{
|
||||
public static Model.SGGLDB db = Funs.DB;
|
||||
public static Model.CNPCDB db = Funs.DB;
|
||||
|
||||
/// <summary>
|
||||
/// 根据主键获取总承包商施工报告
|
||||
@@ -29,7 +29,7 @@ namespace BLL
|
||||
/// <param name="ConstructionReport"></param>
|
||||
public static void AddConstructionReport(Model.ZHGL_ConstructionReport ConstructionReport)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.ZHGL_ConstructionReport newConstructionReport = new Model.ZHGL_ConstructionReport
|
||||
{
|
||||
ConstructionReportId = ConstructionReport.ConstructionReportId,
|
||||
@@ -51,7 +51,7 @@ namespace BLL
|
||||
/// <param name="ConstructionReport"></param>
|
||||
public static void UpdateConstructionReport(Model.ZHGL_ConstructionReport ConstructionReport)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.ZHGL_ConstructionReport newConstructionReport = db.ZHGL_ConstructionReport.FirstOrDefault(e => e.ConstructionReportId == ConstructionReport.ConstructionReportId);
|
||||
if (newConstructionReport != null)
|
||||
{
|
||||
@@ -68,7 +68,7 @@ namespace BLL
|
||||
/// <param name="ConstructionReportId"></param>
|
||||
public static void DeleteConstructionReportById(string ConstructionReportId)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.ZHGL_ConstructionReport ConstructionReport = db.ZHGL_ConstructionReport.FirstOrDefault(e => e.ConstructionReportId == ConstructionReportId);
|
||||
if (ConstructionReport != null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user