修正singR

This commit is contained in:
DESKTOP-H2PAFLR\Administrator
2023-10-12 09:36:03 +08:00
parent 39b86ccdf0
commit e43a04bc8f
18 changed files with 1290 additions and 120 deletions

View File

@@ -35,7 +35,7 @@ namespace ZR.Service.MES.op
opStatisticsDTO.PlanNum = OpStatistics.PlanNum;
opStatisticsDTO.ProductedNum = OpStatistics.ProductedNum;
decimal num1 = (decimal) OpStatistics.ProductedNum / (decimal)OpStatistics.PlanNum*100;
opStatisticsDTO.ProductProgressRate = num1.ToString("0.00") ;
opStatisticsDTO.ProductProgressRate = (int)num1 ;
opStatisticsDTO.GoodproductsNum = OpStatistics.GoodproductsNum;
opStatisticsDTO.DefectiveProductsNum = OpStatistics.DefectiveProductsNum;
decimal num2 = (decimal)OpStatistics.DefectiveProductsNum / (decimal)(OpStatistics.GoodproductsNum + OpStatistics.DefectiveProductsNum);