提交代码

This commit is contained in:
2025-03-05 16:48:17 +08:00
parent 64ee6e8635
commit 58beeab458
59 changed files with 4829 additions and 532 deletions
@@ -29,8 +29,9 @@ namespace FineUIPro.Web.CQMS.QuantityManagement
/// </summary>
public void BindGrid()
{
string strSql = @"select DrawingId,ProjectId,C.WorkSection,DrawingNo,DrawingName,Major,AcceptDate,CompletionStatus,DutyPerson,Remark
string strSql = @"select DrawingId,ProjectId,C.WorkSection,DrawingNo,DrawingName,cn.ProfessionalName as Major,AcceptDate,CompletionStatus,CompletionStatus2,DutyPerson,Remark
from QuantityManagement_Drawing C
left join Base_CNProfessional cn on C.Major=cn.CNProfessionalId
where C.ProjectId = @ProjectId";
List<SqlParameter> listStr = new List<SqlParameter>();
listStr.Add(new SqlParameter("@ProjectId", this.CurrUser.LoginProjectId));
@@ -55,6 +56,15 @@ namespace FineUIPro.Web.CQMS.QuantityManagement
var table = this.GetPagedDataTable(Grid1, tb);
Grid1.DataSource = table;
Grid1.DataBind();
for (int i = 0; i < this.Grid1.Rows.Count; i++)
{
string id = this.Grid1.Rows[i].RowID;
Model.QuantityManagement_Drawing drawing = BLL.DrawingService.GetDrawingById(id);
if (drawing != null && (drawing.CompletionStatus != true || drawing.CompletionStatus2 != true))
{
this.Grid1.Rows[i].RowCssClass = "Yellow";
}
}
}
#endregion