公司级增加项目筛选,开车看板修改
This commit is contained in:
@@ -686,36 +686,67 @@ namespace BLL
|
||||
/// 获取企业负责人带班检查次数
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public static int GetCompanyLeadShiftCheckNum()
|
||||
public static int GetCompanyLeadShiftCheckNum(string[] pids=null)
|
||||
{
|
||||
var result = (from x in Funs.DB.Supervise_SuperviseCheckReport
|
||||
where x.CheckType == "1" && x.CheckDate > Const.DtmarkTime
|
||||
select x).Count();
|
||||
return result;
|
||||
if (pids == null)
|
||||
{
|
||||
var result = (from x in Funs.DB.Supervise_SuperviseCheckReport
|
||||
where x.CheckType == "1" && x.CheckDate > Const.DtmarkTime
|
||||
select x).Count();
|
||||
return result;
|
||||
}
|
||||
else {
|
||||
var result = (from x in Funs.DB.Supervise_SuperviseCheckReport
|
||||
where x.CheckType == "1" && x.CheckDate > Const.DtmarkTime
|
||||
&& pids.Contains(x.ProjectId)
|
||||
select x).Count();
|
||||
return result;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取企业综合检查次数
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public static int GetCompanyComprehensiveCheckNum()
|
||||
public static int GetCompanyComprehensiveCheckNum(string[] pids = null)
|
||||
{
|
||||
var result = (from x in Funs.DB.Supervise_SuperviseCheckReport
|
||||
where x.CheckType == "2" && x.CheckDate > Const.DtmarkTime
|
||||
select x).Count();
|
||||
return result;
|
||||
if (pids == null) {
|
||||
var result = (from x in Funs.DB.Supervise_SuperviseCheckReport
|
||||
where x.CheckType == "2" && x.CheckDate > Const.DtmarkTime
|
||||
select x).Count();
|
||||
return result;
|
||||
}
|
||||
else {
|
||||
var result = (from x in Funs.DB.Supervise_SuperviseCheckReport
|
||||
where x.CheckType == "2" && x.CheckDate > Const.DtmarkTime
|
||||
&& pids.Contains(x.ProjectId)
|
||||
select x).Count();
|
||||
return result;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取企业专项检查次数
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public static int GetCompanySpecialCheckNum()
|
||||
public static int GetCompanySpecialCheckNum(string[] pids = null)
|
||||
{
|
||||
var result = (from x in Funs.DB.Supervise_SuperviseCheckReport
|
||||
where x.CheckType == "3" && x.CheckDate > Const.DtmarkTime
|
||||
select x).Count();
|
||||
return result;
|
||||
if (pids == null)
|
||||
{
|
||||
var result = (from x in Funs.DB.Supervise_SuperviseCheckReport
|
||||
where x.CheckType == "3" && x.CheckDate > Const.DtmarkTime
|
||||
select x).Count();
|
||||
return result;
|
||||
}
|
||||
else {
|
||||
var result = (from x in Funs.DB.Supervise_SuperviseCheckReport
|
||||
where x.CheckType == "3" && x.CheckDate > Const.DtmarkTime
|
||||
&& pids.Contains(x.ProjectId)
|
||||
select x).Count();
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user