公司级进度看板明细完善双击查看项目进度详情

This commit is contained in:
2025-04-10 19:04:56 +08:00
parent 678e16df46
commit ad2db6e6f5
10 changed files with 705 additions and 40 deletions
+67
View File
@@ -362,5 +362,72 @@ left join (
}
}
}
/// <summary>
/// Grid双击事件
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void Grid3_RowDoubleClick(object sender, GridRowClickEventArgs e)
{
this.ViewWeekDetail();
}
/// <summary>
/// 查看
/// </summary>
private void ViewWeekDetail()
{
if (Grid3.SelectedRowIndexArray.Length == 0)
{
Alert.ShowInTop("请选择一条记录!", MessageBoxIcon.Warning);
return;
}
else if (Grid3.SelectedRowIndexArray.Length > 1)
{
Alert.ShowInTop("请选择一条记录!", MessageBoxIcon.Warning);
return;
}
string projectId = Grid3.SelectedRowID;
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("JDWeekDetail.aspx?projectId={0}", projectId, "查看明细 - ")));
}
/// <summary>
/// Grid双击事件
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void Grid2_RowDoubleClick(object sender, GridRowClickEventArgs e)
{
this.ViewMonthDetail();
}
/// <summary>
/// 查看
/// </summary>
private void ViewMonthDetail()
{
if (Grid2.SelectedRowIndexArray.Length == 0)
{
Alert.ShowInTop("请选择一条记录!", MessageBoxIcon.Warning);
return;
}
else if (Grid2.SelectedRowIndexArray.Length > 1)
{
Alert.ShowInTop("请选择一条记录!", MessageBoxIcon.Warning);
return;
}
//统计月份信息
DateTime months = Convert.ToDateTime(DateTime.Now.Year.ToString() + "-" + DateTime.Now.Month.ToString() + "-01");
if (DateTime.Now.Day < 26)
{
months = Convert.ToDateTime(DateTime.Now.Year.ToString() + "-" + DateTime.Now.AddMonths(-1).Month.ToString() + "-01");
}
string projectId = Grid2.SelectedRowID;
string month = months.ToString("yyyy-MM-dd");
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("JDMonthDetail.aspx?projectId={0}&month={1}", projectId, month, "查看明细 - ")));
}
}
}