数据库变更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
+7 -7
View File
@@ -17,7 +17,7 @@ namespace BLL
/// <returns>是否具有权限</returns>
public static List<string> GetSystemPowerList(string userId)
{
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
using (Model.CNPCDB db = new Model.CNPCDB(Funs.ConnString))
{
var getUser = db.Sys_User.FirstOrDefault(x => x.UserId == userId);
if (getUser != null)
@@ -100,7 +100,7 @@ namespace BLL
/// <returns>是否具有权限</returns>
public static List<string> GetAllMenuList(string projectId, string userId)
{
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
using (Model.CNPCDB db = new Model.CNPCDB(Funs.ConnString))
{
/// 启用且末级菜单
var getMenus = from x in db.Sys_Menu
@@ -193,7 +193,7 @@ namespace BLL
/// <returns>是否具有权限</returns>
public static List<string> GetAllButtonList(string projectId, string userId, string menuId)
{
Model.SGGLDB db = Funs.DB;
Model.CNPCDB db = Funs.DB;
List<string> buttonList = new List<string>();
try
{
@@ -264,7 +264,7 @@ namespace BLL
/// <returns>是否具有权限</returns>
public static bool GetAllButtonPowerList(string projectId, string userId, string menuId, string buttonName)
{
Model.SGGLDB db = Funs.DB;
Model.CNPCDB db = Funs.DB;
bool isPower = false; ////定义是否具备按钮权限
if (userId == Const.sedinId)
{
@@ -384,7 +384,7 @@ namespace BLL
/// <returns></returns>
public static bool IsHaveSystemPower(string userId,string menuType, string projectId)
{
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
using (Model.CNPCDB db = new Model.CNPCDB(Funs.ConnString))
{
bool isHave = false;
var getUser = db.Sys_User.FirstOrDefault(x => x.UserId == userId);
@@ -447,7 +447,7 @@ namespace BLL
/// <param name="lawRegulationId"></param>
public static void DeleteAttachFileById(string menuId, string id)
{
Model.SGGLDB db = Funs.DB;
Model.CNPCDB db = Funs.DB;
Model.AttachFile attachFile = db.AttachFile.FirstOrDefault(e => e.MenuId == menuId && e.ToKeyId == id);
if (attachFile != null)
{
@@ -469,7 +469,7 @@ namespace BLL
/// <param name="lawRegulationId"></param>
public static void DeleteFlowOperateByID(string id)
{
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
using (Model.CNPCDB db = new Model.CNPCDB(Funs.ConnString))
{
var flowOperateList = from x in db.Sys_FlowOperate where x.DataId == id select x;
if (flowOperateList.Count() > 0)