2023-05-22-001

This commit is contained in:
2023-05-22 18:45:58 +08:00
parent e16d0cfca5
commit a198785bd4
56 changed files with 10090 additions and 61 deletions
@@ -1,4 +1,5 @@
using BLL;
using Aspose.Words.Tables;
using BLL;
using System;
using System.Collections.Generic;
using System.Data;
@@ -295,7 +296,30 @@ namespace FineUIPro.Web.Comprehensive
lbfAction1.Enabled = false;
}
}
protected void Grid1_RowDataBound(object sender, GridRowEventArgs e)
{
DataRowView row = e.DataItem as DataRowView;
string ValidityDate = row["ValidityDate"].ToString();
if (!string.IsNullOrEmpty(ValidityDate))
{
if (DateTime.Compare(DateTime.Parse(ValidityDate).AddDays(-15), DateTime.Now) < 0)
{
// Grid1.Rows[e.RowIndex].RowCssClass = "Red";
//过期为红色
e.RowCssClass = "Red";
}
}
else
{
e.RowCssClass = "Yellow";
}
}
/// <summary>
/// Grid行点击事件
/// </summary>
@@ -338,5 +362,7 @@ namespace FineUIPro.Web.Comprehensive
return "编制";
}
}
}