2023-11-02
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
using BLL;
|
||||
using FineUIPro.Web.BaseInfo;
|
||||
using Newtonsoft.Json;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Runtime.InteropServices.ComTypes;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
@@ -142,7 +144,7 @@ namespace FineUIPro.Web.common
|
||||
DateTime date = DateTime.Now.AddDays(-1);
|
||||
var result = (from x in Funs.DB.Comprehensive_DesignDetails
|
||||
where x.DetailsDate.Value.Year == date.Year && x.DetailsDate.Value.Month == date.Month && x.DetailsDate.Value.Day == date.Day
|
||||
select x.JoinPersonNum).ToList().Sum(x => x.Value);
|
||||
select x.JoinPersonNum??0).ToList().Sum();
|
||||
var q = Funs.GetNewIntOrZero(result.ToString());
|
||||
return q;
|
||||
}
|
||||
@@ -162,6 +164,55 @@ namespace FineUIPro.Web.common
|
||||
this.spanQualityChartAnalysis.InnerHtml = allCount.ToString();
|
||||
}
|
||||
|
||||
#region 质量验收数据
|
||||
/// <summary>
|
||||
/// 共检总数
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public static int getAllInspectionManagement()
|
||||
{
|
||||
int result = 0;
|
||||
;
|
||||
//统计所给时间段的全部数量
|
||||
List<Model.View_CQMS_InspectionManagementDetail> managementListSunNumber =
|
||||
BLL.InspectionManagementService.getInspectionManagementDetailListByCNProfessionalIdAndDate(
|
||||
null, null, DateTime.Parse("2001-01-01"), DateTime.Now, false);
|
||||
result = managementListSunNumber.Count;
|
||||
//int result = (from x in Funs.DB.Check_CheckControl
|
||||
// where x.CheckDate <= DateTime.Now && x.State == "7"
|
||||
// select x).Count();
|
||||
return result;
|
||||
}
|
||||
/// <summary>
|
||||
/// 次合格数量
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public static int getIsOnceInspectionManagement()
|
||||
{
|
||||
int result = 0;
|
||||
//统计所给时间段的合格数量
|
||||
List<Model.View_CQMS_InspectionManagementDetail> managementListOneNumber =
|
||||
BLL.InspectionManagementService.getInspectionManagementDetailListByCNProfessionalIdAndDate(
|
||||
null, null, DateTime.Parse("2001-01-01"), DateTime.Now, true);
|
||||
result = managementListOneNumber.Count;
|
||||
|
||||
//int result = (from x in Funs.DB.Check_CheckControl
|
||||
// where x.CheckDate <= DateTime.Now && x.State != "7"
|
||||
// select x).Count();
|
||||
return result;
|
||||
}
|
||||
/// <summary>
|
||||
/// 整改率
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public static string GetInspectionManagementZgl()
|
||||
{
|
||||
string zgl = String.Format("{0:N2}", 100.0 * getIsOnceInspectionManagement() / getAllInspectionManagement());
|
||||
return zgl + "%";
|
||||
}
|
||||
|
||||
|
||||
#endregion
|
||||
#region 质量问题治理数据
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user