去除静态变量Funs.DB
This commit is contained in:
@@ -2,13 +2,12 @@
|
||||
using NPOI.SS.Formula.Functions;
|
||||
using System.Collections;
|
||||
using System.Linq;
|
||||
using Model;
|
||||
|
||||
namespace BLL
|
||||
{
|
||||
public class Person_ShuntService
|
||||
{
|
||||
public static Model.SGGLDB db = Funs.DB;
|
||||
|
||||
#region 获取人员列表信息
|
||||
/// <summary>
|
||||
/// 记录数
|
||||
@@ -22,7 +21,7 @@ namespace BLL
|
||||
/// <summary>
|
||||
/// 定义变量
|
||||
/// </summary>
|
||||
private static IQueryable<Model.Person_Persons> getDataLists = from x in db.Person_Persons
|
||||
private static IQueryable<Model.Person_Persons> getDataLists = from x in Funs.DB.Person_Persons
|
||||
where x.PersonId != Const.sysglyId && x.PersonId != Const.hfnbdId && x.UnitId == Const.UnitId_SEDIN
|
||||
&& x.DepartId == Const.Depart_constructionId
|
||||
&& x.CurrentProjectId == null && (!x.IsOffice.HasValue || x.IsOffice == false)
|
||||
|
||||
Reference in New Issue
Block a user