数据库变更CNPC_XJYJ

This commit is contained in:
2025-08-04 18:04:41 +08:00
parent bafbf97359
commit 79a7f35e22
679 changed files with 5590 additions and 3465 deletions
@@ -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)
{
@@ -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)
{
@@ -10,7 +10,7 @@ namespace BLL
/// </summary>
public static class NextQualityControlService
{
public static Model.SGGLDB db = Funs.DB;
public static Model.CNPCDB db = Funs.DB;
/// <summary>
/// 根据主键获取下周质量控制点
@@ -41,7 +41,7 @@ namespace BLL
/// <param name="nextQualityControl"></param>
public static void AddNextQualityControl(Model.Report_NextQualityControl nextQualityControl)
{
Model.SGGLDB db = Funs.DB;
Model.CNPCDB db = Funs.DB;
Model.Report_NextQualityControl newNextQualityControl = new Model.Report_NextQualityControl();
newNextQualityControl.NextQualityControlId = nextQualityControl.NextQualityControlId;
newNextQualityControl.ReportId = nextQualityControl.ReportId;
@@ -56,7 +56,7 @@ namespace BLL
/// <param name="reportId"></param>
public static void DeleteNextQualityControlByReportId(string reportId)
{
Model.SGGLDB db = Funs.DB;
Model.CNPCDB db = Funs.DB;
var q = (from x in db.Report_NextQualityControl where x.ReportId == reportId select x).ToList();
if (q.Count() > 0)
{
@@ -10,7 +10,7 @@ namespace BLL
/// </summary>
public static class QualityGoalService
{
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 Add_QualityGoal(Model.Report_QualityGoal comprehensive)
{
Model.SGGLDB db = Funs.DB;
Model.CNPCDB db = Funs.DB;
Model.Report_QualityGoal newComprehensive = new Model.Report_QualityGoal();
newComprehensive.ReportId = comprehensive.ReportId;
newComprehensive.ProjectId = comprehensive.ProjectId;
@@ -73,7 +73,7 @@ namespace BLL
/// <param name="reportId"></param>
public static void Delete_QualityGoalByReportId(string reportId)
{
Model.SGGLDB db = Funs.DB;
Model.CNPCDB db = Funs.DB;
var q = (from x in db.Report_QualityGoal where x.ReportId == reportId select x).ToList();
if (q.Count() > 0)
{
@@ -10,7 +10,7 @@ namespace BLL
/// </summary>
public static class RowMaterialProblemService
{
public static Model.SGGLDB db = Funs.DB;
public static Model.CNPCDB db = Funs.DB;
/// <summary>
/// 根据主键获取原材料问题
@@ -38,7 +38,7 @@ namespace BLL
/// <param name="rowMaterialProblem"></param>
public static void AddRowMaterialProblem(Model.Report_RowMaterialProblem rowMaterialProblem)
{
Model.SGGLDB db = Funs.DB;
Model.CNPCDB db = Funs.DB;
Model.Report_RowMaterialProblem newRowMaterialProblem = new Model.Report_RowMaterialProblem();
newRowMaterialProblem.RowMaterialProblemId = rowMaterialProblem.RowMaterialProblemId;
newRowMaterialProblem.ReportId = rowMaterialProblem.ReportId;
@@ -57,7 +57,7 @@ namespace BLL
/// <param name="reportId"></param>
public static void DeleteRowMaterialProbleByReportId(string reportId)
{
Model.SGGLDB db = Funs.DB;
Model.CNPCDB db = Funs.DB;
var q = (from x in db.Report_RowMaterialProblem where x.ReportId == reportId select x).ToList();
if (q.Count() > 0)
{
@@ -10,7 +10,7 @@ namespace BLL
/// </summary>
public static class ThisWeekOrMonthContentService
{
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 AddThisWeekOrMonthContent(Model.Report_ThisWeekOrMonthContent thisWeekOrMonthContent)
{
Model.SGGLDB db = Funs.DB;
Model.CNPCDB db = Funs.DB;
Model.Report_ThisWeekOrMonthContent newThisWeekOrMonthContent = new Model.Report_ThisWeekOrMonthContent();
newThisWeekOrMonthContent.ContentId = thisWeekOrMonthContent.ContentId;
newThisWeekOrMonthContent.ReportId = thisWeekOrMonthContent.ReportId;
@@ -53,7 +53,7 @@ namespace BLL
/// <param name="reportId"></param>
public static void DeleteThisWeekOrMonthContentByReportId(string reportId)
{
Model.SGGLDB db = Funs.DB;
Model.CNPCDB db = Funs.DB;
var q = (from x in db.Report_ThisWeekOrMonthContent where x.ReportId == reportId select x).ToList();
if (q.Count() > 0)
{
@@ -8,7 +8,7 @@ namespace BLL
{
public static class WeekAndMonthReportService
{
public static Model.SGGLDB db = Funs.DB;
public static Model.CNPCDB db = Funs.DB;
/// <summary>
/// 记录数
@@ -79,7 +79,7 @@ namespace BLL
/// <param name="report"></param>
public static void AddWeekAndMonthReport(Model.Report_WeekAndMonthReport report)
{
Model.SGGLDB db = Funs.DB;
Model.CNPCDB db = Funs.DB;
Model.Report_WeekAndMonthReport newReport = new Model.Report_WeekAndMonthReport();
newReport.ReportId = report.ReportId;
newReport.Period = report.Period;
@@ -97,7 +97,7 @@ namespace BLL
/// <param name="report"></param>
public static void UpdateWeekAndMonthReport(Model.Report_WeekAndMonthReport report)
{
Model.SGGLDB db = Funs.DB;
Model.CNPCDB db = Funs.DB;
Model.Report_WeekAndMonthReport newReport = db.Report_WeekAndMonthReport.FirstOrDefault(e => e.ReportId == report.ReportId);
if (newReport != null)
{
@@ -116,7 +116,7 @@ namespace BLL
/// <param name="reportId"></param>
public static void DeleteWeekAndMonthReportById(string reportId)
{
Model.SGGLDB db = Funs.DB;
Model.CNPCDB db = Funs.DB;
Model.Report_WeekAndMonthReport report = db.Report_WeekAndMonthReport.FirstOrDefault(e => e.ReportId == reportId);
if (report != null)
{