数据库变更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
@@ -9,7 +9,7 @@ namespace BLL
{
public class ConstructionReportApproveService
{
public static Model.SGGLDB db = Funs.DB;
public static Model.CNPCDB db = Funs.DB;
/// <summary>
/// 获取分页列表
@@ -41,7 +41,7 @@ namespace BLL
/// <param name="noticeId">总承包商施工报告主键</param>
public static void DeleteConstructionReportApproveByConstructionReportId(string noticeId)
{
Model.SGGLDB db = Funs.DB;
Model.CNPCDB db = Funs.DB;
var data = (from x in db.ZHGL_ConstructionReportApprove where x.ConstructionReportId == noticeId select x).ToList();
if (data != null)
{
@@ -56,7 +56,7 @@ namespace BLL
/// <param name="ConstructionReportApprove">总承包商施工报告审批实体</param>
public static void AddConstructionReportApprove(Model.ZHGL_ConstructionReportApprove ConstructionReportApprove)
{
Model.SGGLDB db = Funs.DB;
Model.CNPCDB db = Funs.DB;
string newKeyID = SQLHelper.GetNewID(typeof(Model.ZHGL_ConstructionReportApprove));
Model.ZHGL_ConstructionReportApprove newConstructionReportApprove = new Model.ZHGL_ConstructionReportApprove();
newConstructionReportApprove.ConstructionReportApproveId = newKeyID;
@@ -73,7 +73,7 @@ namespace BLL
}
public static string AddConstructionReportApproveForApi(Model.ZHGL_ConstructionReportApprove ConstructionReportApprove)
{
using (var db = new Model.SGGLDB(Funs.ConnString))
using (var db = new Model.CNPCDB(Funs.ConnString))
{
string newKeyID = SQLHelper.GetNewID(typeof(Model.ZHGL_ConstructionReportApprove));
Model.ZHGL_ConstructionReportApprove newConstructionReportApprove = new Model.ZHGL_ConstructionReportApprove();
@@ -106,7 +106,7 @@ namespace BLL
/// <param name="ConstructionReportApprove">总承包商施工报告审批实体</param>
public static void UpdateConstructionReportApprove(Model.ZHGL_ConstructionReportApprove ConstructionReportApprove)
{
Model.SGGLDB db = Funs.DB;
Model.CNPCDB db = Funs.DB;
Model.ZHGL_ConstructionReportApprove newConstructionReportApprove = db.ZHGL_ConstructionReportApprove.First(e => e.ConstructionReportApproveId == ConstructionReportApprove.ConstructionReportApproveId);
newConstructionReportApprove.ConstructionReportId = ConstructionReportApprove.ConstructionReportId;
newConstructionReportApprove.ApproveMan = ConstructionReportApprove.ApproveMan;
@@ -124,14 +124,14 @@ namespace BLL
}
public static Model.ZHGL_ConstructionReportApprove GetConstructionReportApproveById(string ConstructionReportApproveId)
{
using (var db = new Model.SGGLDB(Funs.ConnString))
using (var db = new Model.CNPCDB(Funs.ConnString))
{
return db.ZHGL_ConstructionReportApprove.FirstOrDefault(x => x.ConstructionReportApproveId == ConstructionReportApproveId);
}
}
public static List<Model.ZHGL_ConstructionReportApprove> getListDataByIdForApi(string ConstructionReportId)
{
using (var db = new Model.SGGLDB(Funs.ConnString))
using (var db = new Model.CNPCDB(Funs.ConnString))
{
var q = from x in db.ZHGL_ConstructionReportApprove
where x.ConstructionReportId == ConstructionReportId && x.ApproveDate != null && x.ApproveType != "S"
@@ -169,7 +169,7 @@ namespace BLL
}
public static Model.ZHGL_ConstructionReportApprove getCurrApproveForApi(string id)
{
using (var db = new Model.SGGLDB(Funs.ConnString))
using (var db = new Model.CNPCDB(Funs.ConnString))
{
Model.ZHGL_ConstructionReportApprove newConstructionReportApprove = db.ZHGL_ConstructionReportApprove.FirstOrDefault(e => e.ConstructionReportId == id && e.ApproveDate == null);
if (newConstructionReportApprove != null)
@@ -188,7 +188,7 @@ namespace BLL
/// <param name="ConstructionReportApprove">总承包商施工报告审批实体</param>
public static void UpdateConstructionReportApproveForApi(Model.ZHGL_ConstructionReportApprove ConstructionReportApprove)
{
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
using (Model.CNPCDB db = new Model.CNPCDB(Funs.ConnString))
{
Model.ZHGL_ConstructionReportApprove newConstructionReportApprove = db.ZHGL_ConstructionReportApprove.FirstOrDefault(e => e.ConstructionReportApproveId == ConstructionReportApprove.ConstructionReportApproveId);