提交代码

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,10 @@ namespace FineUIPro.Web.CQMS.QuantityManagement
/// </summary>
public void BindGrid()
{
string strSql = @"select ChangeId,ProjectId,C.WorkSection,ChangeNo,ChangeName,Major,AcceptDate,CompletionStatus,DutyPerson,Remark
string strSql = @"select ChangeId,C.ProjectId,C.WorkSection,C.ChangeNo,ChangeName,cn.ProfessionalName as Major,d.DrawingNo,C.AcceptDate,C.CompletionStatus,C.CompletionStatus2,C.DutyPerson,C.Remark
from QuantityManagement_Change C
left join Base_CNProfessional cn on C.Major=cn.CNProfessionalId
left join QuantityManagement_Drawing d on d.DrawingId=C.DrawingId
where C.ProjectId = @ProjectId";
List<SqlParameter> listStr = new List<SqlParameter>();
listStr.Add(new SqlParameter("@ProjectId", this.CurrUser.LoginProjectId));
@@ -55,6 +57,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_Change change = BLL.ChangeService.GetChangeById(id);
if (change != null && (change.CompletionStatus != true || change.CompletionStatus2 != true))
{
this.Grid1.Rows[i].RowCssClass = "Yellow";
}
}
}
#endregion