20230922
This commit is contained in:
@@ -100,20 +100,60 @@ namespace FineUIPro.Web.HSSE.QualityAudit
|
||||
strSql += " AND WorkPost.WorkPostName LIKE @WorkPostName";
|
||||
listStr.Add(new SqlParameter("@WorkPostName", "%" + this.txtWorkPostName.Text.Trim() + "%"));
|
||||
}
|
||||
SqlParameter[] parameter = listStr.ToArray();
|
||||
if (drpIsUsedName.SelectedValue == "待审核")
|
||||
{
|
||||
strSql += " AND Person.IsUsed = @IsUsed";
|
||||
listStr.Add(new SqlParameter("@IsUsed", "2"));
|
||||
}
|
||||
else if (drpIsUsedName.SelectedValue == "在岗")
|
||||
{
|
||||
strSql += " AND Person.IsUsed = @IsUsed";
|
||||
listStr.Add(new SqlParameter("@IsUsed", "1"));
|
||||
}
|
||||
else
|
||||
{
|
||||
strSql += " AND Person.IsUsed = @IsUsed";
|
||||
listStr.Add(new SqlParameter("@IsUsed", "0"));
|
||||
}
|
||||
SqlParameter[] parameter = listStr.ToArray();
|
||||
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
|
||||
|
||||
this.Grid1.RecordCount = tb.Rows.Count;
|
||||
var table = this.GetPagedDataTable(Grid1, tb);
|
||||
this.Grid1.DataSource = table;
|
||||
this.Grid1.DataBind();
|
||||
JObject summary = new JObject
|
||||
this.Grid1.DataBind();
|
||||
for (int i = 0; i < Grid1.Rows.Count; i++)
|
||||
{
|
||||
string limitstr = Grid1.Rows[i].Values[8].ToString();
|
||||
if (!string.IsNullOrEmpty(limitstr))
|
||||
{
|
||||
DateTime limitDate = DateTime.Parse(limitstr);
|
||||
if (limitDate.AddMonths(-3) <= DateTime.Now)
|
||||
{
|
||||
Grid1.Rows[i].RowCssClass = "Red";
|
||||
}
|
||||
else
|
||||
{
|
||||
Grid1.Rows[i].RowCssClass = "";
|
||||
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
Grid1.Rows[i].RowCssClass = "Red";
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
JObject summary = new JObject
|
||||
{
|
||||
{ "UnitName", "合计人数:" },
|
||||
{ "PersonName", this.Grid1.RecordCount }
|
||||
};
|
||||
|
||||
Grid1.SummaryData = summary;
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user