数据库变更CNPC_XJYJ
This commit is contained in:
@@ -10,7 +10,7 @@ namespace BLL
|
||||
/// </summary>
|
||||
public static class ComprehensiveService
|
||||
{
|
||||
public static Model.SGGLDB db = Funs.DB;
|
||||
public static Model.CNPCDB db = Funs.DB;
|
||||
|
||||
/// <summary>
|
||||
/// 根据主键获取本周(月)报综合信息
|
||||
@@ -38,7 +38,7 @@ namespace BLL
|
||||
/// <param name="thisWeekOrMonthContent"></param>
|
||||
public static void AddComprehensive(Model.Report_Comprehensive comprehensive)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.Report_Comprehensive newComprehensive = new Model.Report_Comprehensive();
|
||||
newComprehensive.ComprehensiveId = comprehensive.ComprehensiveId;
|
||||
newComprehensive.ReportId = comprehensive.ReportId;
|
||||
@@ -55,7 +55,7 @@ namespace BLL
|
||||
/// <param name="reportId"></param>
|
||||
public static void DeleteComprehensiveByReportId(string reportId)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
var q = (from x in db.Report_Comprehensive where x.ReportId == reportId select x).ToList();
|
||||
if (q.Count() > 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user