20240819 离场人员、机具灰色标记

This commit is contained in:
2024-08-19 10:51:27 +08:00
parent d8438a5c76
commit 55471fb403
4 changed files with 24 additions and 9 deletions
@@ -34,7 +34,7 @@ namespace FineUIPro.Web.Comprehensive
{
string strSql = @"select InspectionMachineId, InspectionMachineCode, U.UnitName,CN.ProfessionalName ,Status,
InspectionMachineName, SpecificationModel, NextTestDate, TestCycle, C.InspectionDate,
InspectionDate CompileDate, (CASE WHEN IsVerification=1 THEN '是' WHEN IsVerification=0 THEN '否' ELSE '' END) AS IsVerification, InspectionType, LeaveDate, UnitsCount,C.RemarkCode
InspectionDate CompileDate, (CASE WHEN IsVerification=1 THEN '是' WHEN IsVerification=0 THEN '否' ELSE '' END) AS IsVerification, InspectionType, LeaveDate, UnitsCount,C.RemarkCode,C.IsOnSite
from Comprehensive_InspectionMachine C
left join Base_Unit U on C.UnitId=U.UnitId
left join Base_CNProfessional CN on C.CNProfessionalId=CN.CNProfessionalId
@@ -106,7 +106,7 @@ namespace FineUIPro.Web.Comprehensive
DataRowView row = e.DataItem as DataRowView;
string IsVerification = row["IsVerification"].ToString();
string NextTestDate = row["NextTestDate"].ToString();
string InspectionType= row["InspectionType"].ToString();
string InspectionType = row["InspectionType"].ToString();
if (InspectionType == "计量")
{
if (IsVerification == "是" && !string.IsNullOrEmpty(NextTestDate)) //在校验期内
@@ -126,6 +126,13 @@ namespace FineUIPro.Web.Comprehensive
}
}
//离场为灰色
string LeaveDate = row["LeaveDate"].ToString();
string IsOnSite = row["IsOnSite"].ToString();
if (!string.IsNullOrEmpty(LeaveDate) || IsOnSite == "False")
{
e.RowCssClass = "Gray";
}
}
#region