提交代码
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user