1
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user