修改进度模块
This commit is contained in:
@@ -28,7 +28,7 @@ namespace FineUIPro.Web.JDGL.Check
|
||||
|
||||
private void BindGrid()
|
||||
{
|
||||
DataTable table = BLL.WorkPackageService.GetAllTreeDataTable(this.CurrUser.LoginProjectId, string.Empty);
|
||||
DataTable table = BLL.WorkPackageService.GetAllTreeDataTable(this.CurrUser.LoginProjectId, string.Empty,this.txtStartTime.Text.Trim(),this.txtEndTime.Text.Trim());
|
||||
Grid1.DataSource = table;
|
||||
Grid1.DataBind();
|
||||
for (int i = 0; i < this.Grid1.Rows.Count; i++)
|
||||
@@ -54,6 +54,15 @@ namespace FineUIPro.Web.JDGL.Check
|
||||
cbIsMileStone.Checked = true;
|
||||
}
|
||||
}
|
||||
if (!string.IsNullOrEmpty(this.Grid1.Rows[i].Values[10].ToString()))
|
||||
{
|
||||
DateTime planEndDate = Convert.ToDateTime(this.Grid1.Rows[i].Values[10].ToString());
|
||||
DateTime realEndDate = Funs.GetNewDateTimeOrNow(this.Grid1.Rows[i].Values[12].ToString());
|
||||
if (planEndDate < realEndDate)
|
||||
{
|
||||
Grid1.Rows[i].RowCssClass = "red";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -180,7 +189,7 @@ namespace FineUIPro.Web.JDGL.Check
|
||||
{
|
||||
try
|
||||
{
|
||||
DataTable table = BLL.WorkPackageService.GetAllTreeDataTable(this.CurrUser.LoginProjectId, "Out");
|
||||
DataTable table = BLL.WorkPackageService.GetAllTreeDataTable(this.CurrUser.LoginProjectId, "Out",this.txtStartTime.Text.Trim(),this.txtEndTime.Text.Trim());
|
||||
string projectNmae = BLL.ProjectService.GetProjectNameByProjectId(this.CurrUser.LoginProjectId);
|
||||
if (!string.IsNullOrEmpty(projectNmae))
|
||||
{
|
||||
@@ -357,5 +366,10 @@ namespace FineUIPro.Web.JDGL.Check
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
protected void btnQuery_Click(object sender, EventArgs e)
|
||||
{
|
||||
BindGrid();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user