2023-11-02
This commit is contained in:
@@ -105,21 +105,21 @@
|
||||
</div>
|
||||
|
||||
|
||||
<div class="y_box js-hover" data-type="QualityProblem" style="width: 100%;">
|
||||
<div class="y_box js-hover" data-type="QualityInspection" style="width: 100%;">
|
||||
<div class="y_box_label y_image_default">质量验收数据</div>
|
||||
<div class="y_box_main">
|
||||
<div class="zl-card y_row">
|
||||
<div class="y_image_default y_column" style="width: 2.7625rem;">
|
||||
<div class="zl-label">整改闭环项</div>
|
||||
<div class="zl-number" style="color: #2BFAFF;"><%=GetProblemCompletedNum() %></div>
|
||||
<div class="zl-label">共检总数</div>
|
||||
<div class="zl-number" style="color: #2BFAFF;"><%=getAllInspectionManagement() %></div>
|
||||
</div>
|
||||
<div class="y_image_default y_column" style="width: 2.7625rem;">
|
||||
<div class="zl-label">未整改完成项</div>
|
||||
<div class="zl-number" style="color: #FF7474;"><%=GetProblemNotCompletedNum() %></div>
|
||||
<div class="zl-label">-次合格数量</div>
|
||||
<div class="zl-number" style="color: #FF7474;"><%=getIsOnceInspectionManagement() %></div>
|
||||
</div>
|
||||
<div class="y_image_default y_column" style="width: 2.7625rem;">
|
||||
<div class="zl-label">整改率</div>
|
||||
<div class="zl-number" style="color: #FFA602;"><%=GetProblemZgl() %></div>
|
||||
<div class="zl-label">-次验收合格率</div>
|
||||
<div class="zl-number" style="color: #FFA602;"><%=GetInspectionManagementZgl() %></div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="zlysmap"></div>
|
||||
@@ -544,6 +544,11 @@
|
||||
// $('iframe').attr('src', '../InterfacePopup/CQMS/QualityProblem.aspx') //质量问题数据
|
||||
window.open("../DataShow/QualityProblem.aspx")
|
||||
|
||||
}
|
||||
else if (type == 'QualityInspection') {
|
||||
// $('iframe').attr('src', '../InterfacePopup/CQMS/QualityProblem.aspx') //质量问题数据
|
||||
window.open("../DataShowLocal/InspectionManagementStatisc.aspx")
|
||||
|
||||
}
|
||||
else if (type == 'QualityControlPoint') {
|
||||
// $('iframe').attr('src', '../InterfacePopup/CQMS/QualityControlPoint.aspx') //质量控制点数据
|
||||
|
||||
@@ -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