2023-09-27
This commit is contained in:
@@ -174,7 +174,7 @@ namespace FineUIPro.Web.common
|
||||
div_zgsj.InnerHtml = (GetGeneralClosedNum() + GetGeneralNotClosedNum()).ToString();
|
||||
div_zgywc.InnerHtml = GetGeneralClosedNum().ToString();
|
||||
div_zgwwc.InnerHtml = GetGeneralNotClosedNum().ToString();
|
||||
div_zgwcl.InnerHtml = String.Format("{0:N2}", 100.0 * GetGeneralClosedNum() / (GetGeneralNotClosedNum() + GetGeneralClosedNum())) + "%";
|
||||
div_zgwcl.InnerHtml = String.Format("{0:N2}", 100.0 * GetGeneralClosedNum() / (GetGeneralNotClosedNum() + GetGeneralClosedNum())).Replace("NaN","0") + "%";
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -485,6 +485,16 @@ namespace FineUIPro.Web.common
|
||||
#endregion
|
||||
|
||||
#region 作业许可
|
||||
protected int getTodayCount()
|
||||
{
|
||||
var result = Funs.DB.View_License_LicenseManager.Where(x => x.ProjectId == ProjectId && x.CompileDate.Value.Date == DateTime.Now.Date).ToList().Count;
|
||||
return result;
|
||||
}
|
||||
protected int getAllCount()
|
||||
{
|
||||
var result = Funs.DB.View_License_LicenseManager.Where(x => x.ProjectId == ProjectId ).ToList().Count;
|
||||
return result;
|
||||
}
|
||||
/// <summary>
|
||||
/// 动火作业许可证
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user