This commit is contained in:
2025-03-14 12:45:42 +08:00
parent 535156e260
commit 320316e3f2
3 changed files with 80 additions and 17 deletions
@@ -20,6 +20,7 @@ namespace FineUIPro.Web.JDGL.Check
if (!IsPostBack)
{
this.txtMonths.Text = string.Format("{0:yyyy-MM}", DateTime.Now);
this.txtYear.Text = string.Format("{0:yyyy}", DateTime.Now);
BindStatisc();
}
}
@@ -32,6 +33,7 @@ namespace FineUIPro.Web.JDGL.Check
}
BindStatisc();
}
#region GridView
/// <summary>
/// 绑定
@@ -143,6 +145,38 @@ namespace FineUIPro.Web.JDGL.Check
this.Grid1.DataBind();
}
#endregion
/// <summary>
/// 统计周期
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void ckCycle_SelectedIndexChanged(object sender, EventArgs e)
{
var cycle = this.ckCycle.SelectedValue;
if (cycle == "1")
{//按月份
this.txtMonths.Hidden = false;
this.txtYear.Hidden = true;
}
else if(cycle == "2")
{//按年份
this.txtMonths.Hidden = true;
this.txtYear.Hidden = false;
}
else
{//按项目周期
this.txtMonths.Hidden = true;
this.txtYear.Hidden = true;
}
BindStatisc();
}
/// <summary>
/// 统计汇总
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void ckType_SelectedIndexChanged(object sender, EventArgs e)
{
if (this.ckType.SelectedValue == "1")