11
This commit is contained in:
@@ -26,7 +26,7 @@ namespace BLL
|
||||
/// <summary>
|
||||
/// 定义变量
|
||||
/// </summary>
|
||||
public static IQueryable<Model.Base_InspectionArea> qq = from x in Funs.DB.Base_InspectionArea orderby x.InspectionAreaCode select x;
|
||||
//public static IQueryable<Model.Base_InspectionArea> qq = from x in Funs.DB.Base_InspectionArea orderby x.InspectionAreaCode select x;
|
||||
|
||||
/// <summary>
|
||||
/// 获取分页列表
|
||||
@@ -37,7 +37,7 @@ namespace BLL
|
||||
/// <returns></returns>
|
||||
public static IEnumerable GetListData(string inspectionAreaName, int startRowIndex, int maximumRows)
|
||||
{
|
||||
IQueryable<Model.Base_InspectionArea> q = qq;
|
||||
IQueryable<Model.Base_InspectionArea> q = from x in Funs.DB.Base_InspectionArea orderby x.InspectionAreaCode select x;
|
||||
if (!string.IsNullOrEmpty(inspectionAreaName))
|
||||
{
|
||||
q = q.Where(e => e.InspectionAreaName.Contains(inspectionAreaName));
|
||||
|
||||
Reference in New Issue
Block a user