提交代码

This commit is contained in:
2024-04-11 14:11:04 +08:00
parent ab8edaa2a9
commit 546e2764a1
48 changed files with 8217 additions and 13 deletions
+7 -11
View File
@@ -541,23 +541,19 @@ namespace FineUIPro.Web.common
protected string zggjzglDataValue;
protected void getZlgj()
{
var num1 = (from x in Funs.DB.ProcessControl_InspectionManagement
select x).Count();
//Check_JointCheck
zlgjallNumber = (from x in Funs.DB.Check_JointCheck
where x.CheckDate <= DateTime.Now
select x).Count().ToString();
zlgjallNumber = num1.ToString();
var num2 = (from x in Funs.DB.Check_JointCheck
where x.CheckDate <= DateTime.Now && x.State == BLL.Const.JointCheck_Complete
var num2 = (from x in Funs.DB.ProcessControl_InspectionManagement
where x.IsOnceQualified == true
select x).Count();
zlgjfinishNumber = num2.ToString();
var num3 = (from x in Funs.DB.Check_JointCheck
where x.CheckDate <= DateTime.Now && x.State != BLL.Const.JointCheck_Complete
select x).Count();
var zgl = String.Format("{0:N2}", 100.0 * num2 / (num2 + num3));
var zgl = String.Format("{0:N2}", 100.0 * num2 / num1);
zlgjzgl = zgl.ToString();
zggjzglDataValue = (100 - (100.0 * num2 / (num2 + num3))).ToString();
zggjzglDataValue = (100 - (100.0 * num2 / num1)).ToString();
}
#endregion