2023-09-27

This commit is contained in:
2023-09-27 09:10:09 +08:00
parent 74327b5a3e
commit 92fd5a113d
26 changed files with 4569 additions and 882 deletions
+11 -1
View File
@@ -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>