提交代码
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user