数据库变更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
+47 -47
View File
@@ -9,7 +9,7 @@ namespace BLL
/// </summary>
public static class LicensePublicService
{
public static Model.SGGLDB db = Funs.DB;
public static Model.CNPCDB db = Funs.DB;
/// <summary>
/// 状态下拉框
/// </summary>
@@ -55,7 +55,7 @@ namespace BLL
/// <param name="fireWork"></param>
public static void AddFireWork(Model.License_FireWork fireWork)
{
Model.SGGLDB db = Funs.DB;
Model.CNPCDB db = Funs.DB;
Model.License_FireWork newFireWork = new Model.License_FireWork
{
FireWorkId = fireWork.FireWorkId,
@@ -91,7 +91,7 @@ namespace BLL
/// <param name="fireWork"></param>
public static void UpdateFireWork(Model.License_FireWork fireWork)
{
Model.SGGLDB db = Funs.DB;
Model.CNPCDB db = Funs.DB;
Model.License_FireWork newFireWork = db.License_FireWork.FirstOrDefault(e => e.FireWorkId == fireWork.FireWorkId);
if (newFireWork != null)
{
@@ -118,7 +118,7 @@ namespace BLL
/// <param name="fireWorkId"></param>
public static void DeleteFireWorkById(string fireWorkId)
{
Model.SGGLDB db = Funs.DB;
Model.CNPCDB db = Funs.DB;
Model.License_FireWork fireWork = db.License_FireWork.FirstOrDefault(e => e.FireWorkId == fireWorkId);
if (fireWork != null)
{
@@ -151,7 +151,7 @@ namespace BLL
/// <param name="fireWork"></param>
public static void AddApply(Model.License_Apply fireWork)
{
Model.SGGLDB db = Funs.DB;
Model.CNPCDB db = Funs.DB;
Model.License_Apply newFireWork = new Model.License_Apply
{
LicenseApplyId = fireWork.LicenseApplyId,
@@ -175,7 +175,7 @@ namespace BLL
/// <param name="fireWork"></param>
public static void UpdateApply(Model.License_Apply fireWork)
{
Model.SGGLDB db = Funs.DB;
Model.CNPCDB db = Funs.DB;
Model.License_Apply newFireWork = db.License_Apply.FirstOrDefault(e => e.LicenseApplyId == fireWork.LicenseApplyId);
if (newFireWork != null)
{
@@ -199,7 +199,7 @@ namespace BLL
/// <param name="fireWorkId"></param>
public static void DeleteApplyById(string licenseApplyId)
{
Model.SGGLDB db = Funs.DB;
Model.CNPCDB db = Funs.DB;
Model.License_Apply fireWork = db.License_Apply.FirstOrDefault(e => e.LicenseApplyId == licenseApplyId);
if (fireWork!=null)
{
@@ -230,7 +230,7 @@ namespace BLL
/// <param name="jiaBan"></param>
public static void AddJiaBan(Model.License_JiaBan jiaBan)
{
Model.SGGLDB db = Funs.DB;
Model.CNPCDB db = Funs.DB;
Model.License_JiaBan newJiaBan = new Model.License_JiaBan
{
JiaBanId = jiaBan.JiaBanId,
@@ -271,7 +271,7 @@ namespace BLL
/// <param name="heightWork"></param>
public static void UpdateJiaBan(Model.License_JiaBan jiaBan)
{
Model.SGGLDB db = Funs.DB;
Model.CNPCDB db = Funs.DB;
Model.License_JiaBan newJiaBan = db.License_JiaBan.FirstOrDefault(e => e.JiaBanId == jiaBan.JiaBanId);
if (newJiaBan != null)
{
@@ -304,7 +304,7 @@ namespace BLL
/// <param name="jiaBanId"></param>
public static void DeleteJiaBanById(string jiaBanId)
{
Model.SGGLDB db = Funs.DB;
Model.CNPCDB db = Funs.DB;
Model.License_JiaBan jiaBan = db.License_JiaBan.FirstOrDefault(e => e.JiaBanId == jiaBanId);
if (jiaBan != null)
{
@@ -337,7 +337,7 @@ namespace BLL
/// <param name="heightWork"></param>
public static void AddHeightWork(Model.License_HeightWork heightWork)
{
Model.SGGLDB db = Funs.DB;
Model.CNPCDB db = Funs.DB;
Model.License_HeightWork newHeightWork = new Model.License_HeightWork
{
HeightWorkId = heightWork.HeightWorkId,
@@ -373,7 +373,7 @@ namespace BLL
/// <param name="heightWork"></param>
public static void UpdateHeightWork(Model.License_HeightWork heightWork)
{
Model.SGGLDB db = Funs.DB;
Model.CNPCDB db = Funs.DB;
Model.License_HeightWork newHeightWork = db.License_HeightWork.FirstOrDefault(e => e.HeightWorkId == heightWork.HeightWorkId);
if (newHeightWork != null)
{
@@ -401,7 +401,7 @@ namespace BLL
/// <param name="heightWorkId"></param>
public static void DeleteHeightWorkById(string heightWorkId)
{
Model.SGGLDB db = Funs.DB;
Model.CNPCDB db = Funs.DB;
Model.License_HeightWork heightWork = db.License_HeightWork.FirstOrDefault(e => e.HeightWorkId == heightWorkId);
if (heightWork != null)
{
@@ -434,7 +434,7 @@ namespace BLL
/// <param name="limitedSpace"></param>
public static void AddLimitedSpace(Model.License_LimitedSpace limitedSpace)
{
Model.SGGLDB db = Funs.DB;
Model.CNPCDB db = Funs.DB;
Model.License_LimitedSpace newLimitedSpace = new Model.License_LimitedSpace
{
LimitedSpaceId = limitedSpace.LimitedSpaceId,
@@ -470,7 +470,7 @@ namespace BLL
/// <param name="limitedSpace"></param>
public static void UpdateLimitedSpace(Model.License_LimitedSpace limitedSpace)
{
Model.SGGLDB db = Funs.DB;
Model.CNPCDB db = Funs.DB;
Model.License_LimitedSpace newLimitedSpace = db.License_LimitedSpace.FirstOrDefault(e => e.LimitedSpaceId == limitedSpace.LimitedSpaceId);
if (newLimitedSpace != null)
{
@@ -497,7 +497,7 @@ namespace BLL
/// <param name="limitedSpaceId"></param>
public static void DeleteLimitedSpaceById(string limitedSpaceId)
{
Model.SGGLDB db = Funs.DB;
Model.CNPCDB db = Funs.DB;
Model.License_LimitedSpace limitedSpace = db.License_LimitedSpace.FirstOrDefault(e => e.LimitedSpaceId == limitedSpaceId);
if (limitedSpace != null)
{
@@ -530,7 +530,7 @@ namespace BLL
/// <param name="radialWork"></param>
public static void AddRadialWork(Model.License_RadialWork radialWork)
{
Model.SGGLDB db = Funs.DB;
Model.CNPCDB db = Funs.DB;
Model.License_RadialWork newRadialWork = new Model.License_RadialWork
{
RadialWorkId = radialWork.RadialWorkId,
@@ -569,7 +569,7 @@ namespace BLL
/// <param name="radialWork"></param>
public static void UpdateRadialWork(Model.License_RadialWork radialWork)
{
Model.SGGLDB db = Funs.DB;
Model.CNPCDB db = Funs.DB;
Model.License_RadialWork newRadialWork = db.License_RadialWork.FirstOrDefault(e => e.RadialWorkId == radialWork.RadialWorkId);
if (newRadialWork != null)
{
@@ -606,7 +606,7 @@ namespace BLL
/// <param name="radialWorkId"></param>
public static void DeleteRadialWorkById(string radialWorkId)
{
Model.SGGLDB db = Funs.DB;
Model.CNPCDB db = Funs.DB;
Model.License_RadialWork radialWork = db.License_RadialWork.FirstOrDefault(e => e.RadialWorkId == radialWorkId);
if (radialWork != null)
{
@@ -641,7 +641,7 @@ namespace BLL
/// <param name="openCircuit"></param>
public static void AddOpenCircuit(Model.License_OpenCircuit openCircuit)
{
Model.SGGLDB db = Funs.DB;
Model.CNPCDB db = Funs.DB;
Model.License_OpenCircuit newOpenCircuit = new Model.License_OpenCircuit
{
OpenCircuitId = openCircuit.OpenCircuitId,
@@ -677,7 +677,7 @@ namespace BLL
/// <param name="openCircuit"></param>
public static void UpdateOpenCircuit(Model.License_OpenCircuit openCircuit)
{
Model.SGGLDB db = Funs.DB;
Model.CNPCDB db = Funs.DB;
Model.License_OpenCircuit newOpenCircuit = db.License_OpenCircuit.FirstOrDefault(e => e.OpenCircuitId == openCircuit.OpenCircuitId);
if (newOpenCircuit != null)
{
@@ -705,7 +705,7 @@ namespace BLL
/// <param name="openCircuitId"></param>
public static void DeleteOpenCircuitById(string openCircuitId)
{
Model.SGGLDB db = Funs.DB;
Model.CNPCDB db = Funs.DB;
Model.License_OpenCircuit openCircuit = db.License_OpenCircuit.FirstOrDefault(e => e.OpenCircuitId == openCircuitId);
if (openCircuit != null)
{
@@ -738,7 +738,7 @@ namespace BLL
/// <param name="breakGround"></param>
public static void AddBreakGround(Model.License_BreakGround breakGround)
{
Model.SGGLDB db = Funs.DB;
Model.CNPCDB db = Funs.DB;
Model.License_BreakGround newBreakGround = new Model.License_BreakGround
{
BreakGroundId = breakGround.BreakGroundId,
@@ -773,7 +773,7 @@ namespace BLL
/// <param name="breakGround"></param>
public static void UpdateBreakGround(Model.License_BreakGround breakGround)
{
Model.SGGLDB db = Funs.DB;
Model.CNPCDB db = Funs.DB;
Model.License_BreakGround newBreakGround = db.License_BreakGround.FirstOrDefault(e => e.BreakGroundId == breakGround.BreakGroundId);
if (newBreakGround != null)
{
@@ -800,7 +800,7 @@ namespace BLL
/// <param name="breakGroundId"></param>
public static void DeleteBreakGroundById(string breakGroundId)
{
Model.SGGLDB db = Funs.DB;
Model.CNPCDB db = Funs.DB;
Model.License_BreakGround breakGround = db.License_BreakGround.FirstOrDefault(e => e.BreakGroundId == breakGroundId);
if (breakGround != null)
{
@@ -835,7 +835,7 @@ namespace BLL
/// <param name="nightWork"></param>
public static void AddNightWork(Model.License_NightWork nightWork)
{
Model.SGGLDB db = Funs.DB;
Model.CNPCDB db = Funs.DB;
Model.License_NightWork newNightWork = new Model.License_NightWork
{
NightWorkId = nightWork.NightWorkId,
@@ -873,7 +873,7 @@ namespace BLL
/// <param name="nightWork"></param>
public static void UpdateNightWork(Model.License_NightWork nightWork)
{
Model.SGGLDB db = Funs.DB;
Model.CNPCDB db = Funs.DB;
Model.License_NightWork newNightWork = db.License_NightWork.FirstOrDefault(e => e.NightWorkId == nightWork.NightWorkId);
if (newNightWork != null)
{
@@ -903,7 +903,7 @@ namespace BLL
/// <param name="nightWorkId"></param>
public static void DeleteNightWorkById(string nightWorkId)
{
Model.SGGLDB db = Funs.DB;
Model.CNPCDB db = Funs.DB;
Model.License_NightWork nightWork = db.License_NightWork.FirstOrDefault(e => e.NightWorkId == nightWorkId);
if (nightWork != null)
{
@@ -936,7 +936,7 @@ namespace BLL
/// <param name="liftingWork"></param>
public static void AddLiftingWork(Model.License_LiftingWork liftingWork)
{
Model.SGGLDB db = Funs.DB;
Model.CNPCDB db = Funs.DB;
Model.License_LiftingWork newLiftingWork = new Model.License_LiftingWork
{
LiftingWorkId = liftingWork.LiftingWorkId,
@@ -972,7 +972,7 @@ namespace BLL
/// <param name="liftingWork"></param>
public static void UpdateLiftingWork(Model.License_LiftingWork liftingWork)
{
Model.SGGLDB db = Funs.DB;
Model.CNPCDB db = Funs.DB;
Model.License_LiftingWork newLiftingWork = db.License_LiftingWork.FirstOrDefault(e => e.LiftingWorkId == liftingWork.LiftingWorkId);
if (newLiftingWork != null)
{
@@ -1000,7 +1000,7 @@ namespace BLL
/// <param name="liftingWorkId"></param>
public static void DeleteLiftingWorkById(string liftingWorkId)
{
Model.SGGLDB db = Funs.DB;
Model.CNPCDB db = Funs.DB;
Model.License_LiftingWork liftingWork = db.License_LiftingWork.FirstOrDefault(e => e.LiftingWorkId == liftingWorkId);
if (liftingWork != null)
{
@@ -1033,7 +1033,7 @@ namespace BLL
/// <param name="fireWork"></param>
public static void AddTempElectricity(Model.License_TempElectricity tempElectricity)
{
Model.SGGLDB db = Funs.DB;
Model.CNPCDB db = Funs.DB;
Model.License_TempElectricity newTempElectricity = new Model.License_TempElectricity
{
TempElectricityId = tempElectricity.TempElectricityId,
@@ -1069,7 +1069,7 @@ namespace BLL
/// <param name="fireWork"></param>
public static void UpdateTempElectricity(Model.License_TempElectricity tempElectricity)
{
Model.SGGLDB db = Funs.DB;
Model.CNPCDB db = Funs.DB;
Model.License_TempElectricity newTempElectricity = db.License_TempElectricity.FirstOrDefault(e => e.TempElectricityId == tempElectricity.TempElectricityId);
if (newTempElectricity != null)
{
@@ -1096,7 +1096,7 @@ namespace BLL
/// <param name="fireWorkId"></param>
public static void DeleteTempElectricityById(string tempElectricityId)
{
Model.SGGLDB db = Funs.DB;
Model.CNPCDB db = Funs.DB;
Model.License_TempElectricity tempElectricity = db.License_TempElectricity.FirstOrDefault(e => e.TempElectricityId == tempElectricityId);
if (tempElectricity != null)
{
@@ -1129,7 +1129,7 @@ namespace BLL
/// <param name="fireWork"></param>
public static void AddPressureTest(Model.License_PressureTest pressureTest)
{
Model.SGGLDB db = Funs.DB;
Model.CNPCDB db = Funs.DB;
Model.License_PressureTest newPressureTest = new Model.License_PressureTest
{
PressureTestId = pressureTest.PressureTestId,
@@ -1166,7 +1166,7 @@ namespace BLL
/// <param name="fireWork"></param>
public static void UpdatePressureTest(Model.License_PressureTest pressureTest)
{
Model.SGGLDB db = Funs.DB;
Model.CNPCDB db = Funs.DB;
Model.License_PressureTest newPressureTest = db.License_PressureTest.FirstOrDefault(e => e.PressureTestId == pressureTest.PressureTestId);
if (newPressureTest != null)
{
@@ -1193,7 +1193,7 @@ namespace BLL
/// <param name="fireWorkId"></param>
public static void DeletePressureTestById(string pressureTestId)
{
Model.SGGLDB db = Funs.DB;
Model.CNPCDB db = Funs.DB;
Model.License_PressureTest pressureTest = db.License_PressureTest.FirstOrDefault(e => e.PressureTestId == pressureTestId);
if (pressureTest != null)
{
@@ -1240,7 +1240,7 @@ namespace BLL
/// <param name="licenseItem"></param>
public static void AddLicenseItem(Model.License_LicenseItem licenseItem)
{
Model.SGGLDB db = Funs.DB;
Model.CNPCDB db = Funs.DB;
Model.License_LicenseItem newLicenseItem = new Model.License_LicenseItem
{
LicenseItemId = SQLHelper.GetNewID(),
@@ -1260,7 +1260,7 @@ namespace BLL
/// <param name="licenseItem"></param>
public static void UpdateLicenseItem(Model.License_LicenseItem licenseItem)
{
Model.SGGLDB db = Funs.DB;
Model.CNPCDB db = Funs.DB;
Model.License_LicenseItem newLicenseItem = db.License_LicenseItem.FirstOrDefault(e => e.LicenseItemId == licenseItem.LicenseItemId);
if (newLicenseItem != null)
{
@@ -1276,7 +1276,7 @@ namespace BLL
/// <param name="licenseItemId"></param>
public static void DeleteLicenseItemById(string licenseItemId)
{
Model.SGGLDB db = Funs.DB;
Model.CNPCDB db = Funs.DB;
Model.License_LicenseItem licenseItem = db.License_LicenseItem.FirstOrDefault(e => e.LicenseItemId == licenseItemId);
if (licenseItem != null)
{
@@ -1291,7 +1291,7 @@ namespace BLL
/// <param name="dataId"></param>
public static void DeleteLicenseItemByDataId(string dataId)
{
Model.SGGLDB db = Funs.DB;
Model.CNPCDB db = Funs.DB;
var licenseItems = from x in db.License_LicenseItem where x.DataId == dataId select x;
if (licenseItems.Count()>0)
{
@@ -1332,7 +1332,7 @@ namespace BLL
/// <param name="flowOperate"></param>
public static void AddFlowOperate(Model.License_FlowOperate flowOperate)
{
Model.SGGLDB db = Funs.DB;
Model.CNPCDB db = Funs.DB;
Model.License_FlowOperate newFlowOperate = new Model.License_FlowOperate
{
FlowOperateId = SQLHelper.GetNewID(),
@@ -1354,7 +1354,7 @@ namespace BLL
/// <param name="flowOperate"></param>
public static void UpdateFlowOperate(Model.License_FlowOperate flowOperate)
{
Model.SGGLDB db = Funs.DB;
Model.CNPCDB db = Funs.DB;
Model.License_FlowOperate newFlowOperate = db.License_FlowOperate.FirstOrDefault(e => e.FlowOperateId == flowOperate.FlowOperateId);
if (newFlowOperate != null)
{
@@ -1373,7 +1373,7 @@ namespace BLL
/// <param name="flowOperateId"></param>
public static void DeleteFlowOperateById(string flowOperateId)
{
Model.SGGLDB db = Funs.DB;
Model.CNPCDB db = Funs.DB;
Model.License_FlowOperate flowOperate = db.License_FlowOperate.FirstOrDefault(e => e.FlowOperateId == flowOperateId);
if (flowOperate != null)
{
@@ -1389,7 +1389,7 @@ namespace BLL
/// <param name="dataId"></param>
public static void DeleteFlowOperateByDataId(string dataId)
{
Model.SGGLDB db = Funs.DB;
Model.CNPCDB db = Funs.DB;
var flowOperates = from x in db.License_FlowOperate where x.DataId == dataId select x;
if (flowOperates.Count() > 0)
{
@@ -1431,7 +1431,7 @@ namespace BLL
/// <param name="flowOperateItem"></param>
public static void AddFlowOperateItem(Model.License_FlowOperateItem flowOperateItem)
{
Model.SGGLDB db = Funs.DB;
Model.CNPCDB db = Funs.DB;
Model.License_FlowOperateItem newFlowOperateItem = new Model.License_FlowOperateItem
{
FlowOperateItemId = flowOperateItem.FlowOperateItemId,
@@ -1451,7 +1451,7 @@ namespace BLL
/// <param name="flowOperateId"></param>
public static void DeleteFlowOperateItemByDataId(string flowOperateId)
{
Model.SGGLDB db = Funs.DB;
Model.CNPCDB db = Funs.DB;
var flowOperateItems = from x in db.License_FlowOperateItem where x.FlowOperateId == flowOperateId select x;
if (flowOperateItems.Count() > 0)
{