全局处理问题:public static Model.SGGLDB db = Funs.DB;

This commit is contained in:
2026-04-23 11:36:49 +08:00
parent 5a38880a14
commit 746cb57619
315 changed files with 641 additions and 449 deletions
+3 -2
View File
@@ -7,7 +7,7 @@ namespace BLL
{
public static class OnPostService
{
public static Model.SGGLDB db = Funs.DB;
#region
/// <summary>
@@ -22,7 +22,7 @@ namespace BLL
/// <summary>
/// 定义变量
/// </summary>
private static IQueryable<Model.SitePerson_Person> getDataLists = from x in db.SitePerson_Person
private static IQueryable<Model.SitePerson_Person> getDataLists = from x in Funs.DB.SitePerson_Person
where x.IsUsed == true
select x;
@@ -37,6 +37,7 @@ namespace BLL
public static IEnumerable getListData(string projectId, string personName, string identityCard, string rblStates, string rbInfo, string rbIDCardNo, string rbRealName,
Grid Grid1)
{
Model.SGGLDB db = Funs.DB;
IQueryable<Model.SitePerson_Person> getDataList = getDataLists;
if (projectId != Const._Null && !string.IsNullOrEmpty(projectId))
{