合并最新
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user