合并最新

This commit is contained in:
2022-12-20 09:32:32 +08:00
parent 844e9f1488
commit 1abdaa9476
654 changed files with 73563 additions and 9746 deletions
@@ -24,13 +24,13 @@ namespace FineUIPro.Web
{
get
{
List<Model.View_Check_SoptCheckDetail> TotalCheckDetailOKLists = SpotCheckDetailService.GetTotalOKSpotCheckDetailListByTime1(CurrUser.LoginProjectId, DateTime.Now);
List<Model.View_Check_SoptCheckDetail> TotalCheckDetailLists = SpotCheckDetailService.GetTotalAllSpotCheckDetailListByTime(CurrUser.LoginProjectId, DateTime.Now);
var inspectionManagements = from x in Funs.DB.View_CQMS_InspectionManagementDetail where x.ProjectId == this.CurrUser.LoginProjectId select x;
var okInspectionManagements = inspectionManagements.Where(x => x.IsOnceQualified == true);
double result = 0;
if (TotalCheckDetailOKLists.Count > 0 && TotalCheckDetailLists.Count > 0)
if (okInspectionManagements.Count() > 0 && inspectionManagements.Count() > 0)
{
var a = Convert.ToDouble(TotalCheckDetailOKLists.Count);
var b = Convert.ToDouble(TotalCheckDetailLists.Count);
var a = Convert.ToDouble(okInspectionManagements.Count());
var b = Convert.ToDouble(inspectionManagements.Count());
result = Convert.ToDouble(decimal.Round(decimal.Parse((a / b * 100).ToString()), 1));
}
return JsonConvert.SerializeObject(result);