using FineUIPro;
using System;
using System.Collections;
using System.Linq;
namespace BLL
{
///
/// 质量数据仓库
///
public static class CQMSDataDWService
{
public static Model.SGGLDB db = Funs.DB;
#region 质量数据仓库
///
/// 记录数
///
public static int count
{
get;
set;
}
///
/// 定义变量
///
private static IQueryable getDataLists = from x in db.Base_Project
select x;
///
/// 质量数据仓库
///
///
///
///
///
///
public static IEnumerable getDataDWList( string projectId, DateTime? startTime, DateTime? endTime, Grid Grid1)
{
var getDataList = from x in Funs.DB.Base_Project select x;
if (!string.IsNullOrEmpty(projectId) && projectId != Const._Null)
{
getDataList = getDataList.Where(x => x.ProjectId == projectId);
}
count = getDataList.Count();
if (count == 0)
{
return null;
}
getDataList = SortConditionHelper.SortingAndPaging(getDataList, Grid1.SortField, Grid1.SortDirection, Grid1.PageIndex, Grid1.PageSize);
return from x in getDataList
select new
{
x.ProjectId,
x.ProjectName,
x.ProjectCode,
Rate1 = "0%", //质量验收问题整改率
Rate2 = "0%", //控制点完成率
Rate3 = "0%", //质量检查问题整改率
Rate4 = "0%", //管道焊接一次合格率
};
}
#endregion
}
}