建筑行业报表
This commit is contained in:
@@ -29,14 +29,14 @@ namespace BLL
|
||||
/// <param name="projectId"></param>
|
||||
/// <param name="states"></param>
|
||||
/// <returns></returns>
|
||||
public static List<Model.HazardRegisterItem> getHazardRegisterByProjectIdStates(string projectId, string states, int pageIndex)
|
||||
public static List<Model.HazardRegisterItem> getHazardRegisterByProjectIdStates(string projectId, string states, int pageIndex ,int pageSize ,string ProblemTypes)
|
||||
{
|
||||
using (Model.SUBQHSEDB db = new Model.SUBQHSEDB(Funs.ConnString))
|
||||
{
|
||||
var hazardRegisters = (from x in db.View_Hazard_HazardRegister_Unit
|
||||
where (x.ProjectId == projectId || projectId == null) && (x.States == states || states == null)
|
||||
where (x.ProjectId == projectId || projectId == null) && (x.States == states || states == null) && (x.ProblemTypes == ProblemTypes)
|
||||
orderby x.CheckTime descending
|
||||
select x).Skip(Funs.PageSize * (pageIndex - 1)).Take(Funs.PageSize).ToList();
|
||||
select x).Skip(pageSize * (pageIndex - 1)).Take(pageSize).ToList();
|
||||
return ObjectMapperManager.DefaultInstance.GetMapper<List<Model.View_Hazard_HazardRegister_Unit>, List<Model.HazardRegisterItem>>().Map(hazardRegisters.ToList());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user